5etools-utils 0.17.16 → 0.17.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "5etools-utils",
3
- "version": "0.17.16",
3
+ "version": "0.17.17",
4
4
  "description": "Shared utilities for the 5etools ecosystem.",
5
5
  "type": "module",
6
6
  "main": "lib/Api.js",
@@ -1,269 +1,14 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "fluff-races.json",
4
- "version": "2.3.0",
4
+ "version": "2.4.0",
5
5
  "type": "object",
6
- "$defs": {
7
- "raceFluffMetaData": {
8
- "type": "object",
9
- "properties": {
10
- "name": {
11
- "type": "string"
12
- },
13
- "preserveName": {
14
- "const": true
15
- },
16
- "source": {
17
- "$ref": "util.json#/$defs/source"
18
- },
19
- "images": {
20
- "oneOf": [
21
- {
22
- "type": "array",
23
- "items": {
24
- "$ref": "entry.json#/$defs/entryImage"
25
- },
26
- "minItems": 1,
27
- "uniqueItems": true
28
- },
29
- {
30
- "type": "null"
31
- }
32
- ]
33
- },
34
- "entries": {
35
- "type": "array",
36
- "items": {
37
- "$ref": "entry.json"
38
- }
39
- },
40
- "page": {
41
- "$ref": "util.json#/$defs/page"
42
- }
43
- },
44
- "additionalProperties": false
45
- },
46
- "raceFluffMeta": {
47
- "anyOf": [
48
- {
49
- "type": "object",
50
- "properties": {
51
- "name": {
52
- "type": "string"
53
- },
54
- "preserveName": {
55
- "const": true
56
- },
57
- "source": {
58
- "$ref": "util.json#/$defs/source"
59
- },
60
- "images": {
61
- "oneOf": [
62
- {
63
- "type": "array",
64
- "items": {
65
- "$ref": "entry.json#/$defs/entryImage"
66
- },
67
- "minItems": 1,
68
- "uniqueItems": true
69
- },
70
- {
71
- "type": "null"
72
- }
73
- ]
74
- },
75
- "entries": {
76
- "type": "array",
77
- "items": {
78
- "$ref": "entry.json"
79
- }
80
- },
81
- "page": {
82
- "$ref": "util.json#/$defs/page"
83
- }
84
- },
85
- "additionalProperties": false,
86
- "required": [
87
- "name",
88
- "source",
89
- "entries"
90
- ]
91
- },
92
- {
93
- "type": "object",
94
- "properties": {
95
- "name": {
96
- "type": "string"
97
- },
98
- "preserveName": {
99
- "const": true
100
- },
101
- "source": {
102
- "$ref": "util.json#/$defs/source"
103
- },
104
- "images": {
105
- "oneOf": [
106
- {
107
- "type": "array",
108
- "items": {
109
- "$ref": "entry.json#/$defs/entryImage"
110
- },
111
- "minItems": 1,
112
- "uniqueItems": true
113
- },
114
- {
115
- "type": "null"
116
- }
117
- ]
118
- },
119
- "entries": {
120
- "type": "array",
121
- "items": {
122
- "$ref": "entry.json"
123
- }
124
- },
125
- "page": {
126
- "$ref": "util.json#/$defs/page"
127
- },
128
- "_copy": {
129
- "$ref": "util-copy.json#/$defs/copyBlock_copy_generic"
130
- }
131
- },
132
- "additionalProperties": false,
133
- "required": [
134
- "_copy"
135
- ]
136
- }
137
- ]
138
- },
139
- "raceFluffData": {
140
- "type": "object",
141
- "properties": {
142
- "name": {
143
- "type": "string"
144
- },
145
- "source": {
146
- "$ref": "util.json#/$defs/source"
147
- },
148
- "images": {
149
- "oneOf": [
150
- {
151
- "type": "array",
152
- "items": {
153
- "$ref": "entry.json#/$defs/entryImage"
154
- }
155
- },
156
- {
157
- "type": "null"
158
- }
159
- ]
160
- },
161
- "entries": {
162
- "type": "array",
163
- "items": {
164
- "$ref": "entry.json"
165
- }
166
- }
167
- },
168
- "additionalProperties": false
169
- },
170
- "raceFluff": {
171
- "anyOf": [
172
- {
173
- "type": "object",
174
- "properties": {
175
- "name": {
176
- "type": "string"
177
- },
178
- "source": {
179
- "$ref": "util.json#/$defs/source"
180
- },
181
- "images": {
182
- "oneOf": [
183
- {
184
- "type": "array",
185
- "items": {
186
- "$ref": "entry.json#/$defs/entryImage"
187
- }
188
- },
189
- {
190
- "type": "null"
191
- }
192
- ]
193
- },
194
- "entries": {
195
- "type": "array",
196
- "items": {
197
- "$ref": "entry.json"
198
- }
199
- }
200
- },
201
- "additionalProperties": false,
202
- "required": [
203
- "name",
204
- "source"
205
- ]
206
- },
207
- {
208
- "type": "object",
209
- "$comment": "This is a custom pre-processor tag, which merges together the array of objects into one. This allows proper inheritance, which JSON schema don't really do.",
210
- "properties": {
211
- "name": {
212
- "type": "string"
213
- },
214
- "source": {
215
- "$ref": "util.json#/$defs/source"
216
- },
217
- "images": {
218
- "oneOf": [
219
- {
220
- "type": "array",
221
- "items": {
222
- "$ref": "entry.json#/$defs/entryImage"
223
- }
224
- },
225
- {
226
- "type": "null"
227
- }
228
- ]
229
- },
230
- "entries": {
231
- "type": "array",
232
- "items": {
233
- "$ref": "entry.json"
234
- }
235
- },
236
- "_copy": {
237
- "$ref": "util-copy.json#/$defs/copyBlock_copy_generic"
238
- }
239
- },
240
- "additionalProperties": false,
241
- "required": [
242
- "_copy"
243
- ]
244
- }
245
- ]
246
- }
247
- },
248
6
  "properties": {
249
- "raceFluff": {
250
- "type": "array",
251
- "uniqueItems": true,
252
- "minItems": 1,
253
- "items": {
254
- "$ref": "#/$defs/raceFluff"
255
- }
256
- },
257
- "raceFluffMeta": {
258
- "type": "array",
259
- "uniqueItems": true,
260
- "minItems": 1,
261
- "items": {
262
- "$ref": "#/$defs/raceFluffMeta"
263
- }
264
- },
265
7
  "_meta": {
266
8
  "$ref": "util.json#/$defs/metaBlock"
9
+ },
10
+ "raceFluff": {
11
+ "$ref": "util.json#/$defs/genericFluffArray"
267
12
  }
268
13
  },
