mol_wire_lib 1.0.863 → 1.0.864

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.mjs CHANGED
@@ -1578,6 +1578,8 @@ var $;
1578
1578
  function $mol_key(value) {
1579
1579
  if (typeof value === 'bigint')
1580
1580
  return value.toString() + 'n';
1581
+ if (typeof value === 'symbol')
1582
+ return value.description;
1581
1583
  if (!value)
1582
1584
  return JSON.stringify(value);
1583
1585
  if (typeof value !== 'object' && typeof value !== 'function')
@@ -1585,6 +1587,8 @@ var $;
1585
1587
  return JSON.stringify(value, (field, value) => {
1586
1588
  if (typeof value === 'bigint')
1587
1589
  return value.toString() + 'n';
1590
+ if (typeof value === 'symbol')
1591
+ return value.description;
1588
1592
  if (!value)
1589
1593
  return value;
1590
1594
  if (typeof value !== 'object' && typeof value !== 'function')
package/node.test.js CHANGED
@@ -1570,6 +1570,8 @@ var $;
1570
1570
  function $mol_key(value) {
1571
1571
  if (typeof value === 'bigint')
1572
1572
  return value.toString() + 'n';
1573
+ if (typeof value === 'symbol')
1574
+ return value.description;
1573
1575
  if (!value)
1574
1576
  return JSON.stringify(value);
1575
1577
  if (typeof value !== 'object' && typeof value !== 'function')
@@ -1577,6 +1579,8 @@ var $;
1577
1579
  return JSON.stringify(value, (field, value) => {
1578
1580
  if (typeof value === 'bigint')
1579
1581
  return value.toString() + 'n';
1582
+ if (typeof value === 'symbol')
1583
+ return value.description;
1580
1584
  if (!value)
1581
1585
  return value;
1582
1586
  if (typeof value !== 'object' && typeof value !== 'function')