5etools-utils 0.9.46 → 0.9.48

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.9.46",
3
+ "version": "0.9.48",
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.17",
3
+ "version": "1.10.19",
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": {
@@ -309,36 +309,78 @@
309
309
  "uniqueItems": true
310
310
  },
311
311
  "_spellListItem": {
312
- "type": "object",
313
- "properties": {
314
- "name": {
315
- "type": "string"
316
- },
317
- "source": {
318
- "$ref": "util.json#/$defs/source"
319
- },
320
- "spellListType": {
321
- "type": "string",
322
- "enum": [
323
- "groups"
324
- ]
312
+ "oneOf": [
313
+ {
314
+ "type": "object",
315
+ "properties": {
316
+ "name": {
317
+ "type": "string"
318
+ },
319
+ "source": {
320
+ "$ref": "util.json#/$defs/source"
321
+ },
322
+ "spellListType": {
323
+ "type": "string",
324
+ "enum": [
325
+ "groups"
326
+ ]
327
+ },
328
+ "spells": {
329
+ "type": "array",
330
+ "items": {
331
+ "$ref": "util.json#/$defs/spellListSpellRef"
332
+ },
333
+ "minItems": 1,
334
+ "uniqueItems": true
335
+ }
336
+ },
337
+ "required": [
338
+ "name",
339
+ "source",
340
+ "spellListType",
341
+ "spells"
342
+ ],
343
+ "additionalProperties": false
325
344
  },
326
- "spells": {
327
- "type": "array",
328
- "items": {
329
- "$ref": "util.json#/$defs/spellListSpellRef"
345
+ {
346
+ "type": "object",
347
+ "properties": {
348
+ "name": {
349
+ "type": "string"
350
+ },
351
+ "source": {
352
+ "$ref": "util.json#/$defs/source"
353
+ },
354
+ "spellListType": {
355
+ "type": "string",
356
+ "const": "variantClass"
357
+ },
358
+ "className": {
359
+ "type": "string"
360
+ },
361
+ "classSource": {
362
+ "$ref": "util.json#/$defs/source"
363
+ },
364
+ "spells": {
365
+ "type": "array",
366
+ "items": {
367
+ "$ref": "util.json#/$defs/spellListSpellRef"
368
+ },
369
+ "minItems": 1,
370
+ "uniqueItems": true
371
+ }
330
372
  },
331
- "minItems": 1,
332
- "uniqueItems": true
373
+ "required": [
374
+ "name",
375
+ "source",
376
+ "spellListType",
377
+ "className",
378
+ "classSource",
379
+ "spells"
380
+ ],
381
+ "additionalProperties": false
333
382
  }
334
- },
335
- "required": [
336
- "name",
337
- "source",
338
- "spellListType",
339
- "spells"
340
- ],
341
- "additionalProperties": false
383
+ ]
342
384
  }
343
385
  },
344
386
  "properties": {
@@ -536,6 +578,9 @@
536
578
  "featFluff": {
537
579
  "$ref": "fluff-feats.json#/properties/featFluff"
538
580
  },
581
+ "foundryFeat": {
582
+ "$ref": "foundry-feats.json#/properties/feat"
583
+ },
539
584
  "language": {
540
585
  "$ref": "languages.json#/properties/language"
541
586
  },
@@ -108,11 +108,14 @@
108
108
  "SatO",
109
109
  "ToFW",
110
110
  "MPP",
111
+ "BMT",
111
112
  "Screen",
112
113
  "ScreenWildernessKit",
113
114
  "ScreenDungeonKit",
114
115
  "ScreenSpelljammer",
115
116
  "HF",
117
+ "HFFotM",
118
+ "HFStCM",
116
119
  "CM",
117
120
  "NRH",
118
121
  "NRH-TCMC",
@@ -130,6 +133,7 @@
130
133
  "GotSF",
131
134
  "LK",
132
135
  "CoA",
136
+ "PiP",
133
137
  "ALCurseOfStrahd",
134
138
  "ALElementalEvil",
135
139
  "ALRageOfDemons",
@@ -140,80 +144,7 @@
140
144
  "PSX",
141
145
  "PSD",
142
146
  "XMtS",
143
- "UAArtificer",
144
- "UAEladrinAndGith",
145
- "UAEberron",
146
- "UAFeatsForRaces",
147
- "UAFeatsForSkills",
148
- "UAFiendishOptions",
149
- "UAFeats",
150
- "UAGothicHeroes",
151
- "UAModernMagic",
152
- "UAStarterSpells",
153
147
  "UATheMysticClass",
154
- "UAThatOldBlackMagic",
155
- "UATheRangerRevised",
156
- "UAWaterborneAdventures",
157
- "UAVariantRules",
158
- "UALightDarkUnderdark",
159
- "UARangerAndRogue",
160
- "UAATrioOfSubclasses",
161
- "UABarbarianPrimalPaths",
162
- "UARevisedSubclasses",
163
- "UAKitsOfOld",
164
- "UABardBardColleges",
165
- "UAClericDivineDomains",
166
- "UADruid",
167
- "UARevisedClassOptions",
168
- "UAFighter",
169
- "UAMonk",
170
- "UAPaladin",
171
- "UAModifyingClasses",
172
- "UASorcerer",
173
- "UAWarlockAndWizard",
174
- "UATheFaithful",
175
- "UAWizardRevisited",
176
- "UAElfSubraces",
177
- "UAMassCombat",
178
- "UAThreePillarExperience",
179
- "UAGreyhawkInitiative",
180
- "UAThreeSubclasses",
181
- "UAOrderDomain",
182
- "UACentaursMinotaurs",
183
- "UAGiantSoulSorcerer",
184
- "UARacesOfEberron",
185
- "UARacesOfRavnica",
186
- "UAWGE",
187
- "UAOfShipsAndSea",
188
- "UASidekicks",
189
- "UAArtificerRevisited",
190
- "UABarbarianAndMonk",
191
- "UASorcererAndWarlock",
192
- "UABardAndPaladin",
193
- "UAClericDruidWizard",
194
- "UAFighterRangerRogue",
195
- "UAClassFeatureVariants",
196
- "UAFighterRogueWizard",
197
- "UAPrestigeClassesRunMagic",
198
- "UARanger",
199
- "UA2020SubclassesPt1",
200
- "UA2020SubclassesPt2",
201
- "UA2020SubclassesPt3",
202
- "UA2020SubclassesPt4",
203
- "UA2020SubclassesPt5",
204
- "UA2020SpellsAndMagicTattoos",
205
- "UA2020PsionicOptionsRevisited",
206
- "UA2020SubclassesRevisited",
207
- "UA2020Feats",
208
- "UA2021GothicLineages",
209
- "UA2021FolkOfTheFeywild",
210
- "UA2021DraconicOptions",
211
- "UA2021MagesOfStrixhaven",
212
- "UA2021TravelersOfTheMultiverse",
213
- "UA2022HeroesOfKrynn",
214
- "UA2022HeroesOfKrynnRevisited",
215
- "UA2022GiantOptions",
216
- "UA2022WondersOfTheMultiverse",
217
148
  "MCV1SC",
218
149
  "MCV2DC",
219
150
  "MCV3MC",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "spells.json",
4
- "version": "1.9.8",
4
+ "version": "1.9.9",
5
5
  "title": "Spells",
6
6
  "type": "object",
7
7
  "$defs": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.17",
3
+ "version": "1.10.19",
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": {
@@ -307,36 +307,78 @@
307
307
  "uniqueItems": true
308
308
  },
309
309
  "_spellListItem": {
310
- "type": "object",
311
- "properties": {
312
- "name": {
313
- "type": "string"
314
- },
315
- "source": {
316
- "$ref": "util.json#/$defs/source"
317
- },
318
- "spellListType": {
319
- "type": "string",
320
- "enum": [
321
- "groups"
322
- ]
310
+ "oneOf": [
311
+ {
312
+ "type": "object",
313
+ "properties": {
314
+ "name": {
315
+ "type": "string"
316
+ },
317
+ "source": {
318
+ "$ref": "util.json#/$defs/source"
319
+ },
320
+ "spellListType": {
321
+ "type": "string",
322
+ "enum": [
323
+ "groups"
324
+ ]
325
+ },
326
+ "spells": {
327
+ "type": "array",
328
+ "items": {
329
+ "$ref": "util.json#/$defs/spellListSpellRef"
330
+ },
331
+ "minItems": 1,
332
+ "uniqueItems": true
333
+ }
334
+ },
335
+ "required": [
336
+ "name",
337
+ "source",
338
+ "spellListType",
339
+ "spells"
340
+ ],
341
+ "additionalProperties": false
323
342
  },
324
- "spells": {
325
- "type": "array",
326
- "items": {
327
- "$ref": "util.json#/$defs/spellListSpellRef"
343
+ {
344
+ "type": "object",
345
+ "properties": {
346
+ "name": {
347
+ "type": "string"
348
+ },
349
+ "source": {
350
+ "$ref": "util.json#/$defs/source"
351
+ },
352
+ "spellListType": {
353
+ "type": "string",
354
+ "const": "variantClass"
355
+ },
356
+ "className": {
357
+ "type": "string"
358
+ },
359
+ "classSource": {
360
+ "$ref": "util.json#/$defs/source"
361
+ },
362
+ "spells": {
363
+ "type": "array",
364
+ "items": {
365
+ "$ref": "util.json#/$defs/spellListSpellRef"
366
+ },
367
+ "minItems": 1,
368
+ "uniqueItems": true
369
+ }
328
370
  },
329
- "minItems": 1,
330
- "uniqueItems": true
371
+ "required": [
372
+ "name",
373
+ "source",
374
+ "spellListType",
375
+ "className",
376
+ "classSource",
377
+ "spells"
378
+ ],
379
+ "additionalProperties": false
331
380
  }
332
- },
333
- "required": [
334
- "name",
335
- "source",
336
- "spellListType",
337
- "spells"
338
- ],
339
- "additionalProperties": false
381
+ ]
340
382
  }
341
383
  },
342
384
  "properties": {
@@ -534,6 +576,9 @@
534
576
  "featFluff": {
535
577
  "$ref": "fluff-feats.json#/properties/featFluff"
536
578
  },
579
+ "foundryFeat": {
580
+ "$ref": "foundry-feats.json#/properties/feat"
581
+ },
537
582
  "language": {
538
583
  "$ref": "languages.json#/properties/language"
539
584
  },
@@ -108,11 +108,14 @@
108
108
  "SatO",
109
109
  "ToFW",
110
110
  "MPP",
111
+ "BMT",
111
112
  "Screen",
112
113
  "ScreenWildernessKit",
113
114
  "ScreenDungeonKit",
114
115
  "ScreenSpelljammer",
115
116
  "HF",
117
+ "HFFotM",
118
+ "HFStCM",
116
119
  "CM",
117
120
  "NRH",
118
121
  "NRH-TCMC",
@@ -130,6 +133,7 @@
130
133
  "GotSF",
131
134
  "LK",
132
135
  "CoA",
136
+ "PiP",
133
137
  "ALCurseOfStrahd",
134
138
  "ALElementalEvil",
135
139
  "ALRageOfDemons",
@@ -140,80 +144,7 @@
140
144
  "PSX",
141
145
  "PSD",
142
146
  "XMtS",
143
- "UAArtificer",
144
- "UAEladrinAndGith",
145
- "UAEberron",
146
- "UAFeatsForRaces",
147
- "UAFeatsForSkills",
148
- "UAFiendishOptions",
149
- "UAFeats",
150
- "UAGothicHeroes",
151
- "UAModernMagic",
152
- "UAStarterSpells",
153
147
  "UATheMysticClass",
154
- "UAThatOldBlackMagic",
155
- "UATheRangerRevised",
156
- "UAWaterborneAdventures",
157
- "UAVariantRules",
158
- "UALightDarkUnderdark",
159
- "UARangerAndRogue",
160
- "UAATrioOfSubclasses",
161
- "UABarbarianPrimalPaths",
162
- "UARevisedSubclasses",
163
- "UAKitsOfOld",
164
- "UABardBardColleges",
165
- "UAClericDivineDomains",
166
- "UADruid",
167
- "UARevisedClassOptions",
168
- "UAFighter",
169
- "UAMonk",
170
- "UAPaladin",
171
- "UAModifyingClasses",
172
- "UASorcerer",
173
- "UAWarlockAndWizard",
174
- "UATheFaithful",
175
- "UAWizardRevisited",
176
- "UAElfSubraces",
177
- "UAMassCombat",
178
- "UAThreePillarExperience",
179
- "UAGreyhawkInitiative",
180
- "UAThreeSubclasses",
181
- "UAOrderDomain",
182
- "UACentaursMinotaurs",
183
- "UAGiantSoulSorcerer",
184
- "UARacesOfEberron",
185
- "UARacesOfRavnica",
186
- "UAWGE",
187
- "UAOfShipsAndSea",
188
- "UASidekicks",
189
- "UAArtificerRevisited",
190
- "UABarbarianAndMonk",
191
- "UASorcererAndWarlock",
192
- "UABardAndPaladin",
193
- "UAClericDruidWizard",
194
- "UAFighterRangerRogue",
195
- "UAClassFeatureVariants",
196
- "UAFighterRogueWizard",
197
- "UAPrestigeClassesRunMagic",
198
- "UARanger",
199
- "UA2020SubclassesPt1",
200
- "UA2020SubclassesPt2",
201
- "UA2020SubclassesPt3",
202
- "UA2020SubclassesPt4",
203
- "UA2020SubclassesPt5",
204
- "UA2020SpellsAndMagicTattoos",
205
- "UA2020PsionicOptionsRevisited",
206
- "UA2020SubclassesRevisited",
207
- "UA2020Feats",
208
- "UA2021GothicLineages",
209
- "UA2021FolkOfTheFeywild",
210
- "UA2021DraconicOptions",
211
- "UA2021MagesOfStrixhaven",
212
- "UA2021TravelersOfTheMultiverse",
213
- "UA2022HeroesOfKrynn",
214
- "UA2022HeroesOfKrynnRevisited",
215
- "UA2022GiantOptions",
216
- "UA2022WondersOfTheMultiverse",
217
148
  "MCV1SC",
218
149
  "MCV2DC",
219
150
  "MCV3MC",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "spells.json",
4
- "version": "1.9.8",
4
+ "version": "1.9.9",
5
5
  "title": "Spells",
6
6
  "type": "object",
7
7
  "$defs": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.17",
3
+ "version": "1.10.19",
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": {
@@ -309,36 +309,78 @@
309
309
  "uniqueItems": true
310
310
  },
311
311
  "_spellListItem": {
312
- "type": "object",
313
- "properties": {
314
- "name": {
315
- "type": "string"
316
- },
317
- "source": {
318
- "$ref": "util.json#/$defs/source"
319
- },
320
- "spellListType": {
321
- "type": "string",
322
- "enum": [
323
- "groups"
324
- ]
312
+ "oneOf": [
313
+ {
314
+ "type": "object",
315
+ "properties": {
316
+ "name": {
317
+ "type": "string"
318
+ },
319
+ "source": {
320
+ "$ref": "util.json#/$defs/source"
321
+ },
322
+ "spellListType": {
323
+ "type": "string",
324
+ "enum": [
325
+ "groups"
326
+ ]
327
+ },
328
+ "spells": {
329
+ "type": "array",
330
+ "items": {
331
+ "$ref": "util.json#/$defs/spellListSpellRef"
332
+ },
333
+ "minItems": 1,
334
+ "uniqueItems": true
335
+ }
336
+ },
337
+ "required": [
338
+ "name",
339
+ "source",
340
+ "spellListType",
341
+ "spells"
342
+ ],
343
+ "additionalProperties": false
325
344
  },
326
- "spells": {
327
- "type": "array",
328
- "items": {
329
- "$ref": "util.json#/$defs/spellListSpellRef"
345
+ {
346
+ "type": "object",
347
+ "properties": {
348
+ "name": {
349
+ "type": "string"
350
+ },
351
+ "source": {
352
+ "$ref": "util.json#/$defs/source"
353
+ },
354
+ "spellListType": {
355
+ "type": "string",
356
+ "const": "variantClass"
357
+ },
358
+ "className": {
359
+ "type": "string"
360
+ },
361
+ "classSource": {
362
+ "$ref": "util.json#/$defs/source"
363
+ },
364
+ "spells": {
365
+ "type": "array",
366
+ "items": {
367
+ "$ref": "util.json#/$defs/spellListSpellRef"
368
+ },
369
+ "minItems": 1,
370
+ "uniqueItems": true
371
+ }
330
372
  },
331
- "minItems": 1,
332
- "uniqueItems": true
373
+ "required": [
374
+ "name",
375
+ "source",
376
+ "spellListType",
377
+ "className",
378
+ "classSource",
379
+ "spells"
380
+ ],
381
+ "additionalProperties": false
333
382
  }
334
- },
335
- "required": [
336
- "name",
337
- "source",
338
- "spellListType",
339
- "spells"
340
- ],
341
- "additionalProperties": false
383
+ ]
342
384
  }
343
385
  },
344
386
  "properties": {
@@ -536,6 +578,9 @@
536
578
  "featFluff": {
537
579
  "$ref": "fluff-feats.json#/properties/featFluff"
538
580
  },
581
+ "foundryFeat": {
582
+ "$ref": "foundry-feats.json#/properties/feat"
583
+ },
539
584
  "language": {
540
585
  "$ref": "languages.json#/properties/language"
541
586
  },