css-resolve-import
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "css-resolve-import", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Resolves @import statements in CSS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -9,3 +9,4 @@ module.exports = parse | ||
var importMatcher = /@import +(?:url\()?([^()]+)\)?(:? *;)?/g | ||
var urlMatcher = /url\(["']?([^"'()]+?)(?:\?.*?)?["']?\)/g | ||
var urlMatcher = /url\(["']?((?:[^"'()]+?)(?:\?.*?)?)["']?\)/g | ||
var queryParamsMatcher = /(\?.*)$/i | ||
var urlWithScheme = /^(?:[a-z][a-z-+.0-9]*:)?\/\//i | ||
@@ -29,2 +30,3 @@ var absoluteUrl = /^\//i | ||
if(!url.match(dataUrl) && !url.match(urlWithScheme) && !url.match(absoluteUrl)) { | ||
url = url.replace(queryParamsMatcher, '') | ||
url = path.join(relRoot, url).replace(/\\/g, '/') | ||
@@ -31,0 +33,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2387
50
1