Socket
Socket
Sign inDemoInstall

style-loader

Package Overview
Dependencies
5
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.8.3 to 0.9.0

8

addStyles.js

@@ -13,4 +13,4 @@ /*

},
isIE9 = memoize(function() {
return /msie 9\b/.test(window.navigator.userAgent.toLowerCase());
isOldIE = memoize(function() {
return /msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase());
}),

@@ -29,5 +29,5 @@ getHeadElement = memoize(function () {

options = options || {};
// Force single-tag solution on IE9, which has a hard limit on the # of <style>
// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
// tags it will allow on a page
if (typeof options.singleton === "undefined") options.singleton = isIE9();
if (typeof options.singleton === "undefined") options.singleton = isOldIE();

@@ -34,0 +34,0 @@ var styles = listToStyles(list);

{
"name": "style-loader",
"version": "0.8.3",
"author": "Tobias Koppers @sokra",
"description": "style loader module for webpack",
"devDependencies": {
"css-loader": "~0.8.0"
},
"repository": {
"type": "git",
"url": "git@github.com:webpack/style-loader.git"
},
"licenses": [
{
"type": "MIT",
"url": "http://www.opensource.org/licenses/mit-license.php"
}
],
"dependencies": {
"loader-utils": "^0.2.5"
}
"name": "style-loader",
"version": "0.9.0",
"author": "Tobias Koppers @sokra",
"description": "style loader module for webpack",
"devDependencies": {
"css-loader": "~0.8.0"
},
"repository": {
"type": "git",
"url": "git@github.com:webpack/style-loader.git"
},
"licenses": [
{
"type": "MIT",
"url": "http://www.opensource.org/licenses/mit-license.php"
}
],
"dependencies": {
"loader-utils": "^0.2.5"
}
}

@@ -58,4 +58,9 @@ # style loader for webpack

## Install
`npm install style-loader`
## License
MIT (http://www.opensource.org/licenses/mit-license.php)

@@ -27,6 +27,6 @@ /*

"if(module.hot) {",
" refs = module.hot.data && module.hot.data.refs || 0;",
" if(refs) {",
" refs--;",
" var lastRefs = module.hot.data && module.hot.data.refs || 0;",
" if(lastRefs) {",
" exports.ref();",
" refs = lastRefs;",
" }",

@@ -33,0 +33,0 @@ " module.hot.accept();",

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