@tbela99/css-parser 1.4.10 → 1.4.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ # v1.4.11
4
+
5
+ - fix bug in url resolution
6
+
3
7
  # v1.4.10
4
8
 
5
- - failure to convert colors to display-linear due to missing import
9
+ - failure to convert colors to display-p3-linear due to missing import
6
10
 
7
11
  # v1.4.9
8
12
 
@@ -24289,14 +24289,14 @@
24289
24289
  * @private
24290
24290
  */
24291
24291
  const resolve = memoize(function (url, currentDirectory, cwd) {
24292
- // if (matchUrl.test(url)) {
24293
- // return {
24294
- // absolute: url,
24295
- // relative: url,
24296
- // };
24297
- // }
24298
24292
  cwd ??= "";
24299
24293
  currentDirectory ??= "";
24294
+ if (matchUrl.test(url)) {
24295
+ return {
24296
+ absolute: url,
24297
+ relative: url,
24298
+ };
24299
+ }
24300
24300
  url = normalize(url);
24301
24301
  if (currentDirectory !== "") {
24302
24302
  currentDirectory = normalize(currentDirectory);
package/dist/index.cjs CHANGED
@@ -24292,14 +24292,14 @@ const diff = memoize(function (path1, path2) {
24292
24292
  * @private
24293
24293
  */
24294
24294
  const resolve = memoize(function (url, currentDirectory, cwd) {
24295
- // if (matchUrl.test(url)) {
24296
- // return {
24297
- // absolute: url,
24298
- // relative: url,
24299
- // };
24300
- // }
24301
24295
  cwd ??= "";
24302
24296
  currentDirectory ??= "";
24297
+ if (matchUrl.test(url)) {
24298
+ return {
24299
+ absolute: url,
24300
+ relative: url,
24301
+ };
24302
+ }
24303
24303
  url = normalize(url);
24304
24304
  if (currentDirectory !== "") {
24305
24305
  currentDirectory = normalize(currentDirectory);
@@ -122,14 +122,14 @@ const diff = memoize(function (path1, path2) {
122
122
  * @private
123
123
  */
124
124
  const resolve = memoize(function (url, currentDirectory, cwd) {
125
- // if (matchUrl.test(url)) {
126
- // return {
127
- // absolute: url,
128
- // relative: url,
129
- // };
130
- // }
131
125
  cwd ??= "";
132
126
  currentDirectory ??= "";
127
+ if (matchUrl.test(url)) {
128
+ return {
129
+ absolute: url,
130
+ relative: url,
131
+ };
132
+ }
133
133
  url = normalize(url);
134
134
  if (currentDirectory !== "") {
135
135
  currentDirectory = normalize(currentDirectory);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tbela99/css-parser",
3
3
  "description": "CSS parser, minifier and validator for node and the browser",
4
- "version": "1.4.10",
4
+ "version": "1.4.11",
5
5
  "exports": {
6
6
  ".": "./dist/node.js",
7
7
  "./node": "./dist/node.js",