mol_plot_all 1.2.1094 → 1.2.1096
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.d.ts +90 -90
- package/node.deps.json +1 -1
- package/node.js +6 -1
- package/node.js.map +1 -1
- package/node.mjs +6 -1
- package/node.test.js +6 -1
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +90 -90
- package/web.deps.json +1 -1
- package/web.js +6 -1
- package/web.js.map +1 -1
- package/web.mjs +6 -1
package/web.mjs
CHANGED
|
@@ -617,7 +617,12 @@ var $;
|
|
|
617
617
|
var $;
|
|
618
618
|
(function ($) {
|
|
619
619
|
function $mol_promise_like(val) {
|
|
620
|
-
|
|
620
|
+
try {
|
|
621
|
+
return val && typeof val === 'object' && 'then' in val && typeof val.then === 'function';
|
|
622
|
+
}
|
|
623
|
+
catch {
|
|
624
|
+
return false;
|
|
625
|
+
}
|
|
621
626
|
}
|
|
622
627
|
$.$mol_promise_like = $mol_promise_like;
|
|
623
628
|
})($ || ($ = {}));
|