5etools-utils 0.12.57 → 0.12.58

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.12.57",
3
+ "version": "0.12.58",
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": "2.12.6",
3
+ "version": "2.12.7",
4
4
  "$id": "class.json",
5
5
  "type": "object",
6
6
  "$defs": {
@@ -760,7 +760,8 @@
760
760
  "skills": {
761
761
  "$ref": "../util.json#/$defs/skillProficiencies"
762
762
  }
763
- }
763
+ },
764
+ "additionalProperties": false
764
765
  },
765
766
  "subclass": {
766
767
  "anyOf": [
@@ -373,12 +373,16 @@
373
373
  "items": {
374
374
  "$ref": "#/$defs/languageNameLower"
375
375
  },
376
- "uniqueItems": true
376
+ "uniqueItems": true,
377
+ "minItems": 2
377
378
  },
378
379
  "count": {
379
380
  "type": "integer"
380
381
  }
381
382
  },
383
+ "required": [
384
+ "from"
385
+ ],
382
386
  "additionalProperties": false
383
387
  }
384
388
  },
@@ -393,52 +397,61 @@
393
397
  "minItems": 1
394
398
  },
395
399
  "toolNameLower": {
396
- "type": "string",
397
- "examples": [
398
- "artisan's tools",
399
- "alchemist's supplies",
400
- "brewer's supplies",
401
- "calligrapher's supplies",
402
- "carpenter's tools",
403
- "cartographer's tools",
404
- "cobbler's tools",
405
- "cook's utensils",
406
- "glassblower's tools",
407
- "jeweler's tools",
408
- "leatherworker's tools",
409
- "mason's tools",
410
- "painter's supplies",
411
- "potter's tools",
412
- "smith's tools",
413
- "tinker's tools",
414
- "weaver's tools",
415
- "woodcarver's tools",
416
- "disguise kit",
417
- "forgery kit",
418
- "gaming set",
419
- "dragonchess set",
420
- "dice set",
421
- "three-dragon ante set",
422
- "herbalism kit",
423
- "musical instrument",
424
- "bagpipes",
425
- "drum",
426
- "dulcimer",
427
- "flute",
428
- "horn",
429
- "lute",
430
- "lyre",
431
- "pan flute",
432
- "shawm",
433
- "viol",
434
- "navigator's tools",
435
- "thieves' tools",
436
- "poisoner's kit",
437
- "vehicles",
438
- "vehicles (air)",
439
- "vehicles (land)",
440
- "vehicles (water)",
441
- "vehicles (space)"
400
+ "anyOf": [
401
+ {
402
+ "type": "string",
403
+ "enum": [
404
+ "artisan's tools",
405
+ "alchemist's supplies",
406
+ "brewer's supplies",
407
+ "calligrapher's supplies",
408
+ "carpenter's tools",
409
+ "cartographer's tools",
410
+ "cobbler's tools",
411
+ "cook's utensils",
412
+ "glassblower's tools",
413
+ "jeweler's tools",
414
+ "leatherworker's tools",
415
+ "mason's tools",
416
+ "painter's supplies",
417
+ "potter's tools",
418
+ "smith's tools",
419
+ "tinker's tools",
420
+ "weaver's tools",
421
+ "woodcarver's tools",
422
+ "disguise kit",
423
+ "forgery kit",
424
+ "gaming set",
425
+ "dragonchess set",
426
+ "dice set",
427
+ "three-dragon ante set",
428
+ "playing card set",
429
+ "herbalism kit",
430
+ "musical instrument",
431
+ "bagpipes",
432
+ "drum",
433
+ "dulcimer",
434
+ "flute",
435
+ "horn",
436
+ "lute",
437
+ "lyre",
438
+ "pan flute",
439
+ "shawm",
440
+ "viol",
441
+ "navigator's tools",
442
+ "thieves' tools",
443
+ "poisoner's kit",
444
+ "vehicles",
445
+ "vehicles (air)",
446
+ "vehicles (land)",
447
+ "vehicles (water)",
448
+ "vehicles (space)"
449
+ ]
450
+ },
451
+ {
452
+ "type": "string",
453
+ "pattern": "^[^|]+\\|.+$"
454
+ }
442
455
  ]
443
456
  },
444
457
  "toolProficiencies": {
@@ -527,6 +540,9 @@
527
540
  "three-dragon ante set": {
528
541
  "const": true
529
542
  },
543
+ "playing card set": {
544
+ "const": true
545
+ },
530
546
  "herbalism kit": {
531
547
  "const": true
532
548
  },
@@ -616,11 +632,17 @@
616
632
  "type": "integer"
617
633
  }
618
634
  },
635
+ "required": [
636
+ "from"
637
+ ],
619
638
  "additionalProperties": false
620
639
  }
621
640
  },
622
- "additionalProperties": {
623
- "const": true
641
+ "additionalProperties": false,
642
+ "patternProperties": {
643
+ "^[^|]+\\|.+$": {
644
+ "const": true
645
+ }
624
646
  }
625
647
  },
