mol_jsx_lib 0.0.730 → 0.0.731

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
@@ -1691,6 +1691,8 @@ var $;
1691
1691
  function $mol_key(value) {
1692
1692
  if (typeof value === 'bigint')
1693
1693
  return value.toString() + 'n';
1694
+ if (typeof value === 'symbol')
1695
+ return value.description;
1694
1696
  if (!value)
1695
1697
  return JSON.stringify(value);
1696
1698
  if (typeof value !== 'object' && typeof value !== 'function')
@@ -1698,6 +1700,8 @@ var $;
1698
1700
  return JSON.stringify(value, (field, value) => {
1699
1701
  if (typeof value === 'bigint')
1700
1702
  return value.toString() + 'n';
1703
+ if (typeof value === 'symbol')
1704
+ return value.description;
1701
1705
  if (!value)
1702
1706
  return value;
1703
1707
  if (typeof value !== 'object' && typeof value !== 'function')
package/node.test.js CHANGED
@@ -1683,6 +1683,8 @@ var $;
1683
1683
  function $mol_key(value) {
1684
1684
  if (typeof value === 'bigint')
1685
1685
  return value.toString() + 'n';
1686
+ if (typeof value === 'symbol')
1687
+ return value.description;
1686
1688
  if (!value)
1687
1689
  return JSON.stringify(value);
1688
1690
  if (typeof value !== 'object' && typeof value !== 'function')
@@ -1690,6 +1692,8 @@ var $;
1690
1692
  return JSON.stringify(value, (field, value) => {
1691
1693
  if (typeof value === 'bigint')
1692
1694
  return value.toString() + 'n';
1695
+ if (typeof value === 'symbol')
1696
+ return value.description;
1693
1697
  if (!value)
1694
1698
  return value;
1695
1699
  if (typeof value !== 'object' && typeof value !== 'function')