5etools-utils 0.9.57 → 0.9.58

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.57",
3
+ "version": "0.9.58",
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.17",
4
+ "version": "1.10.18",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "adventure": {
@@ -155,9 +155,14 @@
155
155
  "type": "integer"
156
156
  },
157
157
  "coverUrl": {
158
+ "deprecated": true,
158
159
  "description": "A direct link to an image which should be 300 x 300px in size. Larger images will be centred and cropped.",
159
160
  "type": "string"
160
161
  },
162
+ "cover": {
163
+ "description": "A link to an image which should be 300 x 300px in size. Larger images will be centred and cropped.",
164
+ "$ref": "entry.json#/$defs/mediaHref"
165
+ },
161
166
  "storyline": {
162
167
  "type": "string",
163
168
  "examples": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.21.22",
3
+ "version": "1.21.23",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -896,7 +896,8 @@
896
896
  "required": [
897
897
  "name",
898
898
  "source"
899
- ]
899
+ ],
900
+ "additionalProperties": false
900
901
  },
901
902
  {
902
903
  "type": "object",
@@ -905,6 +906,15 @@
905
906
  "tokenUrl": {
906
907
  "type": "string"
907
908
  },
909
+ "name": {
910
+ "type": "string"
911
+ },
912
+ "source": {
913
+ "$ref": "../util.json#/$defs/source"
914
+ },
915
+ "page": {
916
+ "$ref": "../util.json#/$defs/page"
917
+ },
908
918
  "tokenCredit": {
909
919
  "type": "string"
910
920
  },
@@ -2094,7 +2104,8 @@
2094
2104
  "required": [
2095
2105
  "name",
2096
2106
  "source"
2097
- ]
2107
+ ],
2108
+ "additionalProperties": false
2098
2109
  },
2099
2110
  {
2100
2111
  "type": "object",
@@ -2103,6 +2114,15 @@
2103
2114
  "tokenUrl": {
2104
2115
  "type": "string"
2105
2116
  },
2117
+ "name": {
2118
+ "type": "string"
2119
+ },
2120
+ "source": {
2121
+ "$ref": "../util.json#/$defs/source"
2122
+ },
2123
+ "page": {
2124
+ "$ref": "../util.json#/$defs/page"
2125
+ },
2106
2126
  "tokenCredit": {
2107
2127
  "type": "string"
2108
2128
  },
@@ -3306,7 +3326,8 @@
3306
3326
  "required": [
3307
3327
  "name",
3308
3328
  "source"
3309
- ]
3329
+ ],
3330
+ "additionalProperties": false
3310
3331
  },
