Comparing version 2.0.0 to 2.0.1
@@ -0,1 +1,8 @@ | ||
<a name="2.0.1"></a> | ||
## 2.0.1 (2019-01-02) | ||
* Fix interface ([7fa296c](https://github.com/Kikobeats/css-urls/commit/7fa296c)) | ||
<a name="2.0.0"></a> | ||
@@ -2,0 +9,0 @@ # 2.0.0 (2019-01-02) |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://documentup.com/Kikobeats/css-urls", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"main": "src/index.js", | ||
@@ -8,0 +8,0 @@ "author": { |
@@ -9,5 +9,7 @@ 'use strict' | ||
const { origin: baseUrl } = new URL(url) | ||
const urls = parseCssUrls(text) | ||
const normalizedUrl = urls.map(url => normalizeUrl(baseUrl, url)) | ||
return { urls, normalizedUrl } | ||
return parseCssUrls(text).map(url => ({ | ||
url, | ||
normalizeUrl: normalizeUrl(baseUrl, url) | ||
})) | ||
} |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
6131
11
0