convert-source-map
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -13,5 +13,4 @@ 'use strict'; | ||
get: function getMapFileCommentRegex () { | ||
//Example (Extra space between slashes added to solve Safari bug. Exclude space in production): | ||
// / /# sourceMappingURL=foo.js.map /*# sourceMappingURL=foo.js.map */ | ||
return /(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/){1}[ \t]*$)/mg; | ||
// Matches sourceMappingURL in either // or /* comment styles. | ||
return /(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"`]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/){1}[ \t]*$)/mg; | ||
} | ||
@@ -77,3 +76,3 @@ }); | ||
Converter.prototype.addProperty = function (key, value) { | ||
if (this.sourcemap.hasOwnProperty(key)) throw new Error('property %s already exists on the sourcemap, use set property instead'); | ||
if (this.sourcemap.hasOwnProperty(key)) throw new Error('property "' + key + '" already exists on the sourcemap, use set property instead'); | ||
return this.setProperty(key, value); | ||
@@ -80,0 +79,0 @@ }; |
{ | ||
"name": "convert-source-map", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Converts a source-map from/to different formats and allows adding/changing properties.", | ||
@@ -35,3 +35,6 @@ "main": "index.js", | ||
"node": ">=0.6" | ||
} | ||
}, | ||
"files": [ | ||
"index.js" | ||
] | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1
10365
4
105
1