hyoo_sync_client 0.0.623 → 0.0.625

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/web.mjs CHANGED
@@ -3115,7 +3115,16 @@ var $;
3115
3115
  }
3116
3116
  static estimate() {
3117
3117
  $mol_state_time.now(1000);
3118
- return $mol_wire_sync(this.native() ?? {}).estimate();
3118
+ try {
3119
+ return $mol_wire_sync(this.native() ?? {}).estimate();
3120
+ }
3121
+ catch (error) {
3122
+ $mol_fail_log(error);
3123
+ return {
3124
+ usage: 0,
3125
+ quota: 0,
3126
+ };
3127
+ }
3119
3128
  }
3120
3129
  static total() {
3121
3130
  return this.estimate().quota ?? 0;
package/web.test.js CHANGED
@@ -2311,6 +2311,30 @@ var $;
2311
2311
  });
2312
2312
  })($ || ($ = {}));
2313
2313
 
2314
+ ;
2315
+ "use strict";
2316
+ var $;
2317
+ (function ($) {
2318
+ $mol_test({
2319
+ 'return result without errors'() {
2320
+ $mol_assert_equal($mol_try(() => false), false);
2321
+ },
2322
+ //'return error if thrown'() {
2323
+ //
2324
+ // const error = new Error( '$mol_try test error' )
2325
+ // $mol_assert_equal( $mol_try( ()=> { throw error } ) , error )
2326
+ //
2327
+ //} ,
2328
+ });
2329
+ })($ || ($ = {}));
2330
+
2331
+ ;
2332
+ "use strict";
2333
+ var $;
2334
+ (function ($_1) {
2335
+ $mol_test_mocks.push($ => $.$mol_fail_log = () => false);
2336
+ })($ || ($ = {}));
2337
+
2314
2338
  ;
2315
2339
  "use strict";
2316
2340
  var $;
@@ -4595,30 +4619,6 @@ var $;
4595
4619
  });
4596
4620
  })($ || ($ = {}));
4597
4621
 
4598
- ;
4599
- "use strict";
4600
- var $;
4601
- (function ($) {
4602
- $mol_test({
4603
- 'return result without errors'() {
4604
- $mol_assert_equal($mol_try(() => false), false);
4605
- },
4606
- //'return error if thrown'() {
4607
- //
4608
- // const error = new Error( '$mol_try test error' )
4609
- // $mol_assert_equal( $mol_try( ()=> { throw error } ) , error )
4610
- //
4611
- //} ,
4612
- });
4613
- })($ || ($ = {}));
4614
-
4615
- ;
4616
- "use strict";
4617
- var $;
4618
- (function ($_1) {
4619
- $mol_test_mocks.push($ => $.$mol_fail_log = () => false);
4620
- })($ || ($ = {}));
4621
-
4622
4622
  ;
4623
4623
  "use strict";
4624
4624
  var $;