mol_wire_lib 1.0.838 → 1.0.840

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
@@ -1044,7 +1044,7 @@ var $;
1044
1044
  };
1045
1045
  }
1046
1046
  error(message, Class = Error) {
1047
- return new Class(`${message}${this}`);
1047
+ return new Class(`${message} (${this})`);
1048
1048
  }
1049
1049
  span(row, col, length) {
1050
1050
  return new $mol_span(this.uri, this.source, row, col, length);
@@ -1059,11 +1059,11 @@ var $;
1059
1059
  if (end < 0)
1060
1060
  end += len;
1061
1061
  if (begin < 0 || begin > len)
1062
- this.$.$mol_fail(`Begin value '${begin}' out of range ${this}`);
1062
+ this.$.$mol_fail(this.error(`Begin value '${begin}' out of range`, RangeError));
1063
1063
  if (end < 0 || end > len)
1064
- this.$.$mol_fail(`End value '${end}' out of range ${this}`);
1064
+ this.$.$mol_fail(this.error(`End value '${end}' out of range`, RangeError));
1065
1065
  if (end < begin)
1066
- this.$.$mol_fail(`End value '${end}' can't be less than begin value ${this}`);
1066
+ this.$.$mol_fail(this.error(`End value '${end}' can't be less than begin value`, RangeError));
1067
1067
  return this.span(this.row, this.col + begin, end - begin);
1068
1068
  }
1069
1069
  }