mod-build 4.0.94-beta.10 → 4.0.94-beta.11
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 +1 -1
- package/tasks/templates.js +9 -9
package/package.json
CHANGED
package/tasks/templates.js
CHANGED
|
@@ -202,18 +202,18 @@ const getConsentCaptureLanguage = async function(config, tempConfig) {
|
|
|
202
202
|
let consentCaptureObject = await resp.json(),
|
|
203
203
|
service = config.service ? config.service.toLowerCase().replace('_', ' ') : config.primary_trade.toLowerCase().replace('_', ' ');
|
|
204
204
|
|
|
205
|
-
|
|
205
|
+
if (config.isBranded) {
|
|
206
|
+
let brandedSiteIdentifiersData = {};
|
|
206
207
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
208
|
+
if (!config.brandedSiteIdentifiers?.publicKey) {
|
|
209
|
+
const brandedSiteIdentifiersResp = await fetch(`https://${defaultSettings.nodeEnv}/quote/resources/mod-site/data/branded-site-identifiers.json`);
|
|
210
|
+
if (brandedSiteIdentifiersResp.status !== 200) {
|
|
211
|
+
throw new Error(`${brandedSiteIdentifiersResp.status}: Error while fetching branded-site-identifiers.json`);
|
|
212
|
+
}
|
|
212
213
|
|
|
213
|
-
|
|
214
|
-
|
|
214
|
+
brandedSiteIdentifiersData = await brandedSiteIdentifiersResp.json();
|
|
215
|
+
}
|
|
215
216
|
|
|
216
|
-
if (config.isBranded) {
|
|
217
217
|
const websiteName = config.website_name.toLowerCase(),
|
|
218
218
|
companyName = config.company_name,
|
|
219
219
|
apiDomain = 'https://form-service-hs.qnst.com/';
|