626
648
  "uniqueItems": true,
@@ -746,7 +768,9 @@
746
768
  "const": true
747
769
  }
748
770
  }
749
- }
771
+ },
772
+ "uniqueItems": true,
773
+ "minItems": 1
750
774
  },
751
775
  "skillToolLanguageProficiencies": {
752
776
  "type": "array",
@@ -924,6 +948,9 @@
924
948
  "three-dragon ante set": {
925
949
  "const": true
926
950
  },
951
+ "playing card set": {
952
+ "const": true
953
+ },
927
954
  "herbalism kit": {
928
955
  "const": true
929
956
  },
@@ -1123,8 +1150,11 @@
1123
1150
  "minItems": 1
1124
1151
  }
1125
1152
  },
1126
- "additionalProperties": {
1127
- "const": true
1153
+ "additionalProperties": false,
1154
+ "patternProperties": {
1155
+ "^[^|]+\\|.+$": {
1156
+ "const": true
1157
+ }
1128
1158
  }
1129
1159
  },
1130
1160
  "uniqueItems": true,
@@ -1205,6 +1235,7 @@
1205
1235
  "const": true
1206
1236
  }
1207
1237
  },
1238
+ "minProperties": 1,
1208
1239
  "additionalProperties": false
1209
1240
  },
1210
1241
  "uniqueItems": true,
@@ -1261,6 +1292,7 @@
1261
1292
  "additionalProperties": false
1262
1293
  }
1263
1294
  },
1295
+ "minProperties": 1,
1264
1296
  "additionalProperties": false
1265
1297
  },
1266
1298
  "uniqueItems": true,
@@ -1403,6 +1435,9 @@
1403
1435
  "three-dragon ante set": {
1404
1436
  "const": true
1405
1437
  },
1438
+ "playing card set": {
1439
+ "const": true
1440
+ },
1406
1441
  "herbalism kit": {
1407
1442
  "const": true
1408
1443
  },
@@ -1463,6 +1498,12 @@
1463
1498
  "poisoner's kit": {
1464
1499
  "const": true
1465
1500
  }
1501
+ },
1502
+ "additionalProperties": false,
1503
+ "patternProperties": {
1504
+ "^[^|]+\\|.+$": {
1505
+ "const": true
1506
+ }
1466
1507
  }
1467
1508
  },
1468
1509
  "uniqueItems": true,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "2.12.6",
3
+ "version": "2.12.7",
4
4
  "$id": "class.json",
5
5
  "type": "object",
6
6
  "$defs": {
@@ -760,7 +760,8 @@
760
760
  "skills": {
761
761
  "$ref": "../util.json#/$defs/skillProficiencies"
762
762
  }
763
- }
763
+ },
764
+ "additionalProperties": false
764
765
  },
765
766
  "subclass": {
766
767
  "anyOf": [
@@ -373,12 +373,16 @@
373
373
  "items": {
374
374
  "$ref": "#/$defs/languageNameLower"
375
375
  },
376
- "uniqueItems": true
376
+ "uniqueItems": true,
377
+ "minItems": 2
377
378
  },
378
379
  "count": {
379
380
  "type": "integer"
380
381
  }
381
382
  },
383
+ "required": [
384
+ "from"
385
+ ],
382
386
  "additionalProperties": false
383
387
  }
384
388
  },
@@ -393,52 +397,61 @@
393
397
  "minItems": 1
394
398
  },
