@swan-admin/swan-ai-measurements 1.1.16 → 1.1.17

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.
@@ -89,7 +89,7 @@ class Measurement {
89
89
  }
90
90
  setTimeout(() => {
91
91
  __classPrivateFieldGet(this, _Measurement_instances, "m", _Measurement_disconnectSocket).call(this);
92
- const url = `${getUrl({ urlName: APP_BASE_WEBSOCKET_URL, stagingUrl: __classPrivateFieldGet(this, _Measurement_stagingUrl, "f") })}/${API_ENDPOINTS.SCANNING}?scanId=${scanId}`;
92
+ const url = `${getUrl({ urlName: APP_BASE_WEBSOCKET_URL, stagingUrl: __classPrivateFieldGet(this, _Measurement_stagingUrl, "f") })}${API_ENDPOINTS.SCANNING}?scanId=${scanId}`;
93
93
  __classPrivateFieldSet(this, _Measurement_measurementSocketRef, new WebSocket(url), "f");
94
94
  __classPrivateFieldGet(this, _Measurement_measurementSocketRef, "f").onopen = () => {
95
95
  onOpen === null || onOpen === void 0 ? void 0 : onOpen();
@@ -125,7 +125,7 @@ class Measurement {
125
125
  }
126
126
  setTimeout(() => {
127
127
  this.#disconnectSocket();
128
- const url = `${(0, utils_js_1.getUrl)({ urlName: constants_js_1.APP_BASE_WEBSOCKET_URL, stagingUrl: this.#stagingUrl })}/${constants_js_1.API_ENDPOINTS.SCANNING}?scanId=${scanId}`;
128
+ const url = `${(0, utils_js_1.getUrl)({ urlName: constants_js_1.APP_BASE_WEBSOCKET_URL, stagingUrl: this.#stagingUrl })}${constants_js_1.API_ENDPOINTS.SCANNING}?scanId=${scanId}`;
129
129
  this.#measurementSocketRef = new WebSocket(url);
130
130
  this.#measurementSocketRef.onopen = () => {
131
131
  onOpen?.();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swan-admin/swan-ai-measurements",
3
- "version": "1.1.16",
3
+ "version": "1.1.17",
4
4
  "description": "provides ai measurement suggestion",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -176,7 +176,7 @@ class Measurement {
176
176
 
177
177
  setTimeout(() => {
178
178
  this.#disconnectSocket();
179
- const url = `${getUrl({ urlName: APP_BASE_WEBSOCKET_URL, stagingUrl: this.#stagingUrl })}/${API_ENDPOINTS.SCANNING}?scanId=${scanId}`;
179
+ const url = `${getUrl({ urlName: APP_BASE_WEBSOCKET_URL, stagingUrl: this.#stagingUrl })}${API_ENDPOINTS.SCANNING}?scanId=${scanId}`;
180
180
  this.#measurementSocketRef = new WebSocket(url);
181
181
  this.#measurementSocketRef.onopen = () => {
182
182
  onOpen?.();