@adobe/helix-config 1.3.0 → 1.3.1

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.3.1](https://github.com/adobe/helix-config/compare/v1.3.0...v1.3.1) (2024-03-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * config locations ([#27](https://github.com/adobe/helix-config/issues/27)) ([675fde2](https://github.com/adobe/helix-config/commit/675fde2f2beb8baa694b21bbc99e8d9bb128e5c4))
7
+
1
8
  # [1.3.0](https://github.com/adobe/helix-config/compare/v1.2.0...v1.3.0) (2024-03-08)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-config",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Helix Config",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -91,7 +91,7 @@ export async function resolveLegacyConfig(ctx, rso, scope) {
91
91
  source,
92
92
  },
93
93
  };
94
- const configAllPreview = await fetchConfigAll(ctx, config.contentBusId, 'preview');
94
+ const configAllPreview = await fetchConfigAll(ctx, config.content.contentBusId, 'preview');
95
95
  const { access } = configAllPreview?.config?.data || {};
96
96
  if (access) {
97
97
  config.access = access;
@@ -108,7 +108,7 @@ export async function resolveLegacyConfig(ctx, rso, scope) {
108
108
  };
109
109
  }
110
110
  }
111
- const configAllLive = await fetchConfigAll(ctx, config.contentBusId, 'live');
111
+ const configAllLive = await fetchConfigAll(ctx, config.content.contentBusId, 'live');
112
112
  if (configAllLive?.metadata) {
113
113
  config.metadata.live = configAllLive.metadata;
114
114
  }
@@ -86,7 +86,7 @@ async function loadMetadata(ctx, config, partition) {
86
86
  // generate the metadata-all.json first
87
87
  const metadata = [];
88
88
  for (const path of paths) {
89
- const key = `/${config.contentBusId}/${partition}${path}`;
89
+ const key = `/${config.content.contentBusId}/${partition}${path}`;
90
90
  // eslint-disable-next-line no-await-in-loop
91
91
  const buf = await contentBus.get(key);
92
92
  if (buf) {
@@ -110,7 +110,7 @@ async function loadMetadata(ctx, config, partition) {
110
110
 
111
111
  async function loadHeadHtml(ctx, config, ref) {
112
112
  const codeBus = ctx.storage.codeBus();
113
- const key = `${config.owner}/${config.repo}/${ref}/head.html`;
113
+ const key = `${config.code.owner}/${config.code.repo}/${ref}/head.html`;
114
114
  const buf = await codeBus.get(key);
115
115
  if (buf) {
116
116
  return {