@awsless/awsless 0.0.51 → 0.0.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +5 -5
- package/package.json +3 -3
package/dist/bin.js
CHANGED
|
@@ -803,7 +803,7 @@ import json from "@rollup/plugin-json";
|
|
|
803
803
|
import commonjs from "@rollup/plugin-commonjs";
|
|
804
804
|
import nodeResolve from "@rollup/plugin-node-resolve";
|
|
805
805
|
import { dirname } from "path";
|
|
806
|
-
var rollupBundle = ({ format: format2 = "esm", minify = true, handler = "
|
|
806
|
+
var rollupBundle = ({ format: format2 = "esm", minify = true, handler = "default" } = {}) => {
|
|
807
807
|
return async (input) => {
|
|
808
808
|
const bundle = await rollup({
|
|
809
809
|
input,
|
|
@@ -861,7 +861,7 @@ var rollupBundle = ({ format: format2 = "esm", minify = true, handler = "index.d
|
|
|
861
861
|
});
|
|
862
862
|
}
|
|
863
863
|
return {
|
|
864
|
-
handler
|
|
864
|
+
handler: `index.${handler}`,
|
|
865
865
|
hash: hash.digest("hex"),
|
|
866
866
|
files
|
|
867
867
|
};
|
|
@@ -905,7 +905,7 @@ var Code = class {
|
|
|
905
905
|
const file = join(root2, `features/${id}.js`);
|
|
906
906
|
return new FileCode(id, file, rollupBundle({
|
|
907
907
|
minify: false,
|
|
908
|
-
handler: "
|
|
908
|
+
handler: "handler"
|
|
909
909
|
}));
|
|
910
910
|
}
|
|
911
911
|
static fromInlineFeature(id) {
|
|
@@ -914,7 +914,7 @@ var Code = class {
|
|
|
914
914
|
return new InlineFileCode(id, file, rollupBundle({
|
|
915
915
|
format: "cjs",
|
|
916
916
|
minify: false,
|
|
917
|
-
handler: "
|
|
917
|
+
handler: "handler"
|
|
918
918
|
}));
|
|
919
919
|
}
|
|
920
920
|
};
|
|
@@ -1320,7 +1320,7 @@ var schema = z6.object({
|
|
|
1320
1320
|
/** The name of the exported method within your code that Lambda calls to run your function.
|
|
1321
1321
|
* @default 'default'
|
|
1322
1322
|
*/
|
|
1323
|
-
handler: z6.string().default("
|
|
1323
|
+
handler: z6.string().default("default"),
|
|
1324
1324
|
/** Minify the function code.
|
|
1325
1325
|
* @default true
|
|
1326
1326
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awsless/awsless",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.52",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@awsless/lambda": "^0.0.6",
|
|
27
|
-
"@awsless/sqs": "^0.0.6",
|
|
28
27
|
"@awsless/sns": "^0.0.6",
|
|
29
|
-
"@awsless/ssm": "^0.0.7"
|
|
28
|
+
"@awsless/ssm": "^0.0.7",
|
|
29
|
+
"@awsless/sqs": "^0.0.6"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@aws-sdk/client-cloudformation": "^3.369.0",
|