5etools-utils 0.17.14 → 0.17.16

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.14",
3
+ "version": "0.17.16",
4
4
  "description": "Shared utilities for the 5etools ecosystem.",
5
5
  "type": "module",
6
6
  "main": "lib/Api.js",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "cultsboons.json",
4
- "version": "1.3.0",
4
+ "version": "1.4.0",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "cultData": {
@@ -343,17 +343,8 @@
343
343
  "Demonic"
344
344
  ]
345
345
  },
346
- "ability": {
347
- "type": "object",
348
- "properties": {
349
- "entry": {
350
- "$ref": "entry.json"
351
- }
352
- },
353
- "required": [
354
- "entry"
355
- ],
356
- "additionalProperties": false
346
+ "abilityEntry": {
347
+ "$ref": "entry.json"
357
348
  },
358
349
  "signatureSpells": {
359
350
  "type": "object",
@@ -427,17 +418,8 @@
427
418
  "Demonic"
428
419
  ]
429
420
  },
430
- "ability": {
431
- "type": "object",
432
- "properties": {
433
- "entry": {
434
- "$ref": "entry.json"
435
- }
436
- },
437
- "required": [
438
- "entry"
439
- ],
440
- "additionalProperties": false
421
+ "abilityEntry": {
422
+ "$ref": "entry.json"
441
423
  },
442
424
  "signatureSpells": {
443
425
  "type": "object",
@@ -515,17 +497,8 @@
515
497
  "Demonic"
516
498
  ]
517
499
  },
