mol_plot_all 1.2.845 → 1.2.846

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 CHANGED
@@ -1 +1 @@
1
- console.info("Audit passed")
1
+ console.info( '%c ▫ $mol_build ▫ Audit passed', 'color:forestgreen; font-weight:bolder' )
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
  }