5etools-utils 0.6.3 → 0.6.4

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.6.3",
3
+ "version": "0.6.4",
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.21.12",
3
+ "version": "1.21.13",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -134,7 +134,26 @@
134
134
  "type": "object",
135
135
  "properties": {
136
136
  "type": {
137
- "$ref": "../util.json#/$defs/creatureType"
137
+ "oneOf": [
138
+ {
139
+ "$ref": "../util.json#/$defs/creatureType"
140
+ },
141
+ {
142
+ "type": "object",
143
+ "properties": {
144
+ "choose": {
145
+ "type": "array",
146
+ "items": {
147
+ "$ref": "../util.json#/$defs/creatureType"
148
+ }
149
+ }
150
+ },
151
+ "additionalProperties": false,
152
+ "required": [
153
+ "choose"
154
+ ]
155
+ }
156
+ ]
138
157
  },
139
158
  "swarmSize": {
140
159
  "$ref": "../util.json#/$defs/size",
@@ -204,6 +223,9 @@
204
223
  },
205
224
  "sidekickHidden": {
206
225
  "const": true
226
+ },
227
+ "note": {
228
+ "type": "string"
207
229
  }
208
230
  },
209
231
  "required": [
@@ -1284,7 +1306,26 @@
1284
1306
  "type": "object",
1285
1307
  "properties": {
1286
1308
  "type": {
1287
- "$ref": "../util.json#/$defs/creatureType"
1309
+ "oneOf": [
1310
+ {
1311
+ "$ref": "../util.json#/$defs/creatureType"
1312
+ },
1313
+ {
1314
+ "type": "object",
1315
+ "properties": {
1316
+ "choose": {
1317
+ "type": "array",
1318
+ "items": {
1319
+ "$ref": "../util.json#/$defs/creatureType"
1320
+ }
1321
+ }
1322
+ },
1323
+ "additionalProperties": false,
1324
+ "required": [
1325
+ "choose"
1326
+ ]
1327
+ }
1328
+ ]
1288
1329
  },
1289
1330
  "swarmSize": {
1290
1331
  "$ref": "../util.json#/$defs/size",
@@ -1354,6 +1395,9 @@
1354
1395
  },
1355
1396
  "sidekickHidden": {
1356
1397
  "const": true
1398
+ },
1399
+ "note": {
1400
+ "type": "string"
1357
1401
  }
1358
1402
  },
1359
1403
  "required": [
@@ -2449,7 +2493,26 @@
2449
2493
  "type": "object",
2450
2494
  "properties": {
2451
2495
  "type": {
2452
- "$ref": "../util.json#/$defs/creatureType"
2496
+ "oneOf": [
2497
+ {
2498
+ "$ref": "../util.json#/$defs/creatureType"
2499
+ },
2500
+ {
2501
+ "type": "object",
2502
+ "properties": {
2503
+ "choose": {
2504
+ "type": "array",
2505
+ "items": {
2506
+ "$ref": "../util.json#/$defs/creatureType"
2507
+ }
2508
+ }
2509
+ },
2510
+ "additionalProperties": false,
2511
+ "required": [
2512
+ "choose"
2513
+ ]
2514
+ }
2515
+ ]
2453
2516
  },
2454
2517
  "swarmSize": {
2455
2518
  "$ref": "../util.json#/$defs/size",
@@ -2519,6 +2582,9 @@
2519
2582
  },
2520
2583
  "sidekickHidden": {
2521
2584
  "const": true
2585
+ },
2586
+ "note": {
2587
+ "type": "string"
2522
2588
  }
2523
2589
  },
2524
2590
  "required": [
@@ -3,7 +3,7 @@
3
3
  "$id": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.8.7",
6
+ "version": "1.8.8",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -3025,7 +3025,8 @@
3025
3025
  "type": "string"
3026
3026
  },
3027
3027
  "type": {
3028
- "type": "string"
3028
+ "type": "string",
3029
+ "const": "spellcasting"
3029
3030
  },
3030
3031
  "source": {
3031
3032
  "type": "string"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.21.12",
3
+ "version": "1.21.13",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -134,7 +134,26 @@
134
134
  "type": "object",
135
135
  "properties": {
136
136
  "type": {
137
- "$ref": "../util.json#/$defs/creatureType"
137
+ "oneOf": [
138
+ {
139
+ "$ref": "../util.json#/$defs/creatureType"
140
+ },
141
+ {
142
+ "type": "object",
143
+ "properties": {
144
+ "choose": {
145
+ "type": "array",
146
+ "items": {
147
+ "$ref": "../util.json#/$defs/creatureType"
148
+ }
149
+ }
150
+ },
151
+ "additionalProperties": false,
152
+ "required": [
153
+ "choose"
154
+ ]
155
+ }
156
+ ]
138
157
  },
139
158
  "swarmSize": {
140
159
  "$ref": "../util.json#/$defs/size",
@@ -204,6 +223,9 @@
204
223
  },
205
224
  "sidekickHidden": {
206
225
  "const": true
226
+ },
227
+ "note": {
228
+ "type": "string"
207
229
  }
208
230
  },
209
231
  "required": [
@@ -1284,7 +1306,26 @@
1284
1306
  "type": "object",
1285
1307
  "properties": {
1286
1308
  "type": {
1287
- "$ref": "../util.json#/$defs/creatureType"
1309
+ "oneOf": [
1310
+ {
1311
+ "$ref": "../util.json#/$defs/creatureType"
1312
+ },
1313
+ {
1314
+ "type": "object",
1315
+ "properties": {
1316
+ "choose": {
1317
+ "type": "array",
1318
+ "items": {
1319
+ "$ref": "../util.json#/$defs/creatureType"
1320
+ }
1321
+ }
1322
+ },
1323
+ "additionalProperties": false,
1324
+ "required": [
1325
+ "choose"
1326
+ ]
1327
+ }
1328
+ ]
1288
1329
  },
1289
1330
  "swarmSize": {
1290
1331
  "$ref": "../util.json#/$defs/size",
@@ -1354,6 +1395,9 @@
1354
1395
  },
1355
1396
  "sidekickHidden": {
1356
1397
  "const": true
1398
+ },
1399
+ "note": {
1400
+ "type": "string"
1357
1401
  }
1358
1402
  },
1359
1403
  "required": [
@@ -2449,7 +2493,26 @@
2449
2493
  "type": "object",
2450
2494
  "properties": {
2451
2495
  "type": {
2452
- "$ref": "../util.json#/$defs/creatureType"
2496
+ "oneOf": [
2497
+ {
2498
+ "$ref": "../util.json#/$defs/creatureType"
2499
+ },
2500
+ {
2501
+ "type": "object",
2502
+ "properties": {
2503
+ "choose": {
2504
+ "type": "array",
2505
+ "items": {
2506
+ "$ref": "../util.json#/$defs/creatureType"
2507
+ }
2508
+ }
2509
+ },
2510
+ "additionalProperties": false,
2511
+ "required": [
2512
+ "choose"
2513
+ ]
2514
+ }
2515
+ ]
2453
2516
  },
2454
2517
  "swarmSize": {
2455
2518
  "$ref": "../util.json#/$defs/size",
@@ -2519,6 +2582,9 @@
2519
2582
  },
2520
2583
  "sidekickHidden": {
2521
2584
  "const": true
2585
+ },
2586
+ "note": {
2587
+ "type": "string"
2522
2588
  }
2523
2589
  },
2524
2590
  "required": [
@@ -3,7 +3,7 @@
3
3
  "$id": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.8.7",
6
+ "version": "1.8.8",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -3025,7 +3025,8 @@
3025
3025
  "type": "string"
3026
3026
  },
3027
3027
  "type": {
3028
- "type": "string"
3028
+ "type": "string",
3029
+ "const": "spellcasting"
3029
3030
  },
3030
3031
  "source": {
3031
3032
  "type": "string"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.21.12",
3
+ "version": "1.21.13",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -134,7 +134,26 @@
134
134
  "type": "object",
135
135
  "properties": {
136
136
  "type": {
137
- "$ref": "../util.json#/$defs/creatureType"
137
+ "oneOf": [
138
+ {
139
+ "$ref": "../util.json#/$defs/creatureType"
140
+ },
141
+ {
142
+ "type": "object",
143
+ "properties": {
144
+ "choose": {
145
+ "type": "array",
146
+ "items": {
147
+ "$ref": "../util.json#/$defs/creatureType"
148
+ }
149
+ }
150
+ },
151
+ "additionalProperties": false,
152
+ "required": [
153
+ "choose"
154
+ ]
155
+ }
156
+ ]
138
157
  },
139
158
  "swarmSize": {
140
159
  "$ref": "../util.json#/$defs/size",
@@ -204,6 +223,9 @@
204
223
  },
205
224
  "sidekickHidden": {
206
225
  "const": true
226
+ },
227
+ "note": {
228
+ "type": "string"
207
229
  }
208
230
  },
209
231
  "required": [
@@ -1188,7 +1210,26 @@
1188
1210
  "type": "object",
1189
1211
  "properties": {
1190
1212
  "type": {
1191
- "$ref": "../util.json#/$defs/creatureType"
1213
+ "oneOf": [
1214
+ {
1215
+ "$ref": "../util.json#/$defs/creatureType"
1216
+ },
1217
+ {
1218
+ "type": "object",
1219
+ "properties": {
1220
+ "choose": {
1221
+ "type": "array",
1222
+ "items": {
1223
+ "$ref": "../util.json#/$defs/creatureType"
1224
+ }
1225
+ }
1226
+ },
1227
+ "additionalProperties": false,
1228
+ "required": [
1229
+ "choose"
1230
+ ]
1231
+ }
1232
+ ]
1192
1233
  },
1193
1234
  "swarmSize": {
1194
1235
  "$ref": "../util.json#/$defs/size",
@@ -1258,6 +1299,9 @@
1258
1299
  },
1259
1300
  "sidekickHidden": {
1260
1301
  "const": true
1302
+ },
1303
+ "note": {
1304
+ "type": "string"
1261
1305
  }
1262
1306
  },
1263
1307
  "required": [
@@ -2257,7 +2301,26 @@
2257
2301
  "type": "object",
2258
2302
  "properties": {
2259
2303
  "type": {
2260
- "$ref": "../util.json#/$defs/creatureType"
2304
+ "oneOf": [
2305
+ {
2306
+ "$ref": "../util.json#/$defs/creatureType"
2307
+ },
2308
+ {
2309
+ "type": "object",
2310
+ "properties": {
2311
+ "choose": {
2312
+ "type": "array",
2313
+ "items": {
2314
+ "$ref": "../util.json#/$defs/creatureType"
2315
+ }
2316
+ }
2317
+ },
2318
+ "additionalProperties": false,
2319
+ "required": [
2320
+ "choose"
2321
+ ]
2322
+ }
2323
+ ]
2261
2324
  },
2262
2325
  "swarmSize": {
2263
2326
  "$ref": "../util.json#/$defs/size",
@@ -2327,6 +2390,9 @@
2327
2390
  },
2328
2391
  "sidekickHidden": {
2329
2392
  "const": true
2393
+ },
2394
+ "note": {
2395
+ "type": "string"
2330
2396
  }
2331
2397
  },
2332
2398
  "required": [
@@ -3,7 +3,7 @@
3
3
  "$id": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.8.7",
6
+ "version": "1.8.8",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -2996,7 +2996,8 @@
2996
2996
  "type": "string"
2997
2997
  },
2998
2998
  "type": {
2999
- "type": "string"
2999
+ "type": "string",
3000
+ "const": "spellcasting"
3000
3001
  },
3001
3002
  "source": {
3002
3003
  "type": "string"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.21.12",
3
+ "version": "1.21.13",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -134,7 +134,26 @@
134
134
  "type": "object",
135
135
  "properties": {
136
136
  "type": {
137
- "$ref": "../util.json#/$defs/creatureType"
137
+ "oneOf": [
138
+ {
139
+ "$ref": "../util.json#/$defs/creatureType"
140
+ },
141
+ {
142
+ "type": "object",
143
+ "properties": {
144
+ "choose": {
145
+ "type": "array",
146
+ "items": {
147
+ "$ref": "../util.json#/$defs/creatureType"
148
+ }
149
+ }
150
+ },
151
+ "additionalProperties": false,
152
+ "required": [
153
+ "choose"
154
+ ]
155
+ }
156
+ ]
138
157
  },
139
158
  "swarmSize": {
140
159
  "$ref": "../util.json#/$defs/size",
@@ -204,6 +223,9 @@
204
223
  },
205
224
  "sidekickHidden": {
206
225
  "const": true
226
+ },
227
+ "note": {
228
+ "type": "string"
207
229
  }
208
230
  },
209
231
  "required": [
@@ -1188,7 +1210,26 @@
1188
1210
  "type": "object",
1189
1211
  "properties": {
1190
1212
  "type": {
1191
- "$ref": "../util.json#/$defs/creatureType"
1213
+ "oneOf": [
1214
+ {
1215
+ "$ref": "../util.json#/$defs/creatureType"
1216
+ },
1217
+ {
1218
+ "type": "object",
1219
+ "properties": {
1220
+ "choose": {
1221
+ "type": "array",
1222
+ "items": {
1223
+ "$ref": "../util.json#/$defs/creatureType"
1224
+ }
1225
+ }
1226
+ },
1227
+ "additionalProperties": false,
1228
+ "required": [
1229
+ "choose"
1230
+ ]
1231
+ }
1232
+ ]
1192
1233
  },
1193
1234
  "swarmSize": {
1194
1235
  "$ref": "../util.json#/$defs/size",
@@ -1258,6 +1299,9 @@
1258
1299
  },
1259
1300
  "sidekickHidden": {
1260
1301
  "const": true
1302
+ },
1303
+ "note": {
1304
+ "type": "string"
1261
1305
  }
1262
1306
  },
1263
1307
  "required": [
@@ -2257,7 +2301,26 @@
2257
2301
  "type": "object",
2258
2302
  "properties": {
2259
2303
  "type": {
2260
- "$ref": "../util.json#/$defs/creatureType"
2304
+ "oneOf": [
2305
+ {
2306
+ "$ref": "../util.json#/$defs/creatureType"
2307
+ },
2308
+ {
2309
+ "type": "object",
2310
+ "properties": {
2311
+ "choose": {
2312
+ "type": "array",
2313
+ "items": {
2314
+ "$ref": "../util.json#/$defs/creatureType"
2315
+ }
2316
+ }
2317
+ },
2318
+ "additionalProperties": false,
2319
+ "required": [
2320
+ "choose"
2321
+ ]
2322
+ }
2323
+ ]
2261
2324
  },
2262
2325
  "swarmSize": {
2263
2326
  "$ref": "../util.json#/$defs/size",
@@ -2327,6 +2390,9 @@
2327
2390
  },
2328
2391
  "sidekickHidden": {
2329
2392
  "const": true
2393
+ },
2394
+ "note": {
2395
+ "type": "string"
2330
2396
  }
2331
2397
  },
2332
2398
  "required": [
@@ -3,7 +3,7 @@
3
3
  "$id": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.8.7",
6
+ "version": "1.8.8",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -2996,7 +2996,8 @@
2996
2996
  "type": "string"
2997
2997
  },
2998
2998
  "type": {
2999
- "type": "string"
2999
+ "type": "string",
3000
+ "const": "spellcasting"
3000
3001
  },
3001
3002
  "source": {
3002
3003
  "type": "string"