5etools-utils 0.5.0 → 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.
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.0",
3
+ "version": "0.5.2",
4
4
  "description": "Shared utilities for the 5etools ecosystem.",
5
5
  "type": "module",
6
6
  "main": "lib/Api.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.6",
3
+ "version": "1.10.7",
4
4
  "type": "object",
5
5
  "description": "Homebrew for 5etools. Should include arrays titled similarly to the main site data, e.g. `spell` or `class`",
6
6
  "$defs": {
@@ -518,6 +518,9 @@
518
518
  "makebrewCreatureTrait": {
519
519
  "$ref": "makebrew-creature.json#/properties/makebrewCreatureTrait"
520
520
  },
521
+ "makebrewCreatureAction": {
522
+ "$ref": "makebrew-creature.json#/properties/makebrewCreatureAction"
523
+ },
521
524
  "reducedItemProperty": {
522
525
  "$ref": "makecards.json#/properties/reducedItemProperty"
523
526
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "makebrew-creature.json",
4
- "version": "1.1.2",
4
+ "version": "1.1.3",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "#makebrewCreatureTrait": {
@@ -34,6 +34,34 @@
34
34
  "entries"
35
35
  ]
36
36
  }
37
+ },
38
+ "makebrewCreatureAction": {
39
+ "description": "Additional action templates which can be used in the homebrew builder.",
40
+ "type": "array",
41
+ "minItems": 1,
42
+ "uniqueItems": true,
43
+ "items": {
44
+ "type": "object",
45
+ "properties": {
46
+ "name": {
47
+ "type": "string"
48
+ },
49
+ "source": {
50
+ "type": "string"
51
+ },
52
+ "entries": {
53
+ "type": "array",
54
+ "items": {
55
+ "$ref": "entry.json"
56
+ }
57
+ }
58
+ },
59
+ "required": [
60
+ "name",
61
+ "source",
62
+ "entries"
63
+ ]
64
+ }
37
65
  }
38
66
  },
39
67
  "additionalProperties": false
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.6",
3
+ "version": "1.10.7",
4
4
  "type": "object",
5
5
  "description": "Homebrew for 5etools. Should include arrays titled similarly to the main site data, e.g. `spell` or `class`",
6
6
  "$defs": {
@@ -516,6 +516,9 @@
516
516
  "makebrewCreatureTrait": {
517
517
  "$ref": "makebrew-creature.json#/properties/makebrewCreatureTrait"
518
518
  },
519
+ "makebrewCreatureAction": {
520
+ "$ref": "makebrew-creature.json#/properties/makebrewCreatureAction"
521
+ },
519
522
  "reducedItemProperty": {
520
523
  "$ref": "makecards.json#/properties/reducedItemProperty"
521
524
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "makebrew-creature.json",
4
- "version": "1.1.2",
4
+ "version": "1.1.3",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "#makebrewCreatureTrait": {
@@ -34,6 +34,34 @@
34
34
  "entries"
35
35
  ]
36
36
  }
37
+ },
38
+ "makebrewCreatureAction": {
39
+ "description": "Additional action templates which can be used in the homebrew builder.",
40
+ "type": "array",
41
+ "minItems": 1,
42
+ "uniqueItems": true,
43
+ "items": {
44
+ "type": "object",
45
+ "properties": {
46
+ "name": {
47
+ "type": "string"
48
+ },
49
+ "source": {
50
+ "type": "string"
51
+ },
52
+ "entries": {
53
+ "type": "array",
54
+ "items": {
55
+ "$ref": "entry.json"
56
+ }
57
+ }
58
+ },
59
+ "required": [
60
+ "name",
61
+ "source",
62
+ "entries"
63
+ ]
64
+ }
37
65
  }
38
66
  },
39
67
  "additionalProperties": false
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.6",
3
+ "version": "1.10.7",
4
4
  "type": "object",
5
5
  "description": "Homebrew for 5etools. Should include arrays titled similarly to the main site data, e.g. `spell` or `class`",
6
6
  "$defs": {
@@ -518,6 +518,9 @@
518
518
  "makebrewCreatureTrait": {
519
519
  "$ref": "makebrew-creature.json#/properties/makebrewCreatureTrait"
520
520
  },
521
+ "makebrewCreatureAction": {
522
+ "$ref": "makebrew-creature.json#/properties/makebrewCreatureAction"
523
+ },
521
524
  "reducedItemProperty": {
522
525
  "$ref": "makecards.json#/properties/reducedItemProperty"
523
526
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "makebrew-creature.json",
4
- "version": "1.1.2",
4
+ "version": "1.1.3",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "#makebrewCreatureTrait": {
@@ -33,6 +33,33 @@
33
33
  "entries"
34
34
  ]
35
35
  }
36
+ },
37
+ "makebrewCreatureAction": {
38
+ "description": "Additional action templates which can be used in the homebrew builder.",
39
+ "type": "array",
40
+ "minItems": 1,
41
+ "uniqueItems": true,
42
+ "items": {
43
+ "type": "object",
44
+ "properties": {
45
+ "name": {
46
+ "type": "string"
47
+ },
48
+ "source": {
49
+ "type": "string"
50
+ },
51
+ "entries": {
52
+ "type": "array",
53
+ "items": {
54
+ "$ref": "entry.json"
55
+ }
56
+ }
57
+ },
58
+ "required": [
59
+ "name",
60
+ "entries"
61
+ ]
62
+ }
36
63
  }
37
64
  },
38
65
  "additionalProperties": false
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.6",
3
+ "version": "1.10.7",
4
4
  "type": "object",
5
5
  "description": "Homebrew for 5etools. Should include arrays titled similarly to the main site data, e.g. `spell` or `class`",
6
6
  "$defs": {
@@ -516,6 +516,9 @@
516
516
  "makebrewCreatureTrait": {
517
517
  "$ref": "makebrew-creature.json#/properties/makebrewCreatureTrait"
518
518
  },
519
+ "makebrewCreatureAction": {
520
+ "$ref": "makebrew-creature.json#/properties/makebrewCreatureAction"
521
+ },
519
522
  "reducedItemProperty": {
520
523
  "$ref": "makecards.json#/properties/reducedItemProperty"
521
524
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "makebrew-creature.json",
4
- "version": "1.1.2",
4
+ "version": "1.1.3",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "#makebrewCreatureTrait": {
@@ -33,6 +33,33 @@
33
33
  "entries"
34
34
  ]
35
35
  }
36
+ },
37
+ "makebrewCreatureAction": {
38
+ "description": "Additional action templates which can be used in the homebrew builder.",
39
+ "type": "array",
40
+ "minItems": 1,
41
+ "uniqueItems": true,
42
+ "items": {
43
+ "type": "object",
44
+ "properties": {
45
+ "name": {
46
+ "type": "string"
47
+ },
48
+ "source": {
49
+ "type": "string"
50
+ },
51
+ "entries": {
52
+ "type": "array",
53
+ "items": {
54
+ "$ref": "entry.json"
55
+ }
56
+ }
57
+ },
58
+ "required": [
59
+ "name",
60
+ "entries"
61
+ ]
62
+ }
36
63
  }
37
64
  },
38
65
  "additionalProperties": false