@awsless/awsless 0.0.331 → 0.0.333

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.
Files changed (2) hide show
  1. package/dist/bin.js +16 -1
  2. package/package.json +12 -12
package/dist/bin.js CHANGED
@@ -1531,7 +1531,21 @@ var readConfigWithStage = async (file, stage) => {
1531
1531
  }
1532
1532
  debug("Load env file:", color.info(stageFile));
1533
1533
  const stageConfig = await readConfig(stageFile);
1534
- return merge(config2, stageConfig);
1534
+ return merge(config2, stageConfig, {
1535
+ arrayMerge: (target, source, options) => {
1536
+ const destination = target.slice();
1537
+ source.forEach((item, index) => {
1538
+ if (typeof destination[index] === "undefined") {
1539
+ destination[index] = options?.cloneUnlessOtherwiseSpecified(item, options);
1540
+ } else if (options?.isMergeableObject(item)) {
1541
+ destination[index] = merge(target[index], item, options);
1542
+ } else if (target.indexOf(item) === -1) {
1543
+ destination.push(item);
1544
+ }
1545
+ });
1546
+ return destination;
1547
+ }
1548
+ });
1535
1549
  };
1536
1550
 
1537
1551
  // src/config/load/validate.ts
@@ -2316,6 +2330,7 @@ var createLambdaFunction = (group, ctx, ns, id, local2) => {
2316
2330
  ctx.registerPolicy(policy);
2317
2331
  lambda.addEnvironment("APP", ctx.appConfig.name);
2318
2332
  lambda.addEnvironment("APP_ID", ctx.appId);
2333
+ lambda.addEnvironment("STORE_POSTFIX", ctx.appId);
2319
2334
  if ("stackConfig" in ctx) {
2320
2335
  lambda.addEnvironment("STACK", ctx.stackConfig.name);
2321
2336
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.331",
3
+ "version": "0.0.333",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -29,15 +29,15 @@
29
29
  },
30
30
  "peerDependencies": {
31
31
  "@awsless/lambda": "^0.0.26",
32
- "@awsless/redis": "^0.0.12",
33
- "@awsless/sns": "^0.0.7",
34
32
  "@awsless/open-search": "^0.0.15",
33
+ "@awsless/redis": "^0.0.12",
34
+ "@awsless/s3": "^0.0.18",
35
+ "@awsless/sqs": "^0.0.7",
35
36
  "@awsless/ssm": "^0.0.7",
36
37
  "@awsless/iot": "^0.0.2",
37
- "@awsless/validate": "^0.0.14",
38
- "@awsless/s3": "^0.0.18",
39
- "@awsless/weak-cache": "^0.0.1",
40
- "@awsless/sqs": "^0.0.7"
38
+ "@awsless/sns": "^0.0.7",
39
+ "@awsless/validate": "^0.0.15",
40
+ "@awsless/weak-cache": "^0.0.1"
41
41
  },
42
42
  "dependencies": {
43
43
  "@arcanyx/cidr-slicer": "^0.3.0",
@@ -107,12 +107,12 @@
107
107
  "zod": "^3.21.4",
108
108
  "zod-to-json-schema": "^3.22.3",
109
109
  "@awsless/code": "^0.0.10",
110
- "@awsless/size": "^0.0.1",
111
- "@awsless/graphql": "^0.0.9",
112
110
  "@awsless/duration": "^0.0.1",
113
- "@awsless/ts-file-cache": "^0.0.1",
114
- "@awsless/validate": "^0.0.14",
115
- "@awsless/formation": "^0.0.48"
111
+ "@awsless/formation": "^0.0.48",
112
+ "@awsless/graphql": "^0.0.9",
113
+ "@awsless/size": "^0.0.1",
114
+ "@awsless/validate": "^0.0.15",
115
+ "@awsless/ts-file-cache": "^0.0.1"
116
116
  },
117
117
  "scripts": {
118
118
  "test": "pnpm code test",