Socket
Socket
Sign inDemoInstall

css-loader

Package Overview
Dependencies
1
Maintainers
1
Versions
151
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.1 to 0.2.2

6

index.js

@@ -6,3 +6,2 @@ /*

var csso = require("csso");
var uriRegExp = /%CSSURL\[%(.*)%\]CSSURL%/g;
module.exports = function(content) {

@@ -36,4 +35,5 @@ var isRequireUrl = !this || !this.options || !this.options.css ||

if(isRequireUrl) {
css = css.replace(uriRegExp, function(match) {
match = uriRegExp.exec(match);
var uriRegExp = /%CSSURL\[%(.*?)%\]CSSURL%/g;
css = css.replace(uriRegExp, function(str) {
match = /^%CSSURL\[%(.*?)%\]CSSURL%$/.exec(str);
var url = JSON.parse("\"" + match[1] + "\"");

@@ -40,0 +40,0 @@ return "\"+require(" + JSON.stringify(requireUrl + urlToRequire(url)) + ")+\"";

{
"name": "css-loader",
"version": "0.2.1",
"version": "0.2.2",
"author": "Tobias Koppers @sokra",

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

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