mod-build 4.0.88 → 4.0.89-beta.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/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/tasks/templates.js +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.0.89
|
|
4
|
+
|
|
5
|
+
- Updated the `${apiDomain}utils/vendor-display-name` API to use `publicKey=` as the param to grab the branded display name (which is needed for QMP2.0). Also updated all instances of `vendorPublicIdentifier` to `publicKey` since that is what the field is called now.
|
|
6
|
+
|
|
3
7
|
## 4.0.88
|
|
4
8
|
|
|
5
9
|
- Added `grab-code-review-rules` task to fetch ROVO code review rules from quote-modernize-com on every `npm run serve`
|
package/package.json
CHANGED
package/tasks/templates.js
CHANGED
|
@@ -228,17 +228,16 @@ const getConsentCaptureLanguage = async function(config, tempConfig) {
|
|
|
228
228
|
|
|
229
229
|
let apiUrl = '';
|
|
230
230
|
|
|
231
|
-
if (brandedSiteIdentifiers.data[websiteName] && (brandedSiteIdentifiers.data[websiteName].
|
|
232
|
-
const
|
|
233
|
-
|
|
234
|
-
apiUrl = `${apiDomain}utils/vendor-display-name?vendorKeys=${vendorPublicIdentifier}`;
|
|
231
|
+
if (brandedSiteIdentifiers.data[websiteName] && (brandedSiteIdentifiers.data[websiteName].publicKey || brandedSiteIdentifiers.data[websiteName][companyName] && brandedSiteIdentifiers.data[websiteName][companyName].publicKey)) {
|
|
232
|
+
const publicKey = brandedSiteIdentifiers.data[websiteName][companyName] ? brandedSiteIdentifiers.data[websiteName][companyName].publicKey : brandedSiteIdentifiers.data[websiteName].publicKey;
|
|
235
233
|
|
|
234
|
+
apiUrl = `${apiDomain}utils/vendor-display-name?publicKey=${publicKey}`;
|
|
236
235
|
const getBrandedDisplayName = await axios.get(apiUrl);
|
|
237
236
|
if (getBrandedDisplayName.status !== 200) {
|
|
238
237
|
throw new Error(`${resp.status}: Error while getting branded display name from HS Form Service`);
|
|
239
238
|
}
|
|
240
239
|
|
|
241
|
-
await embedBrandedDisplayName(apiUrl, consentCaptureObject,
|
|
240
|
+
await embedBrandedDisplayName(apiUrl, consentCaptureObject, publicKey, service);
|
|
242
241
|
} else {
|
|
243
242
|
const vendorKeys = findVendorKey(config);
|
|
244
243
|
const vendorKey = vendorKeys?.length > 0 ? vendorKeys[0] : null;
|