ac-awssecrets 2.5.1 → 2.5.3

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 (3) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/index.js +2 -4
  3. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,4 +1,32 @@
1
1
 
2
+ ## [2.5.3](https://github.com/admiralcloud/ac-awssecrets/compare/v2.5.2..v2.5.3) (2025-08-30 06:40:03)
3
+
4
+
5
+ ### Bug Fix
6
+
7
+ * **App:** Package updates | MP | [06bc398b8f846a141f8ac91951f7f88026f7b4df](https://github.com/admiralcloud/ac-awssecrets/commit/06bc398b8f846a141f8ac91951f7f88026f7b4df)
8
+ Package updates
9
+ Related issues:
10
+ ### Documentation
11
+
12
+ * **App:** Removed comments | MP | [75973c33faf50264a9276a22c9a8e7e2800884f0](https://github.com/admiralcloud/ac-awssecrets/commit/75973c33faf50264a9276a22c9a8e7e2800884f0)
13
+ Removed comments
14
+ Related issues:
15
+
16
+ ## [2.5.2](https://github.com/admiralcloud/ac-awssecrets/compare/v2.5.1..v2.5.2) (2025-05-20 05:42:15)
17
+
18
+
19
+ ### Bug Fix
20
+
21
+ * **App:** Do not create duplicate entries when merging arrays | MP | [2f5d6d49d543af077f9c0b31061ec0681ee9ae9c](https://github.com/admiralcloud/ac-awssecrets/commit/2f5d6d49d543af077f9c0b31061ec0681ee9ae9c)
22
+ Do not create duplicate entries when merging arrays
23
+ Related issues:
24
+ ### Chores
25
+
26
+ * **App:** Updated packages | MP | [ccc52156ac8ca7f72a1b008465ff142b1d628e01](https://github.com/admiralcloud/ac-awssecrets/commit/ccc52156ac8ca7f72a1b008465ff142b1d628e01)
27
+ Updated packages
28
+ Related issues:
29
+
2
30
  ## [2.5.1](https://github.com/admiralcloud/ac-awssecrets/compare/v2.5.0..v2.5.1) (2025-05-13 08:10:25)
3
31
 
4
32
 
package/index.js CHANGED
@@ -33,12 +33,11 @@ const awsSecrets = () => {
33
33
 
34
34
  const deepMerge = (target, source) => {
35
35
  if (Array.isArray(target) && Array.isArray(source)) {
36
- return [...target, ...source]
36
+ return [...new Set([...target, ...source])]
37
37
  }
38
-
38
+
39
39
  if (typeof source === 'object' && source !== null && typeof target === 'object' && target !== null) {
40
40
  const result = { ...target }
41
-
42
41
  for (const key in source) {
43
42
  if (key in result) {
44
43
  result[key] = deepMerge(result[key], source[key])
@@ -47,7 +46,6 @@ const awsSecrets = () => {
47
46
  result[key] = source[key]
48
47
  }
49
48
  }
50
-
51
49
  return result
52
50
  }
53
51
 
package/package.json CHANGED
@@ -3,17 +3,17 @@
3
3
  "author": "Mark Poepping (https://www.admiralcloud.com)",
4
4
  "license": "MIT",
5
5
  "repository": "admiralcloud/ac-awssecrets",
6
- "version": "2.5.1",
6
+ "version": "2.5.3",
7
7
  "dependencies": {
8
- "@aws-sdk/client-secrets-manager": "^3.808.0",
9
- "@aws-sdk/client-ssm": "^3.808.0"
8
+ "@aws-sdk/client-secrets-manager": "^3.879.0",
9
+ "@aws-sdk/client-ssm": "^3.879.0"
10
10
  },
11
11
  "devDependencies": {
12
- "ac-semantic-release": "^0.4.6",
12
+ "ac-semantic-release": "^0.4.7",
13
13
  "c8": "^10.1.3",
14
14
  "chai": "^4.x",
15
15
  "eslint": "9.x",
16
- "mocha": "^11.2.2"
16
+ "mocha": "^11.7.1"
17
17
  },
18
18
  "scripts": {
19
19
  "test": "NODE_ENV=test mocha --reporter spec --bail",