es-module-shims 1.5.7 → 1.5.8

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/README.md CHANGED
@@ -29,7 +29,7 @@ Because we are still using the native module loader the edge cases work out comp
29
29
  Include ES Module Shims with a `async` attribute on the script, then include an import map and module scripts normally:
30
30
 
31
31
  ```html
32
- <script async src="https://ga.jspm.io/npm:es-module-shims@1.5.7/dist/es-module-shims.js"></script>
32
+ <script async src="https://ga.jspm.io/npm:es-module-shims@1.5.8/dist/es-module-shims.js"></script>
33
33
 
34
34
  <!-- https://generator.jspm.io/#U2NhYGBkDM0rySzJSU1hKEpNTC5xMLTQM9Az0C1K1jMAAKFS5w0gAA -->
35
35
  <script type="importmap">
@@ -1,4 +1,4 @@
1
- /* ES Module Shims 1.5.7 */
1
+ /* ES Module Shims 1.5.8 */
2
2
  (function () {
3
3
 
4
4
  const hasWindow = typeof window !== 'undefined';
@@ -301,7 +301,7 @@
301
301
  // therefore, we need to first feature detect srcdoc support
302
302
  iframe.srcdoc = `<!doctype html><script nonce="${nonce}"><${''}/script>`;
303
303
  document.head.appendChild(iframe);
304
- iframe.contentWindow.addEventListener('DOMContentLoaded', () => {
304
+ iframe.onload = () => {
305
305
  self._$s = v => {
306
306
  document.head.removeChild(iframe);
307
307
  supportsImportMaps = v;
@@ -314,7 +314,7 @@
314
314
  iframe.srcdoc = importMapTest;
315
315
  else
316
316
  iframe.contentDocument.write(importMapTest);
317
- });
317
+ };
318
318
  }))
319
319
  ]);
320
320
  });
@@ -1,4 +1,4 @@
1
- /* ES Module Shims Wasm 1.5.7 */
1
+ /* ES Module Shims Wasm 1.5.8 */
2
2
  (function () {
3
3
 
4
4
  const hasWindow = typeof window !== 'undefined';
@@ -307,7 +307,7 @@
307
307
  // therefore, we need to first feature detect srcdoc support
308
308
  iframe.srcdoc = `<!doctype html><script nonce="${nonce}"><${''}/script>`;
309
309
  document.head.appendChild(iframe);
310
- iframe.contentWindow.addEventListener('DOMContentLoaded', () => {
310
+ iframe.onload = () => {
311
311
  self._$s = v => {
312
312
  document.head.removeChild(iframe);
313
313
  supportsImportMaps = v;
@@ -320,7 +320,7 @@
320
320
  iframe.srcdoc = importMapTest;
321
321
  else
322
322
  iframe.contentDocument.write(importMapTest);
323
- });
323
+ };
324
324
  }))
325
325
  ]);
326
326
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "es-module-shims",
3
- "version": "1.5.7",
3
+ "version": "1.5.8",
4
4
  "description": "Shims for the latest ES module features",
5
5
  "main": "dist/es-module-shims.js",
6
6
  "exports": {