roboto-js 1.4.25 → 1.4.26

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.
@@ -1032,8 +1032,8 @@ var RbtApi = exports["default"] = /*#__PURE__*/function () {
1032
1032
  onProgress(response);
1033
1033
  }
1034
1034
 
1035
- // Continue polling if the status is 'RUNNING'
1036
- if (['RUNNING'].includes(response.status)) {
1035
+ // Continue polling if the status is 'RUNNING' or STOPPING
1036
+ if (['RUNNING', 'STOPPING'].includes(response.status)) {
1037
1037
  setTimeout(checkProgress, 2000); // Poll every 2 seconds
1038
1038
  }
1039
1039
  case 8:
@@ -539,8 +539,8 @@ export default class RbtApi {
539
539
  onProgress(response);
540
540
  }
541
541
 
542
- // Continue polling if the status is 'RUNNING'
543
- if (['RUNNING'].includes(response.status)) {
542
+ // Continue polling if the status is 'RUNNING' or STOPPING
543
+ if (['RUNNING', 'STOPPING'].includes(response.status)) {
544
544
  setTimeout(checkProgress, 2000); // Poll every 2 seconds
545
545
  }
546
546
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roboto-js",
3
- "version": "1.4.25",
3
+ "version": "1.4.26",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "main": "dist/cjs/index.cjs",
package/src/rbt_api.js CHANGED
@@ -579,8 +579,8 @@ export default class RbtApi {
579
579
  onProgress(response);
580
580
  }
581
581
 
582
- // Continue polling if the status is 'RUNNING'
583
- if (['RUNNING'].includes(response.status)) {
582
+ // Continue polling if the status is 'RUNNING' or STOPPING
583
+ if (['RUNNING','STOPPING'].includes(response.status)) {
584
584
  setTimeout(checkProgress, 2000); // Poll every 2 seconds
585
585
  }
586
586
  };