mol_plot_all 1.2.902 → 1.2.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
|
@@ -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 };
|
package/node.test.js
CHANGED
|
@@ -217,9 +217,6 @@ var $;
|
|
|
217
217
|
toString() {
|
|
218
218
|
return this[Symbol.toStringTag] || this.constructor.name + '<>';
|
|
219
219
|
}
|
|
220
|
-
toJSON() {
|
|
221
|
-
return this.toString();
|
|
222
|
-
}
|
|
223
220
|
}
|
|
224
221
|
$.$mol_object2 = $mol_object2;
|
|
225
222
|
})($ || ($ = {}));
|
|
@@ -1489,6 +1486,9 @@ var $;
|
|
|
1489
1486
|
if (typeof json.toJSON === 'function') {
|
|
1490
1487
|
return $mol_tree2_from_json(json.toJSON());
|
|
1491
1488
|
}
|
|
1489
|
+
if (json.toString !== Object.prototype.toString) {
|
|
1490
|
+
return $mol_tree2.data(json.toString(), [], span);
|
|
1491
|
+
}
|
|
1492
1492
|
if (json instanceof Error) {
|
|
1493
1493
|
const { name, message, stack } = json;
|
|
1494
1494
|
json = { ...json, name, message, stack };
|