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.1 to 0.1.2

8

index.js

@@ -39,2 +39,10 @@ var JSON5 = require("json5");

return result;
}
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");
}

2

package.json
{
"name": "loader-utils",
"version": "0.1.1",
"version": "0.1.2",
"author": "Tobias Koppers @sokra",

@@ -5,0 +5,0 @@ "description": "utils for webpack loaders",

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