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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # meshy-node
2
2
 
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
 
5
5
  This package contains the built Meshy standalone node runtime only.
6
6
  It intentionally excludes repository source files and TypeScript sources.
package/main.cjs CHANGED
@@ -44874,8 +44874,27 @@ ${lines.join("")}`
44874
44874
  }
44875
44875
  };
44876
44876
  function parsePublicUrl(output) {
44877
- const match = output.match(/https?:\/\/[^\s"',]+/);
44878
- return match ? match[0] : null;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meshy-node",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "private": false,
5
5
  "description": "Standalone Meshy node package with bundled runtime and dashboard assets.",
6
6
  "type": "commonjs",
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "packageName": "meshy-node",
3
- "packageVersion": "0.2.1",
3
+ "packageVersion": "0.2.2",
4
4
  "packages": {
5
5
  "workspace": {
6
6
  "name": "meshy",
7
- "version": "0.2.1"
7
+ "version": "0.2.2"
8
8
  },
9
9
  "node": {
10
10
  "name": "meshy-node",
11
- "version": "0.2.1"
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": "supporting",
29
- "commit": "f4cf808"
28
+ "branch": "FixTunnelUrlIssue",
29
+ "commit": "9be1d89"
30
30
  }
31
31
  }