@swan-admin/swan-ai-measurements 1.1.63 → 1.1.64

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swan-admin/swan-ai-measurements",
3
- "version": "1.1.63",
3
+ "version": "1.1.64",
4
4
  "description": "provides ai measurement suggestion",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -149,6 +149,9 @@ class Measurement {
149
149
  if (data?.code === 200 && data?.scanStatus === "success") {
150
150
  onSuccess?.(data);
151
151
  } else {
152
+ if (this.#timerWaitingRef){
153
+ clearTimeout(this.#timerWaitingRef);
154
+ }
152
155
  onError?.(data);
153
156
  }
154
157
  if (this.#timerWaitingRef && data?.code === 200 && data?.scanStatus === "success" && data?.resultType === "final" ) {