mol_jsx_lib 0.0.965 → 0.0.967
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.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.deps.json +1 -1
- package/web.js +6 -1
- package/web.js.map +1 -1
- package/web.mjs +6 -1
package/web.mjs
CHANGED
|
@@ -820,7 +820,12 @@ var $;
|
|
|
820
820
|
var $;
|
|
821
821
|
(function ($) {
|
|
822
822
|
function $mol_promise_like(val) {
|
|
823
|
-
|
|
823
|
+
try {
|
|
824
|
+
return val && typeof val === 'object' && 'then' in val && typeof val.then === 'function';
|
|
825
|
+
}
|
|
826
|
+
catch {
|
|
827
|
+
return false;
|
|
828
|
+
}
|
|
824
829
|
}
|
|
825
830
|
$.$mol_promise_like = $mol_promise_like;
|
|
826
831
|
})($ || ($ = {}));
|