@adobe/helix-admin-support 1.6.25 → 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 CHANGED
@@ -1,3 +1,10 @@
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
+
1
8
  ## [1.6.25](https://github.com/adobe/helix-admin-support/compare/v1.6.24...v1.6.25) (2023-02-18)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-admin-support",
3
- "version": "1.6.25",
3
+ "version": "1.6.26",
4
4
  "description": "Helix Admin Support Library",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -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({}, segs, value);
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
  });