5etools-utils 0.9.39 → 0.9.41

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.39",
3
+ "version": "0.9.41",
4
4
  "description": "Shared utilities for the 5etools ecosystem.",
5
5
  "type": "module",
6
6
  "main": "lib/Api.js",
@@ -18,6 +18,7 @@
18
18
  "test-file-locations": "bin/test-file-locations.js"
19
19
  },
20
20
  "scripts": {
21
+ "build:dangerous:sources": "node node/fetch-5etools-sources.js",
21
22
  "build": "node node/compile-schemas.js",
22
23
  "test": "npm run lint:js && npm run test:js",
23
24
  "test:js": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "recipes.json",
4
- "version": "1.5.1",
4
+ "version": "1.5.3",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "recipeData": {
@@ -10,6 +10,9 @@
10
10
  "name": {
11
11
  "type": "string"
12
12
  },
13
+ "alias": {
14
+ "$ref": "util.json#/$defs/alias"
15
+ },
13
16
  "source": {
14
17
  "$ref": "util.json#/$defs/source"
15
18
  },
@@ -95,11 +98,18 @@
95
98
  "type": "string",
96
99
  "examples": [
97
100
  "Dwarven",
98
- "Elven",
99
101
  "Elixir/Ale",
100
- "Human",
102
+ "Elven",
101
103
  "Halfling",
102
- "Uncommon Cuisine"
104
+ "Human",
105
+ "Uncommon Cuisine",
106
+ "Lost in Realmspace",
107
+ "Ravenloft",
108
+ "Sigil",
109
+ "Solamnia",
110
+ "The Feywild",
111
+ "The Rock of Bral",
112
+ "The Yawning Portal"
103
113
  ]
104
114
  },
105
115
  "diet": {
@@ -186,6 +196,9 @@
186
196
  "name": {
187
197
  "type": "string"
188
198
  },
199
+ "alias": {
200
+ "$ref": "util.json#/$defs/alias"
201
+ },
189
202
  "source": {
190
203
  "$ref": "util.json#/$defs/source"
191
204
  },
@@ -271,11 +284,18 @@
271
284
  "type": "string",
272
285
  "examples": [
273
286
  "Dwarven",
274
- "Elven",
275
287
  "Elixir/Ale",
276
- "Human",
288
+ "Elven",
277
289
  "Halfling",
278
- "Uncommon Cuisine"
290
+ "Human",
291
+ "Uncommon Cuisine",
292
+ "Lost in Realmspace",
293
+ "Ravenloft",
294
+ "Sigil",
295
+ "Solamnia",
296
+ "The Feywild",
297
+ "The Rock of Bral",
298
+ "The Yawning Portal"
279
299
  ]
280
300
  },
281
301
  "diet": {
@@ -366,6 +386,9 @@
366
386
  "name": {
367
387
  "type": "string"
368
388
  },
389
+ "alias": {
390
+ "$ref": "util.json#/$defs/alias"
391
+ },
369
392
  "source": {
370
393
  "$ref": "util.json#/$defs/source"
371
394
  },
@@ -451,11 +474,18 @@
451
474
  "type": "string",
452
475
  "examples": [
453
476
  "Dwarven",
454
- "Elven",
455
477
  "Elixir/Ale",
456
- "Human",
478
+ "Elven",
457
479
  "Halfling",
458
- "Uncommon Cuisine"
480
+ "Human",
481
+ "Uncommon Cuisine",
482
+ "Lost in Realmspace",
483
+ "Ravenloft",
484
+ "Sigil",
485
+ "Solamnia",
486
+ "The Feywild",
487
+ "The Rock of Bral",
488
+ "The Yawning Portal"
459
489
  ]
460
490
  },
461
491
  "diet": {
@@ -0,0 +1,226 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "sources-5etools.json",
4
+ "title": "5etools Sources",
5
+ "description": "A dump of 5etools sources. See `node/fetch-5etools-sources.js`.",
6
+ "version": "0.0.0",
7
+ "$defs": {
8
+ "sources": {
9
+ "type": "string",
10
+ "enum": [
11
+ "CoS",
12
+ "DMG",
13
+ "EEPC",
14
+ "EET",
15
+ "HotDQ",
16
+ "LMoP",
17
+ "MM",
18
+ "OotA",
19
+ "PHB",
20
+ "PotA",
21
+ "RoT",
22
+ "RoTOS",
23
+ "SCAG",
24
+ "SKT",
25
+ "ToA",
26
+ "TLK",
27
+ "ToD",
28
+ "TTP",
29
+ "TftYP",
30
+ "TftYP-AtG",
31
+ "TftYP-DiT",
32
+ "TftYP-TFoF",
33
+ "TftYP-THSoT",
34
+ "TftYP-TSC",
35
+ "TftYP-ToH",
36
+ "TftYP-WPM",
37
+ "VGM",
38
+ "XGE",
39
+ "OGA",
40
+ "MTF",
41
+ "WDH",
42
+ "WDMM",
43
+ "GGR",
44
+ "KKW",
45
+ "LLK",
46
+ "AZfyT",
47
+ "GoS",
48
+ "AI",
49
+ "OoW",
50
+ "ESK",
51
+ "DIP",
52
+ "HftT",
53
+ "DC",
54
+ "SLW",
55
+ "SDW",
56
+ "BGDIA",
57
+ "LR",
58
+ "AL",
59
+ "SAC",
60
+ "ERLW",
61
+ "EFR",
62
+ "RMBRE",
63
+ "RMR",
64
+ "MFF",
65
+ "AWM",
66
+ "IMR",
67
+ "SADS",
68
+ "EGW",
69
+ "ToR",
70
+ "DD",
71
+ "FS",
72
+ "US",
73
+ "MOT",
74
+ "IDRotF",
75
+ "TCE",
76
+ "VRGR",
77
+ "HoL",
78
+ "RtG",
79
+ "AitFR",
80
+ "AitFR-ISF",
81
+ "AitFR-THP",
82
+ "AitFR-AVT",
83
+ "AitFR-DN",
84
+ "AitFR-FCD",
85
+ "WBtW",
86
+ "DoD",
87
+ "MaBJoV",
88
+ "FTD",
89
+ "SCC",
90
+ "SCC-CK",
91
+ "SCC-HfMT",
92
+ "SCC-TMM",
93
+ "SCC-ARiR",
94
+ "MPMM",
95
+ "CRCotN",
96
+ "JttRC",
97
+ "SAiS",
98
+ "AAG",
99
+ "BAM",
100
+ "LoX",
101
+ "DoSI",
102
+ "DSotDQ",
103
+ "KftGV",
104
+ "BGG",
105
+ "TDCSR",
106
+ "PaBTSO",
107
+ "PAitM",
108
+ "SatO",
109
+ "ToFW",
110
+ "MPP",
111
+ "Screen",
112
+ "ScreenWildernessKit",
113
+ "ScreenDungeonKit",
114
+ "ScreenSpelljammer",
115
+ "HF",
116
+ "CM",
117
+ "NRH",
118
+ "NRH-TCMC",
119
+ "NRH-AVitW",
120
+ "NRH-ASS",
121
+ "NRH-CoI",
122
+ "NRH-TLT",
123
+ "NRH-AWoL",
124
+ "NRH-AT",
125
+ "MGELFT",
126
+ "VD",
127
+ "SjA",
128
+ "HAT-TG",
129
+ "HAT-LMI",
130
+ "GotSF",
131
+ "LK",
132
+ "CoA",
133
+ "ALCurseOfStrahd",
134
+ "ALElementalEvil",
135
+ "ALRageOfDemons",
136
+ "PSA",
137
+ "PSI",
138
+ "PSK",
139
+ "PSZ",
140
+ "PSX",
141
+ "PSD",
142
+ "XMtS",
143
+ "UAArtificer",
144
+ "UAEladrinAndGith",
145
+ "UAEberron",
146
+ "UAFeatsForRaces",
147
+ "UAFeatsForSkills",
148
+ "UAFiendishOptions",
149
+ "UAFeats",
150
+ "UAGothicHeroes",
151
+ "UAModernMagic",
152
+ "UAStarterSpells",
153
+ "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
+ "MCV1SC",
218
+ "MCV2DC",
219
+ "MCV3MC",
220
+ "MCV4EC",
221
+ "MisMV1",
222
+ "AATM"
223
+ ]
224
+ }
225
+ }
226
+ }
@@ -3,7 +3,7 @@
3
3
  "$id": "util.json",
4
4
  "title": "Util",
5
5
  "description": "Utility definitions to be used in other schemas.",
6
- "version": "1.14.2",
6
+ "version": "1.14.3",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -48,7 +48,10 @@
48
48
  "sourceJson": {
49
49
  "type": "string",
50
50
  "description": "An identifying string, as seen in the JSON in \"source\" fields.",
51
- "pattern": "^(?!UA|XUA)[-a-zA-Z0-9 :&+!]+$"
51
+ "pattern": "^(?!UA|XUA)[-a-zA-Z0-9 :&+!]+$",
52
+ "not": {
53
+ "$ref": "sources-5etools.json#/$defs/sources"
54
+ }
52
55
  },
53
56
  "page": {
54
57
  "oneOf": [
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "recipes.json",
4
- "version": "1.5.1",
4
+ "version": "1.5.3",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "recipeData": {
@@ -10,6 +10,9 @@
10
10
  "name": {
11
11
  "type": "string"
12
12
  },
13
+ "alias": {
14
+ "$ref": "util.json#/$defs/alias"
15
+ },
13
16
  "source": {
14
17
  "$ref": "util.json#/$defs/source"
15
18
  },
@@ -95,11 +98,18 @@
95
98
  "type": "string",
96
99
  "examples": [
97
100
  "Dwarven",
98
- "Elven",
99
101
  "Elixir/Ale",
100
- "Human",
102
+ "Elven",
101
103
  "Halfling",
102
- "Uncommon Cuisine"
104
+ "Human",
105
+ "Uncommon Cuisine",
106
+ "Lost in Realmspace",
107
+ "Ravenloft",
108
+ "Sigil",
109
+ "Solamnia",
110
+ "The Feywild",
111
+ "The Rock of Bral",
112
+ "The Yawning Portal"
103
113
  ]
104
114
  },
105
115
  "diet": {
@@ -186,6 +196,9 @@
186
196
  "name": {
187
197
  "type": "string"
188
198
  },
199
+ "alias": {
200
+ "$ref": "util.json#/$defs/alias"
201
+ },
189
202
  "source": {
190
203
  "$ref": "util.json#/$defs/source"
191
204
  },
@@ -271,11 +284,18 @@
271
284
  "type": "string",
272
285
  "examples": [
273
286
  "Dwarven",
274
- "Elven",
275
287
  "Elixir/Ale",
276
- "Human",
288
+ "Elven",
277
289
  "Halfling",
278
- "Uncommon Cuisine"
290
+ "Human",
291
+ "Uncommon Cuisine",
292
+ "Lost in Realmspace",
293
+ "Ravenloft",
294
+ "Sigil",
295
+ "Solamnia",
296
+ "The Feywild",
297
+ "The Rock of Bral",
298
+ "The Yawning Portal"
279
299
  ]
280
300
  },
281
301
  "diet": {
@@ -366,6 +386,9 @@
366
386
  "name": {
367
387
  "type": "string"
368
388
  },
389
+ "alias": {
390
+ "$ref": "util.json#/$defs/alias"
391
+ },
369
392
  "source": {
370
393
  "$ref": "util.json#/$defs/source"
371
394
  },
@@ -451,11 +474,18 @@
451
474
  "type": "string",
452
475
  "examples": [
453
476
  "Dwarven",
454
- "Elven",
455
477
  "Elixir/Ale",
456
- "Human",
478
+ "Elven",
457
479
  "Halfling",
458
- "Uncommon Cuisine"
480
+ "Human",
481
+ "Uncommon Cuisine",
482
+ "Lost in Realmspace",
483
+ "Ravenloft",
484
+ "Sigil",
485
+ "Solamnia",
486
+ "The Feywild",
487
+ "The Rock of Bral",
488
+ "The Yawning Portal"
459
489
  ]
460
490
  },
461
491
  "diet": {
@@ -0,0 +1,226 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "sources-5etools.json",
4
+ "title": "5etools Sources",
5
+ "description": "A dump of 5etools sources. See `node/fetch-5etools-sources.js`.",
6
+ "version": "0.0.0",
7
+ "$defs": {
8
+ "sources": {
9
+ "type": "string",
10
+ "enum": [
11
+ "CoS",
12
+ "DMG",
13
+ "EEPC",
14
+ "EET",
15
+ "HotDQ",
16
+ "LMoP",
17
+ "MM",
18
+ "OotA",
19
+ "PHB",
20
+ "PotA",
21
+ "RoT",
22
+ "RoTOS",
23
+ "SCAG",
24
+ "SKT",
25
+ "ToA",
26
+ "TLK",
27
+ "ToD",
28
+ "TTP",
29
+ "TftYP",
30
+ "TftYP-AtG",
31
+ "TftYP-DiT",
32
+ "TftYP-TFoF",
33
+ "TftYP-THSoT",
34
+ "TftYP-TSC",
35
+ "TftYP-ToH",
36
+ "TftYP-WPM",
37
+ "VGM",
38
+ "XGE",
39
+ "OGA",
40
+ "MTF",
41
+ "WDH",
42
+ "WDMM",
43
+ "GGR",
44
+ "KKW",
45
+ "LLK",
46
+ "AZfyT",
47
+ "GoS",
48
+ "AI",
49
+ "OoW",
50
+ "ESK",
51
+ "DIP",
52
+ "HftT",
53
+ "DC",
54
+ "SLW",
55
+ "SDW",
56
+ "BGDIA",
57
+ "LR",
58
+ "AL",
59
+ "SAC",
60
+ "ERLW",
61
+ "EFR",
62
+ "RMBRE",
63
+ "RMR",
64
+ "MFF",
65
+ "AWM",
66
+ "IMR",
67
+ "SADS",
68
+ "EGW",
69
+ "ToR",
70
+ "DD",
71
+ "FS",
72
+ "US",
73
+ "MOT",
74
+ "IDRotF",
75
+ "TCE",
76
+ "VRGR",
77
+ "HoL",
78
+ "RtG",
79
+ "AitFR",
80
+ "AitFR-ISF",
81
+ "AitFR-THP",
82
+ "AitFR-AVT",
83
+ "AitFR-DN",
84
+ "AitFR-FCD",
85
+ "WBtW",
86
+ "DoD",
87
+ "MaBJoV",
88
+ "FTD",
89
+ "SCC",
90
+ "SCC-CK",
91
+ "SCC-HfMT",
92
+ "SCC-TMM",
93
+ "SCC-ARiR",
94
+ "MPMM",
95
+ "CRCotN",
96
+ "JttRC",
97
+ "SAiS",
98
+ "AAG",
99
+ "BAM",
100
+ "LoX",
101
+ "DoSI",
102
+ "DSotDQ",
103
+ "KftGV",
104
+ "BGG",
105
+ "TDCSR",
106
+ "PaBTSO",
107
+ "PAitM",
108
+ "SatO",
109
+ "ToFW",
110
+ "MPP",
111
+ "Screen",
112
+ "ScreenWildernessKit",
113
+ "ScreenDungeonKit",
114
+ "ScreenSpelljammer",
115
+ "HF",
116
+ "CM",
117
+ "NRH",
118
+ "NRH-TCMC",
119
+ "NRH-AVitW",
120
+ "NRH-ASS",
121
+ "NRH-CoI",
122
+ "NRH-TLT",
123
+ "NRH-AWoL",
124
+ "NRH-AT",
125
+ "MGELFT",
126
+ "VD",
127
+ "SjA",
128
+ "HAT-TG",
129
+ "HAT-LMI",
130
+ "GotSF",
131
+ "LK",
132
+ "CoA",
133
+ "ALCurseOfStrahd",
134
+ "ALElementalEvil",
135
+ "ALRageOfDemons",
136
+ "PSA",
137
+ "PSI",
138
+ "PSK",
139
+ "PSZ",
140
+ "PSX",
141
+ "PSD",
142
+ "XMtS",
143
+ "UAArtificer",
144
+ "UAEladrinAndGith",
145
+ "UAEberron",
146
+ "UAFeatsForRaces",
147
+ "UAFeatsForSkills",
148
+ "UAFiendishOptions",
149
+ "UAFeats",
150
+ "UAGothicHeroes",
151
+ "UAModernMagic",
152
+ "UAStarterSpells",
153
+ "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
+ "MCV1SC",
218
+ "MCV2DC",
219
+ "MCV3MC",
220
+ "MCV4EC",
221
+ "MisMV1",
222
+ "AATM"
223
+ ]
224
+ }
225
+ }
226
+ }