Socket
Socket
Sign inDemoInstall

style-loader

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

style-loader - npm Package Compare versions

Comparing version 0.7.0 to 0.7.1

15

addStyle.js

@@ -9,5 +9,5 @@ /*

}
var styleElement = document.createElement("style");
var styleElement = document.createElement("style"),
head = document.head || document.getElementsByTagName("head")[0];
styleElement.type = "text/css";
var head = document.getElementsByTagName("head")[0];
head.appendChild(styleElement);

@@ -28,6 +28,13 @@ if (styleElement.styleSheet) {

} else {
head.removeChild(styleElement);
dispose();
}
};
} else {
// For the useable API, provide a function to remove the stylesheet.
return dispose;
}
}
function dispose() {
head.removeChild(styleElement);
}
};
{
"name": "style-loader",
"version": "0.7.0",
"version": "0.7.1",
"author": "Tobias Koppers @sokra",

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

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