@adobe/helix-shared-config 10.0.0 → 10.0.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [@adobe/helix-shared-config-v10.0.2](https://github.com/adobe/helix-shared/compare/@adobe/helix-shared-config-v10.0.1...@adobe/helix-shared-config-v10.0.2) (2023-03-21)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update dependency lru-cache to v8 ([#774](https://github.com/adobe/helix-shared/issues/774)) ([07aa5ba](https://github.com/adobe/helix-shared/commit/07aa5ba969f6043bdf5d07e760d99dcb22f511d7))
7
+
8
+ # [@adobe/helix-shared-config-v10.0.1](https://github.com/adobe/helix-shared/compare/@adobe/helix-shared-config-v10.0.0...@adobe/helix-shared-config-v10.0.1) (2023-02-22)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * prevent prototype pollution ([#765](https://github.com/adobe/helix-shared/issues/765)) ([b6d1677](https://github.com/adobe/helix-shared/commit/b6d16776b9e838c5b5fd856070de893d1546219a))
14
+
1
15
  # [@adobe/helix-shared-config-v10.0.0](https://github.com/adobe/helix-shared/compare/@adobe/helix-shared-config-v9.1.4...@adobe/helix-shared-config-v10.0.0) (2023-01-31)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-shared-config",
3
- "version": "10.0.0",
3
+ "version": "10.0.2",
4
4
  "description": "Shared modules of the Helix Project - config",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -38,7 +38,7 @@
38
38
  "cookie": "0.5.0",
39
39
  "fs-extra": "11.1.0",
40
40
  "ignore": "5.2.4",
41
- "lru-cache": "7.14.1",
41
+ "lru-cache": "8.0.4",
42
42
  "object-hash": "3.0.0",
43
43
  "uri-js": "4.4.1",
44
44
  "yaml": "2.2.1"
@@ -48,7 +48,7 @@ export class ModifiersConfig {
48
48
  // eslint-disable-next-line no-param-reassign
49
49
  prev[key.toLowerCase()] = obj[key];
50
50
  return prev;
51
- }, {});
51
+ }, Object.create(null));
52
52
  }
53
53
 
54
54
  /**
@@ -88,7 +88,7 @@ export class ModifiersConfig {
88
88
  */
89
89
  static parseModifierSheet(sheet, keyFilter = () => true) {
90
90
  /** @type ModifierMap */
91
- const res = {};
91
+ const res = Object.create(null);
92
92
  for (let row of sheet) {
93
93
  row = ModifiersConfig.toLowerKeys(row);
94
94
  const {
@@ -158,9 +158,9 @@ export class ModifiersConfig {
158
158
  */
159
159
  getModifiers(path) {
160
160
  if (!this.modifiers) {
161
- return {};
161
+ return Object.create(null);
162
162
  }
163
- const modifiers = {};
163
+ const modifiers = Object.create(null);
164
164
  for (const { pat, mods } of this.modifiers) {
165
165
  if (pat === path || (pat instanceof RegExp && pat.test(path))) {
166
166
  for (const { key, value } of mods) {