get-source
Advanced tools
Comparing version 1.0.22 to 1.0.23
@@ -6,2 +6,3 @@ "use strict"; | ||
const isBrowser = (typeof window !== 'undefined') && (window.window === window) && window.navigator | ||
const cwd = isBrowser ? window.location.href : process.cwd () | ||
@@ -25,7 +26,3 @@ /* ------------------------------------------------------------------------ */ | ||
if (isBrowser) { | ||
return path.normalize (path.concat (window.location.href, x)) } | ||
else { | ||
return path.normalize (path.concat (process.cwd (), x)) } | ||
return path.normalize (path.concat (cwd, x)) | ||
}, | ||
@@ -32,0 +29,0 @@ |
{ | ||
"name": "get-source", | ||
"version": "1.0.22", | ||
"version": "1.0.23", | ||
"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
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
26198
20
355
1