path-loader
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -43,8 +43,11 @@ /* | ||
if (location.charAt(0) === '.') { | ||
// Strip the scheme portion of the URI | ||
if (location.indexOf('file://') === 0) { | ||
// Handle URI | ||
location = location.substr(7); | ||
} | ||
if (path.resolve(location) !== path.normalize(location)) { | ||
// Handle relative paths | ||
location = path.resolve(process.cwd(), location); | ||
} else if (location.indexOf('file://') === 0) { | ||
// Handle URI | ||
location = location.substr(6); | ||
} | ||
@@ -51,0 +54,0 @@ |
@@ -31,3 +31,2 @@ /* eslint-env node, browser */ | ||
var inBrowser = typeof window !== 'undefined'; | ||
var supportedHttpMethods = ['delete', 'get', 'head', 'patch', 'post', 'put']; | ||
@@ -34,0 +33,0 @@ |
{ | ||
"name": "path-loader", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Utility that provides a single API for loading the content of a path/URL.", | ||
@@ -5,0 +5,0 @@ "main": "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
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
20344
389