5etools-utils 0.16.24 → 0.16.26

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.16.24",
3
+ "version": "0.16.26",
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.13",
3
+ "version": "2.12.14",
4
4
  "$id": "class.json",
5
5
  "type": "object",
6
6
  "$defs": {
@@ -659,6 +659,15 @@
659
659
  }
660
660
  ]
661
661
  },
662
+ "_proficiencies_armor": {
663
+ "type": "string",
664
+ "examples": [
665
+ "light",
666
+ "medium",
667
+ "heavy",
668
+ "shield"
669
+ ]
670
+ },
662
671
  "proficiencies": {
663
672
  "type": "object",
664
673
  "properties": {
@@ -667,26 +676,13 @@
667
676
  "items": {
668
677
  "oneOf": [
669
678
  {
670
- "type": "string",
671
- "enum": [
672
- "light",
673
- "medium",
674
- "heavy",
675
- "shield"
676
- ]
679
+ "$ref": "#/$defs/_proficiencies_armor"
677
680
  },
678
681
  {
679
682
  "type": "object",
680
683
  "properties": {
681
684
  "proficiency": {
682
- "type": "string",
683
- "enum": [
684
- "light",
685
- "medium",
686
- "heavy",
687
- "shield",
688
- "special"
689
- ]
685
+ "$ref": "#/$defs/_proficiencies_armor"
690
686
  },
691
687
  "full": {
692
688
  "description": "The complete text for this proficiency.",
@@ -702,6 +698,11 @@
702
698
  ]
703
699
  }
704
700
  },
701
+ "armorProficiencies": {
702
+ "description": "Well-structured armor proficiency data, used by e.g. Plutonium.",
703
+ "$ref": "../util.json#/$defs/armorProficiencies",
704
+ "markdownDescription": "Well-structured armor proficiency data, used by e.g. Plutonium."
705
+ },
705
706
  "weapons": {
706
707
  "type": "array",
707
708
  "items": {
@@ -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.19.0",
6
+ "version": "1.19.2",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -1290,6 +1290,11 @@
1290
1290
  "const": true
1291
1291
  }
1292
1292
  },
1293
+ "patternProperties": {
1294
+ "^[^|]+\\|.+$": {
1295
+ "const": true
1296
+ }
1297
+ },
1293
1298
  "minProperties": 1,
1294
1299
  "additionalProperties": false
1295
1300
  },
@@ -2633,7 +2638,8 @@
2633
2638
  "from"
2634
2639
  ]
2635
2640
  }
2636
- }
2641
+ },
2642
+ "additionalProperties": false
2637
2643
  }
2638
2644
  ]
2639
2645
  },
@@ -2716,7 +2722,8 @@
2716
2722
  "from"
2717
2723
  ]
2718
2724
  }
2719
- }
2725
+ },
2726
+ "additionalProperties": false
2720
2727
  }
2721
2728
  ]
2722
2729
  },
@@ -2799,7 +2806,8 @@
2799
2806
  "from"
2800
2807
  ]
2801
2808
  }
2802
- }
2809
+ },
2810
+ "additionalProperties": false
2803
2811
  }
2804
2812
  ]
2805
2813
  },
@@ -2883,7 +2891,8 @@
2883
2891
  "from"
2884
2892
  ]
2885
2893
  }
2886
- }
2894
+ },
2895
+ "additionalProperties": false
2887
2896
  }
2888
2897
  ]
2889
2898
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "2.12.13",
3
+ "version": "2.12.14",
4
4
  "$id": "class.json",
5
5
  "type": "object",
6
6
  "$defs": {
@@ -659,6 +659,15 @@
659
659
  }
660
660
  ]
661
661
  },
