Socket
Socket
Sign inDemoInstall

script-loader

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

script-loader - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

7

index.js

@@ -6,13 +6,14 @@ /*

var path = require("path");
var loaderUtils = require("loader-utils");
module.exports = function(content) {
this.cacheable && this.cacheable();
this.clearDependencies && this.clearDependencies();
var loaderSign = this.request.indexOf("!");
var rawJs = this.request.substr(loaderSign); // including leading "!"
var rawJs = loaderUtils.getRemainingRequest(this);
if(this.web)
return "require(" + JSON.stringify(path.join(__dirname, "addScript")) + ")"+
"(require(" +
JSON.stringify("raw" + rawJs) + "))";
JSON.stringify("raw" + rawJs) + ")" +
")";
return "";
}
module.exports.seperable = true;
{
"name": "script-loader",
"version": "0.2.0",
"version": "0.2.1",
"author": "Tobias Koppers @sokra",
"description": "script loader module for webpack",
"dependencies": {
"raw-loader": "0.1.x"
"raw-loader": "0.1.x",
"loader-utils": "0.1.x"
},

@@ -9,0 +10,0 @@ "licenses": [

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