5etools-utils 0.6.3 → 0.6.5

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.5",
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.14",
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": [
@@ -971,6 +993,7 @@
971
993
  "Spider Climb",
972
994
  "Sunlight Sensitivity",
973
995
  "Tree Stride",
996
+ "Tunneler",
974
997
  "Turn Immunity",
975
998
  "Turn Resistance",
976
999
  "Undead Fortitude",
@@ -1284,7 +1307,26 @@
1284
1307
  "type": "object",
1285
1308
  "properties": {
1286
1309
  "type": {
1287
- "$ref": "../util.json#/$defs/creatureType"
1310
+ "oneOf": [
1311
+ {
1312
+ "$ref": "../util.json#/$defs/creatureType"
1313
+ },
1314
+ {
1315
+ "type": "object",
1316
+ "properties": {
1317
+ "choose": {
1318
+ "type": "array",
1319
+ "items": {
1320
+ "$ref": "../util.json#/$defs/creatureType"
1321
+ }
1322
+ }
1323
+ },
1324
+ "additionalProperties": false,
1325
+ "required": [
1326
+ "choose"
1327
+ ]
1328
+ }
1329
+ ]
1288
1330
  },
1289
1331
  "swarmSize": {
1290
1332
  "$ref": "../util.json#/$defs/size",
@@ -1354,6 +1396,9 @@
1354
1396
  },
1355
1397
  "sidekickHidden": {
1356
1398
  "const": true
1399
+ },
1400
+ "note": {
1401
+ "type": "string"
1357
1402
  }
1358
1403
  },
