mol_wire_lib 1.0.902 → 1.0.904
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
|
@@ -567,9 +567,6 @@ var $;
|
|
|
567
567
|
toString() {
|
|
568
568
|
return this[Symbol.toStringTag] || this.constructor.name + '<>';
|
|
569
569
|
}
|
|
570
|
-
toJSON() {
|
|
571
|
-
return this.toString();
|
|
572
|
-
}
|
|
573
570
|
}
|
|
574
571
|
$.$mol_object2 = $mol_object2;
|
|
575
572
|
})($ || ($ = {}));
|
|
@@ -1401,6 +1398,9 @@ var $;
|
|
|
1401
1398
|
if (typeof json.toJSON === 'function') {
|
|
1402
1399
|
return $mol_tree2_from_json(json.toJSON());
|
|
1403
1400
|
}
|
|
1401
|
+
if (json.toString !== Object.prototype.toString) {
|
|
1402
|
+
return $mol_tree2.data(json.toString(), [], span);
|
|
1403
|
+
}
|
|
1404
1404
|
if (json instanceof Error) {
|
|
1405
1405
|
const { name, message, stack } = json;
|
|
1406
1406
|
json = { ...json, name, message, stack };
|
package/node.test.js
CHANGED
|
@@ -558,9 +558,6 @@ var $;
|
|
|
558
558
|
toString() {
|
|
559
559
|
return this[Symbol.toStringTag] || this.constructor.name + '<>';
|
|
560
560
|
}
|
|
561
|
-
toJSON() {
|
|
562
|
-
return this.toString();
|
|
563
|
-
}
|
|
564
561
|
}
|
|
565
562
|
$.$mol_object2 = $mol_object2;
|
|
566
563
|
})($ || ($ = {}));
|
|
@@ -1392,6 +1389,9 @@ var $;
|
|
|
1392
1389
|
if (typeof json.toJSON === 'function') {
|
|
1393
1390
|
return $mol_tree2_from_json(json.toJSON());
|
|
1394
1391
|
}
|
|
1392
|
+
if (json.toString !== Object.prototype.toString) {
|
|
1393
|
+
return $mol_tree2.data(json.toString(), [], span);
|
|
1394
|
+
}
|
|
1395
1395
|
if (json instanceof Error) {
|
|
1396
1396
|
const { name, message, stack } = json;
|
|
1397
1397
|
json = { ...json, name, message, stack };
|