662
+ "_proficiencies_armor": {
663
+ "type": "string",
664
+ "examples": [
665
+ "light",
666
+ "medium",
667
+ "heavy",
668
+ "shield"
669
+ ]
670
+ },
662
671
  "proficiencies": {
663
672
  "type": "object",
664
673
  "properties": {
@@ -667,26 +676,13 @@
667
676
  "items": {
668
677
  "oneOf": [
669
678
  {
670
- "type": "string",
671
- "enum": [
672
- "light",
673
- "medium",
674
- "heavy",
675
- "shield"
676
- ]
679
+ "$ref": "#/$defs/_proficiencies_armor"
677
680
  },
678
681
  {
679
682
  "type": "object",
680
683
  "properties": {
681
684
  "proficiency": {
682
- "type": "string",
683
- "enum": [
684
- "light",
685
- "medium",
686
- "heavy",
687
- "shield",
688
- "special"
689
- ]
685
+ "$ref": "#/$defs/_proficiencies_armor"
690
686
  },
691
687
  "full": {
692
688
  "description": "The complete text for this proficiency.",
@@ -702,6 +698,11 @@
702
698
  ]
703
699
  }
704
700
  },
701
+ "armorProficiencies": {
702
+ "description": "Well-structured armor proficiency data, used by e.g. Plutonium.",
703
+ "$ref": "../util.json#/$defs/armorProficiencies",
704
+ "markdownDescription": "Well-structured armor proficiency data, used by e.g. Plutonium."
705
+ },
705
706
  "weapons": {
706
707
  "type": "array",
707
708
  "items": {
@@ -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.19.0",
6
+ "version": "1.19.2",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -1290,6 +1290,11 @@
1290
1290
  "const": true
1291
1291
  }
1292
1292
  },
1293
+ "patternProperties": {
1294
+ "^[^|]+\\|.+$": {
1295
+ "const": true
1296
+ }
1297
+ },
1293
1298
  "minProperties": 1,
1294
1299
  "additionalProperties": false
1295
1300
  },
@@ -2633,7 +2638,8 @@
2633
2638
  "from"
2634
2639
  ]
2635
2640
  }
2636
- }
2641
+ },
2642
+ "additionalProperties": false
2637
2643
  }
2638
2644
  ]
2639
2645
  },
@@ -2716,7 +2722,8 @@
2716
2722
  "from"
2717
2723
  ]
2718
2724
  }
2719
- }
2725
+ },
2726
+ "additionalProperties": false
2720
2727
  }
2721
2728
  ]
2722
2729
  },
@@ -2799,7 +2806,8 @@
2799
2806
  "from"
2800
2807
  ]
2801
2808
  }
2802
- }
2809
+ },
2810
+ "additionalProperties": false
2803
2811
  }
2804
2812
  ]
2805
2813
  },
@@ -2883,7 +2891,8 @@
2883
2891
  "from"
2884
2892
  ]
2885
2893
  }
2886
- }
2894
+ },
2895
+ "additionalProperties": false
2887
2896
  }
2888
2897
  ]
2889
2898
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "2.12.13",
3
+ "version": "2.12.14",
4
4
  "$id": "class.json",
5
5
  "type": "object",
6
6
  "$defs": {
@@ -515,6 +515,15 @@
515
515
  }
516
516
  ]
517
517
  },
