@cspell/url 9.6.4 → 9.7.0
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/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -111,7 +111,7 @@ function urlToUrlRelative(urlFrom, urlTo) {
|
|
|
111
111
|
const p0Parts = p0.split("/").slice(0, -1);
|
|
112
112
|
const p1Parts = p1.split("/");
|
|
113
113
|
let i = 0;
|
|
114
|
-
for (
|
|
114
|
+
for (; i < p0Parts.length && i < p1Parts.length - 1 && p0Parts[i] === p1Parts[i]; ++i);
|
|
115
115
|
const rel = "../".repeat(p0Parts.length - i) + p1Parts.slice(i).join("/");
|
|
116
116
|
return decodeURIComponent(rel.length < p1.length ? rel : p1);
|
|
117
117
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public",
|
|
5
5
|
"provenance": true
|
|
6
6
|
},
|
|
7
|
-
"version": "9.
|
|
7
|
+
"version": "9.7.0",
|
|
8
8
|
"description": "URL parsing and manipulation utilities for cspell",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"cspell",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"engines": {
|
|
58
58
|
"node": ">=20"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "48f64e0bd95b39011af6dc80cd8ae4d519511f73"
|
|
61
61
|
}
|