mol_wire_lib 1.0.1100 → 1.0.1102

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/node.mjs CHANGED
@@ -597,7 +597,12 @@ var $;
597
597
  var $;
598
598
  (function ($) {
599
599
  function $mol_promise_like(val) {
600
- return val && typeof val === 'object' && 'then' in val && typeof val.then === 'function';
600
+ try {
601
+ return val && typeof val === 'object' && 'then' in val && typeof val.then === 'function';
602
+ }
603
+ catch {
604
+ return false;
605
+ }
601
606
  }
602
607
  $.$mol_promise_like = $mol_promise_like;
603
608
  })($ || ($ = {}));
package/node.test.js CHANGED
@@ -588,7 +588,12 @@ var $;
588
588
  var $;
589
589
  (function ($) {
590
590
  function $mol_promise_like(val) {
591
- return val && typeof val === 'object' && 'then' in val && typeof val.then === 'function';
591
+ try {
592
+ return val && typeof val === 'object' && 'then' in val && typeof val.then === 'function';
593
+ }
594
+ catch {
595
+ return false;
596
+ }
592
597
  }
593
598
  $.$mol_promise_like = $mol_promise_like;
594
599
  })($ || ($ = {}));