mol_wire_lib 1.0.863 → 1.0.865
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
|
@@ -1127,6 +1127,8 @@ var $;
|
|
|
1127
1127
|
function $mol_key(value) {
|
|
1128
1128
|
if (typeof value === 'bigint')
|
|
1129
1129
|
return value.toString() + 'n';
|
|
1130
|
+
if (typeof value === 'symbol')
|
|
1131
|
+
return value.description;
|
|
1130
1132
|
if (!value)
|
|
1131
1133
|
return JSON.stringify(value);
|
|
1132
1134
|
if (typeof value !== 'object' && typeof value !== 'function')
|
|
@@ -1134,6 +1136,8 @@ var $;
|
|
|
1134
1136
|
return JSON.stringify(value, (field, value) => {
|
|
1135
1137
|
if (typeof value === 'bigint')
|
|
1136
1138
|
return value.toString() + 'n';
|
|
1139
|
+
if (typeof value === 'symbol')
|
|
1140
|
+
return value.description;
|
|
1137
1141
|
if (!value)
|
|
1138
1142
|
return value;
|
|
1139
1143
|
if (typeof value !== 'object' && typeof value !== 'function')
|