5etools-utils 0.12.40 → 0.12.42

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.40",
3
+ "version": "0.12.42",
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": "1.21.37",
3
+ "version": "1.21.38",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -63,7 +63,7 @@
63
63
  "type": "string"
64
64
  },
65
65
  "braces": {
66
- "type": "boolean"
66
+ "const": true
67
67
  }
68
68
  },
69
69
  "required": [
@@ -918,13 +918,16 @@
918
918
  "$ref": "../util.json#/$defs/page"
919
919
  },
920
920
  "familiar": {
921
- "type": "boolean"
921
+ "enum": [
922
+ true,
923
+ null
924
+ ]
922
925
  },
923
926
  "additionalSources": {
924
927
  "$ref": "../util.json#/$defs/additionalSources"
925
928
  },
926
929
  "hasToken": {
927
- "type": "boolean"
930
+ "const": true
928
931
  },
929
932
  "tokenCredit": {
930
933
  "type": "string"
@@ -939,11 +942,17 @@
939
942
  "$ref": "../util-token.json#/$defs/token"
940
943
  },
941
944
  "isNamedCreature": {
942
- "type": "boolean"
945
+ "enum": [
946
+ true,
947
+ null
948
+ ]
943
949
  },
944
950
  "isNpc": {
945
951
  "description": "Used to flag adventure NPCs",
946
- "type": "boolean"
952
+ "enum": [
953
+ true,
954
+ null
955
+ ]
947
956
  },
948
957
  "environment": {
949
958
  "type": "array",
@@ -1253,10 +1262,10 @@
1253
1262
  }
1254
1263
  },
1255
1264
  "hasFluff": {
1256
- "type": "boolean"
1265
+ "const": true
1257
1266
  },
1258
1267
  "hasFluffImages": {
1259
- "type": "boolean"
1268
+ "const": true
1260
1269
  },
1261
1270
  "externalSources": {
1262
1271
  "description": "For homebrew use only.",
@@ -1346,6 +1355,12 @@
1346
1355
  },
1347
1356
  "tokenHref": {
1348
1357
  "$ref": "../util-token.json#/$defs/tokenHref"
1358
+ },
1359
+ "foundryTokenSubjectHref": {
1360
+ "$ref": "../util-token.json#/$defs/tokenHref"
1361
+ },
1362
+ "foundryTokenSubjectScale": {
1363
+ "$ref": "../util-foundry.json#/$defs/foundryTokenSubjectScale"
1349
1364
  }
1350
1365
  },
1351
1366
  "additionalProperties": false
@@ -2160,13 +2175,16 @@
2160
2175
  "$ref": "../util.json#/$defs/page"
2161
2176
  },
2162
2177
  "familiar": {
2163
- "type": "boolean"
2178
+ "enum": [
2179
+ true,
2180
+ null
2181
+ ]
2164
2182
  },
2165
2183
  "additionalSources": {
2166
2184
  "$ref": "../util.json#/$defs/additionalSources"
2167
2185
  },
2168
2186
  "hasToken": {
2169
- "type": "boolean"
2187
+ "const": true
2170
2188
  },
2171
2189
  "tokenCredit": {
2172
2190
  "type": "string"
@@ -2181,11 +2199,17 @@
2181
2199
  "$ref": "../util-token.json#/$defs/token"
2182
2200
  },
2183
2201
  "isNamedCreature": {
2184
- "type": "boolean"
2202
+ "enum": [
2203
+ true,
2204
+ null
2205
+ ]
2185
2206
  },
2186
2207
  "isNpc": {
2187
2208
  "description": "Used to flag adventure NPCs",
2188
- "type": "boolean"
2209
+ "enum": [
2210
+ true,
2211
+ null
2212
+ ]
2189
2213
  },
2190
2214
  "environment": {
2191
2215
  "type": "array",
@@ -2495,10 +2519,10 @@
2495
2519
  }
2496
2520
  },
