mol_plot_all 1.2.1093 → 1.2.1095

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
@@ -632,7 +632,12 @@ var $;
632
632
  var $;
633
633
  (function ($) {
634
634
  function $mol_promise_like(val) {
635
- return val && typeof val === 'object' && 'then' in val && typeof val.then === 'function';
635
+ try {
636
+ return val && typeof val === 'object' && 'then' in val && typeof val.then === 'function';
637
+ }
638
+ catch {
639
+ return false;
640
+ }
636
641
  }
637
642
  $.$mol_promise_like = $mol_promise_like;
638
643
  })($ || ($ = {}));
package/node.test.js CHANGED
@@ -623,7 +623,12 @@ var $;
623
623
  var $;
624
624
  (function ($) {
625
625
  function $mol_promise_like(val) {
626
- return val && typeof val === 'object' && 'then' in val && typeof val.then === 'function';
626
+ try {
627
+ return val && typeof val === 'object' && 'then' in val && typeof val.then === 'function';
628
+ }
629
+ catch {
630
+ return false;
631
+ }
627
632
  }
628
633
  $.$mol_promise_like = $mol_promise_like;
629
634
  })($ || ($ = {}));