5etools-utils 0.9.55 → 0.9.56

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.9.55",
3
+ "version": "0.9.56",
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.14.5",
6
+ "version": "1.15.1",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -1505,30 +1505,8 @@
1505
1505
  "type": "integer"
1506
1506
  },
1507
1507
  "choose": {
1508
- "type": "object",
1509
- "properties": {
1510
- "from": {
1511
- "type": "array",
1512
- "items": {
1513
- "enum": [
1514
- "str",
1515
- "dex",
1516
- "con",
1517
- "int",
1518
- "wis",
1519
- "cha"
1520
- ]
1521
- },
1522
- "uniqueItems": true,
1523
- "minItems": 1
1524
- },
1525
- "count": {
1526
- "type": "integer"
1527
- },
1528
- "amount": {
1529
- "type": "integer"
1530
- },
1531
- "weighted": {
1508
+ "oneOf": [
1509
+ {
1532
1510
  "type": "object",
1533
1511
  "properties": {
1534
1512
  "from": {
@@ -1546,20 +1524,61 @@
1546
1524
  "uniqueItems": true,
1547
1525
  "minItems": 1
1548
1526
  },
1549
- "weights": {
1550
- "type": "array",
1551
- "items": {
1552
- "type": "integer"
1553
- },
1554
- "minItems": 1
1527
+ "count": {
1528
+ "type": "integer"
1529
+ },
1530
+ "amount": {
1531
+ "type": "integer"
1532
+ },
1533
+ "entry": {
1534
+ "$ref": "entry.json"
1555
1535
  }
1556
- }
1536
+ },
1537
+ "required": [
1538
+ "from"
1539
+ ],
1540
+ "additionalProperties": false
1557
1541
  },
1558
- "entry": {
1559
- "$ref": "entry.json"
1542
+ {
1543
+ "type": "object",
1544
+ "properties": {
1545
+ "weighted": {
1546
+ "type": "object",
1547
+ "properties": {
1548
+ "from": {
1549
+ "type": "array",
1550
+ "items": {
1551
+ "enum": [
1552
+ "str",
1553
+ "dex",
1554
+ "con",
1555
+ "int",
1556
+ "wis",
1557
+ "cha"
1558
+ ]
1559
+ },
1560
+ "uniqueItems": true,
1561
+ "minItems": 1
1562
+ },
1563
+ "weights": {
1564
+ "type": "array",
1565
+ "items": {
1566
+ "type": "integer"
1567
+ },
1568
+ "minItems": 1
1569
+ }
1570
+ }
1571
+ },
1572
+ "entry": {
1573
+ "$ref": "entry.json"
1574
+ }
1575
+ },
1576
+ "required": [
1577
+ "weighted"
1578
+ ],
1579
+ "additionalProperties": false
1560
1580
  }
1561
- },
1562
- "additionalProperties": false
1581
+ ]
1563
1582
  },
1564
1583
  "hidden": {
1565
1584
  "type": "boolean"
@@ -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.14.5",
6
+ "version": "1.15.1",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -1505,30 +1505,8 @@
1505
1505
  "type": "integer"
1506
1506
  },
1507
1507
  "choose": {
1508
- "type": "object",
1509
- "properties": {
1510
- "from": {
1511
- "type": "array",
1512
- "items": {
1513
- "enum": [
1514
- "str",
1515
- "dex",
1516
- "con",
1517
- "int",
1518
- "wis",
1519
- "cha"
1520
- ]
1521
- },
1522
- "uniqueItems": true,
1523
- "minItems": 1
1524
- },
1525
- "count": {
1526
- "type": "integer"
1527
- },
1528
- "amount": {
1529
- "type": "integer"
1530
- },
1531
- "weighted": {
1508
+ "oneOf": [
1509
+ {
1532
1510
  "type": "object",
1533
1511
  "properties": {
1534
1512
  "from": {
@@ -1546,20 +1524,61 @@
1546
1524
  "uniqueItems": true,
1547
1525
  "minItems": 1
1548
1526
  },
1549
- "weights": {
1550
- "type": "array",
1551
- "items": {
1552
- "type": "integer"
1553
- },
1554
- "minItems": 1
1527
+ "count": {
1528
+ "type": "integer"
1529
+ },
1530
+ "amount": {
1531
+ "type": "integer"
1532
+ },
1533
+ "entry": {
1534
+ "$ref": "entry.json"
1555
1535
  }
1556
- }
1536
+ },
1537
+ "required": [
1538
+ "from"
1539
+ ],
1540
+ "additionalProperties": false
1557
1541
  },
1558
- "entry": {
1559
- "$ref": "entry.json"
1542
+ {
1543
+ "type": "object",
1544
+ "properties": {
1545
+ "weighted": {
1546
+ "type": "object",
1547
+ "properties": {
1548
+ "from": {
1549
+ "type": "array",
1550
+ "items": {
1551
+ "enum": [
1552
+ "str",
1553
+ "dex",
1554
+ "con",
1555
+ "int",
1556
+ "wis",
1557
+ "cha"
1558
+ ]
1559
+ },
1560
+ "uniqueItems": true,
1561
+ "minItems": 1
1562
+ },
1563
+ "weights": {
1564
+ "type": "array",
1565
+ "items": {
1566
+ "type": "integer"
1567
+ },
1568
+ "minItems": 1
1569
+ }
1570
+ }
1571
+ },
1572
+ "entry": {
1573
+ "$ref": "entry.json"
1574
+ }
1575
+ },
1576
+ "required": [
1577
+ "weighted"
1578
+ ],
1579
+ "additionalProperties": false
1560
1580
  }
1561
- },
1562
- "additionalProperties": false
1581
+ ]
1563
1582
  },
1564
1583
  "hidden": {
1565
1584
  "type": "boolean"
@@ -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.14.5",
6
+ "version": "1.15.1",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -1493,30 +1493,8 @@
1493
1493
  "type": "integer"
1494
1494
  },
1495
1495
  "choose": {
1496
- "type": "object",
1497
- "properties": {
1498
- "from": {
1499
- "type": "array",
1500
- "items": {
1501
- "enum": [
1502
- "str",
1503
- "dex",
1504
- "con",
1505
- "int",
1506
- "wis",
1507
- "cha"
1508
- ]
1509
- },
1510
- "uniqueItems": true,
1511
- "minItems": 1
1512
- },
1513
- "count": {
1514
- "type": "integer"
1515
- },
1516
- "amount": {
1517
- "type": "integer"
1518
- },
1519
- "weighted": {
1496
+ "oneOf": [
1497
+ {
1520
1498
  "type": "object",
1521
1499
  "properties": {
1522
1500
  "from": {
@@ -1534,20 +1512,61 @@
1534
1512
  "uniqueItems": true,
1535
1513
  "minItems": 1
1536
1514
  },
1537
- "weights": {
1538
- "type": "array",
1539
- "items": {
1540
- "type": "integer"
1541
- },
1542
- "minItems": 1
1515
+ "count": {
1516
+ "type": "integer"
1517
+ },
1518
+ "amount": {
1519
+ "type": "integer"
1520
+ },
1521
+ "entry": {
1522
+ "$ref": "entry.json"
1543
1523
  }
1544
- }
1524
+ },
1525
+ "required": [
1526
+ "from"
1527
+ ],
1528
+ "additionalProperties": false
1545
1529
  },
1546
- "entry": {
1547
- "$ref": "entry.json"
1530
+ {
1531
+ "type": "object",
1532
+ "properties": {
1533
+ "weighted": {
1534
+ "type": "object",
1535
+ "properties": {
1536
+ "from": {
1537
+ "type": "array",
1538
+ "items": {
1539
+ "enum": [
1540
+ "str",
1541
+ "dex",
1542
+ "con",
1543
+ "int",
1544
+ "wis",
1545
+ "cha"
1546
+ ]
1547
+ },
1548
+ "uniqueItems": true,
1549
+ "minItems": 1
1550
+ },
1551
+ "weights": {
1552
+ "type": "array",
1553
+ "items": {
1554
+ "type": "integer"
1555
+ },
1556
+ "minItems": 1
1557
+ }
1558
+ }
1559
+ },
1560
+ "entry": {
1561
+ "$ref": "entry.json"
1562
+ }
1563
+ },
1564
+ "required": [
1565
+ "weighted"
1566
+ ],
1567
+ "additionalProperties": false
1548
1568
  }
1549
- },
1550
- "additionalProperties": false
1569
+ ]
1551
1570
  },
1552
1571
  "hidden": {
1553
1572
  "type": "boolean"
@@ -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.14.5",
6
+ "version": "1.15.1",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -1493,30 +1493,8 @@
1493
1493
  "type": "integer"
1494
1494
  },
1495
1495
  "choose": {
1496
- "type": "object",
1497
- "properties": {
1498
- "from": {
1499
- "type": "array",
1500
- "items": {
1501
- "enum": [
1502
- "str",
1503
- "dex",
1504
- "con",
1505
- "int",
1506
- "wis",
1507
- "cha"
1508
- ]
1509
- },
1510
- "uniqueItems": true,
1511
- "minItems": 1
1512
- },
1513
- "count": {
1514
- "type": "integer"
1515
- },
1516
- "amount": {
1517
- "type": "integer"
1518
- },
1519
- "weighted": {
1496
+ "oneOf": [
1497
+ {
1520
1498
  "type": "object",
1521
1499
  "properties": {
1522
1500
  "from": {
@@ -1534,20 +1512,61 @@
1534
1512
  "uniqueItems": true,
1535
1513
  "minItems": 1
1536
1514
  },
1537
- "weights": {
1538
- "type": "array",
1539
- "items": {
1540
- "type": "integer"
1541
- },
1542
- "minItems": 1
1515
+ "count": {
1516
+ "type": "integer"
1517
+ },
1518
+ "amount": {
1519
+ "type": "integer"
1520
+ },
1521
+ "entry": {
1522
+ "$ref": "entry.json"
1543
1523
  }
1544
- }
1524
+ },
1525
+ "required": [
1526
+ "from"
1527
+ ],
1528
+ "additionalProperties": false
1545
1529
  },
1546
- "entry": {
1547
- "$ref": "entry.json"
1530
+ {
1531
+ "type": "object",
1532
+ "properties": {
1533
+ "weighted": {
1534
+ "type": "object",
1535
+ "properties": {
1536
+ "from": {
1537
+ "type": "array",
1538
+ "items": {
1539
+ "enum": [
1540
+ "str",
1541
+ "dex",
1542
+ "con",
1543
+ "int",
1544
+ "wis",
1545
+ "cha"
1546
+ ]
1547
+ },
1548
+ "uniqueItems": true,
1549
+ "minItems": 1
1550
+ },
1551
+ "weights": {
1552
+ "type": "array",
1553
+ "items": {
1554
+ "type": "integer"
1555
+ },
1556
+ "minItems": 1
1557
+ }
1558
+ }
1559
+ },
1560
+ "entry": {
1561
+ "$ref": "entry.json"
1562
+ }
1563
+ },
1564
+ "required": [
1565
+ "weighted"
1566
+ ],
1567
+ "additionalProperties": false
1548
1568
  }
1549
- },
1550
- "additionalProperties": false
1569
+ ]
1551
1570
  },
1552
1571
  "hidden": {
1553
1572
  "type": "boolean"
@@ -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.14.5",
6
+ "version": "1.15.1",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -1496,30 +1496,8 @@
1496
1496
  "type": "integer"
1497
1497
  },
1498
1498
  "choose": {
1499
- "type": "object",
1500
- "properties": {
1501
- "from": {
1502
- "type": "array",
1503
- "items": {
1504
- "enum": [
1505
- "str",
1506
- "dex",
1507
- "con",
1508
- "int",
1509
- "wis",
1510
- "cha"
1511
- ]
1512
- },
1513
- "uniqueItems": true,
1514
- "minItems": 1
1515
- },
1516
- "count": {
1517
- "type": "integer"
1518
- },
1519
- "amount": {
1520
- "type": "integer"
1521
- },
1522
- "weighted": {
1499
+ "oneOf": [
1500
+ {
1523
1501
  "type": "object",
1524
1502
  "properties": {
1525
1503
  "from": {
@@ -1537,20 +1515,61 @@
1537
1515
  "uniqueItems": true,
1538
1516
  "minItems": 1
1539
1517
  },
1540
- "weights": {
1541
- "type": "array",
1542
- "items": {
1543
- "type": "integer"
1544
- },
1545
- "minItems": 1
1518
+ "count": {
1519
+ "type": "integer"
1520
+ },
1521
+ "amount": {
1522
+ "type": "integer"
1523
+ },
1524
+ "entry": {
1525
+ "$ref": "entry.json"
1546
1526
  }
1547
- }
1527
+ },
1528
+ "required": [
1529
+ "from"
1530
+ ],
1531
+ "additionalProperties": false
1548
1532
  },
1549
- "entry": {
1550
- "$ref": "entry.json"
1533
+ {
1534
+ "type": "object",
1535
+ "properties": {
1536
+ "weighted": {
1537
+ "type": "object",
1538
+ "properties": {
1539
+ "from": {
1540
+ "type": "array",
1541
+ "items": {
1542
+ "enum": [
1543
+ "str",
1544
+ "dex",
1545
+ "con",
1546
+ "int",
1547
+ "wis",
1548
+ "cha"
1549
+ ]
1550
+ },
1551
+ "uniqueItems": true,
1552
+ "minItems": 1
1553
+ },
1554
+ "weights": {
1555
+ "type": "array",
1556
+ "items": {
1557
+ "type": "integer"
1558
+ },
1559
+ "minItems": 1
1560
+ }
1561
+ }
1562
+ },
1563
+ "entry": {
1564
+ "$ref": "entry.json"
1565
+ }
1566
+ },
1567
+ "required": [
1568
+ "weighted"
1569
+ ],
1570
+ "additionalProperties": false
1551
1571
  }
1552
- },
1553
- "additionalProperties": false
1572
+ ]
1554
1573
  },
1555
1574
  "hidden": {
1556
1575
  "type": "boolean"
@@ -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.14.5",
6
+ "version": "1.15.1",
7
7
  "$defs": {
8
8
  "metaDependenciesArray": {
9
9
  "type": "array",
@@ -1496,30 +1496,8 @@
1496
1496
  "type": "integer"
1497
1497
  },
1498
1498
  "choose": {
1499
- "type": "object",
1500
- "properties": {
1501
- "from": {
1502
- "type": "array",
1503
- "items": {
1504
- "enum": [
1505
- "str",
1506
- "dex",
1507
- "con",
1508
- "int",
1509
- "wis",
1510
- "cha"
1511
- ]
1512
- },
1513
- "uniqueItems": true,
1514
- "minItems": 1
1515
- },
1516
- "count": {
1517
- "type": "integer"
1518
- },
1519
- "amount": {
1520
- "type": "integer"
1521
- },
1522
- "weighted": {
1499
+ "oneOf": [
1500
+ {
1523
1501
  "type": "object",
1524
1502
  "properties": {
1525
1503
  "from": {
@@ -1537,20 +1515,61 @@
1537
1515
  "uniqueItems": true,
1538
1516
  "minItems": 1
1539
1517
  },
1540
- "weights": {
1541
- "type": "array",
1542
- "items": {
1543
- "type": "integer"
1544
- },
1545
- "minItems": 1
1518
+ "count": {
1519
+ "type": "integer"
1520
+ },
1521
+ "amount": {
1522
+ "type": "integer"
1523
+ },
1524
+ "entry": {
1525
+ "$ref": "entry.json"
1546
1526
  }
1547
- }
1527
+ },
1528
+ "required": [
1529
+ "from"
1530
+ ],
1531
+ "additionalProperties": false
1548
1532
  },
1549
- "entry": {
1550
- "$ref": "entry.json"
1533
+ {
1534
+ "type": "object",
1535
+ "properties": {
1536
+ "weighted": {
1537
+ "type": "object",
1538
+ "properties": {
1539
+ "from": {
1540
+ "type": "array",
1541
+ "items": {
1542
+ "enum": [
1543
+ "str",
1544
+ "dex",
1545
+ "con",
1546
+ "int",
1547
+ "wis",
1548
+ "cha"
1549
+ ]
1550
+ },
1551
+ "uniqueItems": true,
1552
+ "minItems": 1
1553
+ },
1554
+ "weights": {
1555
+ "type": "array",
1556
+ "items": {
1557
+ "type": "integer"
1558
+ },
1559
+ "minItems": 1
1560
+ }
1561
+ }
1562
+ },
1563
+ "entry": {
1564
+ "$ref": "entry.json"
1565
+ }
1566
+ },
1567
+ "required": [
1568
+ "weighted"
1569
+ ],
1570
+ "additionalProperties": false
1551
1571
  }
1552
- },
1553
- "additionalProperties": false
1572
+ ]
1554
1573
  },
1555
1574
  "hidden": {
1556
1575
  "type": "boolean"