@awsless/awsless 0.0.332 → 0.0.334

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 +13 -1
  2. package/package.json +10 -10
package/dist/bin.js CHANGED
@@ -1531,7 +1531,19 @@ 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) => {
1536
+ const destination = target.slice();
1537
+ source.forEach((item, index) => {
1538
+ if (typeof destination[index] === "undefined") {
1539
+ destination[index] = item;
1540
+ } else if (target.indexOf(item) === -1) {
1541
+ destination.push(item);
1542
+ }
1543
+ });
1544
+ return destination;
1545
+ }
1546
+ });
1535
1547
  };
1536
1548
 
1537
1549
  // src/config/load/validate.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.332",
3
+ "version": "0.0.334",
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/redis": "^0.0.12",
32
- "@awsless/s3": "^0.0.18",
33
31
  "@awsless/open-search": "^0.0.15",
34
- "@awsless/sns": "^0.0.7",
32
+ "@awsless/redis": "^0.0.12",
35
33
  "@awsless/sqs": "^0.0.7",
36
- "@awsless/iot": "^0.0.2",
34
+ "@awsless/sns": "^0.0.7",
35
+ "@awsless/lambda": "^0.0.26",
37
36
  "@awsless/ssm": "^0.0.7",
38
- "@awsless/validate": "^0.0.14",
39
- "@awsless/weak-cache": "^0.0.1",
40
- "@awsless/lambda": "^0.0.26"
37
+ "@awsless/iot": "^0.0.2",
38
+ "@awsless/s3": "^0.0.18",
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",
@@ -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",
111
112
  "@awsless/size": "^0.0.1",
112
113
  "@awsless/graphql": "^0.0.9",
113
- "@awsless/validate": "^0.0.14",
114
- "@awsless/formation": "^0.0.48",
114
+ "@awsless/validate": "^0.0.15",
115
115
  "@awsless/ts-file-cache": "^0.0.1"
116
116
  },
117
117
  "scripts": {