mol_jsx_lib 0.0.673 → 0.0.675

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
@@ -1678,11 +1678,15 @@ var $;
1678
1678
  (function ($) {
1679
1679
  $.$mol_key_store = new WeakMap();
1680
1680
  function $mol_key(value) {
1681
+ if (typeof value === 'bigint')
1682
+ return value.toString() + 'n';
1681
1683
  if (!value)
1682
1684
  return JSON.stringify(value);
1683
1685
  if (typeof value !== 'object' && typeof value !== 'function')
1684
1686
  return JSON.stringify(value);
1685
1687
  return JSON.stringify(value, (field, value) => {
1688
+ if (typeof value === 'bigint')
1689
+ return value.toString() + 'n';
1686
1690
  if (!value)
1687
1691
  return value;
1688
1692
  if (typeof value !== 'object' && typeof value !== 'function')
package/node.test.js CHANGED
@@ -1670,11 +1670,15 @@ var $;
1670
1670
  (function ($) {
1671
1671
  $.$mol_key_store = new WeakMap();
1672
1672
  function $mol_key(value) {
1673
+ if (typeof value === 'bigint')
1674
+ return value.toString() + 'n';
1673
1675
  if (!value)
1674
1676
  return JSON.stringify(value);
1675
1677
  if (typeof value !== 'object' && typeof value !== 'function')
1676
1678
  return JSON.stringify(value);
1677
1679
  return JSON.stringify(value, (field, value) => {
1680
+ if (typeof value === 'bigint')
1681
+ return value.toString() + 'n';
1678
1682
  if (!value)
1679
1683
  return value;
1680
1684
  if (typeof value !== 'object' && typeof value !== 'function')
@@ -3600,6 +3604,7 @@ var $;
3600
3604
  $mol_assert_equal($mol_key(false), 'false');
3601
3605
  $mol_assert_equal($mol_key(true), 'true');
3602
3606
  $mol_assert_equal($mol_key(0), '0');
3607
+ $mol_assert_equal($mol_key(1n << 64n), '18446744073709551616n');
3603
3608
  $mol_assert_equal($mol_key(''), '""');
3604
3609
  },
3605
3610
  'Array & POJO'() {