5etools-utils 0.13.21 → 0.13.22

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.13.21",
3
+ "version": "0.13.22",
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": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.9.10",
6
+ "version": "1.9.11",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -1644,40 +1644,81 @@
1644
1644
  ]
1645
1645
  },
1646
1646
  "entryItemSub": {
1647
- "type": "object",
1648
- "properties": {
1649
- "name": {
1650
- "type": "string"
1651
- },
1652
- "type": {
1653
- "type": "string",
1654
- "const": "itemSub"
1655
- },
1656
- "source": {
1657
- "$ref": "util.json#/$defs/source"
1658
- },
1659
- "page": {
1660
- "$ref": "util.json#/$defs/page"
1661
- },
1662
- "data": {
1663
- "$ref": "#/$defs/_entryDataData"
1664
- },
1665
- "id": {
1666
- "type": "string"
1667
- },
1668
- "entry": {
1669
- "$ref": "#"
1647
+ "oneOf": [
1648
+ {
1649
+ "type": "object",
1650
+ "properties": {
1651
+ "name": {
1652
+ "type": "string"
1653
+ },
1654
+ "type": {
1655
+ "type": "string",
1656
+ "const": "itemSub"
1657
+ },
1658
+ "source": {
1659
+ "$ref": "util.json#/$defs/source"
1660
+ },
1661
+ "page": {
1662
+ "$ref": "util.json#/$defs/page"
1663
+ },
1664
+ "data": {
1665
+ "$ref": "#/$defs/_entryDataData"
1666
+ },
1667
+ "id": {
1668
+ "type": "string"
1669
+ },
1670
+ "entry": {
1671
+ "$ref": "#"
1672
+ },
1673
+ "nameDot": {
1674
+ "const": false
1675
+ }
1676
+ },
1677
+ "required": [
1678
+ "type",
1679
+ "entry"
1680
+ ],
1681
+ "additionalProperties": false
1670
1682
  },
1671
- "nameDot": {
1672
- "const": false
1683
+ {
1684
+ "type": "object",
1685
+ "properties": {
1686
+ "name": {
1687
+ "type": "string"
1688
+ },
1689
+ "type": {
1690
+ "type": "string",
1691
+ "const": "itemSub"
1692
+ },
1693
+ "source": {
1694
+ "$ref": "util.json#/$defs/source"
1695
+ },
1696
+ "page": {
1697
+ "$ref": "util.json#/$defs/page"
1698
+ },
1699
+ "data": {
1700
+ "$ref": "#/$defs/_entryDataData"
1701
+ },
1702
+ "id": {
1703
+ "type": "string"
1704
+ },
1705
+ "entries": {
1706
+ "type": "array",
1707
+ "items": {
1708
+ "$ref": "#"
1709
+ }
1710
+ },
1711
+ "nameDot": {
1712
+ "const": false
1713
+ }
1714
+ },
1715
+ "required": [
1716
+ "type",
1717
+ "entries"
1718
+ ],
1719
+ "additionalProperties": false
1673
1720
  }
1674
- },
1675
- "required": [
1676
- "type",
1677
- "name",
1678
- "entry"
1679
- ],
1680
- "additionalProperties": false
1721
+ ]
1681
1722
  },
1682
1723
  "entryItemSpell": {
1683
1724
  "type": "object",
@@ -3,7 +3,7 @@
3
3
  "$id": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.9.10",
6
+ "version": "1.9.11",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -1644,40 +1644,81 @@
1644
1644
  ]
1645
1645
  },
1646
1646
  "entryItemSub": {
1647
- "type": "object",
1648
- "properties": {
1649
- "name": {
1650
- "type": "string"
1651
- },
1652
- "type": {
1653
- "type": "string",
1654
- "const": "itemSub"
1655
- },
1656
- "source": {
1657
- "$ref": "util.json#/$defs/source"
1658
- },
1659
- "page": {
1660
- "$ref": "util.json#/$defs/page"
1661
- },
1662
- "data": {
1663
- "$ref": "#/$defs/_entryDataData"
1664
- },
1665
- "id": {
1666
- "type": "string"
1667
- },
1668
- "entry": {
1669
- "$ref": "#"
1647
+ "oneOf": [
1648
+ {
1649
+ "type": "object",
1650
+ "properties": {
1651
+ "name": {
1652
+ "type": "string"
1653
+ },
1654
+ "type": {
1655
+ "type": "string",
1656
+ "const": "itemSub"
1657
+ },
1658
+ "source": {
1659
+ "$ref": "util.json#/$defs/source"
1660
+ },
1661
+ "page": {
1662
+ "$ref": "util.json#/$defs/page"
1663
+ },
1664
+ "data": {
1665
+ "$ref": "#/$defs/_entryDataData"
1666
+ },
1667
+ "id": {
1668
+ "type": "string"
1669
+ },
1670
+ "entry": {
1671
+ "$ref": "#"
1672
+ },
1673
+ "nameDot": {
1674
+ "const": false
1675
+ }
1676
+ },
1677
+ "required": [
1678
+ "type",
1679
+ "entry"
1680
+ ],
1681
+ "additionalProperties": false
1670
1682
  },
1671
- "nameDot": {
1672
- "const": false
1683
+ {
1684
+ "type": "object",
1685
+ "properties": {
1686
+ "name": {
1687
+ "type": "string"
1688
+ },
1689
+ "type": {
1690
+ "type": "string",
1691
+ "const": "itemSub"
1692
+ },
1693
+ "source": {
1694
+ "$ref": "util.json#/$defs/source"
1695
+ },
1696
+ "page": {
1697
+ "$ref": "util.json#/$defs/page"
1698
+ },
1699
+ "data": {
1700
+ "$ref": "#/$defs/_entryDataData"
1701
+ },
1702
+ "id": {
1703
+ "type": "string"
1704
+ },
1705
+ "entries": {
1706
+ "type": "array",
1707
+ "items": {
1708
+ "$ref": "#"
1709
+ }
1710
+ },
1711
+ "nameDot": {
1712
+ "const": false
1713
+ }
1714
+ },
1715
+ "required": [
1716
+ "type",
1717
+ "entries"
1718
+ ],
1719
+ "additionalProperties": false
1673
1720
  }
1674
- },
1675
- "required": [
1676
- "type",
1677
- "name",
1678
- "entry"
1679
- ],
1680
- "additionalProperties": false
1721
+ ]
1681
1722
  },
1682
1723
  "entryItemSpell": {
1683
1724
  "type": "object",
@@ -3,7 +3,7 @@
3
3
  "$id": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.9.10",
6
+ "version": "1.9.11",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -1960,52 +1960,105 @@
1960
1960
  ]
1961
1961
  },
1962
1962
  "entryItemSub": {
1963
- "type": "object",
1964
- "properties": {
1965
- "name": {
1966
- "type": "string"
1967
- },
1968
- "type": {
1969
- "type": "string",
1970
- "const": "itemSub"
1971
- },
1972
- "source": {
1973
- "$ref": "util.json#/$defs/source"
1974
- },
1975
- "page": {
1976
- "$ref": "util.json#/$defs/page"
1977
- },
1978
- "data": {
1979
- "$ref": "#/$defs/_entryDataData"
1980
- },
1981
- "id": {
1982
- "type": "string"
1983
- },
1984
- "srd": {
1985
- "$ref": "util.json#/$defs/srd"
1986
- },
1987
- "srd52": {
1988
- "$ref": "util.json#/$defs/srd"
1989
- },
1990
- "basicRules": {
1991
- "$ref": "util.json#/$defs/basicRules"
1992
- },
1993
- "basicRules2024": {
1994
- "$ref": "util.json#/$defs/basicRules"
1995
- },
1996
- "entry": {
1997
- "$ref": "#"
1963
+ "oneOf": [
1964
+ {
1965
+ "type": "object",
1966
+ "properties": {
1967
+ "name": {
1968
+ "type": "string"
1969
+ },
1970
+ "type": {
1971
+ "type": "string",
1972
+ "const": "itemSub"
1973
+ },
1974
+ "source": {
1975
+ "$ref": "util.json#/$defs/source"
1976
+ },
1977
+ "page": {
1978
+ "$ref": "util.json#/$defs/page"
1979
+ },
1980
+ "data": {
1981
+ "$ref": "#/$defs/_entryDataData"
1982
+ },
1983
+ "id": {
1984
+ "type": "string"
1985
+ },
1986
+ "srd": {
1987
+ "$ref": "util.json#/$defs/srd"
1988
+ },
1989
+ "srd52": {
1990
+ "$ref": "util.json#/$defs/srd"
1991
+ },
1992
+ "basicRules": {
1993
+ "$ref": "util.json#/$defs/basicRules"
1994
+ },
1995
+ "basicRules2024": {
1996
+ "$ref": "util.json#/$defs/basicRules"
1997
+ },
1998
+ "entry": {
1999
+ "$ref": "#"
2000
+ },
2001
+ "nameDot": {
2002
+ "const": false
2003
+ }
2004
+ },
2005
+ "required": [
2006
+ "type",
2007
+ "entry"
2008
+ ],
2009
+ "additionalProperties": false
1998
2010
  },
1999
- "nameDot": {
2000
- "const": false
2011
+ {
2012
+ "type": "object",
2013
+ "properties": {
2014
+ "name": {
2015
+ "type": "string"
2016
+ },
2017
+ "type": {
2018
+ "type": "string",
2019
+ "const": "itemSub"
2020
+ },
2021
+ "source": {
2022
+ "$ref": "util.json#/$defs/source"
2023
+ },
2024
+ "page": {
2025
+ "$ref": "util.json#/$defs/page"
2026
+ },
2027
+ "data": {
2028
+ "$ref": "#/$defs/_entryDataData"
2029
+ },
2030
+ "id": {
2031
+ "type": "string"
2032
+ },
2033
+ "srd": {
2034
+ "$ref": "util.json#/$defs/srd"
2035
+ },
2036
+ "srd52": {
2037
+ "$ref": "util.json#/$defs/srd"
2038
+ },
2039
+ "basicRules": {
2040
+ "$ref": "util.json#/$defs/basicRules"
2041
+ },
2042
+ "basicRules2024": {
2043
+ "$ref": "util.json#/$defs/basicRules"
2044
+ },
2045
+ "entries": {
2046
+ "type": "array",
2047
+ "items": {
2048
+ "$ref": "#"
2049
+ }
2050
+ },
2051
+ "nameDot": {
2052
+ "const": false
2053
+ }
2054
+ },
2055
+ "required": [
2056
+ "type",
2057
+ "entries"
2058
+ ],
2059
+ "additionalProperties": false
2001
2060
  }
2002
- },
2003
- "required": [
2004
- "type",
2005
- "name",
2006
- "entry"
2007
- ],
2008
- "additionalProperties": false
2061
+ ]
2009
2062
  },
2010
2063
  "entryItemSpell": {
2011
2064
  "type": "object",
@@ -3,7 +3,7 @@
3
3
  "$id": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.9.10",
6
+ "version": "1.9.11",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -1960,52 +1960,105 @@
1960
1960
  ]
1961
1961
  },
1962
1962
  "entryItemSub": {
1963
- "type": "object",
1964
- "properties": {
1965
- "name": {
1966
- "type": "string"
1967
- },
1968
- "type": {
1969
- "type": "string",
1970
- "const": "itemSub"
1971
- },
1972
- "source": {
1973
- "$ref": "util.json#/$defs/source"
1974
- },
1975
- "page": {
1976
- "$ref": "util.json#/$defs/page"
1977
- },
1978
- "data": {
1979
- "$ref": "#/$defs/_entryDataData"
1980
- },
1981
- "id": {
1982
- "type": "string"
1983
- },
1984
- "srd": {
1985
- "$ref": "util.json#/$defs/srd"
1986
- },
1987
- "srd52": {
1988
- "$ref": "util.json#/$defs/srd"
1989
- },
1990
- "basicRules": {
1991
- "$ref": "util.json#/$defs/basicRules"
1992
- },
1993
- "basicRules2024": {
1994
- "$ref": "util.json#/$defs/basicRules"
1995
- },
1996
- "entry": {
1997
- "$ref": "#"
1963
+ "oneOf": [
1964
+ {
1965
+ "type": "object",
1966
+ "properties": {
1967
+ "name": {
1968
+ "type": "string"
1969
+ },
1970
+ "type": {
1971
+ "type": "string",
1972
+ "const": "itemSub"
1973
+ },
1974
+ "source": {
1975
+ "$ref": "util.json#/$defs/source"
1976
+ },
1977
+ "page": {
1978
+ "$ref": "util.json#/$defs/page"
1979
+ },
1980
+ "data": {
1981
+ "$ref": "#/$defs/_entryDataData"
1982
+ },
1983
+ "id": {
1984
+ "type": "string"
1985
+ },
1986
+ "srd": {
1987
+ "$ref": "util.json#/$defs/srd"
1988
+ },
1989
+ "srd52": {
1990
+ "$ref": "util.json#/$defs/srd"
1991
+ },
1992
+ "basicRules": {
1993
+ "$ref": "util.json#/$defs/basicRules"
1994
+ },
1995
+ "basicRules2024": {
1996
+ "$ref": "util.json#/$defs/basicRules"
1997
+ },
1998
+ "entry": {
1999
+ "$ref": "#"
2000
+ },
2001
+ "nameDot": {
2002
+ "const": false
2003
+ }
2004
+ },
2005
+ "required": [
2006
+ "type",
2007
+ "entry"
2008
+ ],
2009
+ "additionalProperties": false
1998
2010
  },
1999
- "nameDot": {
2000
- "const": false
2011
+ {
2012
+ "type": "object",
2013
+ "properties": {
2014
+ "name": {
2015
+ "type": "string"
2016
+ },
2017
+ "type": {
2018
+ "type": "string",
2019
+ "const": "itemSub"
2020
+ },
2021
+ "source": {
2022
+ "$ref": "util.json#/$defs/source"
2023
+ },
2024
+ "page": {
2025
+ "$ref": "util.json#/$defs/page"
2026
+ },
2027
+ "data": {
2028
+ "$ref": "#/$defs/_entryDataData"
2029
+ },
2030
+ "id": {
2031
+ "type": "string"
2032
+ },
2033
+ "srd": {
2034
+ "$ref": "util.json#/$defs/srd"
2035
+ },
2036
+ "srd52": {
2037
+ "$ref": "util.json#/$defs/srd"
2038
+ },
2039
+ "basicRules": {
2040
+ "$ref": "util.json#/$defs/basicRules"
2041
+ },
2042
+ "basicRules2024": {
2043
+ "$ref": "util.json#/$defs/basicRules"
2044
+ },
2045
+ "entries": {
2046
+ "type": "array",
2047
+ "items": {
2048
+ "$ref": "#"
2049
+ }
2050
+ },
2051
+ "nameDot": {
2052
+ "const": false
2053
+ }
2054
+ },
2055
+ "required": [
2056
+ "type",
2057
+ "entries"
2058
+ ],
2059
+ "additionalProperties": false
2001
2060
  }
2002
- },
2003
- "required": [
2004
- "type",
2005
- "name",
2006
- "entry"
2007
- ],
2008
- "additionalProperties": false
2061
+ ]
2009
2062
  },
2010
2063
  "entryItemSpell": {
2011
2064
  "type": "object",
@@ -3,7 +3,7 @@
3
3
  "$id": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.9.10",
6
+ "version": "1.9.11",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -1611,40 +1611,81 @@
1611
1611
  ]
1612
1612
  },
1613
1613
  "entryItemSub": {
1614
- "type": "object",
1615
- "properties": {
1616
- "name": {
1617
- "type": "string"
1618
- },
1619
- "type": {
1620
- "type": "string",
1621
- "const": "itemSub"
1622
- },
1623
- "source": {
1624
- "$ref": "util.json#/$defs/source"
1625
- },
1626
- "page": {
1627
- "$ref": "util.json#/$defs/page"
1628
- },
1629
- "data": {
1630
- "$ref": "#/$defs/_entryDataData"
1631
- },
1632
- "id": {
1633
- "type": "string"
1634
- },
1635
- "entry": {
1636
- "$ref": "#"
1614
+ "oneOf": [
1615
+ {
1616
+ "type": "object",
1617
+ "properties": {
1618
+ "name": {
1619
+ "type": "string"
1620
+ },
1621
+ "type": {
1622
+ "type": "string",
1623
+ "const": "itemSub"
1624
+ },
1625
+ "source": {
1626
+ "$ref": "util.json#/$defs/source"
1627
+ },
1628
+ "page": {
1629
+ "$ref": "util.json#/$defs/page"
1630
+ },
1631
+ "data": {
1632
+ "$ref": "#/$defs/_entryDataData"
1633
+ },
1634
+ "id": {
1635
+ "type": "string"
1636
+ },
1637
+ "entry": {
1638
+ "$ref": "#"
1639
+ },
1640
+ "nameDot": {
1641
+ "const": false
1642
+ }
1643
+ },
1644
+ "required": [
1645
+ "type",
1646
+ "entry"
1647
+ ],
1648
+ "additionalProperties": false
1637
1649
  },
1638
- "nameDot": {
1639
- "const": false
1650
+ {
1651
+ "type": "object",
1652
+ "properties": {
1653
+ "name": {
1654
+ "type": "string"
1655
+ },
1656
+ "type": {
1657
+ "type": "string",
1658
+ "const": "itemSub"
1659
+ },
1660
+ "source": {
1661
+ "$ref": "util.json#/$defs/source"
1662
+ },
1663
+ "page": {
1664
+ "$ref": "util.json#/$defs/page"
1665
+ },
1666
+ "data": {
1667
+ "$ref": "#/$defs/_entryDataData"
1668
+ },
1669
+ "id": {
1670
+ "type": "string"
1671
+ },
1672
+ "entries": {
1673
+ "type": "array",
1674
+ "items": {
1675
+ "$ref": "#"
1676
+ }
1677
+ },
1678
+ "nameDot": {
1679
+ "const": false
1680
+ }
1681
+ },
1682
+ "required": [
1683
+ "type",
1684
+ "entries"
1685
+ ],
1686
+ "additionalProperties": false
1640
1687
  }
1641
- },
1642
- "required": [
1643
- "type",
1644
- "name",
1645
- "entry"
1646
- ],
1647
- "additionalProperties": false
1688
+ ]
1648
1689
  },
1649
1690
  "entryItemSpell": {
1650
1691
  "type": "object",
@@ -3,7 +3,7 @@
3
3
  "$id": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.9.10",
6
+ "version": "1.9.11",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -1611,40 +1611,81 @@
1611
1611
  ]
1612
1612
  },
1613
1613
  "entryItemSub": {
1614
- "type": "object",
1615
- "properties": {
1616
- "name": {
1617
- "type": "string"
1618
- },
1619
- "type": {
1620
- "type": "string",
1621
- "const": "itemSub"
1622
- },
1623
- "source": {
1624
- "$ref": "util.json#/$defs/source"
1625
- },
1626
- "page": {
1627
- "$ref": "util.json#/$defs/page"
1628
- },
1629
- "data": {
1630
- "$ref": "#/$defs/_entryDataData"
1631
- },
1632
- "id": {
1633
- "type": "string"
1634
- },
1635
- "entry": {
1636
- "$ref": "#"
1614
+ "oneOf": [
1615
+ {
1616
+ "type": "object",
1617
+ "properties": {
1618
+ "name": {
1619
+ "type": "string"
1620
+ },
1621
+ "type": {
1622
+ "type": "string",
1623
+ "const": "itemSub"
1624
+ },
1625
+ "source": {
1626
+ "$ref": "util.json#/$defs/source"
1627
+ },
1628
+ "page": {
1629
+ "$ref": "util.json#/$defs/page"
1630
+ },
1631
+ "data": {
1632
+ "$ref": "#/$defs/_entryDataData"
1633
+ },
1634
+ "id": {
1635
+ "type": "string"
1636
+ },
1637
+ "entry": {
1638
+ "$ref": "#"
1639
+ },
1640
+ "nameDot": {
1641
+ "const": false
1642
+ }
1643
+ },
1644
+ "required": [
1645
+ "type",
1646
+ "entry"
1647
+ ],
1648
+ "additionalProperties": false
1637
1649
  },
1638
- "nameDot": {
1639
- "const": false
1650
+ {
1651
+ "type": "object",
1652
+ "properties": {
1653
+ "name": {
1654
+ "type": "string"
1655
+ },
1656
+ "type": {
1657
+ "type": "string",
1658
+ "const": "itemSub"
1659
+ },
1660
+ "source": {
1661
+ "$ref": "util.json#/$defs/source"
1662
+ },
1663
+ "page": {
1664
+ "$ref": "util.json#/$defs/page"
1665
+ },
1666
+ "data": {
1667
+ "$ref": "#/$defs/_entryDataData"
1668
+ },
1669
+ "id": {
1670
+ "type": "string"
1671
+ },
1672
+ "entries": {
1673
+ "type": "array",
1674
+ "items": {
1675
+ "$ref": "#"
1676
+ }
1677
+ },
1678
+ "nameDot": {
1679
+ "const": false
1680
+ }
1681
+ },
1682
+ "required": [
1683
+ "type",
1684
+ "entries"
1685
+ ],
1686
+ "additionalProperties": false
1640
1687
  }
1641
- },
1642
- "required": [
1643
- "type",
1644
- "name",
1645
- "entry"
1646
- ],
1647
- "additionalProperties": false
1688
+ ]
1648
1689
  },
1649
1690
  "entryItemSpell": {
1650
1691
  "type": "object",