@jsenv/plugin-supervisor 1.5.29 → 1.5.31
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.
|
@@ -599,13 +599,21 @@ const pathnameToParentPathname = pathname => {
|
|
|
599
599
|
|
|
600
600
|
const urlToFileSystemPath = url => {
|
|
601
601
|
const urlObject = new URL(url);
|
|
602
|
-
let
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
}
|
|
607
|
-
|
|
602
|
+
let {
|
|
603
|
+
origin,
|
|
604
|
+
pathname,
|
|
605
|
+
hash
|
|
606
|
+
} = urlObject;
|
|
607
|
+
if (urlObject.protocol === "file:") {
|
|
608
|
+
origin = "file://";
|
|
609
|
+
}
|
|
610
|
+
pathname = pathname.split("/").map(part => {
|
|
611
|
+
return part.replace(/%(?![0-9A-F][0-9A-F])/g, "%25");
|
|
612
|
+
}).join("/");
|
|
613
|
+
if (hash) {
|
|
614
|
+
pathname += "%23".concat(encodeURIComponent(hash.slice(1)));
|
|
608
615
|
}
|
|
616
|
+
const urlString = "".concat(origin).concat(pathname);
|
|
609
617
|
const fileSystemPath = fileURLToPath(urlString);
|
|
610
618
|
if (fileSystemPath[fileSystemPath.length - 1] === "/") {
|
|
611
619
|
// remove trailing / so that nodejs path becomes predictable otherwise it logs
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/plugin-supervisor",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.31",
|
|
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.
|
|
30
|
-
"@jsenv/urls": "2.5.
|
|
31
|
-
"@jsenv/sourcemap": "1.2.
|
|
29
|
+
"@jsenv/ast": "6.4.0",
|
|
30
|
+
"@jsenv/urls": "2.5.4",
|
|
31
|
+
"@jsenv/sourcemap": "1.2.27",
|
|
32
32
|
"launch-editor": "2.9.1"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|