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.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 ${this}`);
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 ${this}`);
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 ${this}`);
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
- const current = $mol_wire_auto();
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
  }