@adobe/helix-config 3.9.2 → 3.9.4

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
+ ## [3.9.4](https://github.com/adobe/helix-config/compare/v3.9.3...v3.9.4) (2024-07-23)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * fix schema ([#148](https://github.com/adobe/helix-config/issues/148)) ([43e13d2](https://github.com/adobe/helix-config/commit/43e13d26c1045001248fb3f002b53fcb71b820d0))
7
+
8
+ ## [3.9.3](https://github.com/adobe/helix-config/compare/v3.9.2...v3.9.3) (2024-07-22)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * trigger release ([404ad83](https://github.com/adobe/helix-config/commit/404ad83057921ad5ada86873696ab8e031c4c037))
14
+
1
15
  ## [3.9.2](https://github.com/adobe/helix-config/compare/v3.9.1...v3.9.2) (2024-07-22)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-config",
3
- "version": "3.9.2",
3
+ "version": "3.9.4",
4
4
  "description": "Helix Config",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -33,6 +33,7 @@ const ROOT_PROPERTIES = {
33
33
  extends: {},
34
34
  tokens: {},
35
35
  public: {},
36
+ groups: {},
36
37
  };
37
38
 
38
39
  const FORCED_TYPES = {
@@ -17,9 +17,9 @@
17
17
  "patternProperties": {
18
18
  "^/[a-zA-Z0-9-/.]*\\*{0,2}$": {
19
19
  "type": "array",
20
- "items": [
21
- { "$ref": "https://ns.adobe.com/helix/config/common#/definitions/keyValuePair" }
22
- ]
20
+ "items": {
21
+ "$ref": "https://ns.adobe.com/helix/config/common#/definitions/keyValuePair"
22
+ }
23
23
  }
24
24
  },
25
25
  "additionalProperties": false
@@ -218,8 +218,10 @@ export class ConfigStore {
218
218
  [this.type]: list.map((entry) => {
219
219
  const siteKey = entry.key;
220
220
  if (siteKey.endsWith('.json')) {
221
+ const name = siteKey.split('/').pop();
221
222
  return {
222
- name: siteKey.substring(0, siteKey.length - 5),
223
+ path: `/config/${this.org}/${this.type}/${name}`,
224
+ name: name.substring(0, name.length - 5),
223
225
  };
224
226
  }
225
227
  return null;
@@ -102,7 +102,7 @@ export interface HelixHeadersConfig {
102
102
  * This interface was referenced by `HelixHeadersConfig`'s JSON-Schema definition
103
103
  * via the `patternProperty` "^/[a-zA-Z0-9-/.]*\*{0,2}$".
104
104
  */
105
- [k: string]: [] | [KeyValuePair];
105
+ [k: string]: KeyValuePair[];
106
106
  }
107
107
  export interface KeyValuePair {
108
108
  key: string;
@@ -110,7 +110,7 @@ export interface HelixHeadersConfig {
110
110
  * This interface was referenced by `HelixHeadersConfig`'s JSON-Schema definition
111
111
  * via the `patternProperty` "^/[a-zA-Z0-9-/.]*\*{0,2}$".
112
112
  */
113
- [k: string]: [] | [KeyValuePair];
113
+ [k: string]: KeyValuePair[];
114
114
  }
115
115
  export interface KeyValuePair {
116
116
  key: string;