@wandelbots/nova-js 3.2.0-pr.ci-simplify-build.137.87eeb8d → 3.2.0-pr.dev-e2e-jogging-test.143.03b2851

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.
@@ -1894,6 +1894,10 @@ const defaultMotionState = { result: {
1894
1894
 
1895
1895
  //#endregion
1896
1896
  //#region src/lib/v1/NovaClient.ts
1897
+ function permissiveInstanceUrlParse(url) {
1898
+ if (!url.startsWith("http")) url = `http://${url}`;
1899
+ return new URL(url).toString();
1900
+ }
1897
1901
  /**
1898
1902
  * Client for connecting to a Nova instance and controlling robots.
1899
1903
  */
@@ -1904,7 +1908,8 @@ var NovaClient = class {
1904
1908
  const cellId = config.cellId ?? "cell";
1905
1909
  this.config = {
1906
1910
  cellId,
1907
- ...config
1911
+ ...config,
1912
+ instanceUrl: permissiveInstanceUrlParse(config.instanceUrl)
1908
1913
  };
1909
1914
  this.accessToken = config.accessToken || require_LoginWithAuth0.availableStorage.getString("wbjs.access_token") || null;
1910
1915
  if (this.config.instanceUrl === "https://mock.example.com") this.mock = new MockNovaInstance();