@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 +5 -1
- package/dist/index-umd-web.js +6 -6
- package/dist/index.cjs +6 -6
- package/dist/lib/fs/resolve.js +6 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index-umd-web.js
CHANGED
|
@@ -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);
|
package/dist/lib/fs/resolve.js
CHANGED
|
@@ -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);
|