mol_jsx_lib 0.0.768 → 0.0.770
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.d.ts +1 -4
- package/node.deps.json +1 -1
- package/node.js +3 -3
- package/node.js.map +1 -1
- package/node.mjs +3 -3
- package/node.test.js +3 -3
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +1 -4
- package/web.deps.json +1 -1
- package/web.js +0 -3
- package/web.js.map +1 -1
- package/web.mjs +0 -3
package/node.mjs
CHANGED
|
@@ -300,9 +300,6 @@ var $;
|
|
|
300
300
|
toString() {
|
|
301
301
|
return this[Symbol.toStringTag] || this.constructor.name + '<>';
|
|
302
302
|
}
|
|
303
|
-
toJSON() {
|
|
304
|
-
return this.toString();
|
|
305
|
-
}
|
|
306
303
|
}
|
|
307
304
|
$.$mol_object2 = $mol_object2;
|
|
308
305
|
})($ || ($ = {}));
|
|
@@ -703,6 +700,9 @@ var $;
|
|
|
703
700
|
if (typeof json.toJSON === 'function') {
|
|
704
701
|
return $mol_tree2_from_json(json.toJSON());
|
|
705
702
|
}
|
|
703
|
+
if (json.toString !== Object.prototype.toString) {
|
|
704
|
+
return $mol_tree2.data(json.toString(), [], span);
|
|
705
|
+
}
|
|
706
706
|
if (json instanceof Error) {
|
|
707
707
|
const { name, message, stack } = json;
|
|
708
708
|
json = { ...json, name, message, stack };
|
package/node.test.js
CHANGED
|
@@ -291,9 +291,6 @@ var $;
|
|
|
291
291
|
toString() {
|
|
292
292
|
return this[Symbol.toStringTag] || this.constructor.name + '<>';
|
|
293
293
|
}
|
|
294
|
-
toJSON() {
|
|
295
|
-
return this.toString();
|
|
296
|
-
}
|
|
297
294
|
}
|
|
298
295
|
$.$mol_object2 = $mol_object2;
|
|
299
296
|
})($ || ($ = {}));
|
|
@@ -694,6 +691,9 @@ var $;
|
|
|
694
691
|
if (typeof json.toJSON === 'function') {
|
|
695
692
|
return $mol_tree2_from_json(json.toJSON());
|
|
696
693
|
}
|
|
694
|
+
if (json.toString !== Object.prototype.toString) {
|
|
695
|
+
return $mol_tree2.data(json.toString(), [], span);
|
|
696
|
+
}
|
|
697
697
|
if (json instanceof Error) {
|
|
698
698
|
const { name, message, stack } = json;
|
|
699
699
|
json = { ...json, name, message, stack };
|