@adobe/helix-config 2.17.0 → 2.18.0

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
+ # [2.18.0](https://github.com/adobe/helix-config/compare/v2.17.0...v2.18.0) (2024-05-09)
2
+
3
+
4
+ ### Features
5
+
6
+ * delivery token hashes for pipeline scope ([#79](https://github.com/adobe/helix-config/issues/79)) ([371c771](https://github.com/adobe/helix-config/commit/371c7718fb9592e526fcef2f76efbd0ed6a209f6))
7
+
1
8
  # [2.17.0](https://github.com/adobe/helix-config/compare/v2.16.1...v2.17.0) (2024-05-08)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-config",
3
- "version": "2.17.0",
3
+ "version": "2.18.0",
4
4
  "description": "Helix Config",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -314,10 +314,15 @@ export async function getConfigResponse(ctx, opts) {
314
314
  });
315
315
  }
316
316
 
317
- // delete token hashes
317
+ // delete token hashes but keep for pipeline because the cloudflare worker still needs them
318
318
  delete config.tokens;
319
- delete config.access?.preview?.tokenHash;
320
- delete config.access?.live?.tokenHash;
319
+ if (opts.scope !== SCOPE_PIPELINE) {
320
+ delete config.access?.preview?.tokenHash;
321
+ delete config.access?.live?.tokenHash;
322
+ } else {
323
+ delete config.access?.preview?.apiKeyId;
324
+ delete config.access?.live?.apiKeyId;
325
+ }
321
326
 
322
327
  if (opts.scope === SCOPE_ADMIN) {
323
328
  const adminConfig = {
@@ -364,6 +369,7 @@ export async function getConfigResponse(ctx, opts) {
364
369
  folders: config.folders,
365
370
  public: config.public,
366
371
  robots: config.robots,
372
+ access: config.access,
367
373
  };
368
374
  return new PipelineResponse(JSON.stringify(pipelineConfig, null, 2), {
369
375
  headers: {