Socket
Socket
Sign inDemoInstall

css-loader

Package Overview
Dependencies
12
Maintainers
1
Versions
152
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.14.4 to 0.14.5

7

lib/loader.js

@@ -117,3 +117,3 @@ /*

var url = urlItem.url;
if(!moduleMode && !loaderUtils.isUrlRequest(url, root))
if(!loaderUtils.isUrlRequest(url, root))
return toEmbStr(urlItem.raw);

@@ -123,3 +123,3 @@ idx = url.indexOf("?#");

var urlRequest;
if(idx > 0) {
if(idx > 0) { // idx === 0 is catched by isUrlRequest
// in cases like url('webfont.eot?#iefix')

@@ -129,5 +129,2 @@ urlRequest = url.substr(0, idx);

return "\"+require(" + loaderUtils.stringifyRequest(this, urlRequest) + ")+\"" + url.substr(idx);
} else if(idx === 0) {
// only hash
return toEmbStr(urlItem.raw);
}

@@ -134,0 +131,0 @@ urlRequest = url;

@@ -239,6 +239,6 @@ /*

// class
"(\\.)([A-Za-z_\\-0-9]+)": selectorMatch,
"(\\.)(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)": selectorMatch,
// id
"(#)([A-Za-z_\\-0-9]+)": selectorMatch,
"(#)(-?[_a-zA-Z]+[_a-zA-Z0-9-]*)": selectorMatch,

@@ -245,0 +245,0 @@ // inside

{
"name": "css-loader",
"version": "0.14.4",
"version": "0.14.5",
"author": "Tobias Koppers @sokra",

@@ -13,2 +13,3 @@ "description": "css loader module for webpack",

"devDependencies": {
"codecov.io": "^0.1.2",
"coveralls": "^2.11.2",

@@ -15,0 +16,0 @@ "istanbul": "^0.3.13",

Sorry, the diff of this file is not supported yet

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