Socket
Socket
Sign inDemoInstall

resolve-url-loader

Package Overview
Dependencies
18
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.1 to 1.3.2

6

index.js

@@ -162,3 +162,3 @@ /*

var BACKSLASH_REGEX = /\\/g;
// we can get groups as undefined under certain match circumstances

@@ -177,3 +177,3 @@ var initialised = token || '';

if (options.absolute) {
return absolute.replace(BACKSLASH_REGEX,'/') || initialised;
return absolute && absolute.replace(BACKSLASH_REGEX, '/') || initialised;
}

@@ -184,3 +184,3 @@ // module relative path (or default to initialised)

rootRelative = relative && loaderUtils.urlToRequest(relative, '~');
return (rootRelative) ? rootRelative.replace(BACKSLASH_REGEX,'/') : initialised;
return (rootRelative) ? rootRelative.replace(BACKSLASH_REGEX, '/') : initialised;
}

@@ -187,0 +187,0 @@ }

{
"name": "resolve-url-loader",
"version": "1.3.1",
"version": "1.3.2",
"description": "Webpack loader that resolves relative paths in url() statements based on the original source file",

@@ -5,0 +5,0 @@ "main": "index.js",

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