mol_jsx_lib 0.0.729 → 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.deps.json +1 -1
- package/node.js +4 -0
- package/node.js.map +1 -1
- package/node.mjs +4 -0
- package/node.test.js +4 -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.mjs
CHANGED
|
@@ -1094,6 +1094,8 @@ var $;
|
|
|
1094
1094
|
function $mol_key(value) {
|
|
1095
1095
|
if (typeof value === 'bigint')
|
|
1096
1096
|
return value.toString() + 'n';
|
|
1097
|
+
if (typeof value === 'symbol')
|
|
1098
|
+
return value.description;
|
|
1097
1099
|
if (!value)
|
|
1098
1100
|
return JSON.stringify(value);
|
|
1099
1101
|
if (typeof value !== 'object' && typeof value !== 'function')
|
|
@@ -1101,6 +1103,8 @@ var $;
|
|
|
1101
1103
|
return JSON.stringify(value, (field, value) => {
|
|
1102
1104
|
if (typeof value === 'bigint')
|
|
1103
1105
|
return value.toString() + 'n';
|
|
1106
|
+
if (typeof value === 'symbol')
|
|
1107
|
+
return value.description;
|
|
1104
1108
|
if (!value)
|
|
1105
1109
|
return value;
|
|
1106
1110
|
if (typeof value !== 'object' && typeof value !== 'function')
|