518
+ "_proficiencies_armor": {
519
+ "type": "string",
520
+ "enum": [
521
+ "light",
522
+ "medium",
523
+ "heavy",
524
+ "shield"
525
+ ]
526
+ },
518
527
  "proficiencies": {
519
528
  "type": "object",
520
529
  "properties": {
@@ -523,26 +532,13 @@
523
532
  "items": {
524
533
  "oneOf": [
525
534
  {
526
- "type": "string",
527
- "enum": [
528
- "light",
529
- "medium",
530
- "heavy",
531
- "shield"
532
- ]
535
+ "$ref": "#/$defs/_proficiencies_armor"
533
536
  },
534
537
  {
535
538
  "type": "object",
536
539
  "properties": {
537
540
  "proficiency": {
538
- "type": "string",
539
- "enum": [
540
- "light",
541
- "medium",
542
- "heavy",
543
- "shield",
544
- "special"
545
- ]
541
+ "$ref": "#/$defs/_proficiencies_armor"
546
542
  },
547
543
  "full": {
548
544
  "description": "The complete text for this proficiency.",
@@ -558,6 +554,11 @@
558
554
  ]
559
555
  }
560
556
  },
557
+ "armorProficiencies": {
558
+ "description": "Well-structured armor proficiency data, used by e.g. Plutonium.",
559
+ "$ref": "../util.json#/$defs/armorProficiencies",
560
+ "markdownDescription": "Well-structured armor proficiency data, used by e.g. Plutonium."
561
+ },
561
562
  "weapons": {
562
563
  "type": "array",
563
564
  "items": {
@@ -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.19.0",
6
+ "version": "1.19.2",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -1240,6 +1240,11 @@
1240
1240
  "const": true
1241
1241
  }
1242
1242
  },
1243
+ "patternProperties": {
1244
+ "^[^|]+\\|.+$": {
1245
+ "const": true
1246
+ }
1247
+ },
1243
1248
  "minProperties": 1,
1244
1249
  "additionalProperties": false
1245
1250
  },
@@ -2575,7 +2580,8 @@
2575
2580
  "from"
2576
2581
  ]
2577
2582
  }
2578
- }
2583
+ },
2584
+ "additionalProperties": false
2579
2585
  }
2580
2586
  ]
2581
2587
  },
@@ -2658,7 +2664,8 @@
2658
2664
  "from"
2659
2665
  ]
2660
2666
  }
2661
- }
2667
+ },
2668
+ "additionalProperties": false
2662
2669
  }
2663
2670
  ]
2664
2671
  },
@@ -2741,7 +2748,8 @@
2741
2748
  "from"
2742
2749
  ]
2743
2750
  }
2744
- }
2751
+ },
2752
+ "additionalProperties": false
2745
2753
  }
2746
2754
  ]
2747
2755
  },
@@ -2825,7 +2833,8 @@
2825
2833
  "from"
2826
2834
  ]
2827
2835
  }
2828
- }
2836
+ },
2837
+ "additionalProperties": false
2829
2838
  }
2830
2839
  ]
2831
2840
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "2.12.13",
3
+ "version": "2.12.14",
4
4
  "$id": "class.json",
5
5
  "type": "object",
6
6
  "$defs": {
@@ -515,6 +515,15 @@
515
515
  }
516
516
  ]
517
517
  },
518
+ "_proficiencies_armor": {
519
+ "type": "string",
520
+ "enum": [
521
+ "light",
522
+ "medium",
523
+ "heavy",
524
+ "shield"
525
+ ]
526
+ },
518
527
  "proficiencies": {
519
528
  "type": "object",
520
529
  "properties": {
@@ -523,26 +532,13 @@
523
532
  "items": {
524
533
  "oneOf": [
525
534
  {
526
- "type": "string",
527
- "enum": [
528
- "light",
529
- "medium",
530
- "heavy",
531
- "shield"
532
- ]
535
+ "$ref": "#/$defs/_proficiencies_armor"
533
536
  },
534
537
  {
535
538
  "type": "object",
536
539
  "properties": {
537
540
  "proficiency": {
538
- "type": "string",
539
- "enum": [
540
- "light",
541
- "medium",
542
- "heavy",
543
- "shield",
544
- "special"
545
- ]
541
+ "$ref": "#/$defs/_proficiencies_armor"
546
542
  },
547
543
  "full": {
548
544
  "description": "The complete text for this proficiency.",
@@ -558,6 +554,11 @@
558
554
  ]
559
555
  }
560
556
  },
557
+ "armorProficiencies": {
558
+ "description": "Well-structured armor proficiency data, used by e.g. Plutonium.",
559
+ "$ref": "../util.json#/$defs/armorProficiencies",
560
+ "markdownDescription": "Well-structured armor proficiency data, used by e.g. Plutonium."
561
+ },
561
562
  "weapons": {
562
563
  "type": "array",
563
564
  "items": {
@@ -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.19.0",
6
+ "version": "1.19.2",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -1240,6 +1240,11 @@
1240
1240
  "const": true
1241
1241
  }
1242
1242
  },
1243
+ "patternProperties": {
1244
+ "^[^|]+\\|.+$": {
1245
+ "const": true
1246
+ }
1247
+ },
1243
1248
  "minProperties": 1,
1244
1249
  "additionalProperties": false
1245
1250
  },
@@ -2575,7 +2580,8 @@
2575
2580
  "from"
2576
2581
  ]
2577
2582
  }
2578
- }
2583
+ },
2584
+ "additionalProperties": false
2579
2585
  }
