mod-build 4.0.89-beta.2 → 4.0.89-beta.3

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": "mod-build",
3
- "version": "4.0.89-beta.2",
3
+ "version": "4.0.89-beta.3",
4
4
  "description": "Share components for S3 sites.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -231,7 +231,7 @@ const getConsentCaptureLanguage = async function(config, tempConfig) {
231
231
  if (brandedSiteIdentifiers.data[websiteName] && (brandedSiteIdentifiers.data[websiteName].publicKey || brandedSiteIdentifiers.data[websiteName][companyName] && brandedSiteIdentifiers.data[websiteName][companyName].publicKey)) {
232
232
  const publicKey = brandedSiteIdentifiers.data[websiteName][companyName] ? brandedSiteIdentifiers.data[websiteName][companyName].publicKey : brandedSiteIdentifiers.data[websiteName].publicKey;
233
233
 
234
- apiUrl = `${apiDomain}utils/vendor-display-name?publicKey=${publicKey}`;
234
+ apiUrl = `${apiDomain}utils/vendor-display-name?publicKey=${encodeURIComponent(publicKey)}`;
235
235
  const getBrandedDisplayName = await axios.get(apiUrl);
236
236
  if (getBrandedDisplayName.status !== 200) {
237
237
  throw new Error(`${resp.status}: Error while getting branded display name from HS Form Service`);