@quintype/framework 7.4.1-amp-fix.3 → 7.4.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
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [7.4.1](https://github.com/quintype/quintype-node-framework/compare/v7.4.0...v7.4.1) (2022-06-02)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **amp:** Incorrect localised content displayed across publishers ([#304](https://github.com/quintype/quintype-node-framework/issues/304)) ([c47d929](https://github.com/quintype/quintype-node-framework/commit/c47d9294c022100a95ba5ca1d755dd4731b6b580))
|
|
11
|
+
|
|
5
12
|
## [7.4.0](https://github.com/quintype/quintype-node-framework/compare/v7.2.0...v7.4.0) (2022-05-23)
|
|
6
13
|
|
|
7
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const urlLib = require("url");
|
|
2
2
|
const set = require("lodash/set");
|
|
3
3
|
const get = require("lodash/get");
|
|
4
|
+
const isEmpty = require("lodash/isEmpty");
|
|
4
5
|
const cloneDeep = require("lodash/cloneDeep");
|
|
5
6
|
const merge = require("lodash/merge");
|
|
6
7
|
const { Story, AmpConfig } = require("../../impl/api-client-impl");
|
|
@@ -112,15 +113,13 @@ async function ampStoryPageHandler(
|
|
|
112
113
|
publisherConfig: additionalConfig,
|
|
113
114
|
});
|
|
114
115
|
merge(mergedAdditionalConfig, additionalConfig, fetchedAdditionalConfig);
|
|
115
|
-
} else {
|
|
116
|
-
merge(mergedAdditionalConfig, additionalConfig);
|
|
117
116
|
}
|
|
118
117
|
|
|
119
118
|
const ampHtml = ampifyStory({
|
|
120
119
|
story,
|
|
121
120
|
publisherConfig: config.config,
|
|
122
121
|
ampConfig: ampConfig.ampConfig,
|
|
123
|
-
additionalConfig: mergedAdditionalConfig,
|
|
122
|
+
additionalConfig: isEmpty(mergedAdditionalConfig) ? additionalConfig : mergedAdditionalConfig,
|
|
124
123
|
opts: { ...domainSpecificOpts, domainSlug },
|
|
125
124
|
seo: seoTags ? seoTags.toString() : "",
|
|
126
125
|
});
|