ac-awssecrets 2.5.1 → 2.5.2

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 +14 -0
  2. package/index.js +4 -4
  3. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,4 +1,18 @@
1
1
 
2
+ ## [2.5.2](https://github.com/admiralcloud/ac-awssecrets/compare/v2.5.1..v2.5.2) (2025-05-20 05:42:15)
3
+
4
+
5
+ ### Bug Fix
6
+
7
+ * **App:** Do not create duplicate entries when merging arrays | MP | [2f5d6d49d543af077f9c0b31061ec0681ee9ae9c](https://github.com/admiralcloud/ac-awssecrets/commit/2f5d6d49d543af077f9c0b31061ec0681ee9ae9c)
8
+ Do not create duplicate entries when merging arrays
9
+ Related issues:
10
+ ### Chores
11
+
12
+ * **App:** Updated packages | MP | [ccc52156ac8ca7f72a1b008465ff142b1d628e01](https://github.com/admiralcloud/ac-awssecrets/commit/ccc52156ac8ca7f72a1b008465ff142b1d628e01)
13
+ Updated packages
14
+ Related issues:
15
+
2
16
  ## [2.5.1](https://github.com/admiralcloud/ac-awssecrets/compare/v2.5.0..v2.5.1) (2025-05-13 08:10:25)
3
17
 
4
18
 
package/index.js CHANGED
@@ -32,13 +32,14 @@ const awsSecrets = () => {
32
32
  }
33
33
 
34
34
  const deepMerge = (target, source) => {
35
+ // Wenn beide Arrays sind, entferne Duplikate mit Set
35
36
  if (Array.isArray(target) && Array.isArray(source)) {
36
- return [...target, ...source]
37
+ return [...new Set([...target, ...source])]
37
38
  }
38
-
39
+
40
+ // Wenn beide Objekte sind (und nicht null)
39
41
  if (typeof source === 'object' && source !== null && typeof target === 'object' && target !== null) {
40
42
  const result = { ...target }
41
-
42
43
  for (const key in source) {
43
44
  if (key in result) {
44
45
  result[key] = deepMerge(result[key], source[key])
@@ -47,7 +48,6 @@ const awsSecrets = () => {
47
48
  result[key] = source[key]
48
49
  }
49
50
  }
50
-
51
51
  return result
52
52
  }
53
53
 
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.2",
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.812.0",
9
+ "@aws-sdk/client-ssm": "^3.812.0"
10
10
  },
11
11
  "devDependencies": {
12
12
  "ac-semantic-release": "^0.4.6",
13
13
  "c8": "^10.1.3",
14
14
  "chai": "^4.x",
15
15
  "eslint": "9.x",
16
- "mocha": "^11.2.2"
16
+ "mocha": "^11.4.0"
17
17
  },
18
18
  "scripts": {
19
19
  "test": "NODE_ENV=test mocha --reporter spec --bail",