395
399
  "toolNameLower": {
396
- "type": "string",
397
- "examples": [
398
- "artisan's tools",
399
- "alchemist's supplies",
400
- "brewer's supplies",
401
- "calligrapher's supplies",
402
- "carpenter's tools",
403
- "cartographer's tools",
404
- "cobbler's tools",
405
- "cook's utensils",
406
- "glassblower's tools",
407
- "jeweler's tools",
408
- "leatherworker's tools",
409
- "mason's tools",
410
- "painter's supplies",
411
- "potter's tools",
412
- "smith's tools",
413
- "tinker's tools",
414
- "weaver's tools",
415
- "woodcarver's tools",
416
- "disguise kit",
417
- "forgery kit",
418
- "gaming set",
419
- "dragonchess set",
420
- "dice set",
421
- "three-dragon ante set",
422
- "herbalism kit",
423
- "musical instrument",
424
- "bagpipes",
425
- "drum",
426
- "dulcimer",
427
- "flute",
428
- "horn",
429
- "lute",
430
- "lyre",
431
- "pan flute",
432
- "shawm",
433
- "viol",
434
- "navigator's tools",
435
- "thieves' tools",
436
- "poisoner's kit",
437
- "vehicles",
438
- "vehicles (air)",
439
- "vehicles (land)",
440
- "vehicles (water)",
441
- "vehicles (space)"
400
+ "anyOf": [
401
+ {
402
+ "type": "string",
403
+ "enum": [
404
+ "artisan's tools",
405
+ "alchemist's supplies",
406
+ "brewer's supplies",
407
+ "calligrapher's supplies",
408
+ "carpenter's tools",
409
+ "cartographer's tools",
410
+ "cobbler's tools",
411
+ "cook's utensils",
412
+ "glassblower's tools",
413
+ "jeweler's tools",
414
+ "leatherworker's tools",
415
+ "mason's tools",
416
+ "painter's supplies",
417
+ "potter's tools",
418
+ "smith's tools",
419
+ "tinker's tools",
420
+ "weaver's tools",
421
+ "woodcarver's tools",
422
+ "disguise kit",
423
+ "forgery kit",
424
+ "gaming set",
425
+ "dragonchess set",
426
+ "dice set",
427
+ "three-dragon ante set",
428
+ "playing card set",
429
+ "herbalism kit",
430
+ "musical instrument",
431
+ "bagpipes",
432
+ "drum",
433
+ "dulcimer",
434
+ "flute",
435
+ "horn",
436
+ "lute",
437
+ "lyre",
438
+ "pan flute",
439
+ "shawm",
440
+ "viol",
441
+ "navigator's tools",
442
+ "thieves' tools",
443
+ "poisoner's kit",
444
+ "vehicles",
445
+ "vehicles (air)",
446
+ "vehicles (land)",
447
+ "vehicles (water)",
448
+ "vehicles (space)"
449
+ ]
450
+ },
451
+ {
452
+ "type": "string",
453
+ "pattern": "^[^|]+\\|.+$"
454
+ }
442
455
  ]
443
456
  },
444
457
  "toolProficiencies": {
@@ -527,6 +540,9 @@
527
540
  "three-dragon ante set": {
528
541
  "const": true
529
542
  },
543
+ "playing card set": {
544
+ "const": true
545
+ },
530
546
  "herbalism kit": {
531
547
  "const": true
532
548
  },
@@ -616,11 +632,17 @@
616
632
  "type": "integer"
617
633
  }
618
634
  },
635
+ "required": [
636
+ "from"
637
+ ],
619
638
  "additionalProperties": false
620
639
  }
621
640
  },
622
- "additionalProperties": {
623
- "const": true
641
+ "additionalProperties": false,
642
+ "patternProperties": {
643
+ "^[^|]+\\|.+$": {
644
+ "const": true
645
+ }
624
646
  }
625
647
  },
626
648
  "uniqueItems": true,
@@ -746,7 +768,9 @@
746
768
  "const": true
747
769
  }
748
770
  }
749
- }
771
+ },
772
+ "uniqueItems": true,
773
+ "minItems": 1
750
774
  },
751
775
  "skillToolLanguageProficiencies": {
752
776
  "type": "array",
@@ -924,6 +948,9 @@
924
948
  "three-dragon ante set": {
925
949
  "const": true
926
950
  },
951
+ "playing card set": {
952
+ "const": true
953
+ },
927
954
  "herbalism kit": {
928
955
  "const": true
929
956
  },
@@ -1123,8 +1150,11 @@
1123
1150
  "minItems": 1
1124
1151
  }
1125
1152
  },
1126
- "additionalProperties": {
1127
- "const": true
1153
+ "additionalProperties": false,
1154
+ "patternProperties": {
1155
+ "^[^|]+\\|.+$": {
1156
+ "const": true
1157
+ }
1128
1158
  }
1129
1159
  },
1130
1160
  "uniqueItems": true,
@@ -1205,6 +1235,7 @@
1205
1235
  "const": true
1206
1236
  }
1207
1237
  },
1238
+ "minProperties": 1,
1208
1239
  "additionalProperties": false
1209
1240
  },
1210
1241
  "uniqueItems": true,
@@ -1261,6 +1292,7 @@
1261
1292
  "additionalProperties": false
1262
1293
  }
1263
1294
  },
1295
+ "minProperties": 1,
1264
1296
  "additionalProperties": false
1265
1297
  },
1266
1298
  "uniqueItems": true,
@@ -1403,6 +1435,9 @@
1403
1435
  "three-dragon ante set": {
1404
1436
  "const": true
1405
1437
  },
1438
+ "playing card set": {
1439
+ "const": true
1440
+ },
1406
1441
  "herbalism kit": {
1407
1442
  "const": true
1408
1443
  },
@@ -1463,6 +1498,12 @@
1463
1498
  "poisoner's kit": {
1464
1499
  "const": true
1465
1500
  }
1501
+ },
1502
+ "additionalProperties": false,
1503
+ "patternProperties": {
1504
+ "^[^|]+\\|.+$": {
1505
+ "const": true
1506
+ }
1466
1507
  }
1467
1508
  },
1468
1509
  "uniqueItems": true,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "2.12.6",
3
+ "version": "2.12.7",
4
4
  "$id": "class.json",
5
5
  "type": "object",
6
6
  "$defs": {
@@ -580,7 +580,8 @@
580
580
  "skills": {
581
581
  "$ref": "../util.json#/$defs/skillProficiencies"
582
582
  }
583
- }
583
+ },
584
+ "additionalProperties": false
584
585
  },
585
586
  "subclass": {
586
587
  "anyOf": [