es-module-shims 2.0.8 → 2.0.10

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
@@ -11,7 +11,7 @@ The following modules features are polyfilled:
11
11
  * [Import Maps](#import-maps) polyfill.
12
12
  * [JSON](#json-modules) and [CSS modules](#css-modules) with import assertions when enabled.
13
13
  * [Wasm modules](#wasm-modules) with support for Source Phase Imports when enabled.
14
- * [TypeScript](#typescript) type stripping when enabled.
14
+ * [TypeScript](#typescript-type-stripping) type stripping when enabled.
15
15
 
16
16
  When running in shim mode, module rewriting is applied for all users and custom [resolve](#resolve-hook) and [fetch](#fetch-hook) hooks can be implemented allowing for custom resolution and streaming in-browser transform workflows.
17
17
 
@@ -28,7 +28,7 @@ Because we are still using the native module loader the edge cases work out comp
28
28
  Include ES Module Shims with a `async` attribute on the script, then include an import map and module scripts normally:
29
29
 
30
30
  ```html
31
- <script async src="https://ga.jspm.io/npm:es-module-shims@2.0.8/dist/es-module-shims.js"></script>
31
+ <script async src="https://ga.jspm.io/npm:es-module-shims@2.0.10/dist/es-module-shims.js"></script>
32
32
 
33
33
  <!-- https://generator.jspm.io/#U2NhYGBkDM0rySzJSU1hKEpNTC5xMLTQM9Az0C1K1jMAAKFS5w0gAA -->
34
34
  <script type="importmap">
@@ -538,7 +538,7 @@ And for the source phase:
538
538
  ```html
539
539
  <script type="module">
540
540
  import source mod from './app.wasm';
541
- const instance = await WebAssembly.instantiate(mod, { /* ...imports */ });
541
+ const instance = new WebAssembly.Instance(mod, { /* ...imports */ });
542
542
  </script>
543
543
  ```
544
544
 
@@ -553,7 +553,7 @@ Once enabled, the separate `es-module-shims-typescript.js` extension must be ava
553
553
  Example:
554
554
 
555
555
  ```html
556
- <script async src="https://ga.jspm.io/npm:es-module-shims@2.0.8/dist/es-module-shims.js"></script>
556
+ <script async src="https://ga.jspm.io/npm:es-module-shims@2.0.10/dist/es-module-shims.js"></script>
557
557
  <script type="esms-options">
558
558
  {
559
559
  "polyfillEnable": "all"
@@ -572,13 +572,13 @@ By default, when there is no DOM present, ES Module Shims will switch into shim
572
572
 
573
573
  ```js
574
574
  /**
575
- *
575
+ *
576
576
  * @param {string} aURL a string representing the URL of the module script the worker will execute.
577
577
  * @returns {string} The string representing the URL of the script the worker will execute.
578
578
  */
579
579
  function getWorkerScriptURL(aURL) {
580
580
  // baseURL, esModuleShimsURL are considered to be known in advance
581
- // esModuleShimsURL - must point to the non-CSP build of ES Module Shims,
581
+ // esModuleShimsURL - must point to the non-CSP build of ES Module Shims,
582
582
  // namely the `es-module-shim.wasm.js` output: es-module-shims/dist/es-module-shims.wasm.js
583
583
 
584
584
  return URL.createObjectURL(new Blob(