mol_plot_all 1.2.845 → 1.2.847
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.audit.js +1 -1
- package/node.deps.json +1 -1
- package/node.js +7 -5
- package/node.js.map +1 -1
- package/node.mjs +7 -5
- package/node.test.js +46 -347
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.audit.js +1 -1
- package/web.deps.json +1 -1
- package/web.js +3 -1
- package/web.js.map +1 -1
- package/web.mjs +3 -1
- package/web.test.js +34 -164
- package/web.test.js.map +1 -1
package/node.js
CHANGED
|
@@ -1137,7 +1137,7 @@ var $;
|
|
|
1137
1137
|
};
|
|
1138
1138
|
}
|
|
1139
1139
|
error(message, Class = Error) {
|
|
1140
|
-
return new Class(`${message}${this}`);
|
|
1140
|
+
return new Class(`${message} (${this})`);
|
|
1141
1141
|
}
|
|
1142
1142
|
span(row, col, length) {
|
|
1143
1143
|
return new $mol_span(this.uri, this.source, row, col, length);
|
|
@@ -1152,11 +1152,11 @@ var $;
|
|
|
1152
1152
|
if (end < 0)
|
|
1153
1153
|
end += len;
|
|
1154
1154
|
if (begin < 0 || begin > len)
|
|
1155
|
-
this.$.$mol_fail(`Begin value '${begin}' out of range
|
|
1155
|
+
this.$.$mol_fail(this.error(`Begin value '${begin}' out of range`, RangeError));
|
|
1156
1156
|
if (end < 0 || end > len)
|
|
1157
|
-
this.$.$mol_fail(`End value '${end}' out of range
|
|
1157
|
+
this.$.$mol_fail(this.error(`End value '${end}' out of range`, RangeError));
|
|
1158
1158
|
if (end < begin)
|
|
1159
|
-
this.$.$mol_fail(`End value '${end}' can't be less than begin value
|
|
1159
|
+
this.$.$mol_fail(this.error(`End value '${end}' can't be less than begin value`, RangeError));
|
|
1160
1160
|
return this.span(this.row, this.col + begin, end - begin);
|
|
1161
1161
|
}
|
|
1162
1162
|
}
|
|
@@ -2203,7 +2203,9 @@ var $;
|
|
|
2203
2203
|
var $;
|
|
2204
2204
|
(function ($) {
|
|
2205
2205
|
function $mol_wire_solid() {
|
|
2206
|
-
|
|
2206
|
+
let current = $mol_wire_auto();
|
|
2207
|
+
if (current.temp)
|
|
2208
|
+
current = current.host;
|
|
2207
2209
|
if (current.reap !== nothing) {
|
|
2208
2210
|
current?.sub_on(sub, sub.data.length);
|
|
2209
2211
|
}
|