mol_crypto_lib 0.1.1205 → 0.1.1206
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.test.js +6 -1
- package/web.test.js.map +1 -1
package/package.json
CHANGED
package/web.test.js
CHANGED
@@ -4,7 +4,12 @@ function require( path ){ return $node[ path ] };
|
|
4
4
|
var $;
|
5
5
|
(function ($) {
|
6
6
|
function $mol_promise_like(val) {
|
7
|
-
|
7
|
+
try {
|
8
|
+
return val && typeof val === 'object' && 'then' in val && typeof val.then === 'function';
|
9
|
+
}
|
10
|
+
catch {
|
11
|
+
return false;
|
12
|
+
}
|
8
13
|
}
|
9
14
|
$.$mol_promise_like = $mol_promise_like;
|
10
15
|
})($ || ($ = {}));
|