3311
3332
  {
3312
3333
  "type": "object",
@@ -3315,6 +3336,15 @@
3315
3336
  "tokenUrl": {
3316
3337
  "type": "string"
3317
3338
  },
3339
+ "name": {
3340
+ "type": "string"
3341
+ },
3342
+ "source": {
3343
+ "$ref": "../util.json#/$defs/source"
3344
+ },
3345
+ "page": {
3346
+ "$ref": "../util.json#/$defs/page"
3347
+ },
3318
3348
  "tokenCredit": {
3319
3349
  "type": "string"
3320
3350
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "books.json",
4
- "version": "1.2.11",
4
+ "version": "1.2.12",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "book": {
@@ -52,9 +52,14 @@
52
52
  "description": "The date of publication of the book, in the format YYYY-MM-DD (RFC3339)."
53
53
  },
54
54
  "coverUrl": {
55
+ "deprecated": true,
55
56
  "description": "A direct link to an image which should be 300 x 300px in size. Larger images will be centred and cropped.",
56
57
  "type": "string"
57
58
  },
59
+ "cover": {
60
+ "description": "A link to an image which should be 300 x 300px in size. Larger images will be centred and cropped.",
61
+ "$ref": "entry.json#/$defs/mediaHref"
62
+ },
58
63
  "contents": {
59
64
  "description": "The linked Table of Contents of the rulebook.",
60
65
  "type": "array",
@@ -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.17",
4
+ "version": "1.10.18",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "adventure": {
@@ -155,9 +155,14 @@
155
155
  "type": "integer"
156
156
  },
157
157
  "coverUrl": {
158
+ "deprecated": true,
158
159
  "description": "A direct link to an image which should be 300 x 300px in size. Larger images will be centred and cropped.",
159
160
  "type": "string"
160
161
  },
162
+ "cover": {
163
+ "description": "A link to an image which should be 300 x 300px in size. Larger images will be centred and cropped.",
164
+ "$ref": "entry.json#/$defs/mediaHref"
165
+ },
161
166
  "storyline": {
162
167
  "type": "string",
163
168
  "examples": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.21.22",
3
+ "version": "1.21.23",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -896,7 +896,8 @@
896
896
  "required": [
897
897
  "name",
898
898
  "source"
899
- ]
899
+ ],
900
+ "additionalProperties": false
900
901
  },
901
902
  {
902
903
  "type": "object",
@@ -905,6 +906,15 @@
905
906
  "tokenUrl": {
906
907
  "type": "string"
907
908
  },
909
+ "name": {
910
+ "type": "string"
911
+ },
912
+ "source": {
913
+ "$ref": "../util.json#/$defs/source"
914
+ },
915
+ "page": {
916
+ "$ref": "../util.json#/$defs/page"
917
+ },
908
918
  "tokenCredit": {
909
919
  "type": "string"
910
920
  },
@@ -2094,7 +2104,8 @@
2094
2104
  "required": [
2095
2105
  "name",
2096
2106
  "source"
2097
- ]
2107
+ ],
2108
+ "additionalProperties": false
2098
2109
  },
2099
2110
  {
2100
2111
  "type": "object",
@@ -2103,6 +2114,15 @@
2103
2114
  "tokenUrl": {
2104
2115
  "type": "string"
2105
2116
  },
2117
+ "name": {
2118
+ "type": "string"
2119
+ },
2120
+ "source": {
2121
+ "$ref": "../util.json#/$defs/source"
2122
+ },
2123
+ "page": {
2124
+ "$ref": "../util.json#/$defs/page"
2125
+ },
2106
2126
  "tokenCredit": {
2107
2127
  "type": "string"
2108
2128
  },
@@ -3306,7 +3326,8 @@
3306
3326
  "required": [
3307
3327
  "name",
3308
3328
  "source"
3309
- ]
3329
+ ],
3330
+ "additionalProperties": false
3310
3331
  },
3311
3332
  {
3312
3333
  "type": "object",
@@ -3315,6 +3336,15 @@
3315
3336
  "tokenUrl": {
3316
3337
  "type": "string"
3317
3338
  },
3339
+ "name": {
3340
+ "type": "string"
3341
+ },
3342
+ "source": {
3343
+ "$ref": "../util.json#/$defs/source"
3344
+ },
3345
+ "page": {
3346
+ "$ref": "../util.json#/$defs/page"
3347
+ },
3318
3348
  "tokenCredit": {
3319
3349
  "type": "string"
3320
3350
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "books.json",
4
- "version": "1.2.11",
4
+ "version": "1.2.12",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "book": {
@@ -52,9 +52,14 @@
52
52
  "description": "The date of publication of the book, in the format YYYY-MM-DD (RFC3339)."
53
53
  },
54
54
  "coverUrl": {
55
+ "deprecated": true,
55
56
  "description": "A direct link to an image which should be 300 x 300px in size. Larger images will be centred and cropped.",
56
57
  "type": "string"
57
58
  },
59
+ "cover": {
60
+ "description": "A link to an image which should be 300 x 300px in size. Larger images will be centred and cropped.",
61
+ "$ref": "entry.json#/$defs/mediaHref"
62
+ },
58
63
  "contents": {
59
64
  "description": "The linked Table of Contents of the rulebook.",
60
65
  "type": "array",
@@ -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.17",
4
+ "version": "1.10.18",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "adventure": {
@@ -155,9 +155,14 @@
155
155
  "type": "integer"
156
156
  },
157
157
  "coverUrl": {
158
+ "deprecated": true,
158
159
  "description": "A direct link to an image which should be 300 x 300px in size. Larger images will be centred and cropped.",
159
160
  "type": "string"
160
161
  },
162
+ "cover": {
163
+ "description": "A link to an image which should be 300 x 300px in size. Larger images will be centred and cropped.",
164
+ "$ref": "entry.json#/$defs/mediaHref"
165
+ },
161
166
  "storyline": {
162
167
  "type": "string",
163
168
  "enum": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.21.22",
3
+ "version": "1.21.23",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -888,7 +888,8 @@
888
888
  "required": [
889
889
  "name",
890
890
  "source"
891
- ]
891
+ ],
892
+ "additionalProperties": false
892
893
  }
893
894
  ]
894
895
  }
