@swan-admin/swan-ai-measurements 1.0.37 → 1.0.39

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/fileUpload.js CHANGED
@@ -17,7 +17,7 @@ export default class FileUpload {
17
17
  if (this.#uppyIns) {
18
18
  this.#uppyIns.close();
19
19
  }
20
- const uppyIns = new Uppy({ autoProceed: true });
20
+ this.#uppyIns = new Uppy({ autoProceed: true });
21
21
  this.#uppyIns.use(AwsS3Multipart, {
22
22
  limit: 10,
23
23
  retryDelays: [0, 1000, 3000, 5000],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swan-admin/swan-ai-measurements",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
4
4
  "description": "provides ai measurement suggestion",
5
5
  "main": "index.js",
6
6
  "type": "module",
package/tryOn.js CHANGED
@@ -90,14 +90,14 @@ class TryOn {
90
90
  } else {
91
91
  onError?.(data);
92
92
  }
93
- clearTimeout(this.#tryOnSocketRef);
93
+ clearTimeout(this.#timerWaitingRef);
94
94
  };
95
95
  this.#tryOnSocketRef.onclose = () => {
96
96
  onClose?.();
97
97
  };
98
98
  this.#tryOnSocketRef.onerror = (event) => {
99
99
  onError?.(event);
100
- clearTimeout(this.#tryOnSocketRef);
100
+ clearTimeout(this.#timerWaitingRef);
101
101
  };
102
102
  };
103
103