@awsless/awsless 0.0.13 → 0.0.15
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.cjs +2500 -1044
- package/dist/bin.js +2504 -1048
- package/dist/index.cjs +25 -21
- package/dist/index.d.ts +933 -804
- package/dist/index.js +20 -19
- package/package.json +4 -1
package/dist/index.js
CHANGED
|
@@ -3,31 +3,32 @@ import {
|
|
|
3
3
|
} from "./chunk-PFTL6L4F.js";
|
|
4
4
|
|
|
5
5
|
// src/node/resource.ts
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
throw new TypeError(`Resource type: "${type}" stack: "${stack}" id: "${id}" doesn't exist.`);
|
|
11
|
-
}
|
|
12
|
-
return value;
|
|
6
|
+
var APP = process.env.APP || "app";
|
|
7
|
+
var STACK = process.env.STACK || "stack";
|
|
8
|
+
var getLocalResourceName = (id, stack = STACK) => {
|
|
9
|
+
return `${APP}-${stack}-${id}`;
|
|
13
10
|
};
|
|
14
|
-
var
|
|
15
|
-
return
|
|
11
|
+
var getGlobalResourceName = (id) => {
|
|
12
|
+
return `${APP}-${id}`;
|
|
16
13
|
};
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
var getQueueName =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
14
|
+
var getFunctionName = getLocalResourceName;
|
|
15
|
+
var getTableName = getLocalResourceName;
|
|
16
|
+
var getStoreName = getLocalResourceName;
|
|
17
|
+
var getQueueName = getLocalResourceName;
|
|
18
|
+
var getTopicName = getGlobalResourceName;
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var defineAppConfig = (config) => {
|
|
22
|
+
return config;
|
|
25
23
|
};
|
|
26
24
|
export {
|
|
25
|
+
defineAppConfig,
|
|
27
26
|
definePlugin,
|
|
28
27
|
getFunctionName,
|
|
28
|
+
getGlobalResourceName,
|
|
29
|
+
getLocalResourceName,
|
|
29
30
|
getQueueName,
|
|
30
|
-
getResourceName,
|
|
31
31
|
getStoreName,
|
|
32
|
-
getTableName
|
|
32
|
+
getTableName,
|
|
33
|
+
getTopicName
|
|
33
34
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awsless/awsless",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -35,12 +35,15 @@
|
|
|
35
35
|
"@rollup/plugin-json": "^6.0.0",
|
|
36
36
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
37
37
|
"@swc/core": "^1.3.70",
|
|
38
|
+
"@types/aws-lambda": "^8.10.110",
|
|
38
39
|
"@types/pretty-hrtime": "^1.0.1",
|
|
39
40
|
"aws-cdk-lib": "^2.87.0",
|
|
40
41
|
"aws-cron-expression-validator": "^1.0.5",
|
|
42
|
+
"aws-lambda": "^1.0.7",
|
|
41
43
|
"chalk": "^5.3.0",
|
|
42
44
|
"change-case": "^4.1.2",
|
|
43
45
|
"commander": "^9.4.1",
|
|
46
|
+
"constructs": "^10.1.246",
|
|
44
47
|
"esbuild": "^0.18.15",
|
|
45
48
|
"filesize": "^10.0.7",
|
|
46
49
|
"graphql": "^16.7.1",
|