mol_plot_all 1.2.902 → 1.2.903
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.js
CHANGED
|
@@ -226,9 +226,6 @@ var $;
|
|
|
226
226
|
toString() {
|
|
227
227
|
return this[Symbol.toStringTag] || this.constructor.name + '<>';
|
|
228
228
|
}
|
|
229
|
-
toJSON() {
|
|
230
|
-
return this.toString();
|
|
231
|
-
}
|
|
232
229
|
}
|
|
233
230
|
$.$mol_object2 = $mol_object2;
|
|
234
231
|
})($ || ($ = {}));
|
|
@@ -1498,6 +1495,9 @@ var $;
|
|
|
1498
1495
|
if (typeof json.toJSON === 'function') {
|
|
1499
1496
|
return $mol_tree2_from_json(json.toJSON());
|
|
1500
1497
|
}
|
|
1498
|
+
if (json.toString !== Object.prototype.toString) {
|
|
1499
|
+
return $mol_tree2.data(json.toString(), [], span);
|
|
1500
|
+
}
|
|
1501
1501
|
if (json instanceof Error) {
|
|
1502
1502
|
const { name, message, stack } = json;
|
|
1503
1503
|
json = { ...json, name, message, stack };
|