@quintype/framework 7.4.0 → 7.4.1-amp-fix.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quintype/framework",
3
- "version": "7.4.0",
3
+ "version": "7.4.1-amp-fix.2",
4
4
  "description": "Libraries to help build Quintype Node.js apps",
5
5
  "main": "index.js",
6
6
  "engines": {
@@ -103,6 +103,7 @@ async function ampStoryPageHandler(
103
103
  infiniteScrollInlineConfig
104
104
  );
105
105
  }
106
+ const mergedAdditionalConfig = {};
106
107
  if (opts.getAdditionalConfig && opts.getAdditionalConfig instanceof Function) {
107
108
  const fetchedAdditionalConfig = await opts.getAdditionalConfig({
108
109
  story,
@@ -110,14 +111,14 @@ async function ampStoryPageHandler(
110
111
  ampApiConfig: ampConfig.ampConfig,
111
112
  publisherConfig: additionalConfig,
112
113
  });
113
- merge(additionalConfig, fetchedAdditionalConfig);
114
+ merge(mergedAdditionalConfig, additionalConfig, fetchedAdditionalConfig);
114
115
  }
115
116
 
116
117
  const ampHtml = ampifyStory({
117
118
  story,
118
119
  publisherConfig: config.config,
119
120
  ampConfig: ampConfig.ampConfig,
120
- additionalConfig,
121
+ additionalConfig: mergedAdditionalConfig,
121
122
  opts: { ...domainSpecificOpts, domainSlug },
122
123
  seo: seoTags ? seoTags.toString() : "",
123
124
  });