@@ -1980,7 +1981,8 @@
1980
1981
  "required": [
1981
1982
  "name",
1982
1983
  "source"
1983
- ]
1984
+ ],
1985
+ "additionalProperties": false
1984
1986
  }
1985
1987
  ]
1986
1988
  }
@@ -3086,7 +3088,8 @@
3086
3088
  "required": [
3087
3089
  "name",
3088
3090
  "source"
3089
- ]
3091
+ ],
3092
+ "additionalProperties": false
3090
3093
  }
3091
3094
  ]
3092
3095
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "books.json",
4
- "version": "1.2.11",
4
+ "version": "1.2.12",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "book": {
@@ -52,9 +52,14 @@
52
52
  "description": "The date of publication of the book, in the format YYYY-MM-DD (RFC3339)."
53
53
  },
54
54
  "coverUrl": {
55
+ "deprecated": true,
55
56
  "description": "A direct link to an image which should be 300 x 300px in size. Larger images will be centred and cropped.",
56
57
  "type": "string"
57
58
  },
59
+ "cover": {
60
+ "description": "A link to an image which should be 300 x 300px in size. Larger images will be centred and cropped.",
61
+ "$ref": "entry.json#/$defs/mediaHref"
62
+ },
58
63
  "contents": {
59
64
  "description": "The linked Table of Contents of the rulebook.",
60
65
  "type": "array",
@@ -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.17",
4
+ "version": "1.10.18",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "adventure": {
@@ -155,9 +155,14 @@
155
155
  "type": "integer"
156
156
  },
157
157
  "coverUrl": {
158
+ "deprecated": true,
158
159
  "description": "A direct link to an image which should be 300 x 300px in size. Larger images will be centred and cropped.",
159
160
  "type": "string"
160
161
  },
162
+ "cover": {
163
+ "description": "A link to an image which should be 300 x 300px in size. Larger images will be centred and cropped.",
164
+ "$ref": "entry.json#/$defs/mediaHref"
165
+ },
161
166
  "storyline": {
162
167
  "type": "string",
163
168
  "enum": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.21.22",
3
+ "version": "1.21.23",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -888,7 +888,8 @@
888
888
  "required": [
889
889
  "name",
890
890
  "source"
891
- ]
891
+ ],
892
+ "additionalProperties": false
892
893
  }
893
894
  ]
894
895
  }
@@ -1980,7 +1981,8 @@
1980
1981
  "required": [
1981
1982
  "name",
1982
1983
  "source"
1983
- ]
1984
+ ],
1985
+ "additionalProperties": false
1984
1986
  }
1985
1987
  ]
1986
1988
  }
@@ -3086,7 +3088,8 @@
3086
3088
  "required": [
3087
3089
  "name",
3088
3090
  "source"
3089
- ]
3091
+ ],
3092
+ "additionalProperties": false
3090
3093
  }
3091
3094
  ]
3092
3095
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "books.json",
4
- "version": "1.2.11",
4
+ "version": "1.2.12",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "book": {
@@ -52,9 +52,14 @@
52
52
  "description": "The date of publication of the book, in the format YYYY-MM-DD (RFC3339)."
53
53
  },
54
54
  "coverUrl": {
55
+ "deprecated": true,
55
56
  "description": "A direct link to an image which should be 300 x 300px in size. Larger images will be centred and cropped.",
56
57
  "type": "string"
57
58
  },
59
+ "cover": {
60
+ "description": "A link to an image which should be 300 x 300px in size. Larger images will be centred and cropped.",
61
+ "$ref": "entry.json#/$defs/mediaHref"
62
+ },
58
63
  "contents": {
59
64
  "description": "The linked Table of Contents of the rulebook.",
60
65
  "type": "array",
@@ -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.17",
4
+ "version": "1.10.18",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "adventure": {
@@ -155,9 +155,14 @@
155
155
  "type": "integer"
156
156
  },
157
157
  "coverUrl": {
158
+ "deprecated": true,
158
159
  "description": "A direct link to an image which should be 300 x 300px in size. Larger images will be centred and cropped.",
159
160
  "type": "string"
160
161
  },
162
+ "cover": {
163
+ "description": "A link to an image which should be 300 x 300px in size. Larger images will be centred and cropped.",
164
+ "$ref": "entry.json#/$defs/mediaHref"
165
+ },
161
166
  "storyline": {
162
167
  "type": "string",
163
168
  "enum": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.21.22",
3
+ "version": "1.21.23",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -888,7 +888,8 @@
888
888
  "required": [
889
889
  "name",
890
890
  "source"
891
- ]
891
+ ],
892
+ "additionalProperties": false
892
893
  }
