5etools-utils 0.12.62 → 0.12.63

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.62",
3
+ "version": "0.12.63",
4
4
  "description": "Shared utilities for the 5etools ecosystem.",
5
5
  "type": "module",
6
6
  "main": "lib/Api.js",
@@ -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.17.18",
6
+ "version": "1.17.19",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -2683,42 +2683,112 @@
2683
2683
  "uniqueItems": true,
2684
2684
  "minItems": 1
2685
2685
  },
2686
+ "_resourcesItemBase": {
2687
+ "type": "object",
2688
+ "properties": {
2689
+ "name": {
2690
+ "type": "string"
2691
+ },
2692
+ "recharge": {
2693
+ "type": "string",
2694
+ "enum": [
2695
+ "restShort",
2696
+ "restLong",
2697
+ "dawn",
2698
+ "dusk",
2699
+ "midnight"
2700
+ ]
2701
+ }
2702
+ },
2703
+ "required": [
2704
+ "name"
2705
+ ],
2706
+ "additionalProperties": false
2707
+ },
2686
2708
  "resourcesArray": {
2687
2709
  "type": "array",
2688
2710
  "items": {
2689
- "type": "object",
2690
- "properties": {
2691
- "name": {
2692
- "type": "string"
2693
- },
2694
- "type": {
2695
- "type": "string"
2696
- },
2697
- "recharge": {
2698
- "type": "string"
2699
- },
2700
- "count": {
2701
- "type": [
2702
- "integer",
2703
- "string"
2704
- ]
2705
- },
2706
- "number": {
2707
- "type": [
2708
- "integer",
2709
- "string"
2710
- ]
2711
+ "anyOf": [
2712
+ {
2713
+ "type": "object",
2714
+ "properties": {
2715
+ "name": {
2716
+ "type": "string"
2717
+ },
2718
+ "recharge": {
2719
+ "type": "string",
2720
+ "enum": [
2721
+ "restShort",
2722
+ "restLong",
2723
+ "dawn",
2724
+ "dusk",
2725
+ "midnight"
2726
+ ]
2727
+ },
2728
+ "type": {
2729
+ "const": "dicePool"
2730
+ },
2731
+ "count": {
2732
+ "type": [
2733
+ "integer",
2734
+ "string"
2735
+ ]
2736
+ },
2737
+ "number": {
2738
+ "type": [
2739
+ "integer",
2740
+ "string"
2741
+ ]
2742
+ },
2743
+ "faces": {
2744
+ "type": [
2745
+ "integer",
2746
+ "string"
2747
+ ]
2748
+ }
2749
+ },
2750
+ "required": [
2751
+ "name",
2752
+ "type",
2753
+ "count",
2754
+ "number",
2755
+ "faces"
2756
+ ],
2757
+ "additionalProperties": false
2711
2758
  },
2712
- "faces": {
2713
- "type": [
2714
- "integer",
2715
- "string"
2716
- ]
2759
+ {
2760
+ "type": "object",
2761
+ "properties": {
2762
+ "name": {
2763
+ "type": "string"
2764
+ },
2765
+ "recharge": {
2766
+ "type": "string",
2767
+ "enum": [
2768
+ "restShort",
2769
+ "restLong",
2770
+ "dawn",
2771
+ "dusk",
2772
+ "midnight"
2773
+ ]
2774
+ },
2775
+ "type": {
2776
+ "const": "pointPool"
2777
+ },
2778
+ "count": {
2779
+ "type": [
2780
+ "integer",
2781
+ "string"
2782
+ ]
2783
+ }
2784
+ },
2785
+ "required": [
2786
+ "name",
2787
+ "type",
2788
+ "count"
2789
+ ],
2790
+ "additionalProperties": false
2717
2791
  }
2718
- },
2719
- "required": [
2720
- "name",
2721
- "type"
2722
2792
  ]
2723
2793
  },
2724
2794
  "uniqueItems": true
@@ -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.17.18",
6
+ "version": "1.17.19",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -2683,42 +2683,112 @@
2683
2683
  "uniqueItems": true,
2684
2684
  "minItems": 1
2685
2685
  },
2686
+ "_resourcesItemBase": {
2687
+ "type": "object",
2688
+ "properties": {
2689
+ "name": {
2690
+ "type": "string"
2691
+ },
2692
+ "recharge": {
2693
+ "type": "string",
2694
+ "enum": [
2695
+ "restShort",
2696
+ "restLong",
2697
+ "dawn",
2698
+ "dusk",
2699
+ "midnight"
2700
+ ]
2701
+ }
2702
+ },
2703
+ "required": [
2704
+ "name"
2705
+ ],
2706
+ "additionalProperties": false
2707
+ },
2686
2708
  "resourcesArray": {
2687
2709
  "type": "array",
2688
2710
  "items": {
2689
- "type": "object",
2690
- "properties": {
2691
- "name": {
2692
- "type": "string"
2693
- },
2694
- "type": {
2695
- "type": "string"
2696
- },
2697
- "recharge": {
2698
- "type": "string"
2699
- },
2700
- "count": {
2701
- "type": [
2702
- "integer",
2703
- "string"
2704
- ]
2705
- },
2706
- "number": {
2707
- "type": [
2708
- "integer",
2709
- "string"
2710
- ]
2711
+ "anyOf": [
2712
+ {
2713
+ "type": "object",
2714
+ "properties": {
2715
+ "name": {
2716
+ "type": "string"
2717
+ },
2718
+ "recharge": {
2719
+ "type": "string",
2720
+ "enum": [
2721
+ "restShort",
2722
+ "restLong",
2723
+ "dawn",
2724
+ "dusk",
2725
+ "midnight"
2726
+ ]
2727
+ },
2728
+ "type": {
2729
+ "const": "dicePool"
2730
+ },
2731
+ "count": {
2732
+ "type": [
2733
+ "integer",
2734
+ "string"
2735
+ ]
2736
+ },
2737
+ "number": {
2738
+ "type": [
2739
+ "integer",
2740
+ "string"
2741
+ ]
2742
+ },
2743
+ "faces": {
2744
+ "type": [
2745
+ "integer",
2746
+ "string"
2747
+ ]
2748
+ }
2749
+ },
2750
+ "required": [
2751
+ "name",
2752
+ "type",
2753
+ "count",
2754
+ "number",
2755
+ "faces"
2756
+ ],
2757
+ "additionalProperties": false
2711
2758
  },
2712
- "faces": {
2713
- "type": [
2714
- "integer",
2715
- "string"
2716
- ]
2759
+ {
2760
+ "type": "object",
2761
+ "properties": {
2762
+ "name": {
2763
+ "type": "string"
2764
+ },
2765
+ "recharge": {
2766
+ "type": "string",
2767
+ "enum": [
2768
+ "restShort",
2769
+ "restLong",
2770
+ "dawn",
2771
+ "dusk",
2772
+ "midnight"
2773
+ ]
2774
+ },
2775
+ "type": {
2776
+ "const": "pointPool"
2777
+ },
2778
+ "count": {
2779
+ "type": [
2780
+ "integer",
2781
+ "string"
2782
+ ]
2783
+ }
2784
+ },
2785
+ "required": [
2786
+ "name",
2787
+ "type",
2788
+ "count"
2789
+ ],
2790
+ "additionalProperties": false
2717
2791
  }
2718
- },
2719
- "required": [
2720
- "name",
2721
- "type"
2722
2792
  ]
2723
2793
  },
2724
2794
  "uniqueItems": true
@@ -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.17.18",
6
+ "version": "1.17.19",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -2627,42 +2627,112 @@
2627
2627
  "uniqueItems": true,
2628
2628
  "minItems": 1
2629
2629
  },
2630
+ "_resourcesItemBase": {
2631
+ "type": "object",
2632
+ "properties": {
2633
+ "name": {
2634
+ "type": "string"
2635
+ },
2636
+ "recharge": {
2637
+ "type": "string",
2638
+ "enum": [
2639
+ "restShort",
2640
+ "restLong",
2641
+ "dawn",
2642
+ "dusk",
2643
+ "midnight"
2644
+ ]
2645
+ }
2646
+ },
2647
+ "required": [
2648
+ "name"
2649
+ ],
2650
+ "additionalProperties": false
2651
+ },
2630
2652
  "resourcesArray": {
2631
2653
  "type": "array",
2632
2654
  "items": {
2633
- "type": "object",
2634
- "properties": {
2635
- "name": {
2636
- "type": "string"
2637
- },
2638
- "type": {
2639
- "type": "string"
2640
- },
2641
- "recharge": {
2642
- "type": "string"
2643
- },
2644
- "count": {
2645
- "type": [
2646
- "integer",
2647
- "string"
2648
- ]
2649
- },
2650
- "number": {
2651
- "type": [
2652
- "integer",
2653
- "string"
2654
- ]
2655
+ "anyOf": [
2656
+ {
2657
+ "type": "object",
2658
+ "properties": {
2659
+ "name": {
2660
+ "type": "string"
2661
+ },
2662
+ "recharge": {
2663
+ "type": "string",
2664
+ "enum": [
2665
+ "restShort",
2666
+ "restLong",
2667
+ "dawn",
2668
+ "dusk",
2669
+ "midnight"
2670
+ ]
2671
+ },
2672
+ "type": {
2673
+ "const": "dicePool"
2674
+ },
2675
+ "count": {
2676
+ "type": [
2677
+ "integer",
2678
+ "string"
2679
+ ]
2680
+ },
2681
+ "number": {
2682
+ "type": [
2683
+ "integer",
2684
+ "string"
2685
+ ]
2686
+ },
2687
+ "faces": {
2688
+ "type": [
2689
+ "integer",
2690
+ "string"
2691
+ ]
2692
+ }
2693
+ },
2694
+ "required": [
2695
+ "name",
2696
+ "type",
2697
+ "count",
2698
+ "number",
2699
+ "faces"
2700
+ ],
2701
+ "additionalProperties": false
2655
2702
  },
2656
- "faces": {
2657
- "type": [
2658
- "integer",
2659
- "string"
2660
- ]
2703
+ {
2704
+ "type": "object",
2705
+ "properties": {
2706
+ "name": {
2707
+ "type": "string"
2708
+ },
2709
+ "recharge": {
2710
+ "type": "string",
2711
+ "enum": [
2712
+ "restShort",
2713
+ "restLong",
2714
+ "dawn",
2715
+ "dusk",
2716
+ "midnight"
2717
+ ]
2718
+ },
2719
+ "type": {
2720
+ "const": "pointPool"
2721
+ },
2722
+ "count": {
2723
+ "type": [
2724
+ "integer",
2725
+ "string"
2726
+ ]
2727
+ }
2728
+ },
2729
+ "required": [
2730
+ "name",
2731
+ "type",
2732
+ "count"
2733
+ ],
2734
+ "additionalProperties": false
2661
2735
  }
2662
- },
2663
- "required": [
2664
- "name",
2665
- "type"
2666
2736
  ]
2667
2737
  },
2668
2738
  "uniqueItems": true
@@ -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.17.18",
6
+ "version": "1.17.19",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -2627,42 +2627,112 @@
2627
2627
  "uniqueItems": true,
2628
2628
  "minItems": 1
2629
2629
  },
2630
+ "_resourcesItemBase": {
2631
+ "type": "object",
2632
+ "properties": {
2633
+ "name": {
2634
+ "type": "string"
2635
+ },
2636
+ "recharge": {
2637
+ "type": "string",
2638
+ "enum": [
2639
+ "restShort",
2640
+ "restLong",
2641
+ "dawn",
2642
+ "dusk",
2643
+ "midnight"
2644
+ ]
2645
+ }
2646
+ },
2647
+ "required": [
2648
+ "name"
2649
+ ],
2650
+ "additionalProperties": false
2651
+ },
2630
2652
  "resourcesArray": {
2631
2653
  "type": "array",
2632
2654
  "items": {
2633
- "type": "object",
2634
- "properties": {
2635
- "name": {
2636
- "type": "string"
2637
- },
2638
- "type": {
2639
- "type": "string"
2640
- },
2641
- "recharge": {
2642
- "type": "string"
2643
- },
2644
- "count": {
2645
- "type": [
2646
- "integer",
2647
- "string"
2648
- ]
2649
- },
2650
- "number": {
2651
- "type": [
2652
- "integer",
2653
- "string"
2654
- ]
2655
+ "anyOf": [
2656
+ {
2657
+ "type": "object",
2658
+ "properties": {
2659
+ "name": {
2660
+ "type": "string"
2661
+ },
2662
+ "recharge": {
2663
+ "type": "string",
2664
+ "enum": [
2665
+ "restShort",
2666
+ "restLong",
2667
+ "dawn",
2668
+ "dusk",
2669
+ "midnight"
2670
+ ]
2671
+ },
2672
+ "type": {
2673
+ "const": "dicePool"
2674
+ },
2675
+ "count": {
2676
+ "type": [
2677
+ "integer",
2678
+ "string"
2679
+ ]
2680
+ },
2681
+ "number": {
2682
+ "type": [
2683
+ "integer",
2684
+ "string"
2685
+ ]
2686
+ },
2687
+ "faces": {
2688
+ "type": [
2689
+ "integer",
2690
+ "string"
2691
+ ]
2692
+ }
2693
+ },
2694
+ "required": [
2695
+ "name",
2696
+ "type",
2697
+ "count",
2698
+ "number",
2699
+ "faces"
2700
+ ],
2701
+ "additionalProperties": false
2655
2702
  },
2656
- "faces": {
2657
- "type": [
2658
- "integer",
2659
- "string"
2660
- ]
2703
+ {
2704
+ "type": "object",
2705
+ "properties": {
2706
+ "name": {
2707
+ "type": "string"
2708
+ },
2709
+ "recharge": {
2710
+ "type": "string",
2711
+ "enum": [
2712
+ "restShort",
2713
+ "restLong",
2714
+ "dawn",
2715
+ "dusk",
2716
+ "midnight"
2717
+ ]
2718
+ },
2719
+ "type": {
2720
+ "const": "pointPool"
2721
+ },
2722
+ "count": {
2723
+ "type": [
2724
+ "integer",
2725
+ "string"
2726
+ ]
2727
+ }
2728
+ },
2729
+ "required": [
2730
+ "name",
2731
+ "type",
2732
+ "count"
2733
+ ],
2734
+ "additionalProperties": false
2661
2735
  }
2662
- },
2663
- "required": [
2664
- "name",
2665
- "type"
2666
2736
  ]
2667
2737
  },
2668
2738
  "uniqueItems": true
@@ -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.17.18",
6
+ "version": "1.17.19",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -2638,42 +2638,112 @@
2638
2638
  "uniqueItems": true,
2639
2639
  "minItems": 1
2640
2640
  },
2641
+ "_resourcesItemBase": {
2642
+ "type": "object",
2643
+ "properties": {
2644
+ "name": {
2645
+ "type": "string"
2646
+ },
2647
+ "recharge": {
2648
+ "type": "string",
2649
+ "enum": [
2650
+ "restShort",
2651
+ "restLong",
2652
+ "dawn",
2653
+ "dusk",
2654
+ "midnight"
2655
+ ]
2656
+ }
2657
+ },
2658
+ "required": [
2659
+ "name"
2660
+ ],
2661
+ "additionalProperties": false
2662
+ },
2641
2663
  "resourcesArray": {
2642
2664
  "type": "array",
2643
2665
  "items": {
2644
- "type": "object",
2645
- "properties": {
2646
- "name": {
2647
- "type": "string"
2648
- },
2649
- "type": {
2650
- "type": "string"
2651
- },
2652
- "recharge": {
2653
- "type": "string"
2654
- },
2655
- "count": {
2656
- "type": [
2657
- "integer",
2658
- "string"
2659
- ]
2660
- },
2661
- "number": {
2662
- "type": [
2663
- "integer",
2664
- "string"
2665
- ]
2666
+ "anyOf": [
2667
+ {
2668
+ "type": "object",
2669
+ "properties": {
2670
+ "name": {
2671
+ "type": "string"
2672
+ },
2673
+ "recharge": {
2674
+ "type": "string",
2675
+ "enum": [
2676
+ "restShort",
2677
+ "restLong",
2678
+ "dawn",
2679
+ "dusk",
2680
+ "midnight"
2681
+ ]
2682
+ },
2683
+ "type": {
2684
+ "const": "dicePool"
2685
+ },
2686
+ "count": {
2687
+ "type": [
2688
+ "integer",
2689
+ "string"
2690
+ ]
2691
+ },
2692
+ "number": {
2693
+ "type": [
2694
+ "integer",
2695
+ "string"
2696
+ ]
2697
+ },
2698
+ "faces": {
2699
+ "type": [
2700
+ "integer",
2701
+ "string"
2702
+ ]
2703
+ }
2704
+ },
2705
+ "required": [
2706
+ "name",
2707
+ "type",
2708
+ "count",
2709
+ "number",
2710
+ "faces"
2711
+ ],
2712
+ "additionalProperties": false
2666
2713
  },
2667
- "faces": {
2668
- "type": [
2669
- "integer",
2670
- "string"
2671
- ]
2714
+ {
2715
+ "type": "object",
2716
+ "properties": {
2717
+ "name": {
2718
+ "type": "string"
2719
+ },
2720
+ "recharge": {
2721
+ "type": "string",
2722
+ "enum": [
2723
+ "restShort",
2724
+ "restLong",
2725
+ "dawn",
2726
+ "dusk",
2727
+ "midnight"
2728
+ ]
2729
+ },
2730
+ "type": {
2731
+ "const": "pointPool"
2732
+ },
2733
+ "count": {
2734
+ "type": [
2735
+ "integer",
2736
+ "string"
2737
+ ]
2738
+ }
2739
+ },
2740
+ "required": [
2741
+ "name",
2742
+ "type",
2743
+ "count"
2744
+ ],
2745
+ "additionalProperties": false
2672
2746
  }
2673
- },
2674
- "required": [
2675
- "name",
2676
- "type"
2677
2747
  ]
2678
2748
  },
2679
2749
  "uniqueItems": true
@@ -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.17.18",
6
+ "version": "1.17.19",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -2638,42 +2638,112 @@
2638
2638
  "uniqueItems": true,
2639
2639
  "minItems": 1
2640
2640
  },
2641
+ "_resourcesItemBase": {
2642
+ "type": "object",
2643
+ "properties": {
2644
+ "name": {
2645
+ "type": "string"
2646
+ },
2647
+ "recharge": {
2648
+ "type": "string",
2649
+ "enum": [
2650
+ "restShort",
2651
+ "restLong",
2652
+ "dawn",
2653
+ "dusk",
2654
+ "midnight"
2655
+ ]
2656
+ }
2657
+ },
2658
+ "required": [
2659
+ "name"
2660
+ ],
2661
+ "additionalProperties": false
2662
+ },
2641
2663
  "resourcesArray": {
2642
2664
  "type": "array",
2643
2665
  "items": {
2644
- "type": "object",
2645
- "properties": {
2646
- "name": {
2647
- "type": "string"
2648
- },
2649
- "type": {
2650
- "type": "string"
2651
- },
2652
- "recharge": {
2653
- "type": "string"
2654
- },
2655
- "count": {
2656
- "type": [
2657
- "integer",
2658
- "string"
2659
- ]
2660
- },
2661
- "number": {
2662
- "type": [
2663
- "integer",
2664
- "string"
2665
- ]
2666
+ "anyOf": [
2667
+ {
2668
+ "type": "object",
2669
+ "properties": {
2670
+ "name": {
2671
+ "type": "string"
2672
+ },
2673
+ "recharge": {
2674
+ "type": "string",
2675
+ "enum": [
2676
+ "restShort",
2677
+ "restLong",
2678
+ "dawn",
2679
+ "dusk",
2680
+ "midnight"
2681
+ ]
2682
+ },
2683
+ "type": {
2684
+ "const": "dicePool"
2685
+ },
2686
+ "count": {
2687
+ "type": [
2688
+ "integer",
2689
+ "string"
2690
+ ]
2691
+ },
2692
+ "number": {
2693
+ "type": [
2694
+ "integer",
2695
+ "string"
2696
+ ]
2697
+ },
2698
+ "faces": {
2699
+ "type": [
2700
+ "integer",
2701
+ "string"
2702
+ ]
2703
+ }
2704
+ },
2705
+ "required": [
2706
+ "name",
2707
+ "type",
2708
+ "count",
2709
+ "number",
2710
+ "faces"
2711
+ ],
2712
+ "additionalProperties": false
2666
2713
  },
2667
- "faces": {
2668
- "type": [
2669
- "integer",
2670
- "string"
2671
- ]
2714
+ {
2715
+ "type": "object",
2716
+ "properties": {
2717
+ "name": {
2718
+ "type": "string"
2719
+ },
2720
+ "recharge": {
2721
+ "type": "string",
2722
+ "enum": [
2723
+ "restShort",
2724
+ "restLong",
2725
+ "dawn",
2726
+ "dusk",
2727
+ "midnight"
2728
+ ]
2729
+ },
2730
+ "type": {
2731
+ "const": "pointPool"
2732
+ },
2733
+ "count": {
2734
+ "type": [
2735
+ "integer",
2736
+ "string"
2737
+ ]
2738
+ }
2739
+ },
2740
+ "required": [
2741
+ "name",
2742
+ "type",
2743
+ "count"
2744
+ ],
2745
+ "additionalProperties": false
2672
2746
  }
2673
- },
2674
- "required": [
2675
- "name",
2676
- "type"
2677
2747
  ]
2678
2748
  },
2679
2749
  "uniqueItems": true