5etools-utils 0.6.0 → 0.6.2

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.0",
3
+ "version": "0.6.2",
4
4
  "description": "Shared utilities for the 5etools ecosystem.",
5
5
  "type": "module",
6
6
  "main": "lib/Api.js",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "adventures.json",
4
- "version": "1.10.10",
4
+ "version": "1.10.11",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "adventure": {
@@ -190,7 +190,8 @@
190
190
  "Critical Role",
191
191
  "Journeys through the Radiant Citadel",
192
192
  "Spelljammer",
193
- "Dragonlance"
193
+ "Dragonlance",
194
+ "Keys from the Golden Vault"
194
195
  ]
195
196
  },
196
197
  "alAveragePlayerLevel": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.21.11",
3
+ "version": "1.21.12",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -653,27 +653,34 @@
653
653
  }
654
654
  },
655
655
  "bonus": {
656
- "type": "array",
657
- "minItems": 1,
658
- "items": {
659
- "type": "object",
660
- "properties": {
661
- "name": {
662
- "type": "string"
663
- },
664
- "entries": {
665
- "type": "array",
666
- "items": {
667
- "$ref": "../entry.json"
668
- }
656
+ "oneOf": [
657
+ {
658
+ "type": "array",
659
+ "minItems": 1,
660
+ "items": {
661
+ "type": "object",
662
+ "properties": {
663
+ "name": {
664
+ "type": "string"
665
+ },
666
+ "entries": {
667
+ "type": "array",
668
+ "items": {
669
+ "$ref": "../entry.json"
670
+ }
671
+ }
672
+ },
673
+ "required": [
674
+ "name",
675
+ "entries"
676
+ ],
677
+ "additionalProperties": false
669
678
  }
670
679
  },
671
- "required": [
672
- "name",
673
- "entries"
674
- ],
675
- "additionalProperties": false
676
- }
680
+ {
681
+ "type": "null"
682
+ }
683
+ ]
677
684
  },
678
685
  "reactionNote": {
679
686
  "type": "string"
@@ -686,27 +693,34 @@
686
693
  }
687
694
  },
688
695
  "reaction": {
689
- "type": "array",
690
- "minItems": 1,
691
- "items": {
692
- "type": "object",
693
- "properties": {
694
- "name": {
695
- "type": "string"
696
- },
697
- "entries": {
698
- "type": "array",
699
- "items": {
700
- "$ref": "../entry.json"
701
- }
696
+ "oneOf": [
697
+ {
698
+ "type": "array",
699
+ "minItems": 1,
700
+ "items": {
701
+ "type": "object",
702
+ "properties": {
703
+ "name": {
704
+ "type": "string"
705
+ },
706
+ "entries": {
707
+ "type": "array",
708
+ "items": {
709
+ "$ref": "../entry.json"
710
+ }
711
+ }
712
+ },
713
+ "required": [
714
+ "name",
715
+ "entries"
716
+ ],
717
+ "additionalProperties": false
702
718
  }
703
719
  },
704
- "required": [
705
- "name",
706
- "entries"
707
- ],
708
- "additionalProperties": false
709
- }
720
+ {
721
+ "type": "null"
722
+ }
723
+ ]
710
724
  },
711
725
  "legendaryGroup": {
712
726
  "type": "object",
@@ -766,32 +780,46 @@
766
780
  }
767
781
  },
768
782
  "mythic": {
769
- "type": "array",
770
- "minItems": 1,
771
- "items": {
772
- "type": "object",
773
- "properties": {
774
- "name": {
775
- "type": "string"
776
- },
777
- "entries": {
778
- "type": "array",
779
- "items": {
780
- "$ref": "../entry.json"
781
- }
783
+ "oneOf": [
784
+ {
785
+ "type": "array",
786
+ "minItems": 1,
787
+ "items": {
788
+ "type": "object",
789
+ "properties": {
790
+ "name": {
791
+ "type": "string"
792
+ },
793
+ "entries": {
794
+ "type": "array",
795
+ "items": {
796
+ "$ref": "../entry.json"
797
+ }
798
+ }
799
+ },
800
+ "required": [
801
+ "entries"
802
+ ],
803
+ "additionalProperties": false
782
804
  }
783
805
  },
784
- "required": [
785
- "entries"
786
- ],
787
- "additionalProperties": false
788
- }
806
+ {
807
+ "type": "null"
808
+ }
809
+ ]
789
810
  },
790
811
  "variant": {
791
- "type": "array",
792
- "items": {
793
- "$ref": "#/$defs/entryVariantBestiary"
794
- }
812
+ "oneOf": [
813
+ {
814
+ "type": "array",
815
+ "items": {
816
+ "$ref": "#/$defs/entryVariantBestiary"
817
+ }
818
+ },
819
+ {
820
+ "type": "null"
821
+ }
822
+ ]
795
823
  },
796
824
  "page": {
797
825
  "$ref": "../util.json#/$defs/page"
@@ -1775,27 +1803,34 @@
1775
1803
  }
1776
1804
  },
1777
1805
  "bonus": {
1778
- "type": "array",
1779
- "minItems": 1,
1780
- "items": {
1781
- "type": "object",
1782
- "properties": {
1783
- "name": {
1784
- "type": "string"
1785
- },
1786
- "entries": {
1787
- "type": "array",
1788
- "items": {
1789
- "$ref": "../entry.json"
1790
- }
1806
+ "oneOf": [
1807
+ {
1808
+ "type": "array",
1809
+ "minItems": 1,
1810
+ "items": {
1811
+ "type": "object",
1812
+ "properties": {
1813
+ "name": {
1814
+ "type": "string"
1815
+ },
1816
+ "entries": {
1817
+ "type": "array",
1818
+ "items": {
1819
+ "$ref": "../entry.json"
1820
+ }
1821
+ }
1822
+ },
1823
+ "required": [
1824
+ "name",
1825
+ "entries"
1826
+ ],
1827
+ "additionalProperties": false
1791
1828
  }
1792
1829
  },
1793
- "required": [
1794
- "name",
1795
- "entries"
1796
- ],
1797
- "additionalProperties": false
1798
- }
1830
+ {
1831
+ "type": "null"
1832
+ }
1833
+ ]
1799
1834
  },
1800
1835
  "reactionNote": {
1801
1836
  "type": "string"
@@ -1808,27 +1843,34 @@
1808
1843
  }
1809
1844
  },
1810
1845
  "reaction": {
1811
- "type": "array",
1812
- "minItems": 1,
1813
- "items": {
1814
- "type": "object",
1815
- "properties": {
1816
- "name": {
1817
- "type": "string"
1818
- },
1819
- "entries": {
1820
- "type": "array",
1821
- "items": {
1822
- "$ref": "../entry.json"
1823
- }
1846
+ "oneOf": [
1847
+ {
1848
+ "type": "array",
1849
+ "minItems": 1,
1850
+ "items": {
1851
+ "type": "object",
1852
+ "properties": {
1853
+ "name": {
1854
+ "type": "string"
1855
+ },
1856
+ "entries": {
1857
+ "type": "array",
1858
+ "items": {
1859
+ "$ref": "../entry.json"
1860
+ }
1861
+ }
1862
+ },
1863
+ "required": [
1864
+ "name",
1865
+ "entries"
1866
+ ],
1867
+ "additionalProperties": false
1824
1868
  }
1825
1869
  },
1826
- "required": [
1827
- "name",
1828
- "entries"
1829
- ],
1830
- "additionalProperties": false
1831
- }
1870
+ {
1871
+ "type": "null"
1872
+ }
1873
+ ]
1832
1874
  },
1833
1875
  "legendaryGroup": {
1834
1876
  "type": "object",
@@ -1888,32 +1930,46 @@
1888
1930
  }
1889
1931
  },
1890
1932
  "mythic": {
1891
- "type": "array",
1892
- "minItems": 1,
1893
- "items": {
1894
- "type": "object",
1895
- "properties": {
1896
- "name": {
1897
- "type": "string"
1898
- },
1899
- "entries": {
1900
- "type": "array",
1901
- "items": {
1902
- "$ref": "../entry.json"
1903
- }
1933
+ "oneOf": [
1934
+ {
1935
+ "type": "array",
1936
+ "minItems": 1,
1937
+ "items": {
1938
+ "type": "object",
1939
+ "properties": {
1940
+ "name": {
1941
+ "type": "string"
1942
+ },
1943
+ "entries": {
1944
+ "type": "array",
1945
+ "items": {
1946
+ "$ref": "../entry.json"
1947
+ }
1948
+ }
1949
+ },
1950
+ "required": [
1951
+ "entries"
1952
+ ],
1953
+ "additionalProperties": false
1904
1954
  }
1905
1955
  },
1906
- "required": [
1907
- "entries"
1908
- ],
1909
- "additionalProperties": false
1910
- }
1956
+ {
1957
+ "type": "null"
1958
+ }
1959
+ ]
1911
1960
  },
1912
1961
  "variant": {
1913
- "type": "array",
1914
- "items": {
1915
- "$ref": "#/$defs/entryVariantBestiary"
1916
- }
1962
+ "oneOf": [
1963
+ {
1964
+ "type": "array",
1965
+ "items": {
1966
+ "$ref": "#/$defs/entryVariantBestiary"
1967
+ }
1968
+ },
1969
+ {
1970
+ "type": "null"
1971
+ }
1972
+ ]
1917
1973
  },
1918
1974
  "page": {
1919
1975
  "$ref": "../util.json#/$defs/page"
@@ -2912,27 +2968,34 @@
2912
2968
  }
2913
2969
  },
2914
2970
  "bonus": {
2915
- "type": "array",
2916
- "minItems": 1,
2917
- "items": {
2918
- "type": "object",
2919
- "properties": {
2920
- "name": {
2921
- "type": "string"
2922
- },
2923
- "entries": {
2924
- "type": "array",
2925
- "items": {
2926
- "$ref": "../entry.json"
2927
- }
2971
+ "oneOf": [
2972
+ {
2973
+ "type": "array",
2974
+ "minItems": 1,
2975
+ "items": {
2976
+ "type": "object",
2977
+ "properties": {
2978
+ "name": {
2979
+ "type": "string"
2980
+ },
2981
+ "entries": {
2982
+ "type": "array",
2983
+ "items": {
2984
+ "$ref": "../entry.json"
2985
+ }
2986
+ }
2987
+ },
2988
+ "required": [
2989
+ "name",
2990
+ "entries"
2991
+ ],
2992
+ "additionalProperties": false
2928
2993
  }
2929
2994
  },
2930
- "required": [
2931
- "name",
2932
- "entries"
2933
- ],
2934
- "additionalProperties": false
2935
- }
2995
+ {
2996
+ "type": "null"
2997
+ }
2998
+ ]
2936
2999
  },
2937
3000
  "reactionNote": {
2938
3001
  "type": "string"
@@ -2945,27 +3008,34 @@
2945
3008
  }
2946
3009
  },
2947
3010
  "reaction": {
2948
- "type": "array",
2949
- "minItems": 1,
2950
- "items": {
2951
- "type": "object",
2952
- "properties": {
2953
- "name": {
2954
- "type": "string"
2955
- },
2956
- "entries": {
2957
- "type": "array",
2958
- "items": {
2959
- "$ref": "../entry.json"
2960
- }
3011
+ "oneOf": [
3012
+ {
3013
+ "type": "array",
3014
+ "minItems": 1,
3015
+ "items": {
3016
+ "type": "object",
3017
+ "properties": {
3018
+ "name": {
3019
+ "type": "string"
3020
+ },
3021
+ "entries": {
3022
+ "type": "array",
3023
+ "items": {
3024
+ "$ref": "../entry.json"
3025
+ }
3026
+ }
3027
+ },
3028
+ "required": [
3029
+ "name",
3030
+ "entries"
3031
+ ],
3032
+ "additionalProperties": false
2961
3033
  }
2962
3034
  },
2963
- "required": [
2964
- "name",
2965
- "entries"
2966
- ],
2967
- "additionalProperties": false
2968
- }
3035
+ {
3036
+ "type": "null"
3037
+ }
3038
+ ]
2969
3039
  },
2970
3040
  "legendaryGroup": {
2971
3041
  "type": "object",
@@ -3025,32 +3095,46 @@
3025
3095
  }
3026
3096
  },
3027
3097
  "mythic": {
3028
- "type": "array",
3029
- "minItems": 1,
3030
- "items": {
3031
- "type": "object",
3032
- "properties": {
3033
- "name": {
3034
- "type": "string"
3035
- },
3036
- "entries": {
3037
- "type": "array",
3038
- "items": {
3039
- "$ref": "../entry.json"
3040
- }
3098
+ "oneOf": [
3099
+ {
3100
+ "type": "array",
3101
+ "minItems": 1,
3102
+ "items": {
3103
+ "type": "object",
3104
+ "properties": {
3105
+ "name": {
3106
+ "type": "string"
3107
+ },
3108
+ "entries": {
3109
+ "type": "array",
3110
+ "items": {
3111
+ "$ref": "../entry.json"
3112
+ }
3113
+ }
3114
+ },
3115
+ "required": [
3116
+ "entries"
3117
+ ],
3118
+ "additionalProperties": false
3041
3119
  }
3042
3120
  },
3043
- "required": [
3044
- "entries"
3045
- ],
3046
- "additionalProperties": false
3047
- }
3121
+ {
3122
+ "type": "null"
3123
+ }
3124
+ ]
3048
3125
  },
3049
3126
  "variant": {
3050
- "type": "array",
3051
- "items": {
3052
- "$ref": "#/$defs/entryVariantBestiary"
3053
- }
3127
+ "oneOf": [
3128
+ {
3129
+ "type": "array",
3130
+ "items": {
3131
+ "$ref": "#/$defs/entryVariantBestiary"
3132
+ }
3133
+ },
3134
+ {
3135
+ "type": "null"
3136
+ }
3137
+ ]
3054
3138
  },
3055
3139
  "page": {
3056
3140
  "$ref": "../util.json#/$defs/page"
@@ -37,9 +37,16 @@
37
37
  "minLength": 3
38
38
  },
39
39
  "page": {
40
- "type": [
41
- "integer",
42
- "string"
40
+ "oneOf": [
41
+ {
42
+ "type": "string",
43
+ "not": {
44
+ "pattern": "^\\d+$"
45
+ }
46
+ },
47
+ {
48
+ "type": "integer"
49
+ }
43
50
  ]
44
51
  },
45
52
  "otherSources": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "adventures.json",
4
- "version": "1.10.10",
4
+ "version": "1.10.11",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "adventure": {
@@ -190,7 +190,8 @@
190
190
  "Critical Role",
191
191
  "Journeys through the Radiant Citadel",
192
192
  "Spelljammer",
193
- "Dragonlance"
193
+ "Dragonlance",
194
+ "Keys from the Golden Vault"
194
195
  ]
195
196
  },
196
197
  "alAveragePlayerLevel": {