@anvil-works/anvil-cli 0.3.9 → 0.3.10

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/cli.js CHANGED
@@ -47897,7 +47897,11 @@ var __webpack_exports__ = {};
47897
47897
  this.hasPendingChanges = true;
47898
47898
  if (this.debounceTimer) clearTimeout(this.debounceTimer);
47899
47899
  if (isFirstChange) logger_logger.progress("sync", "Change detected");
47900
- this.debounceTimer = setTimeout(()=>this.processSaveBatchWithEvents(), this.SAVE_DEBOUNCE_MS);
47900
+ this.debounceTimer = setTimeout(()=>{
47901
+ this.processSaveBatchWithEvents().catch((error)=>{
47902
+ logger_logger.error(`Save failed: ${errors_getErrorMessage(error)}`);
47903
+ });
47904
+ }, this.SAVE_DEBOUNCE_MS);
47901
47905
  }
47902
47906
  async forceSave() {
47903
47907
  if (this.debounceTimer) {
package/dist/index.js CHANGED
@@ -23495,7 +23495,11 @@ var __webpack_exports__ = {};
23495
23495
  this.hasPendingChanges = true;
23496
23496
  if (this.debounceTimer) clearTimeout(this.debounceTimer);
23497
23497
  if (isFirstChange) logger_logger.progress("sync", "Change detected");
23498
- this.debounceTimer = setTimeout(()=>this.processSaveBatchWithEvents(), this.SAVE_DEBOUNCE_MS);
23498
+ this.debounceTimer = setTimeout(()=>{
23499
+ this.processSaveBatchWithEvents().catch((error)=>{
23500
+ logger_logger.error(`Save failed: ${errors_getErrorMessage(error)}`);
23501
+ });
23502
+ }, this.SAVE_DEBOUNCE_MS);
23499
23503
  }
23500
23504
  async forceSave() {
23501
23505
  if (this.debounceTimer) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anvil-works/anvil-cli",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "description": "CLI tool for developing Anvil apps locally",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",