269
14
  "additionalProperties": false
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.14.3",
3
+ "version": "1.15.0",
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": {
@@ -762,9 +762,6 @@
762
762
  "raceFluff": {
763
763
  "$ref": "fluff-races.json#/properties/raceFluff"
764
764
  },
765
- "raceFluffMeta": {
766
- "$ref": "fluff-races.json#/properties/raceFluffMeta"
767
- },
768
765
  "recipe": {
769
766
  "$ref": "recipes.json#/properties/recipe"
770
767
  },
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "util-copy.json",
4
4
  "title": "Util: Copy",
5
- "version": "1.1.3",
5
+ "version": "1.1.4",
6
6
  "$defs": {
7
7
  "_mod_renameArr_rename": {
8
8
  "type": "object",
@@ -1271,7 +1271,6 @@
1271
1271
  "foundryPsionicDisciplineActive",
1272
1272
  "foundryRace",
1273
1273
  "foundryRaceFeature",
1274
- "raceFluffMeta",
1275
1274
  "foundryReward",
1276
1275
  "foundryVehicleUpgrade",
1277
1276
  "spellList",
@@ -1,269 +1,14 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "fluff-races.json",
4
- "version": "2.3.0",
4
+ "version": "2.4.0",
5
5
  "type": "object",
6
- "$defs": {
7
- "raceFluffMetaData": {
8
- "type": "object",
9
- "properties": {
10
- "name": {
11
- "type": "string"
12
- },
13
- "preserveName": {
14
- "const": true
15
- },
16
- "source": {
17
- "$ref": "util.json#/$defs/source"
18
- },
19
- "images": {
20
- "oneOf": [
21
- {
22
- "type": "array",
23
- "items": {
24
- "$ref": "entry.json#/$defs/entryImage"
25
- },
26
- "minItems": 1,
27
- "uniqueItems": true
28
- },
29
- {
30
- "type": "null"
31
- }
32
- ]
33
- },
34
- "entries": {
35
- "type": "array",
36
- "items": {
37
- "$ref": "entry.json"
38
- }
39
- },
40
- "page": {
41
- "$ref": "util.json#/$defs/page"
42
- }
43
- },
44
- "additionalProperties": false
45
- },
46
- "raceFluffMeta": {
47
- "anyOf": [
48
- {
49
- "type": "object",
50
- "properties": {
51
- "name": {
52
- "type": "string"
53
- },
54
- "preserveName": {
55
- "const": true
56
- },
57
- "source": {
58
- "$ref": "util.json#/$defs/source"
59
- },
60
- "images": {
61
- "oneOf": [
62
- {
63
- "type": "array",
64
- "items": {
65
- "$ref": "entry.json#/$defs/entryImage"
66
- },
67
- "minItems": 1,
68
- "uniqueItems": true
69
- },
70
- {
71
- "type": "null"
72
- }
73
- ]
74
- },
75
- "entries": {
76
- "type": "array",
77
- "items": {
78
- "$ref": "entry.json"
79
- }
80
- },
81
- "page": {
82
- "$ref": "util.json#/$defs/page"
83
- }
84
- },
85
- "additionalProperties": false,
86
- "required": [
87
- "name",
88
- "source",
89
- "entries"
90
- ]
91
- },
92
- {
93
- "type": "object",
94
- "properties": {
95
- "name": {
96
- "type": "string"
97
- },
98
- "preserveName": {
99
- "const": true
100
- },
101
- "source": {
102
- "$ref": "util.json#/$defs/source"
103
- },
104
- "images": {
105
- "oneOf": [
106
- {
107
- "type": "array",
108
- "items": {
109
- "$ref": "entry.json#/$defs/entryImage"
110
- },
111
- "minItems": 1,
112
- "uniqueItems": true
113
- },
114
- {
115
- "type": "null"
116
- }
117
- ]
118
- },
119
- "entries": {
120
- "type": "array",
121
- "items": {
122
- "$ref": "entry.json"
123
- }
124
- },
125
- "page": {
126
- "$ref": "util.json#/$defs/page"
127
- },
128
- "_copy": {
129
- "$ref": "util-copy.json#/$defs/copyBlock_copy_generic"
130
- }
131
- },
132
- "additionalProperties": false,
133
- "required": [
134
- "_copy"
135
- ]
136
- }
137
- ]
138
- },
139
- "raceFluffData": {
140
- "type": "object",
141
- "properties": {
142
- "name": {
143
- "type": "string"
144
- },
145
- "source": {
146
- "$ref": "util.json#/$defs/source"
147
- },
148
- "images": {
149
- "oneOf": [
150
- {
151
- "type": "array",
152
- "items": {
153
- "$ref": "entry.json#/$defs/entryImage"
154
- }
155
- },
156
- {
157
- "type": "null"
158
- }
159
- ]
160
- },
161
- "entries": {
162
- "type": "array",
163
- "items": {
164
- "$ref": "entry.json"
165
- }
166
- }
167
- },
168
- "additionalProperties": false
169
- },
170
- "raceFluff": {
171
- "anyOf": [
172
- {
173
- "type": "object",
174
- "properties": {
175
- "name": {
176
- "type": "string"
177
- },
178
- "source": {
179
- "$ref": "util.json#/$defs/source"
180
- },
181
- "images": {
182
- "oneOf": [
183
- {
184
- "type": "array",
185
- "items": {
186
- "$ref": "entry.json#/$defs/entryImage"
187
- }
188
- },
189
- {
190
- "type": "null"
191
- }
192
- ]
193
- },
194
- "entries": {
195
- "type": "array",
196
- "items": {
197
- "$ref": "entry.json"
198
- }
199
- }
200
- },
201
- "additionalProperties": false,
202
- "required": [
203
- "name",
204
- "source"
205
- ]
206
- },
207
- {
208
- "type": "object",
209
- "$comment": "This is a custom pre-processor tag, which merges together the array of objects into one. This allows proper inheritance, which JSON schema don't really do.",
210
- "properties": {
211
- "name": {
212
- "type": "string"
213
- },
214
- "source": {
215
- "$ref": "util.json#/$defs/source"
216
- },
217
- "images": {
218
- "oneOf": [
219
- {
220
- "type": "array",
221
- "items": {
222
- "$ref": "entry.json#/$defs/entryImage"
223
- }
224
- },
225
- {
226
- "type": "null"
227
- }
228
- ]
229
- },
230
- "entries": {
231
- "type": "array",
232
- "items": {
233
- "$ref": "entry.json"
234
- }
235
- },
236
- "_copy": {
237
- "$ref": "util-copy.json#/$defs/copyBlock_copy_generic"
238
- }
239
- },
240
- "additionalProperties": false,
241
- "required": [
242
- "_copy"
243
- ]
244
- }
245
- ]
246
- }
247
- },
248
6
  "properties": {
249
- "raceFluff": {
250
- "type": "array",
251
- "uniqueItems": true,
252
- "minItems": 1,
253
- "items": {
254
- "$ref": "#/$defs/raceFluff"
255
- }
256
- },
257
- "raceFluffMeta": {
258
- "type": "array",
259
- "uniqueItems": true,
260
- "minItems": 1,
261
- "items": {
262
- "$ref": "#/$defs/raceFluffMeta"
263
- }
264
- },
265
7
  "_meta": {
266
8
  "$ref": "util.json#/$defs/metaBlock"
9
+ },
10
+ "raceFluff": {
11
+ "$ref": "util.json#/$defs/genericFluffArray"
267
12
  }
268
13
  },
269
14
  "additionalProperties": false
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.14.3",
3
+ "version": "1.15.0",
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": {
@@ -762,9 +762,6 @@
762
762
  "raceFluff": {
763
763
  "$ref": "fluff-races.json#/properties/raceFluff"
764
764
  },
765
- "raceFluffMeta": {
766
- "$ref": "fluff-races.json#/properties/raceFluffMeta"
767
- },
768
765
  "recipe": {
769
766
  "$ref": "recipes.json#/properties/recipe"
770
767
  },
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "util-copy.json",
4
4
  "title": "Util: Copy",
5
- "version": "1.1.3",
5
+ "version": "1.1.4",
6
6
  "$defs": {
7
7
  "_mod_renameArr_rename": {
8
8
  "type": "object",
@@ -1271,7 +1271,6 @@
1271
1271
  "foundryPsionicDisciplineActive",
1272
1272
  "foundryRace",
1273
1273
  "foundryRaceFeature",
1274
- "raceFluffMeta",
1275
1274
  "foundryReward",
1276
1275
  "foundryVehicleUpgrade",
1277
1276
  "spellList",