mol_plot_all 1.2.814 → 1.2.815
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.deps.json +1 -1
- package/node.js +4 -0
- package/node.js.map +1 -1
- package/node.mjs +4 -0
- package/node.test.js +5 -0
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.js +4 -0
- package/web.js.map +1 -1
- package/web.mjs +4 -0
- package/web.test.js +13 -3
- package/web.test.js.map +1 -1
package/node.mjs
CHANGED
|
@@ -888,11 +888,15 @@ var $;
|
|
|
888
888
|
(function ($) {
|
|
889
889
|
$.$mol_key_store = new WeakMap();
|
|
890
890
|
function $mol_key(value) {
|
|
891
|
+
if (typeof value === 'bigint')
|
|
892
|
+
return value.toString() + 'n';
|
|
891
893
|
if (!value)
|
|
892
894
|
return JSON.stringify(value);
|
|
893
895
|
if (typeof value !== 'object' && typeof value !== 'function')
|
|
894
896
|
return JSON.stringify(value);
|
|
895
897
|
return JSON.stringify(value, (field, value) => {
|
|
898
|
+
if (typeof value === 'bigint')
|
|
899
|
+
return value.toString() + 'n';
|
|
896
900
|
if (!value)
|
|
897
901
|
return value;
|
|
898
902
|
if (typeof value !== 'object' && typeof value !== 'function')
|
package/node.test.js
CHANGED
|
@@ -880,11 +880,15 @@ var $;
|
|
|
880
880
|
(function ($) {
|
|
881
881
|
$.$mol_key_store = new WeakMap();
|
|
882
882
|
function $mol_key(value) {
|
|
883
|
+
if (typeof value === 'bigint')
|
|
884
|
+
return value.toString() + 'n';
|
|
883
885
|
if (!value)
|
|
884
886
|
return JSON.stringify(value);
|
|
885
887
|
if (typeof value !== 'object' && typeof value !== 'function')
|
|
886
888
|
return JSON.stringify(value);
|
|
887
889
|
return JSON.stringify(value, (field, value) => {
|
|
890
|
+
if (typeof value === 'bigint')
|
|
891
|
+
return value.toString() + 'n';
|
|
888
892
|
if (!value)
|
|
889
893
|
return value;
|
|
890
894
|
if (typeof value !== 'object' && typeof value !== 'function')
|
|
@@ -8386,6 +8390,7 @@ var $;
|
|
|
8386
8390
|
$mol_assert_equal($mol_key(false), 'false');
|
|
8387
8391
|
$mol_assert_equal($mol_key(true), 'true');
|
|
8388
8392
|
$mol_assert_equal($mol_key(0), '0');
|
|
8393
|
+
$mol_assert_equal($mol_key(1n << 64n), '18446744073709551616n');
|
|
8389
8394
|
$mol_assert_equal($mol_key(''), '""');
|
|
8390
8395
|
},
|
|
8391
8396
|
'Array & POJO'() {
|