1359
1404
  "required": [
@@ -2121,6 +2166,7 @@
2121
2166
  "Spider Climb",
2122
2167
  "Sunlight Sensitivity",
2123
2168
  "Tree Stride",
2169
+ "Tunneler",
2124
2170
  "Turn Immunity",
2125
2171
  "Turn Resistance",
2126
2172
  "Undead Fortitude",
@@ -2449,7 +2495,26 @@
2449
2495
  "type": "object",
2450
2496
  "properties": {
2451
2497
  "type": {
2452
- "$ref": "../util.json#/$defs/creatureType"
2498
+ "oneOf": [
2499
+ {
2500
+ "$ref": "../util.json#/$defs/creatureType"
2501
+ },
2502
+ {
2503
+ "type": "object",
2504
+ "properties": {
2505
+ "choose": {
2506
+ "type": "array",
2507
+ "items": {
2508
+ "$ref": "../util.json#/$defs/creatureType"
2509
+ }
2510
+ }
2511
+ },
2512
+ "additionalProperties": false,
2513
+ "required": [
2514
+ "choose"
2515
+ ]
2516
+ }
2517
+ ]
2453
2518
  },
2454
2519
  "swarmSize": {
2455
2520
  "$ref": "../util.json#/$defs/size",
@@ -2519,6 +2584,9 @@
2519
2584
  },
2520
2585
  "sidekickHidden": {
2521
2586
  "const": true
2587
+ },
2588
+ "note": {
2589
+ "type": "string"
2522
2590
  }
2523
2591
  },
2524
2592
  "required": [
@@ -3286,6 +3354,7 @@
3286
3354
  "Spider Climb",
3287
3355
  "Sunlight Sensitivity",
3288
3356
  "Tree Stride",
3357
+ "Tunneler",
3289
3358
  "Turn Immunity",
3290
3359
  "Turn Resistance",
3291
3360
  "Undead Fortitude",
@@ -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.14",
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": [
@@ -971,6 +993,7 @@
971
993
  "Spider Climb",
972
994
  "Sunlight Sensitivity",
973
995
  "Tree Stride",
996
+ "Tunneler",
974
997
  "Turn Immunity",
975
998
  "Turn Resistance",
976
999
  "Undead Fortitude",
@@ -1284,7 +1307,26 @@
1284
1307
  "type": "object",
1285
1308
  "properties": {
1286
1309
  "type": {
1287
- "$ref": "../util.json#/$defs/creatureType"
1310
+ "oneOf": [
1311
+ {
1312
+ "$ref": "../util.json#/$defs/creatureType"
1313
+ },
1314
+ {
1315
+ "type": "object",
1316
+ "properties": {
1317
+ "choose": {
1318
+ "type": "array",
1319
+ "items": {
1320
+ "$ref": "../util.json#/$defs/creatureType"
1321
+ }
1322
+ }
1323
+ },
1324
+ "additionalProperties": false,
1325
+ "required": [
1326
+ "choose"
1327
+ ]
1328
+ }
1329
+ ]
1288
1330
  },
1289
1331
  "swarmSize": {
1290
1332
  "$ref": "../util.json#/$defs/size",
@@ -1354,6 +1396,9 @@
1354
1396
  },
1355
1397
  "sidekickHidden": {
1356
1398
  "const": true
1399
+ },
1400
+ "note": {
1401
+ "type": "string"
1357
1402
  }
1358
1403
  },
1359
1404
  "required": [
@@ -2121,6 +2166,7 @@
2121
2166
  "Spider Climb",
2122
2167
  "Sunlight Sensitivity",
2123
2168
  "Tree Stride",
2169
+ "Tunneler",
2124
2170
  "Turn Immunity",
2125
2171
  "Turn Resistance",
2126
2172
  "Undead Fortitude",
@@ -2449,7 +2495,26 @@
2449
2495
  "type": "object",
2450
2496
  "properties": {
2451
2497
  "type": {
2452
- "$ref": "../util.json#/$defs/creatureType"
2498
+ "oneOf": [
2499
+ {
2500
+ "$ref": "../util.json#/$defs/creatureType"
2501
+ },
2502
+ {
2503
+ "type": "object",
2504
+ "properties": {
2505
+ "choose": {
2506
+ "type": "array",
2507
+ "items": {
2508
+ "$ref": "../util.json#/$defs/creatureType"
2509
+ }
2510
+ }
2511
+ },
2512
+ "additionalProperties": false,
2513
+ "required": [
2514
+ "choose"
2515
+ ]
2516
+ }
2517
+ ]
2453
2518
  },
2454
2519
  "swarmSize": {
2455
2520
  "$ref": "../util.json#/$defs/size",
@@ -2519,6 +2584,9 @@
2519
2584
  },
2520
2585
  "sidekickHidden": {
2521
2586
  "const": true
2587
+ },
2588
+ "note": {
2589
+ "type": "string"
2522
2590
  }
2523
2591
  },
2524
2592
  "required": [
@@ -3286,6 +3354,7 @@
3286
3354
  "Spider Climb",
3287
3355
  "Sunlight Sensitivity",
3288
3356
  "Tree Stride",
3357
+ "Tunneler",
3289
3358
  "Turn Immunity",
3290
3359
  "Turn Resistance",
3291
3360
  "Undead Fortitude",
@@ -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.14",
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": [
@@ -950,6 +972,7 @@
950
972
  "Spider Climb",
951
973
  "Sunlight Sensitivity",
952
974
  "Tree Stride",
975
+ "Tunneler",
953
976
  "Turn Immunity",
954
977
  "Turn Resistance",
955
978
  "Undead Fortitude",
@@ -1188,7 +1211,26 @@
1188
1211
  "type": "object",
1189
1212
  "properties": {
1190
1213
  "type": {
1191
- "$ref": "../util.json#/$defs/creatureType"
1214
+ "oneOf": [
1215
+ {
1216
+ "$ref": "../util.json#/$defs/creatureType"
1217
+ },
1218
+ {
1219
+ "type": "object",
1220
+ "properties": {
1221
+ "choose": {
1222
+ "type": "array",
1223
+ "items": {
1224
+ "$ref": "../util.json#/$defs/creatureType"
1225
+ }
1226
+ }
1227
+ },
1228
+ "additionalProperties": false,
1229
+ "required": [
1230
+ "choose"
1231
+ ]
1232
+ }
1233
+ ]
1192
1234
  },
1193
1235
  "swarmSize": {
1194
1236
  "$ref": "../util.json#/$defs/size",
@@ -1258,6 +1300,9 @@
1258
1300
  },
1259
1301
  "sidekickHidden": {
1260
1302
  "const": true
1303
+ },
1304
+ "note": {
1305
+ "type": "string"
1261
1306
  }
1262
1307
  },
1263
1308
  "required": [
@@ -2004,6 +2049,7 @@
2004
2049
  "Spider Climb",
2005
2050
  "Sunlight Sensitivity",
2006
2051
  "Tree Stride",
2052
+ "Tunneler",
2007
2053
  "Turn Immunity",
2008
2054
  "Turn Resistance",
2009
2055
  "Undead Fortitude",
@@ -2257,7 +2303,26 @@
2257
2303
  "type": "object",
2258
2304
  "properties": {
2259
2305
  "type": {
2260
- "$ref": "../util.json#/$defs/creatureType"
2306
+ "oneOf": [
2307
+ {
2308
+ "$ref": "../util.json#/$defs/creatureType"
2309
+ },
2310
+ {
2311
+ "type": "object",
2312
+ "properties": {
2313
+ "choose": {
2314
+ "type": "array",
2315
+ "items": {
2316
+ "$ref": "../util.json#/$defs/creatureType"
2317
+ }
2318
+ }
2319
+ },
2320
+ "additionalProperties": false,
2321
+ "required": [
2322
+ "choose"
2323
+ ]
2324
+ }
2325
+ ]
2261
2326
  },
2262
2327
  "swarmSize": {
2263
2328
  "$ref": "../util.json#/$defs/size",
@@ -2327,6 +2392,9 @@
2327
2392
  },
2328
2393
  "sidekickHidden": {
2329
2394
  "const": true
2395
+ },
2396
+ "note": {
2397
+ "type": "string"
2330
2398
  }
2331
2399
  },
2332
2400
  "required": [
@@ -3073,6 +3141,7 @@
3073
3141
  "Spider Climb",
3074
3142
  "Sunlight Sensitivity",
3075
3143
  "Tree Stride",
3144
+ "Tunneler",
3076
3145
  "Turn Immunity",
3077
3146
  "Turn Resistance",
3078
3147
  "Undead Fortitude",
@@ -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.14",
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": [
@@ -950,6 +972,7 @@
950
972
  "Spider Climb",
951
973
  "Sunlight Sensitivity",
952
974
  "Tree Stride",
975
+ "Tunneler",
953
976
  "Turn Immunity",
954
977
  "Turn Resistance",
955
978
  "Undead Fortitude",
@@ -1188,7 +1211,26 @@
1188
1211
  "type": "object",
1189
1212
  "properties": {
1190
1213
  "type": {
1191
- "$ref": "../util.json#/$defs/creatureType"
1214
+ "oneOf": [
1215
+ {
1216
+ "$ref": "../util.json#/$defs/creatureType"
1217
+ },
1218
+ {
1219
+ "type": "object",
1220
+ "properties": {
1221
+ "choose": {
1222
+ "type": "array",
1223
+ "items": {
1224
+ "$ref": "../util.json#/$defs/creatureType"
1225
+ }
1226
+ }
1227
+ },
1228
+ "additionalProperties": false,
1229
+ "required": [
1230
+ "choose"
1231
+ ]
1232
+ }
1233
+ ]
1192
1234
  },
1193
1235
  "swarmSize": {
1194
1236
  "$ref": "../util.json#/$defs/size",
@@ -1258,6 +1300,9 @@
1258
1300
  },
1259
1301
  "sidekickHidden": {
1260
1302
  "const": true
1303
+ },
1304
+ "note": {
1305
+ "type": "string"
1261
1306
  }
1262
1307
  },
1263
1308
  "required": [
@@ -2004,6 +2049,7 @@
2004
2049
  "Spider Climb",
2005
2050
  "Sunlight Sensitivity",
2006
2051
  "Tree Stride",
2052
+ "Tunneler",
2007
2053
  "Turn Immunity",
2008
2054
  "Turn Resistance",
2009
2055
  "Undead Fortitude",
@@ -2257,7 +2303,26 @@
2257
2303
  "type": "object",
2258
2304
  "properties": {
2259
2305
  "type": {
2260
- "$ref": "../util.json#/$defs/creatureType"
2306
+ "oneOf": [
2307
+ {
2308
+ "$ref": "../util.json#/$defs/creatureType"
2309
+ },
2310
+ {
2311
+ "type": "object",
2312
+ "properties": {
2313
+ "choose": {
2314
+ "type": "array",
2315
+ "items": {
2316
+ "$ref": "../util.json#/$defs/creatureType"
2317
+ }
2318
+ }
2319
+ },
2320
+ "additionalProperties": false,
2321
+ "required": [
2322
+ "choose"
2323
+ ]
2324
+ }
2325
+ ]
2261
2326
  },
2262
2327
  "swarmSize": {
2263
2328
  "$ref": "../util.json#/$defs/size",
@@ -2327,6 +2392,9 @@
2327
2392
  },
2328
2393
  "sidekickHidden": {
2329
2394
  "const": true
2395
+ },
2396
+ "note": {
2397
+ "type": "string"
2330
2398
  }
2331
2399
  },
2332
2400
  "required": [
@@ -3073,6 +3141,7 @@
3073
3141
  "Spider Climb",
3074
3142
  "Sunlight Sensitivity",
3075
3143
  "Tree Stride",
3144
+ "Tunneler",
3076
3145
  "Turn Immunity",
3077
3146
  "Turn Resistance",
3078
3147
  "Undead Fortitude",
@@ -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"