get-source
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -85,5 +85,7 @@ "use strict"; | ||
if (this.sourceMap_ === undefined) { | ||
let url = this.text.match (/\# sourceMappingURL=(.+\.map)/) | ||
let url = this.text.match (/\u0023 sourceMappingURL=(.+\.map)/) // escape #, otherwise it will match this exact line.. %) | ||
if (url = (url && url[1])) { | ||
this.sourceMap_ = new SourceMap (this.path, url) } } } | ||
this.sourceMap_ = new SourceMap (this.path, url) } | ||
else { | ||
this.sourceMap_ = null } } } | ||
@@ -90,0 +92,0 @@ catch (e) { |
{ | ||
"name": "get-source", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Platform-agnostic source code inspection, with sourcemaps support", | ||
@@ -5,0 +5,0 @@ "main": "get-source", |
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
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
16239
201