2497
2521
  "hasFluff": {
2498
- "type": "boolean"
2522
+ "const": true
2499
2523
  },
2500
2524
  "hasFluffImages": {
2501
- "type": "boolean"
2525
+ "const": true
2502
2526
  },
2503
2527
  "externalSources": {
2504
2528
  "description": "For homebrew use only.",
@@ -2588,6 +2612,12 @@
2588
2612
  },
2589
2613
  "tokenHref": {
2590
2614
  "$ref": "../util-token.json#/$defs/tokenHref"
2615
+ },
2616
+ "foundryTokenSubjectHref": {
2617
+ "$ref": "../util-token.json#/$defs/tokenHref"
2618
+ },
2619
+ "foundryTokenSubjectScale": {
2620
+ "$ref": "../util-foundry.json#/$defs/foundryTokenSubjectScale"
2591
2621
  }
2592
2622
  },
2593
2623
  "additionalProperties": false,
@@ -3407,13 +3437,16 @@
3407
3437
  "$ref": "../util.json#/$defs/page"
3408
3438
  },
3409
3439
  "familiar": {
3410
- "type": "boolean"
3440
+ "enum": [
3441
+ true,
3442
+ null
3443
+ ]
3411
3444
  },
3412
3445
  "additionalSources": {
3413
3446
  "$ref": "../util.json#/$defs/additionalSources"
3414
3447
  },
3415
3448
  "hasToken": {
3416
- "type": "boolean"
3449
+ "const": true
3417
3450
  },
3418
3451
  "tokenCredit": {
3419
3452
  "type": "string"
@@ -3428,11 +3461,17 @@
3428
3461
  "$ref": "../util-token.json#/$defs/token"
3429
3462
  },
3430
3463
  "isNamedCreature": {
3431
- "type": "boolean"
3464
+ "enum": [
3465
+ true,
3466
+ null
3467
+ ]
3432
3468
  },
3433
3469
  "isNpc": {
3434
3470
  "description": "Used to flag adventure NPCs",
3435
- "type": "boolean"
3471
+ "enum": [
3472
+ true,
3473
+ null
3474
+ ]
3436
3475
  },
3437
3476
  "environment": {
3438
3477
  "type": "array",
@@ -3742,10 +3781,10 @@
3742
3781
  }
3743
3782
  },
3744
3783
  "hasFluff": {
3745
- "type": "boolean"
3784
+ "const": true
3746
3785
  },
3747
3786
  "hasFluffImages": {
3748
- "type": "boolean"
3787
+ "const": true
3749
3788
  },
