mol_dump_lib 0.0.172 → 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.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;