Socket
Socket
Sign inDemoInstall

loader-utils

Package Overview
Dependencies
1
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.2 to 0.2.0

7

index.js

@@ -42,7 +42,4 @@ var JSON5 = require("json5");

exports.getRemainingRequest = function(loaderContext) {
if(loaderContext.loaderType == "loader") {
return loaderContext.currentLoaders.slice(loaderContext.loaderIndex+1).join("!") +
"!" +
(loaderContext.filenames.length > 0 ? loaderContext.filenames[0] : "");
} else throw new Error("getRemainingRequest do not work for pre or post loaders");
var request = loaderContext.loaders.slice(loaderContext.loaderIndex+1).concat([loaderContext.resource]);
return request.join("!");
}
{
"name": "loader-utils",
"version": "0.1.2",
"version": "0.2.0",
"author": "Tobias Koppers @sokra",

@@ -14,4 +14,3 @@ "description": "utils for webpack loaders",

}
],
"license": "MIT"
]
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc