@awsless/awsless 0.0.330 → 0.0.332
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 +2 -3
- package/package.json +8 -8
package/dist/bin.js
CHANGED
|
@@ -2316,6 +2316,7 @@ var createLambdaFunction = (group, ctx, ns, id, local2) => {
|
|
|
2316
2316
|
ctx.registerPolicy(policy);
|
|
2317
2317
|
lambda.addEnvironment("APP", ctx.appConfig.name);
|
|
2318
2318
|
lambda.addEnvironment("APP_ID", ctx.appId);
|
|
2319
|
+
lambda.addEnvironment("STORE_POSTFIX", ctx.appId);
|
|
2319
2320
|
if ("stackConfig" in ctx) {
|
|
2320
2321
|
lambda.addEnvironment("STACK", ctx.stackConfig.name);
|
|
2321
2322
|
}
|
|
@@ -3594,6 +3595,7 @@ var instanceFeature = defineFeature({
|
|
|
3594
3595
|
const env = {
|
|
3595
3596
|
APP: ctx.app.name,
|
|
3596
3597
|
APP_ID: ctx.appId,
|
|
3598
|
+
STORE_POSTFIX: ctx.appId,
|
|
3597
3599
|
STACK: ctx.stack.name
|
|
3598
3600
|
};
|
|
3599
3601
|
ctx.onEnv((name2, value) => {
|
|
@@ -4363,9 +4365,6 @@ var storeFeature = defineFeature({
|
|
|
4363
4365
|
gen.addInterface("StoreResources", resources);
|
|
4364
4366
|
await ctx.write("store.d.ts", gen, true);
|
|
4365
4367
|
},
|
|
4366
|
-
onApp(ctx) {
|
|
4367
|
-
ctx.addEnv("STORE_POSTFIX", ctx.appId);
|
|
4368
|
-
},
|
|
4369
4368
|
onStack(ctx) {
|
|
4370
4369
|
for (const [id, props] of Object.entries(ctx.stackConfig.stores ?? {})) {
|
|
4371
4370
|
const group = new Node16(ctx.stack, "store", id);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awsless/awsless",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.332",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -28,16 +28,16 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@awsless/
|
|
31
|
+
"@awsless/redis": "^0.0.12",
|
|
32
|
+
"@awsless/s3": "^0.0.18",
|
|
32
33
|
"@awsless/open-search": "^0.0.15",
|
|
33
34
|
"@awsless/sns": "^0.0.7",
|
|
34
|
-
"@awsless/s3": "^0.0.18",
|
|
35
35
|
"@awsless/sqs": "^0.0.7",
|
|
36
|
-
"@awsless/ssm": "^0.0.7",
|
|
37
36
|
"@awsless/iot": "^0.0.2",
|
|
38
|
-
"@awsless/
|
|
37
|
+
"@awsless/ssm": "^0.0.7",
|
|
39
38
|
"@awsless/validate": "^0.0.14",
|
|
40
|
-
"@awsless/weak-cache": "^0.0.1"
|
|
39
|
+
"@awsless/weak-cache": "^0.0.1",
|
|
40
|
+
"@awsless/lambda": "^0.0.26"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@arcanyx/cidr-slicer": "^0.3.0",
|
|
@@ -108,10 +108,10 @@
|
|
|
108
108
|
"zod-to-json-schema": "^3.22.3",
|
|
109
109
|
"@awsless/code": "^0.0.10",
|
|
110
110
|
"@awsless/duration": "^0.0.1",
|
|
111
|
-
"@awsless/formation": "^0.0.48",
|
|
112
|
-
"@awsless/graphql": "^0.0.9",
|
|
113
111
|
"@awsless/size": "^0.0.1",
|
|
112
|
+
"@awsless/graphql": "^0.0.9",
|
|
114
113
|
"@awsless/validate": "^0.0.14",
|
|
114
|
+
"@awsless/formation": "^0.0.48",
|
|
115
115
|
"@awsless/ts-file-cache": "^0.0.1"
|
|
116
116
|
},
|
|
117
117
|
"scripts": {
|