Skip to content

Commit c6dea78

Browse files
committed
release: 1.0.5
- fix infinite loop over tagged resources - change handler extension to .mjs so Lambda can run it correctly as module
1 parent 67a4471 commit c6dea78

4 files changed

Lines changed: 10 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 1.0.5
2+
3+
- fix infinite loop over tagged resources
4+
- change handler extension to .mjs so Lambda can run it correctly as module
5+
16
# 1.0.4
27

38
- fix: handler.js is build without @aws-sdk

build.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ rmSync("dist", { force: true, recursive: true });
99
await Bun.build({
1010
entrypoints: ["handler.ts"],
1111
outdir: "dist/lambda",
12+
naming: {
13+
entry: "[dir]/[name].mjs",
14+
},
1215
target: "node",
1316
minify: true,
1417
splitting: true,

handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ export const handler = async (event: { action: "lambdaKeepActive" }) => {
4444
}
4545
}),
4646
);
47-
} while (nextToken != null);
47+
} while (nextToken != null && nextToken !== "");
4848
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@beesolve/lambda-keep-active",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"type": "module",
55
"scripts": {
66
"prepublishOnly": "bun run build.ts"

0 commit comments

Comments
 (0)