get-source
Advanced tools
Comparing version 1.0.12 to 1.0.13
@@ -48,2 +48,4 @@ "use strict"; | ||
isData: x => x.indexOf ('data:') === 0, | ||
isAbsolute: x => (x[0] === '/') || /^[^\/]*:/.test (x), | ||
@@ -53,3 +55,3 @@ | ||
return path.isAbsolute (b) ? | ||
return (path.isData (a) || path.isAbsolute (b)) ? | ||
path.normalize (b) : | ||
@@ -56,0 +58,0 @@ path.normalize (path.concat (a.split ('/').slice (0, -1).join ('/'), b)) |
{ | ||
"name": "get-source", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "Platform-agnostic source code inspection, with sourcemaps support", | ||
@@ -5,0 +5,0 @@ "main": "get-source", |
@@ -48,2 +48,4 @@ "use strict"; | ||
path.relativeToFile ('data:application/json;charset=utf-8;base64,eyJ2ZXJza==', 'foo.js') | ||
.should.equal ( 'foo.js') | ||
}) | ||
@@ -50,0 +52,0 @@ }) |
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
22693
325