hyoo_sync_client 0.0.240 → 0.0.241

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
@@ -2001,11 +2001,15 @@ var $;
2001
2001
  (function ($) {
2002
2002
  $.$mol_key_store = new WeakMap();
2003
2003
  function $mol_key(value) {
2004
+ if (typeof value === 'bigint')
2005
+ return value.toString() + 'n';
2004
2006
  if (!value)
2005
2007
  return JSON.stringify(value);
2006
2008
  if (typeof value !== 'object' && typeof value !== 'function')
2007
2009
  return JSON.stringify(value);
2008
2010
  return JSON.stringify(value, (field, value) => {
2011
+ if (typeof value === 'bigint')
2012
+ return value.toString() + 'n';
2009
2013
  if (!value)
2010
2014
  return value;
2011
2015
  if (typeof value !== 'object' && typeof value !== 'function')
package/node.test.js CHANGED
@@ -1993,11 +1993,15 @@ var $;
1993
1993
  (function ($) {
1994
1994
  $.$mol_key_store = new WeakMap();
1995
1995
  function $mol_key(value) {
1996
+ if (typeof value === 'bigint')
1997
+ return value.toString() + 'n';
1996
1998
  if (!value)
1997
1999
  return JSON.stringify(value);
1998
2000
  if (typeof value !== 'object' && typeof value !== 'function')
1999
2001
  return JSON.stringify(value);
2000
2002
  return JSON.stringify(value, (field, value) => {
2003
+ if (typeof value === 'bigint')
2004
+ return value.toString() + 'n';
2001
2005
  if (!value)
2002
2006
  return value;
2003
2007
  if (typeof value !== 'object' && typeof value !== 'function')
@@ -8378,6 +8382,7 @@ var $;
8378
8382
  $mol_assert_equal($mol_key(false), 'false');
8379
8383
  $mol_assert_equal($mol_key(true), 'true');
8380
8384
  $mol_assert_equal($mol_key(0), '0');
8385
+ $mol_assert_equal($mol_key(1n << 64n), '18446744073709551616n');
8381
8386
  $mol_assert_equal($mol_key(''), '""');
8382
8387
  },
8383
8388
  'Array & POJO'() {