@stackable-labs/cli-app-extension 1.6.2 → 1.6.3

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.
Files changed (2) hide show
  1. package/dist/index.js +13 -9
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1818,7 +1818,6 @@ var startTunnel = (port) => new Promise((resolve, reject) => {
1818
1818
  reject(new Error("Tunnel connection timed out after 30s"));
1819
1819
  }, 3e4);
1820
1820
  tunnel.once("url", (url) => {
1821
- console.log(">>> > startTunnel > url:", { url });
1822
1821
  clearTimeout(timeout);
1823
1822
  resolve({ url, stop: () => tunnel.stop() });
1824
1823
  });
@@ -1891,9 +1890,9 @@ var DevDashboard = ({
1891
1890
  extensionId,
1892
1891
  appId,
1893
1892
  appName,
1894
- extensionPort,
1895
- previewPort,
1896
1893
  tunnelUrl,
1894
+ previewPort,
1895
+ extensionPort,
1897
1896
  bundleUrlUpdated,
1898
1897
  onQuit
1899
1898
  }) => {
@@ -1911,7 +1910,8 @@ var DevDashboard = ({
1911
1910
  onQuit();
1912
1911
  }
1913
1912
  });
1914
- const previewUrl = tunnelUrl ? `${tunnelUrl.replace(/\/$/, "")}/preview` : `http://localhost:${previewPort}`;
1913
+ const localPreviewUrl = `http://localhost:${previewPort}`;
1914
+ const previewUrl = tunnelUrl ? `${tunnelUrl.replace(/\/$/, "")}/preview` : localPreviewUrl;
1915
1915
  return /* @__PURE__ */ jsxs15(Box15, { flexDirection: "column", children: [
1916
1916
  /* @__PURE__ */ jsx15(Banner, {}),
1917
1917
  /* @__PURE__ */ jsxs15(
@@ -1940,9 +1940,17 @@ var DevDashboard = ({
1940
1940
  ] })
1941
1941
  ] }),
1942
1942
  /* @__PURE__ */ jsxs15(Box15, { flexDirection: "column", gap: 1, children: [
1943
+ tunnelUrl && /* @__PURE__ */ jsxs15(Box15, { gap: 2, children: [
1944
+ /* @__PURE__ */ jsx15(Text15, { dimColor: true, children: "Tunnel Dev - Preview:" }),
1945
+ /* @__PURE__ */ jsx15(Text15, { children: previewUrl })
1946
+ ] }),
1943
1947
  /* @__PURE__ */ jsxs15(Box15, { gap: 2, children: [
1944
1948
  /* @__PURE__ */ jsx15(Text15, { dimColor: true, children: "Local Dev - Preview:" }),
1945
- /* @__PURE__ */ jsx15(Text15, { children: previewUrl })
1949
+ /* @__PURE__ */ jsx15(Text15, { children: localPreviewUrl })
1950
+ ] }),
1951
+ /* @__PURE__ */ jsxs15(Box15, { gap: 2, children: [
1952
+ /* @__PURE__ */ jsx15(Text15, { dimColor: true, children: "Tunnel Dev - Extension:" }),
1953
+ /* @__PURE__ */ jsx15(Text15, { children: tunnelUrl || "Connecting\u2026" })
1946
1954
  ] }),
1947
1955
  /* @__PURE__ */ jsxs15(Box15, { gap: 2, children: [
1948
1956
  /* @__PURE__ */ jsx15(Text15, { dimColor: true, children: "Local Dev - Extension:" }),
@@ -1950,10 +1958,6 @@ var DevDashboard = ({
1950
1958
  "http://localhost:",
1951
1959
  extensionPort
1952
1960
  ] })
1953
- ] }),
1954
- /* @__PURE__ */ jsxs15(Box15, { gap: 2, children: [
1955
- /* @__PURE__ */ jsx15(Text15, { dimColor: true, children: "Tunnel Dev - Extension:" }),
1956
- /* @__PURE__ */ jsx15(Text15, { children: tunnelUrl || "Connecting\u2026" })
1957
1961
  ] })
1958
1962
  ] })
1959
1963
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackable-labs/cli-app-extension",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "bin": {