5etools-utils 0.5.1 → 0.5.2

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.
Files changed (2) hide show
  1. package/lib/TestData.js +2 -2
  2. package/package.json +1 -1
package/lib/TestData.js CHANGED
@@ -59,7 +59,7 @@ class DataTesterBase {
59
59
 
60
60
  static addMessageBoundary () {
61
61
  if (!this._MESSAGE.trim()) return;
62
- if (this._MESSAGE.trim().slice(-5) === "\n---\n") return;
62
+ if (this._MESSAGE.slice(-5) === "\n---\n") return;
63
63
  this._MESSAGE = this._MESSAGE.trimEnd();
64
64
  this._MESSAGE += `\n---\n`;
65
65
  }
@@ -137,7 +137,7 @@ class EscapeCharacterCheck extends DataTesterBase {
137
137
  });
138
138
  if (this._errors.length) {
139
139
  this._addMessage(`Unwanted escape characters in ${file}! See below:\n`);
140
- this._addMessage(`\t${this._errors.join("\n\t")}`);
140
+ this._addMessage(`\t${this._errors.join("\n\t")}\n`);
141
141
  }
142
142
  }
143
143
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "5etools-utils",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Shared utilities for the 5etools ecosystem.",
5
5
  "type": "module",
6
6
  "main": "lib/Api.js",