@adobe/helix-config 1.0.0 → 1.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
+ ## [1.0.2](https://github.com/adobe/helix-config/compare/v1.0.1...v1.0.2) (2024-02-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add admin access config for admin scope ([#18](https://github.com/adobe/helix-config/issues/18)) ([5a3a7ea](https://github.com/adobe/helix-config/commit/5a3a7ea0220b9a8776c64cd5535de1b6cad420b7))
7
+
8
+ ## [1.0.1](https://github.com/adobe/helix-config/compare/v1.0.0...v1.0.1) (2024-02-07)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update dependency @adobe/helix-shared-config to v10.3.11 ([#17](https://github.com/adobe/helix-config/issues/17)) ([ee13fbf](https://github.com/adobe/helix-config/commit/ee13fbf36c4de16b445cab7fb54c65f1caf01236))
14
+
1
15
  # 1.0.0 (2024-02-07)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-config",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Helix Config",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -46,6 +46,6 @@
46
46
  "*.cjs": "eslint"
47
47
  },
48
48
  "dependencies": {
49
- "@adobe/helix-shared-config": "10.3.10"
49
+ "@adobe/helix-shared-config": "10.3.11"
50
50
  }
51
51
  }
@@ -177,11 +177,16 @@ export async function getConfigResponse(ctx, opts) {
177
177
  }
178
178
 
179
179
  if (config.access) {
180
+ // normalize access config
181
+ const { admin = {} } = config.access;
180
182
  config.access = {
181
183
  preview: getAccessConfig(config.access, 'preview'),
182
184
  live: getAccessConfig(config.access, 'live'),
183
185
  // access.require.repository ?
184
186
  };
187
+ if (opts.scope === SCOPE_ADMIN) {
188
+ config.access.admin = admin;
189
+ }
185
190
  }
186
191
 
187
192
  const headers = {