mol_plot_all 1.2.1049 → 1.2.1050
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 +90 -90
- 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 +90 -90
package/node.mjs
CHANGED
|
@@ -1510,6 +1510,9 @@ var $;
|
|
|
1510
1510
|
if (typeof json === 'string') {
|
|
1511
1511
|
return $mol_tree2.data(json, [], span);
|
|
1512
1512
|
}
|
|
1513
|
+
if (typeof json.toJSON === 'function') {
|
|
1514
|
+
return $mol_tree2_from_json(json.toJSON());
|
|
1515
|
+
}
|
|
1513
1516
|
if (Array.isArray(json)) {
|
|
1514
1517
|
const sub = json.map(json => $mol_tree2_from_json(json, span));
|
|
1515
1518
|
return new $mol_tree2('/', '', sub, span);
|
|
@@ -1521,9 +1524,6 @@ var $;
|
|
|
1521
1524
|
if (json instanceof Date) {
|
|
1522
1525
|
return new $mol_tree2('', json.toISOString(), [], span);
|
|
1523
1526
|
}
|
|
1524
|
-
if (typeof json.toJSON === 'function') {
|
|
1525
|
-
return $mol_tree2_from_json(json.toJSON());
|
|
1526
|
-
}
|
|
1527
1527
|
if (json.toString !== Object.prototype.toString) {
|
|
1528
1528
|
return $mol_tree2.data(json.toString(), [], span);
|
|
1529
1529
|
}
|
package/node.test.js
CHANGED
|
@@ -1501,6 +1501,9 @@ var $;
|
|
|
1501
1501
|
if (typeof json === 'string') {
|
|
1502
1502
|
return $mol_tree2.data(json, [], span);
|
|
1503
1503
|
}
|
|
1504
|
+
if (typeof json.toJSON === 'function') {
|
|
1505
|
+
return $mol_tree2_from_json(json.toJSON());
|
|
1506
|
+
}
|
|
1504
1507
|
if (Array.isArray(json)) {
|
|
1505
1508
|
const sub = json.map(json => $mol_tree2_from_json(json, span));
|
|
1506
1509
|
return new $mol_tree2('/', '', sub, span);
|
|
@@ -1512,9 +1515,6 @@ var $;
|
|
|
1512
1515
|
if (json instanceof Date) {
|
|
1513
1516
|
return new $mol_tree2('', json.toISOString(), [], span);
|
|
1514
1517
|
}
|
|
1515
|
-
if (typeof json.toJSON === 'function') {
|
|
1516
|
-
return $mol_tree2_from_json(json.toJSON());
|
|
1517
|
-
}
|
|
1518
1518
|
if (json.toString !== Object.prototype.toString) {
|
|
1519
1519
|
return $mol_tree2.data(json.toString(), [], span);
|
|
1520
1520
|
}
|