mol_dump_lib 0.0.199 → 0.0.201

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
@@ -900,6 +900,8 @@ var $;
900
900
  function $mol_key(value) {
901
901
  if (typeof value === 'bigint')
902
902
  return value.toString() + 'n';
903
+ if (typeof value === 'symbol')
904
+ return value.description;
903
905
  if (!value)
904
906
  return JSON.stringify(value);
905
907
  if (typeof value !== 'object' && typeof value !== 'function')
@@ -907,6 +909,8 @@ var $;
907
909
  return JSON.stringify(value, (field, value) => {
908
910
  if (typeof value === 'bigint')
909
911
  return value.toString() + 'n';
912
+ if (typeof value === 'symbol')
913
+ return value.description;
910
914
  if (!value)
911
915
  return value;
912
916
  if (typeof value !== 'object' && typeof value !== 'function')