Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

path-loader

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

path-loader - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

11

lib/loaders/file.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc