Comparing version 0.0.1 to 0.0.2
@@ -37,7 +37,14 @@ | ||
relative = resolved; | ||
if (item.substr(0, 1) !== path.sep) { | ||
if (item.charAt(0) !== '/') { | ||
relative = path.relative(options.root, resolved); | ||
} | ||
expanded = URI.protocol + '//' + URI.hostname + path.join(URI.pathname, relative); | ||
// Windows root directory handling. | ||
if (process.env.OS === 'Windows_NT' && relative.substr(1, 2) === ':\\') { | ||
relative = relative.substr(2); | ||
} | ||
expanded = URI.protocol + '//' + URI.hostname + path.join(URI.pathname, relative).replace(/\\\\|\\/g, '/'); | ||
str = str.replace(baseItem, baseItem.replace(item, expanded)); | ||
@@ -44,0 +51,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"author": "Dav Glass <davglass@gmail.com>", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"main": "./lib/index.js", | ||
@@ -8,0 +8,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
26422
529
2