es-module-shims 1.3.1 → 1.3.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 +3 -0
- package/dist/es-module-shims.js +2 -2
- package/dist/es-module-shims.wasm.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
ES Module Shims 1.3.2 (2021/11/16)
|
|
2
|
+
* Fix CSP nonce detection (https://github.com/guybedford/es-module-shims/pull/223, @MathiasWP)
|
|
3
|
+
|
|
1
4
|
ES Module Shims 1.3.1 (2021/11/04)
|
|
2
5
|
* Feature: Support "async" attribute ordering on polyfill and shim scripts (https://github.com/guybedford/es-module-shims/pull/221)
|
|
3
6
|
* Fix: Sourcemap regex fix (https://github.com/guybedford/es-module-shims/pull/218)
|
package/dist/es-module-shims.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ES Module Shims 1.3.
|
|
1
|
+
/* ES Module Shims 1.3.2 */
|
|
2
2
|
(function () {
|
|
3
3
|
|
|
4
4
|
const edge = navigator.userAgent.match(/Edge\/\d\d\.\d+$/);
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
if (!nonce) {
|
|
212
212
|
const nonceElement = document.querySelector('script[nonce]');
|
|
213
213
|
if (nonceElement)
|
|
214
|
-
nonce = nonceElement.getAttribute('nonce');
|
|
214
|
+
nonce = nonceElement.nonce || nonceElement.getAttribute('nonce');
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
const onerror = globalHook(esmsInitOptions$1.onerror || noop);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* ES Module Shims Wasm 1.3.
|
|
1
|
+
/* ES Module Shims Wasm 1.3.2 */
|
|
2
2
|
(function () {
|
|
3
3
|
|
|
4
4
|
const edge = navigator.userAgent.match(/Edge\/\d\d\.\d+$/);
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
if (!nonce) {
|
|
212
212
|
const nonceElement = document.querySelector('script[nonce]');
|
|
213
213
|
if (nonceElement)
|
|
214
|
-
nonce = nonceElement.getAttribute('nonce');
|
|
214
|
+
nonce = nonceElement.nonce || nonceElement.getAttribute('nonce');
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
const onerror = globalHook(esmsInitOptions$1.onerror || noop);
|