Socket
Socket
Sign inDemoInstall

style-loader

Package Overview
Dependencies
0
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.6.4 to 0.6.5

2

index.js

@@ -15,3 +15,3 @@ /*

var hmrCode = "if(module.hot) {\n\tmodule.hot.accept();\n\tmodule.hot.dispose(dispose);\n}";
return comment1 + addStyleCode + comment2 + "\t(" + cssCodeRequest + ")\n" + hmrCode;
return comment1 + addStyleCode + comment2 + "\t(" + cssCodeRequest + ");\n" + comment3 + hmrCode;
};
{
"name": "style-loader",
"version": "0.6.4",
"version": "0.6.5",
"author": "Tobias Koppers @sokra",

@@ -5,0 +5,0 @@ "description": "style loader module for webpack",

@@ -10,6 +10,8 @@ /*

var comment1 = "// style-loader: Adds some css to the DOM by adding a <style> tag\n";
var addStyleCode = "require(" + JSON.stringify("!" + path.join(__dirname, "addStyleUrl.js")) + ")\n";
var addStyleCode = "var dispose = require(" + JSON.stringify("!" + path.join(__dirname, "addStyleUrl.js")) + ")\n";
var comment2 = "\t// The url to the css code:\n";
var cssUrlRequest = "require(" + JSON.stringify("!!" + remainingRequest) + ")";
return comment1 + addStyleCode + comment2 + "\t(" + cssUrlRequest + ")";
var comment3 = "// Hot Module Replacement\n";
var hmrCode = "if(module.hot) {\n\tmodule.hot.accept();\n\tmodule.hot.dispose(dispose);\n}";
return comment1 + addStyleCode + comment2 + "\t(" + cssUrlRequest + ");\n" + comment3 + hmrCode;
};
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