meshy-node 0.2.1 → 0.2.2
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/README.md +1 -1
- package/main.cjs +21 -2
- package/package.json +1 -1
- package/runtime-metadata.json +5 -5
package/README.md
CHANGED
package/main.cjs
CHANGED
|
@@ -44874,8 +44874,27 @@ ${lines.join("")}`
|
|
|
44874
44874
|
}
|
|
44875
44875
|
};
|
|
44876
44876
|
function parsePublicUrl(output) {
|
|
44877
|
-
const
|
|
44878
|
-
|
|
44877
|
+
const matches = output.matchAll(/https?:\/\/[^\s"',]+/g);
|
|
44878
|
+
for (const match of matches) {
|
|
44879
|
+
const url = normalizeDevTunnelUrl(match[0]);
|
|
44880
|
+
if (url) {
|
|
44881
|
+
return url;
|
|
44882
|
+
}
|
|
44883
|
+
}
|
|
44884
|
+
return null;
|
|
44885
|
+
}
|
|
44886
|
+
function normalizeDevTunnelUrl(value) {
|
|
44887
|
+
const candidate = value.replace(/[),.;\]}]+$/, "");
|
|
44888
|
+
try {
|
|
44889
|
+
const url = new URL(candidate);
|
|
44890
|
+
const hostname3 = url.hostname.toLowerCase().replace(/\.$/, "");
|
|
44891
|
+
if (hostname3 !== "devtunnels.ms" && !hostname3.endsWith(".devtunnels.ms")) {
|
|
44892
|
+
return null;
|
|
44893
|
+
}
|
|
44894
|
+
return url.origin;
|
|
44895
|
+
} catch {
|
|
44896
|
+
return null;
|
|
44897
|
+
}
|
|
44879
44898
|
}
|
|
44880
44899
|
function formatCommandError(error) {
|
|
44881
44900
|
if (!error || typeof error !== "object") {
|
package/package.json
CHANGED
package/runtime-metadata.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"packageName": "meshy-node",
|
|
3
|
-
"packageVersion": "0.2.
|
|
3
|
+
"packageVersion": "0.2.2",
|
|
4
4
|
"packages": {
|
|
5
5
|
"workspace": {
|
|
6
6
|
"name": "meshy",
|
|
7
|
-
"version": "0.2.
|
|
7
|
+
"version": "0.2.2"
|
|
8
8
|
},
|
|
9
9
|
"node": {
|
|
10
10
|
"name": "meshy-node",
|
|
11
|
-
"version": "0.2.
|
|
11
|
+
"version": "0.2.2"
|
|
12
12
|
},
|
|
13
13
|
"core": {
|
|
14
14
|
"name": "@meshy/core",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"repository": {
|
|
27
27
|
"url": "https://github.com/penwa_microsoft/meshy",
|
|
28
|
-
"branch": "
|
|
29
|
-
"commit": "
|
|
28
|
+
"branch": "FixTunnelUrlIssue",
|
|
29
|
+
"commit": "9be1d89"
|
|
30
30
|
}
|
|
31
31
|
}
|