@comicrelief/component-library 8.50.1 → 8.51.0
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.
|
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
const allowList = ['https://giftaid.comicrelief.com', 'https://donation.comicrelief.com', 'https://www.comicrelief.com', 'https://www.sportrelief.com', 'https://app.beapplied.com/org/comic-relief', 'stories.comicrelief.com', 'https://form.typeform.com'
|
|
7
|
+
const allowList = ['https://giftaid.comicrelief.com', 'https://donation.comicrelief.com', 'https://www.comicrelief.com', 'https://www.sportrelief.com', 'https://app.beapplied.com/org/comic-relief', 'stories.comicrelief.com', 'https://form.typeform.com',
|
|
8
|
+
// Required for the HHoF form:
|
|
9
|
+
'https://interfaces.zapier.com/assets/web-components/zapier-interfaces/zapier-interfaces.esm.js'];
|
|
8
10
|
const allowListed = url => {
|
|
9
11
|
if (url !== undefined && url !== null && allowList.some(v => url.indexOf(v) >= 0)) {
|
|
10
12
|
return true;
|
package/package.json
CHANGED
package/src/utils/allowListed.js
CHANGED
|
@@ -5,7 +5,9 @@ const allowList = [
|
|
|
5
5
|
'https://www.sportrelief.com',
|
|
6
6
|
'https://app.beapplied.com/org/comic-relief',
|
|
7
7
|
'stories.comicrelief.com',
|
|
8
|
-
'https://form.typeform.com'
|
|
8
|
+
'https://form.typeform.com',
|
|
9
|
+
// Required for the HHoF form:
|
|
10
|
+
'https://interfaces.zapier.com/assets/web-components/zapier-interfaces/zapier-interfaces.esm.js'
|
|
9
11
|
];
|
|
10
12
|
|
|
11
13
|
const allowListed = url => {
|