2580
2586
  ]
2581
2587
  },
@@ -2658,7 +2664,8 @@
2658
2664
  "from"
2659
2665
  ]
2660
2666
  }
2661
- }
2667
+ },
2668
+ "additionalProperties": false
2662
2669
  }
2663
2670
  ]
2664
2671
  },
@@ -2741,7 +2748,8 @@
2741
2748
  "from"
2742
2749
  ]
2743
2750
  }
2744
- }
2751
+ },
2752
+ "additionalProperties": false
2745
2753
  }
2746
2754
  ]
2747
2755
  },
@@ -2825,7 +2833,8 @@
2825
2833
  "from"
2826
2834
  ]
2827
2835
  }
2828
- }
2836
+ },
2837
+ "additionalProperties": false
2829
2838
  }
2830
2839
  ]
2831
2840
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "2.12.13",
3
+ "version": "2.12.14",
4
4
  "$id": "class.json",
5
5
  "type": "object",
6
6
  "$defs": {
@@ -467,6 +467,15 @@
467
467
  }
468
468
  ]
469
469
  },
470
+ "_proficiencies_armor": {
471
+ "type": "string",
472
+ "enum": [
473
+ "light",
474
+ "medium",
475
+ "heavy",
476
+ "shield"
477
+ ]
478
+ },
470
479
  "proficiencies": {
471
480
  "type": "object",
472
481
  "properties": {
@@ -475,26 +484,13 @@
475
484
  "items": {
476
485
  "oneOf": [
477
486
  {
478
- "type": "string",
479
- "enum": [
480
- "light",
481
- "medium",
482
- "heavy",
483
- "shield"
484
- ]
487
+ "$ref": "#/$defs/_proficiencies_armor"
485
488
  },
486
489
  {
487
490
  "type": "object",
488
491
  "properties": {
489
492
  "proficiency": {
490
- "type": "string",
491
- "enum": [
492
- "light",
493
- "medium",
494
- "heavy",
495
- "shield",
496
- "special"
497
- ]
493
+ "$ref": "#/$defs/_proficiencies_armor"
498
494
  },
499
495
  "full": {
500
496
  "description": "The complete text for this proficiency.",
@@ -510,6 +506,11 @@
510
506
  ]
511
507
  }
512
508
  },
509
+ "armorProficiencies": {
510
+ "description": "Well-structured armor proficiency data, used by e.g. Plutonium.",
511
+ "$ref": "../util.json#/$defs/armorProficiencies",
512
+ "markdownDescription": "Well-structured armor proficiency data, used by e.g. Plutonium."
513
+ },
513
514
  "weapons": {
514
515
  "type": "array",
515
516
  "items": {
@@ -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.19.0",
6
+ "version": "1.19.2",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -1251,6 +1251,11 @@
1251
1251
  "const": true
1252
1252
  }
1253
1253
  },
1254
+ "patternProperties": {
1255
+ "^[^|]+\\|.+$": {
1256
+ "const": true
1257
+ }
1258
+ },
1254
1259
  "minProperties": 1,
1255
1260
  "additionalProperties": false
1256
1261
  },
@@ -2586,7 +2591,8 @@
2586
2591
  "from"
2587
2592
  ]
2588
2593
  }
2589
- }
2594
+ },
2595
+ "additionalProperties": false
2590
2596
  }
2591
2597
  ]
2592
2598
  },
@@ -2669,7 +2675,8 @@
2669
2675
  "from"
2670
2676
  ]