3750
3789
  "externalSources": {
3751
3790
  "description": "For homebrew use only.",
@@ -3836,6 +3875,12 @@
3836
3875
  "tokenHref": {
3837
3876
  "$ref": "../util-token.json#/$defs/tokenHref"
3838
3877
  },
3878
+ "foundryTokenSubjectHref": {
3879
+ "$ref": "../util-token.json#/$defs/tokenHref"
3880
+ },
3881
+ "foundryTokenSubjectScale": {
3882
+ "$ref": "../util-foundry.json#/$defs/foundryTokenSubjectScale"
3883
+ },
3839
3884
  "_copy": {
3840
3885
  "$ref": "../util-copy.json#/$defs/copyBlock_copy_generic"
3841
3886
  }
@@ -428,12 +428,14 @@
428
428
  "type": "object",
429
429
  "properties": {
430
430
  "weight": {
431
+ "description": "Value in pounds.",
431
432
  "type": "array",
432
433
  "items": {
433
434
  "type": "number"
434
435
  }
435
436
  },
436
437
  "volume": {
438
+ "description": "Value in cubic feet.",
437
439
  "type": "array",
438
440
  "items": {
439
441
  "type": "number"
@@ -991,12 +993,14 @@
991
993
  "type": "object",
992
994
  "properties": {
993
995
  "weight": {
996
+ "description": "Value in pounds.",
994
997
  "type": "array",
995
998
  "items": {
996
999
  "type": "number"
997
1000
  }
998
1001
  },
999
1002
  "volume": {
1003
+ "description": "Value in cubic feet.",
1000
1004
  "type": "array",
1001
1005
  "items": {
1002
1006
  "type": "number"
@@ -1556,12 +1560,14 @@
1556
1560
  "type": "object",
1557
1561
  "properties": {
1558
1562
  "weight": {
1563
+ "description": "Value in pounds.",
1559
1564
  "type": "array",
1560
1565
  "items": {
1561
1566
  "type": "number"
1562
1567
  }
1563
1568
  },
1564
1569
  "volume": {
1570
+ "description": "Value in cubic feet.",
1565
1571
  "type": "array",
1566
1572
  "items": {
1567
1573
  "type": "number"
@@ -2119,12 +2125,14 @@
2119
2125
  "type": "object",
2120
2126
  "properties": {
2121
2127
  "weight": {
2128
+ "description": "Value in pounds.",
2122
2129
  "type": "array",
2123
2130
  "items": {
2124
2131
  "type": "number"
2125
2132
  }
2126
2133
  },
2127
2134
  "volume": {
2135
+ "description": "Value in cubic feet.",
2128
2136
  "type": "array",
2129
2137
  "items": {
2130
2138
  "type": "number"
@@ -2689,12 +2697,14 @@
2689
2697
  "type": "object",
2690
2698
  "properties": {
2691
2699
  "weight": {
2700
+ "description": "Value in pounds.",
2692
2701
  "type": "array",
2693
2702
  "items": {
2694
2703
  "type": "number"
2695
2704
  }
2696
2705
  },
2697
2706
  "volume": {
2707
+ "description": "Value in cubic feet.",
2698
2708
  "type": "array",
2699
2709
  "items": {
2700
2710
  "type": "number"
@@ -3253,12 +3263,14 @@
3253
3263
  "type": "object",
3254
3264
  "properties": {
3255
3265
  "weight": {
3266
+ "description": "Value in pounds.",
3256
3267
  "type": "array",
3257
3268
  "items": {
3258
3269
  "type": "number"
3259
3270
  }
3260
3271
  },
3261
3272
  "volume": {
3273
+ "description": "Value in cubic feet.",
3262
3274
  "type": "array",
3263
3275
  "items": {
3264
3276
  "type": "number"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "objects.json",
4
- "version": "1.3.3",
4
+ "version": "1.3.4",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "object": {
@@ -164,6 +164,12 @@
164
164
  },
165
165
  "tokenHref": {
166
166
  "$ref": "util-token.json#/$defs/tokenHref"
167
+ },
168
+ "foundryTokenSubjectHref": {
169
+ "$ref": "util-token.json#/$defs/tokenHref"
170
+ },
171
+ "foundryTokenSubjectScale": {
172
+ "$ref": "util-foundry.json#/$defs/foundryTokenSubjectScale"
167
173
  }
168
174
  },
169
175
  "additionalProperties": false,
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "util-foundry.json",
4
4
  "title": "Util: Foundry",
5
- "version": "1.0.3",
5
+ "version": "1.0.4",
6
6
  "$defs": {
7
7
  "entryDataObject": {
8
8
  "description": "Additional \"5etools-type\" data to be stored on the entry.",
@@ -64,6 +64,12 @@
64
64
  "maximum": 3,
65
65
  "multipleOf": 0.1
66
66
  },
67
+ "foundryTokenSubjectScale": {
68
+ "type": "number",
69
+ "minimum": 0.8,
70
+ "maximum": 3,
71
+ "multipleOf": 0.1
72
+ },
67
73
  "foundrySystemObject": {
68
74
  "type": "object"
69
75
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "vehicles.json",
4
- "version": "1.7.10",
4
+ "version": "1.7.11",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "vehicleTerrain": {
@@ -474,6 +474,12 @@
474
474
  },
475
475
  "tokenHref": {
476
476
  "$ref": "util-token.json#/$defs/tokenHref"
477
+ },
478
+ "foundryTokenSubjectHref": {
479
+ "$ref": "util-token.json#/$defs/tokenHref"
480
+ },
481
+ "foundryTokenSubjectScale": {
482
+ "$ref": "util-foundry.json#/$defs/foundryTokenSubjectScale"
477
483
  }
478
484
  },
479
485
  "required": [
@@ -662,6 +668,12 @@
662
668
  },
663
669
  "tokenHref": {
664
670
  "$ref": "util-token.json#/$defs/tokenHref"
671
+ },
672
+ "foundryTokenSubjectHref": {
673
+ "$ref": "util-token.json#/$defs/tokenHref"
674
+ },
675
+ "foundryTokenSubjectScale": {
676
+ "$ref": "util-foundry.json#/$defs/foundryTokenSubjectScale"
665
677
  }
666
678
  },
667
679
  "required": [
@@ -852,6 +864,12 @@
852
864
  },
853
865
  "tokenHref": {
854
866
  "$ref": "util-token.json#/$defs/tokenHref"
867
+ },
868
+ "foundryTokenSubjectHref": {
869
+ "$ref": "util-token.json#/$defs/tokenHref"
870
+ },
871
+ "foundryTokenSubjectScale": {
872
+ "$ref": "util-foundry.json#/$defs/foundryTokenSubjectScale"
855
873
  }
856
874
  },
857
875
  "required": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.21.37",
3
+ "version": "1.21.38",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -63,7 +63,7 @@
63
63
  "type": "string"
64
64
  },
65
65
  "braces": {
66
- "type": "boolean"
66
+ "const": true
67
67
  }
68
68
  },
69
69
  "required": [
@@ -918,13 +918,16 @@
918
918
  "$ref": "../util.json#/$defs/page"
919
919
  },
920
920
  "familiar": {
921
- "type": "boolean"
921
+ "enum": [
922
+ true,
923
+ null
924
+ ]
922
925
  },
923
926
  "additionalSources": {
924
927
  "$ref": "../util.json#/$defs/additionalSources"
925
928
  },
926
929
  "hasToken": {
927
- "type": "boolean"
930
+ "const": true
928
931
  },
929
932
  "tokenCredit": {
930
933
  "type": "string"
@@ -939,11 +942,17 @@
939
942
  "$ref": "../util-token.json#/$defs/token"
940
943
  },
941
944
  "isNamedCreature": {
942
- "type": "boolean"
945
+ "enum": [
946
+ true,
947
+ null
948
+ ]
943
949
  },
944
950
  "isNpc": {
945
951
  "description": "Used to flag adventure NPCs",
946
- "type": "boolean"
952
+ "enum": [
953
+ true,
954
+ null
955
+ ]
947
956
  },
948
957
  "environment": {
949
958
  "type": "array",
@@ -1253,10 +1262,10 @@
1253
1262
  }
1254
1263
  },
1255
1264
  "hasFluff": {
1256
- "type": "boolean"
1265
+ "const": true
1257
1266
  },
1258
1267
  "hasFluffImages": {
1259
- "type": "boolean"
1268
+ "const": true
1260
1269
  },
1261
1270
  "externalSources": {
1262
1271
  "description": "For homebrew use only.",
@@ -1346,6 +1355,12 @@
1346
1355
  },
1347
1356
  "tokenHref": {
1348
1357
  "$ref": "../util-token.json#/$defs/tokenHref"
1358
+ },
1359
+ "foundryTokenSubjectHref": {
1360
+ "$ref": "../util-token.json#/$defs/tokenHref"
1361
+ },
1362
+ "foundryTokenSubjectScale": {
1363
+ "$ref": "../util-foundry.json#/$defs/foundryTokenSubjectScale"
1349
1364
  }
1350
1365
  },
1351
1366
  "additionalProperties": false
@@ -2160,13 +2175,16 @@
2160
2175
  "$ref": "../util.json#/$defs/page"
2161
2176
  },
2162
2177
  "familiar": {
2163
- "type": "boolean"
2178
+ "enum": [
2179
+ true,
2180
+ null
2181
+ ]
2164
2182
  },
2165
2183
  "additionalSources": {
2166
2184
  "$ref": "../util.json#/$defs/additionalSources"
2167
2185
  },
2168
2186
  "hasToken": {
2169
- "type": "boolean"
2187
+ "const": true
2170
2188
  },
2171
2189
  "tokenCredit": {
2172
2190
  "type": "string"
@@ -2181,11 +2199,17 @@
2181
2199
  "$ref": "../util-token.json#/$defs/token"
2182
2200
  },
2183
2201
  "isNamedCreature": {
2184
- "type": "boolean"
2202
+ "enum": [
2203
+ true,
2204
+ null
2205
+ ]
2185
2206
  },
2186
2207
  "isNpc": {
2187
2208
  "description": "Used to flag adventure NPCs",
2188
- "type": "boolean"
2209
+ "enum": [
2210
+ true,
2211
+ null
2212
+ ]
2189
2213
  },
2190
2214
  "environment": {
2191
2215
  "type": "array",
@@ -2495,10 +2519,10 @@
2495
2519
  }
2496
2520
  },
2497
2521
  "hasFluff": {
2498
- "type": "boolean"
2522
+ "const": true
2499
2523
  },
2500
2524
  "hasFluffImages": {
2501
- "type": "boolean"
2525
+ "const": true
2502
2526
  },
2503
2527
  "externalSources": {
2504
2528
  "description": "For homebrew use only.",
@@ -2588,6 +2612,12 @@
2588
2612
  },
2589
2613
  "tokenHref": {
2590
2614
  "$ref": "../util-token.json#/$defs/tokenHref"
2615
+ },
2616
+ "foundryTokenSubjectHref": {
2617
+ "$ref": "../util-token.json#/$defs/tokenHref"
2618
+ },
2619
+ "foundryTokenSubjectScale": {
2620
+ "$ref": "../util-foundry.json#/$defs/foundryTokenSubjectScale"
2591
2621
  }
2592
2622
  },
2593
2623
  "additionalProperties": false,
@@ -3407,13 +3437,16 @@
3407
3437
  "$ref": "../util.json#/$defs/page"
3408
3438
  },
3409
3439
  "familiar": {
3410
- "type": "boolean"
3440
+ "enum": [
3441
+ true,
3442
+ null
3443
+ ]
3411
3444
  },
3412
3445
  "additionalSources": {
3413
3446
  "$ref": "../util.json#/$defs/additionalSources"
3414
3447
  },
3415
3448
  "hasToken": {
3416
- "type": "boolean"
3449
+ "const": true
3417
3450
  },
3418
3451
  "tokenCredit": {
3419
3452
  "type": "string"
@@ -3428,11 +3461,17 @@
3428
3461
  "$ref": "../util-token.json#/$defs/token"
3429
3462
  },
3430
3463
  "isNamedCreature": {
3431
- "type": "boolean"
3464
+ "enum": [
3465
+ true,
3466
+ null
3467
+ ]
3432
3468
  },
3433
3469
  "isNpc": {
3434
3470
  "description": "Used to flag adventure NPCs",
3435
- "type": "boolean"
3471
+ "enum": [
3472
+ true,
3473
+ null
3474
+ ]
3436
3475
  },
3437
3476
  "environment": {
3438
3477
  "type": "array",
@@ -3742,10 +3781,10 @@
3742
3781
  }
3743
3782
  },
3744
3783
  "hasFluff": {
3745
- "type": "boolean"
3784
+ "const": true
3746
3785
  },
3747
3786
  "hasFluffImages": {
3748
- "type": "boolean"
3787
+ "const": true
3749
3788
  },
3750
3789
  "externalSources": {
3751
3790
  "description": "For homebrew use only.",
@@ -3836,6 +3875,12 @@
3836
3875
  "tokenHref": {
3837
3876
  "$ref": "../util-token.json#/$defs/tokenHref"
3838
3877
  },
3878
+ "foundryTokenSubjectHref": {
3879
+ "$ref": "../util-token.json#/$defs/tokenHref"
3880
+ },
3881
+ "foundryTokenSubjectScale": {
3882
+ "$ref": "../util-foundry.json#/$defs/foundryTokenSubjectScale"
3883
+ },
3839
3884
  "_copy": {
3840
3885
  "$ref": "../util-copy.json#/$defs/copyBlock_copy_generic"
3841
3886
  }
@@ -428,12 +428,14 @@
428
428
  "type": "object",
429
429
  "properties": {
430
430
  "weight": {
431
+ "description": "Value in pounds.",
431
432
  "type": "array",
432
433
  "items": {
433
434
  "type": "number"
434
435
  }
435
436
  },
436
437
  "volume": {
438
+ "description": "Value in cubic feet.",
437
439
  "type": "array",
438
440
  "items": {
439
441
  "type": "number"
@@ -991,12 +993,14 @@
991
993
  "type": "object",
992
994
  "properties": {
993
995
  "weight": {
996
+ "description": "Value in pounds.",
994
997
  "type": "array",
995
998
  "items": {
996
999
  "type": "number"
997
1000
  }
998
1001
  },
999
1002
  "volume": {
1003
+ "description": "Value in cubic feet.",
1000
1004
  "type": "array",
1001
1005
  "items": {
1002
1006
  "type": "number"
@@ -1556,12 +1560,14 @@
1556
1560
  "type": "object",
1557
1561
  "properties": {
1558
1562
  "weight": {
1563
+ "description": "Value in pounds.",
1559
1564
  "type": "array",
1560
1565
  "items": {
1561
1566
  "type": "number"
1562
1567
  }
1563
1568
  },
1564
1569
  "volume": {
1570
+ "description": "Value in cubic feet.",
1565
1571
  "type": "array",
1566
1572
  "items": {
1567
1573
  "type": "number"
@@ -2119,12 +2125,14 @@
2119
2125
  "type": "object",
2120
2126
  "properties": {
2121
2127
  "weight": {
2128
+ "description": "Value in pounds.",
2122
2129
  "type": "array",
2123
2130
  "items": {
2124
2131
  "type": "number"
2125
2132
  }
2126
2133
  },
2127
2134
  "volume": {
2135
+ "description": "Value in cubic feet.",
2128
2136
  "type": "array",
2129
2137
  "items": {
2130
2138
  "type": "number"
@@ -2689,12 +2697,14 @@
2689
2697
  "type": "object",
2690
2698
  "properties": {
2691
2699
  "weight": {
2700
+ "description": "Value in pounds.",
2692
2701
  "type": "array",
2693
2702
  "items": {
2694
2703
  "type": "number"
2695
2704
  }
2696
2705
  },
2697
2706
  "volume": {
2707
+ "description": "Value in cubic feet.",
2698
2708
  "type": "array",
2699
2709
  "items": {
2700
2710
  "type": "number"
@@ -3253,12 +3263,14 @@
3253
3263
  "type": "object",
3254
3264
  "properties": {
3255
3265
  "weight": {
3266
+ "description": "Value in pounds.",
3256
3267
  "type": "array",
3257
3268
  "items": {
3258
3269
  "type": "number"
3259
3270
  }
3260
3271
  },
3261
3272
  "volume": {
3273
+ "description": "Value in cubic feet.",
3262
3274
  "type": "array",
3263
3275
  "items": {
3264
3276
  "type": "number"