518
- "ability": {
519
- "type": "object",
520
- "properties": {
521
- "entry": {
522
- "$ref": "entry.json"
523
- }
524
- },
525
- "required": [
526
- "entry"
527
- ],
528
- "additionalProperties": false
500
+ "abilityEntry": {
501
+ "$ref": "entry.json"
529
502
  },
530
503
  "signatureSpells": {
531
504
  "type": "object",
@@ -1,9 +1,141 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "fluff-races.json",
4
- "version": "2.2.0",
4
+ "version": "2.3.0",
5
5
  "type": "object",
6
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
+ },
7
139
  "raceFluffData": {
8
140
  "type": "object",
9
141
  "properties": {
@@ -123,14 +255,11 @@
123
255
  }
124
256
  },
125
257
  "raceFluffMeta": {
126
- "type": "object",
127
- "properties": {
128
- "uncommon": {
129
- "$ref": "entry.json"
130
- },
131
- "monstrous": {
132
- "$ref": "entry.json"
133
- }
258
+ "type": "array",
259
+ "uniqueItems": true,
260
+ "minItems": 1,
261
+ "items": {
262
+ "$ref": "#/$defs/raceFluffMeta"
134
263
  }
135
264
  },
136
265
  "_meta": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.14.2",
3
+ "version": "1.14.3",
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": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "rewards.json",
4
- "version": "1.3.1",
4
+ "version": "1.4.0",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "rewardData": {
@@ -42,17 +42,8 @@
42
42
  "Piety Trait"
43
43
  ]
44
44
  },
45
- "ability": {
46
- "type": "object",
47
- "properties": {
48
- "entry": {
49
- "$ref": "entry.json"
50
- }
51
- },
52
- "required": [
53
- "entry"
54
- ],
55
- "additionalProperties": false
45
+ "abilityEntry": {
46
+ "$ref": "entry.json"
56
47
  },
57
48
  "rarity": {
58
49
  "$ref": "util.json#/$defs/rarity"
@@ -147,17 +138,8 @@
147
138
  "Piety Trait"
148
139
  ]
149
140
  },
150
- "ability": {
151
- "type": "object",
152
- "properties": {
153
- "entry": {
154
- "$ref": "entry.json"
155
- }
156
- },
157
- "required": [
158
- "entry"
159
- ],
160
- "additionalProperties": false
141
+ "abilityEntry": {
142
+ "$ref": "entry.json"
161
143
  },
162
144
  "rarity": {
163
145
  "$ref": "util.json#/$defs/rarity"
@@ -256,17 +238,8 @@
256
238
  "Piety Trait"
257
239
  ]
258
240
  },
259
- "ability": {
260
- "type": "object",
261
- "properties": {
262
- "entry": {
263
- "$ref": "entry.json"
264
- }
265
- },
266
- "required": [
267
- "entry"
268
- ],
269
- "additionalProperties": false
241
+ "abilityEntry": {
242
+ "$ref": "entry.json"
270
243
  },
271
244
  "rarity": {
272
245
  "$ref": "util.json#/$defs/rarity"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "cultsboons.json",
4
- "version": "1.3.0",
4
+ "version": "1.4.0",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "cultData": {
@@ -343,17 +343,8 @@
343
343
  "Demonic"
344
344
  ]
345
345
  },
346
- "ability": {
347
- "type": "object",
348
- "properties": {
349
- "entry": {
350
- "$ref": "entry.json"
351
- }
352
- },
353
- "required": [
354
- "entry"
355
- ],
356
- "additionalProperties": false
346
+ "abilityEntry": {
347
+ "$ref": "entry.json"
357
348
  },
358
349
  "signatureSpells": {
359
350
  "type": "object",
@@ -427,17 +418,8 @@
427
418
  "Demonic"
428
419
  ]
429
420
  },
430
- "ability": {
431
- "type": "object",
432
- "properties": {
433
- "entry": {
434
- "$ref": "entry.json"
435
- }
436
- },
437
- "required": [
438
- "entry"
439
- ],
440
- "additionalProperties": false
421
+ "abilityEntry": {
422
+ "$ref": "entry.json"
441
423
  },
442
424
  "signatureSpells": {
443
425
  "type": "object",
@@ -515,17 +497,8 @@
515
497
  "Demonic"
516
498
  ]
517
499
  },
518
- "ability": {
519
- "type": "object",
520
- "properties": {
521
- "entry": {
522
- "$ref": "entry.json"
523
- }
524
- },
525
- "required": [
526
- "entry"
527
- ],
528
- "additionalProperties": false
500
+ "abilityEntry": {
501
+ "$ref": "entry.json"
529
502
  },
530
503
  "signatureSpells": {
531
504
  "type": "object",
@@ -1,9 +1,141 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "fluff-races.json",
4
- "version": "2.2.0",
4
+ "version": "2.3.0",
5
5
  "type": "object",
6
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
+ },
7
139
  "raceFluffData": {
8
140
  "type": "object",
9
141
  "properties": {
@@ -123,14 +255,11 @@
123
255
  }
124
256
  },
125
257
  "raceFluffMeta": {
126
- "type": "object",
127
- "properties": {
128
- "uncommon": {
129
- "$ref": "entry.json"
130
- },
131
- "monstrous": {
132
- "$ref": "entry.json"
133
- }
258
+ "type": "array",
259
+ "uniqueItems": true,
260
+ "minItems": 1,
261
+ "items": {
262
+ "$ref": "#/$defs/raceFluffMeta"
134
263
  }
135
264
  },
136
265
  "_meta": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.14.2",
3
+ "version": "1.14.3",
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": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "rewards.json",
4
- "version": "1.3.1",
4
+ "version": "1.4.0",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "rewardData": {
@@ -42,17 +42,8 @@
42
42
  "Piety Trait"
43
43
  ]
44
44
  },
45
- "ability": {
46
- "type": "object",
47
- "properties": {
48
- "entry": {
49
- "$ref": "entry.json"
50
- }
51
- },
52
- "required": [
53
- "entry"
54
- ],
55
- "additionalProperties": false
45
+ "abilityEntry": {
46
+ "$ref": "entry.json"
56
47
  },
57
48
  "rarity": {
58
49
  "$ref": "util.json#/$defs/rarity"
@@ -147,17 +138,8 @@
147
138
  "Piety Trait"
148
139
  ]
149
140
  },
150
- "ability": {
151
- "type": "object",
152
- "properties": {
153
- "entry": {
154
- "$ref": "entry.json"
155
- }
156
- },
157
- "required": [
158
- "entry"
159
- ],
160
- "additionalProperties": false
141
+ "abilityEntry": {
142
+ "$ref": "entry.json"
161
143
  },
162
144
  "rarity": {
163
145
  "$ref": "util.json#/$defs/rarity"
@@ -256,17 +238,8 @@
256
238
  "Piety Trait"
257
239
  ]
258
240
  },
259
- "ability": {
260
- "type": "object",
261
- "properties": {
262
- "entry": {
263
- "$ref": "entry.json"
264
- }
265
- },
266
- "required": [
267
- "entry"
268
- ],
269
- "additionalProperties": false
241
+ "abilityEntry": {
242
+ "$ref": "entry.json"
270
243
  },
271
244
  "rarity": {
272
245
  "$ref": "util.json#/$defs/rarity"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "cultsboons.json",
4
- "version": "1.3.0",
4
+ "version": "1.4.0",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "cultData": {
@@ -280,17 +280,8 @@
280
280
  "Demonic"
281
281
  ]
282
282
  },
283
- "ability": {
284
- "type": "object",
285
- "properties": {
286
- "entry": {
287
- "$ref": "entry.json"
288
- }
289
- },
290
- "required": [
291
- "entry"
292
- ],
293
- "additionalProperties": false
283
+ "abilityEntry": {
284
+ "$ref": "entry.json"
294
285
  },
295
286
  "signatureSpells": {
296
287
  "type": "object",
@@ -343,17 +334,8 @@
343
334
  "Demonic"
344
335
  ]
345
336
  },
346
- "ability": {
347
- "type": "object",
348
- "properties": {
349
- "entry": {
350
- "$ref": "entry.json"
351
- }
352
- },
353
- "required": [
354
- "entry"
355
- ],
356
- "additionalProperties": false
337
+ "abilityEntry": {
338
+ "$ref": "entry.json"
357
339
  },
358
340
  "signatureSpells": {
359
341
  "type": "object",
@@ -410,17 +392,8 @@
410
392
  "Demonic"
411
393
  ]
412
394
  },
413
- "ability": {
414
- "type": "object",
415
- "properties": {
416
- "entry": {
417
- "$ref": "entry.json"
418
- }
419
- },
420
- "required": [
421
- "entry"
422
- ],
423
- "additionalProperties": false
395
+ "abilityEntry": {
396
+ "$ref": "entry.json"
424
397
  },
425
398
  "signatureSpells": {
426
399
  "type": "object",