@wandelbots/nova-js 3.9.0-pr.280.641b7e2 → 3.9.0-pr.280.74e07a8
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/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/lib/deprecated/v1/index.cjs +1 -1
- package/dist/lib/deprecated/v1/index.d.cts +1 -1
- package/dist/lib/deprecated/v1/index.d.mts +1 -1
- package/dist/lib/deprecated/v1/index.mjs +1 -1
- package/dist/lib/v2/index.cjs +24 -34
- package/dist/lib/v2/index.cjs.map +1 -1
- package/dist/lib/v2/index.d.cts +26 -30
- package/dist/lib/v2/index.d.cts.map +1 -1
- package/dist/lib/v2/index.d.mts +26 -30
- package/dist/lib/v2/index.d.mts.map +1 -1
- package/dist/lib/v2/index.mjs +23 -34
- package/dist/lib/v2/index.mjs.map +1 -1
- package/dist/{wandelscriptUtils-pySXnBlX.d.mts → wandelscriptUtils-CPA7fIA5.d.mts} +2 -1
- package/dist/{wandelscriptUtils-pySXnBlX.d.mts.map → wandelscriptUtils-CPA7fIA5.d.mts.map} +1 -1
- package/dist/{wandelscriptUtils-1A9uFPV_.d.cts → wandelscriptUtils-DxH6xiW6.d.cts} +2 -1
- package/dist/{wandelscriptUtils-1A9uFPV_.d.cts.map → wandelscriptUtils-DxH6xiW6.d.cts.map} +1 -1
- package/dist/{wandelscriptUtils-C7hQePlo.mjs → wandelscriptUtils-W_rEVq6i.mjs} +5 -4
- package/dist/{wandelscriptUtils-C7hQePlo.mjs.map → wandelscriptUtils-W_rEVq6i.mjs.map} +1 -1
- package/dist/{wandelscriptUtils-P0WYSZww.cjs → wandelscriptUtils-wnSvJKp0.cjs} +6 -4
- package/dist/{wandelscriptUtils-P0WYSZww.cjs.map → wandelscriptUtils-wnSvJKp0.cjs.map} +1 -1
- package/package.json +3 -2
- package/src/lib/deprecated/v1/NovaClient.ts +9 -7
- package/src/lib/deprecated/v2/NovaClient.ts +8 -7
- package/src/lib/v2/Nova.ts +4 -3
- package/src/lib/v2/NovaAPIClient.ts +93 -81
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
const require_LoginWithAuth0 = require("./LoginWithAuth0-oZFpwe7m.cjs");
|
|
2
2
|
let axios = require("axios");
|
|
3
3
|
axios = require_LoginWithAuth0.__toESM(axios, 1);
|
|
4
|
+
let url_join = require("url-join");
|
|
5
|
+
url_join = require_LoginWithAuth0.__toESM(url_join, 1);
|
|
4
6
|
let mobx = require("mobx");
|
|
5
7
|
let three = require("three");
|
|
6
8
|
three = require_LoginWithAuth0.__toESM(three, 1);
|
|
@@ -1880,7 +1882,7 @@ var NovaClient = class {
|
|
|
1880
1882
|
if (this.config.instanceUrl === "https://mock.example.com") this.mock = new MockNovaInstance();
|
|
1881
1883
|
this.instanceUrl = require_LoginWithAuth0.parseNovaInstanceUrl(this.config.instanceUrl);
|
|
1882
1884
|
const axiosInstance = axios.default.create({
|
|
1883
|
-
baseURL:
|
|
1885
|
+
baseURL: (0, url_join.default)(this.config.instanceUrl, "/api/v1"),
|
|
1884
1886
|
headers: typeof window !== "undefined" && window.location.origin.includes("localhost") ? {} : { "X-Wandelbots-Client": "Wandelbots-Nova-JS-SDK" }
|
|
1885
1887
|
});
|
|
1886
1888
|
axiosInstance.interceptors.request.use(async (request) => {
|
|
@@ -1910,7 +1912,7 @@ var NovaClient = class {
|
|
|
1910
1912
|
});
|
|
1911
1913
|
this.api = new NovaCellAPIClient(cellId, {
|
|
1912
1914
|
...config,
|
|
1913
|
-
basePath:
|
|
1915
|
+
basePath: (0, url_join.default)(this.instanceUrl.href, "/api/v1"),
|
|
1914
1916
|
isJsonMime: (mime) => {
|
|
1915
1917
|
return mime === "application/json";
|
|
1916
1918
|
},
|
|
@@ -1940,7 +1942,7 @@ var NovaClient = class {
|
|
|
1940
1942
|
}
|
|
1941
1943
|
}
|
|
1942
1944
|
makeWebsocketURL(path) {
|
|
1943
|
-
const url = new URL(
|
|
1945
|
+
const url = new URL((0, url_join.default)(this.instanceUrl.href, `/api/v1/cells/${this.config.cellId}`, path));
|
|
1944
1946
|
url.protocol = url.protocol.replace("http", "ws");
|
|
1945
1947
|
url.protocol = url.protocol.replace("https", "wss");
|
|
1946
1948
|
if (this.accessToken) url.searchParams.append("token", this.accessToken);
|
|
@@ -2038,4 +2040,4 @@ Object.defineProperty(exports, "poseToWandelscriptString", {
|
|
|
2038
2040
|
}
|
|
2039
2041
|
});
|
|
2040
2042
|
|
|
2041
|
-
//# sourceMappingURL=wandelscriptUtils-
|
|
2043
|
+
//# sourceMappingURL=wandelscriptUtils-wnSvJKp0.cjs.map
|