mol_jsx_lib 0.0.672 → 0.0.674
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 +1 -0
- package/web.test.js.map +1 -1
package/web.mjs
CHANGED
|
@@ -1081,11 +1081,15 @@ var $;
|
|
|
1081
1081
|
(function ($) {
|
|
1082
1082
|
$.$mol_key_store = new WeakMap();
|
|
1083
1083
|
function $mol_key(value) {
|
|
1084
|
+
if (typeof value === 'bigint')
|
|
1085
|
+
return value.toString() + 'n';
|
|
1084
1086
|
if (!value)
|
|
1085
1087
|
return JSON.stringify(value);
|
|
1086
1088
|
if (typeof value !== 'object' && typeof value !== 'function')
|
|
1087
1089
|
return JSON.stringify(value);
|
|
1088
1090
|
return JSON.stringify(value, (field, value) => {
|
|
1091
|
+
if (typeof value === 'bigint')
|
|
1092
|
+
return value.toString() + 'n';
|
|
1089
1093
|
if (!value)
|
|
1090
1094
|
return value;
|
|
1091
1095
|
if (typeof value !== 'object' && typeof value !== 'function')
|
package/web.test.js
CHANGED
|
@@ -681,6 +681,7 @@ var $;
|
|
|
681
681
|
$mol_assert_equal($mol_key(false), 'false');
|
|
682
682
|
$mol_assert_equal($mol_key(true), 'true');
|
|
683
683
|
$mol_assert_equal($mol_key(0), '0');
|
|
684
|
+
$mol_assert_equal($mol_key(1n << 64n), '18446744073709551616n');
|
|
684
685
|
$mol_assert_equal($mol_key(''), '""');
|
|
685
686
|
},
|
|
686
687
|
'Array & POJO'() {
|