@adobe/helix-admin-support 1.6.24 → 1.6.26
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/CHANGELOG.md +14 -0
- package/package.json +6 -6
- package/src/flatJson2Object.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.6.26](https://github.com/adobe/helix-admin-support/compare/v1.6.25...v1.6.26) (2023-02-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* prevent prototype pollution ([#111](https://github.com/adobe/helix-admin-support/issues/111)) ([17eb77a](https://github.com/adobe/helix-admin-support/commit/17eb77a05bd87bc764a675b8ecefe77a7303587d))
|
|
7
|
+
|
|
8
|
+
## [1.6.25](https://github.com/adobe/helix-admin-support/compare/v1.6.24...v1.6.25) (2023-02-18)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update external fixes ([70d2505](https://github.com/adobe/helix-admin-support/commit/70d250500273be69033b8135108887fc9bb8b2b4))
|
|
14
|
+
|
|
1
15
|
## [1.6.24](https://github.com/adobe/helix-admin-support/compare/v1.6.23...v1.6.24) (2023-02-14)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-admin-support",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.26",
|
|
4
4
|
"description": "Helix Admin Support Library",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -34,21 +34,21 @@
|
|
|
34
34
|
"@adobe/fetch": "4.0.3",
|
|
35
35
|
"@adobe/helix-shared-config": "10.0.0",
|
|
36
36
|
"@adobe/helix-shared-utils": "3.0.0",
|
|
37
|
-
"@aws-sdk/client-s3": "3.
|
|
38
|
-
"@aws-sdk/client-sqs": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
37
|
+
"@aws-sdk/client-s3": "3.272.0",
|
|
38
|
+
"@aws-sdk/client-sqs": "3.272.0",
|
|
39
|
+
"@aws-sdk/node-http-handler": "3.272.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@adobe/eslint-config-helix": "2.0.1",
|
|
43
43
|
"@semantic-release/changelog": "6.0.2",
|
|
44
44
|
"@semantic-release/git": "10.0.1",
|
|
45
45
|
"@semantic-release/npm": "9.0.2",
|
|
46
|
-
"c8": "7.
|
|
46
|
+
"c8": "7.13.0",
|
|
47
47
|
"eslint": "8.34.0",
|
|
48
48
|
"husky": "8.0.3",
|
|
49
49
|
"jsdoc-to-markdown": "8.0.0",
|
|
50
50
|
"junit-report-builder": "3.0.1",
|
|
51
|
-
"lint-staged": "13.1.
|
|
51
|
+
"lint-staged": "13.1.2",
|
|
52
52
|
"mocha": "10.2.0",
|
|
53
53
|
"mocha-multi-reporters": "1.5.1",
|
|
54
54
|
"nock": "13.3.0",
|
package/src/flatJson2Object.js
CHANGED
|
@@ -65,7 +65,7 @@ export function flatJson2object(rows, keyName = 'key', valueName = 'value') {
|
|
|
65
65
|
const n = Number.parseInt(segs[0], 10);
|
|
66
66
|
if (Number.isNaN(n)) {
|
|
67
67
|
// eslint-disable-next-line no-param-reassign
|
|
68
|
-
o[seg] = update(
|
|
68
|
+
o[seg] = update(Object.create(null), segs, value);
|
|
69
69
|
} else {
|
|
70
70
|
// eslint-disable-next-line no-param-reassign
|
|
71
71
|
o[seg] = update([], segs, value);
|
|
@@ -86,7 +86,7 @@ export function flatJson2object(rows, keyName = 'key', valueName = 'value') {
|
|
|
86
86
|
return o;
|
|
87
87
|
};
|
|
88
88
|
|
|
89
|
-
const obj =
|
|
89
|
+
const obj = Object.create(null);
|
|
90
90
|
rows.forEach((row) => {
|
|
91
91
|
update(obj, String(row[keyName]).trim().split('.'), String(row[valueName]).trim());
|
|
92
92
|
});
|