mol_wire_dom 0.0.823 → 0.0.825

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
@@ -1102,7 +1102,7 @@ var $;
1102
1102
  };
1103
1103
  }
1104
1104
  error(message, Class = Error) {
1105
- return new Class(`${message}${this}`);
1105
+ return new Class(`${message} (${this})`);
1106
1106
  }
1107
1107
  span(row, col, length) {
1108
1108
  return new $mol_span(this.uri, this.source, row, col, length);
@@ -1117,11 +1117,11 @@ var $;
1117
1117
  if (end < 0)
1118
1118
  end += len;
1119
1119
  if (begin < 0 || begin > len)
1120
- this.$.$mol_fail(`Begin value '${begin}' out of range ${this}`);
1120
+ this.$.$mol_fail(this.error(`Begin value '${begin}' out of range`, RangeError));
1121
1121
  if (end < 0 || end > len)
1122
- this.$.$mol_fail(`End value '${end}' out of range ${this}`);
1122
+ this.$.$mol_fail(this.error(`End value '${end}' out of range`, RangeError));
1123
1123
  if (end < begin)
1124
- this.$.$mol_fail(`End value '${end}' can't be less than begin value ${this}`);
1124
+ this.$.$mol_fail(this.error(`End value '${end}' can't be less than begin value`, RangeError));
1125
1125
  return this.span(this.row, this.col + begin, end - begin);
1126
1126
  }
1127
1127
  }