@jsenv/plugin-supervisor 1.5.9 → 1.5.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.
|
@@ -484,7 +484,9 @@ const getCommonPathname = (pathname, otherPathname) => {
|
|
|
484
484
|
return commonPathname;
|
|
485
485
|
};
|
|
486
486
|
|
|
487
|
-
const urlToRelativeUrl = (url, baseUrl
|
|
487
|
+
const urlToRelativeUrl = (url, baseUrl, {
|
|
488
|
+
preferRelativeNotation
|
|
489
|
+
} = {}) => {
|
|
488
490
|
const urlObject = new URL(url);
|
|
489
491
|
const baseUrlObject = new URL(baseUrl);
|
|
490
492
|
if (urlObject.protocol !== baseUrlObject.protocol) {
|
|
@@ -519,7 +521,7 @@ const urlToRelativeUrl = (url, baseUrl) => {
|
|
|
519
521
|
return relativeUrl;
|
|
520
522
|
}
|
|
521
523
|
const relativeUrl = "".concat(specificPathname).concat(search).concat(hash);
|
|
522
|
-
return relativeUrl;
|
|
524
|
+
return preferRelativeNotation ? "./".concat(relativeUrl) : relativeUrl;
|
|
523
525
|
};
|
|
524
526
|
const pathnameToParentPathname = pathname => {
|
|
525
527
|
const slashLastIndex = pathname.lastIndexOf("/");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/plugin-supervisor",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.11",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"/dist/"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@jsenv/ast": "6.2.
|
|
30
|
-
"@jsenv/urls": "2.4.
|
|
31
|
-
"@jsenv/sourcemap": "1.2.
|
|
29
|
+
"@jsenv/ast": "6.2.10",
|
|
30
|
+
"@jsenv/urls": "2.4.1",
|
|
31
|
+
"@jsenv/sourcemap": "1.2.19",
|
|
32
32
|
"launch-editor": "2.8.0"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|