es-module-shims 1.3.4 → 1.3.5

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 CHANGED
@@ -1,3 +1,6 @@
1
+ ES Module Shims 1.3.5 (2021/12/02)
2
+ * Fix trailing comment regex for source mapping normalization with trailling comments (https://github.com/guybedford/es-module-shims/pull/231)
3
+
1
4
  ES Module Shims 1.3.4 (2021/12/02)
2
5
  * Support source mapping normalization with trailing comments (https://github.com/guybedford/es-module-shims/pull/229)
3
6
 
@@ -1,4 +1,4 @@
1
- /* ES Module Shims 1.3.4 */
1
+ /* ES Module Shims 1.3.5 */
2
2
  (function () {
3
3
 
4
4
  const edge = navigator.userAgent.match(/Edge\/\d\d\.\d+$/);
@@ -539,7 +539,7 @@
539
539
  load.S = undefined;
540
540
  }
541
541
 
542
- const sourceMapURLRegEx = /\n\/\/# source(Mapping)?URL=([^\n]+)\s*((;|\/\/[^#][^\n]+)\s*)*$/;
542
+ const sourceMapURLRegEx = /\n\/\/# source(Mapping)?URL=([^\n]+)\s*((;|\/\/[^#][^\n]*)\s*)*$/;
543
543
 
544
544
  const jsContentType = /^(text|application)\/(x-)?javascript(;|$)/;
545
545
  const jsonContentType = /^(text|application)\/json(;|$)/;
@@ -1,4 +1,4 @@
1
- /* ES Module Shims Wasm 1.3.4 */
1
+ /* ES Module Shims Wasm 1.3.5 */
2
2
  (function () {
3
3
 
4
4
  const edge = navigator.userAgent.match(/Edge\/\d\d\.\d+$/);
@@ -537,7 +537,7 @@
537
537
  load.S = undefined;
538
538
  }
539
539
 
540
- const sourceMapURLRegEx = /\n\/\/# source(Mapping)?URL=([^\n]+)\s*((;|\/\/[^#][^\n]+)\s*)*$/;
540
+ const sourceMapURLRegEx = /\n\/\/# source(Mapping)?URL=([^\n]+)\s*((;|\/\/[^#][^\n]*)\s*)*$/;
541
541
 
542
542
  const jsContentType = /^(text|application)\/(x-)?javascript(;|$)/;
543
543
  const jsonContentType = /^(text|application)\/json(;|$)/;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "es-module-shims",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "description": "Shims for the latest ES module features",
5
5
  "main": "dist/es-module-shims.js",
6
6
  "exports": {