mol_wire_lib 1.0.862 → 1.0.864

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/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')