893
894
  ]
894
895
  }
@@ -1980,7 +1981,8 @@
1980
1981
  "required": [
1981
1982
  "name",
1982
1983
  "source"
1983
- ]
1984
+ ],
1985
+ "additionalProperties": false
1984
1986
  }
1985
1987
  ]
1986
1988
  }
@@ -3086,7 +3088,8 @@
3086
3088
  "required": [
3087
3089
  "name",
3088
3090
  "source"
3089
- ]
3091
+ ],
3092
+ "additionalProperties": false
3090
3093
  }
3091
3094
  ]
3092
3095
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "books.json",
4
- "version": "1.2.11",
4
+ "version": "1.2.12",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "book": {
@@ -52,9 +52,14 @@
52
52
  "description": "The date of publication of the book, in the format YYYY-MM-DD (RFC3339)."
53
53
  },
54
54
  "coverUrl": {
55
+ "deprecated": true,
55
56
  "description": "A direct link to an image which should be 300 x 300px in size. Larger images will be centred and cropped.",
56
57
  "type": "string"
57
58
  },
59
+ "cover": {
60
+ "description": "A link to an image which should be 300 x 300px in size. Larger images will be centred and cropped.",
61
+ "$ref": "entry.json#/$defs/mediaHref"
62
+ },
58
63
  "contents": {
59
64
  "description": "The linked Table of Contents of the rulebook.",
60
65
  "type": "array",
@@ -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.17",
4
+ "version": "1.10.18",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "adventure": {
@@ -155,9 +155,14 @@
155
155
  "type": "integer"
156
156
  },
157
157
  "coverUrl": {
158
+ "deprecated": true,
158
159
  "description": "A direct link to an image which should be 300 x 300px in size. Larger images will be centred and cropped.",
159
160
  "type": "string"
160
161
  },
162
+ "cover": {
163
+ "description": "A link to an image which should be 300 x 300px in size. Larger images will be centred and cropped.",
164
+ "$ref": "entry.json#/$defs/mediaHref"
165
+ },
161
166
  "storyline": {
162
167
  "type": "string",
163
168
  "enum": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.21.22",
3
+ "version": "1.21.23",
4
4
  "title": "Bestiary Schema",
5
5
  "$id": "bestiary.json",
6
6
  "type": "object",
@@ -888,7 +888,8 @@
888
888
  "required": [
889
889
  "name",
890
890
  "source"
891
- ]
891
+ ],
892
+ "additionalProperties": false
892
893
  }
893
894
  ]
894
895
  }
@@ -1980,7 +1981,8 @@
1980
1981
  "required": [
1981
1982
  "name",
1982
1983
  "source"
1983
- ]
1984
+ ],
1985
+ "additionalProperties": false
1984
1986
  }
1985
1987
  ]
1986
1988
  }
@@ -3086,7 +3088,8 @@
3086
3088
  "required": [
3087
3089
  "name",
3088
3090
  "source"
3089
- ]
3091
+ ],
3092
+ "additionalProperties": false
3090
3093
  }
3091
3094
  ]
3092
3095
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "books.json",
4
- "version": "1.2.11",
4
+ "version": "1.2.12",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "book": {
@@ -52,9 +52,14 @@
52
52
  "description": "The date of publication of the book, in the format YYYY-MM-DD (RFC3339)."
53
53
  },
54
54
  "coverUrl": {
55
+ "deprecated": true,
55
56
  "description": "A direct link to an image which should be 300 x 300px in size. Larger images will be centred and cropped.",
56
57
  "type": "string"
57
58
  },
59
+ "cover": {
60
+ "description": "A link to an image which should be 300 x 300px in size. Larger images will be centred and cropped.",
61
+ "$ref": "entry.json#/$defs/mediaHref"
62
+ },
58
63
  "contents": {
59
64
  "description": "The linked Table of Contents of the rulebook.",
60
65
  "type": "array",