2671
2677
  }
2672
- }
2678
+ },
2679
+ "additionalProperties": false
2673
2680
  }
2674
2681
  ]
2675
2682
  },
@@ -2752,7 +2759,8 @@
2752
2759
  "from"
2753
2760
  ]
2754
2761
  }
2755
- }
2762
+ },
2763
+ "additionalProperties": false
2756
2764
  }
2757
2765
  ]
2758
2766
  },
@@ -2836,7 +2844,8 @@
2836
2844
  "from"
2837
2845
  ]
2838
2846
  }
2839
- }
2847
+ },
2848
+ "additionalProperties": false
2840
2849
  }
2841
2850
  ]
2842
2851
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "2.12.13",
3
+ "version": "2.12.14",
4
4
  "$id": "class.json",
5
5
  "type": "object",
6
6
  "$defs": {
@@ -467,6 +467,15 @@
467
467
  }
468
468
  ]
469
469
  },
470
+ "_proficiencies_armor": {
471
+ "type": "string",
472
+ "enum": [
473
+ "light",
474
+ "medium",
475
+ "heavy",
476
+ "shield"
477
+ ]
478
+ },
470
479
  "proficiencies": {
471
480
  "type": "object",
472
481
  "properties": {
@@ -475,26 +484,13 @@
475
484
  "items": {
476
485
  "oneOf": [
477
486
  {
478
- "type": "string",
479
- "enum": [
480
- "light",
481
- "medium",
482
- "heavy",
483
- "shield"
484
- ]
487
+ "$ref": "#/$defs/_proficiencies_armor"
485
488
  },
486
489
  {
487
490
  "type": "object",
488
491
  "properties": {
489
492
  "proficiency": {
490
- "type": "string",
491
- "enum": [
492
- "light",
493
- "medium",
494
- "heavy",
495
- "shield",
496
- "special"
497
- ]
493
+ "$ref": "#/$defs/_proficiencies_armor"
498
494
  },
499
495
  "full": {
500
496
  "description": "The complete text for this proficiency.",
@@ -510,6 +506,11 @@
510
506
  ]
511
507
  }
512
508
  },
509
+ "armorProficiencies": {
510
+ "description": "Well-structured armor proficiency data, used by e.g. Plutonium.",
511
+ "$ref": "../util.json#/$defs/armorProficiencies",
512
+ "markdownDescription": "Well-structured armor proficiency data, used by e.g. Plutonium."
513
+ },
513
514
  "weapons": {
514
515
  "type": "array",
515
516
  "items": {
@@ -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.19.0",
6
+ "version": "1.19.2",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -1251,6 +1251,11 @@
1251
1251
  "const": true
1252
1252
  }
1253
1253
  },
1254
+ "patternProperties": {
1255
+ "^[^|]+\\|.+$": {
1256
+ "const": true
1257
+ }
1258
+ },
1254
1259
  "minProperties": 1,
1255
1260
  "additionalProperties": false
1256
1261
  },
@@ -2586,7 +2591,8 @@
2586
2591
  "from"
2587
2592
  ]
2588
2593
  }
2589
- }
2594
+ },
2595
+ "additionalProperties": false
2590
2596
  }
2591
2597
  ]
2592
2598
  },
@@ -2669,7 +2675,8 @@
2669
2675
  "from"
2670
2676
  ]
2671
2677
  }
2672
- }
2678
+ },
2679
+ "additionalProperties": false
2673
2680
  }
2674
2681
  ]
2675
2682
  },
@@ -2752,7 +2759,8 @@
2752
2759
  "from"
2753
2760
  ]
2754
2761
  }
2755
- }
2762
+ },
2763
+ "additionalProperties": false
2756
2764
  }
2757
2765
  ]
2758
2766
  },
@@ -2836,7 +2844,8 @@
2836
2844
  "from"
2837
2845
  ]
2838
2846
  }
2839
- }
2847
+ },
2848
+ "additionalProperties": false
2840
2849
  }
2841
2850
  ]
2842
2851
  },