mol_dump_lib 0.0.171 → 0.0.173
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 +3 -1
- package/node.js.map +1 -1
- package/node.mjs +3 -1
- package/node.test.js +8 -1
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.js +3 -1
- package/web.js.map +1 -1
- package/web.mjs +3 -1
- package/web.test.js +5 -0
- package/web.test.js.map +1 -1
package/node.js
CHANGED
|
@@ -652,7 +652,7 @@ var $;
|
|
|
652
652
|
var $;
|
|
653
653
|
(function ($) {
|
|
654
654
|
function $mol_promise_like(val) {
|
|
655
|
-
return val && typeof val.then === 'function';
|
|
655
|
+
return val && typeof val === 'object' && 'then' in val && typeof val.then === 'function';
|
|
656
656
|
}
|
|
657
657
|
$.$mol_promise_like = $mol_promise_like;
|
|
658
658
|
})($ || ($ = {}));
|
|
@@ -920,6 +920,8 @@ var $;
|
|
|
920
920
|
return value;
|
|
921
921
|
if (value instanceof RegExp)
|
|
922
922
|
return value.toString();
|
|
923
|
+
if (value instanceof Uint8Array)
|
|
924
|
+
return [...value];
|
|
923
925
|
let key = $.$mol_key_store.get(value);
|
|
924
926
|
if (key)
|
|
925
927
|
return key;
|