5etools-utils 0.10.4 → 0.10.5

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.10.4",
3
+ "version": "0.10.5",
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.8.17",
6
+ "version": "1.8.18",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -37,37 +37,46 @@
37
37
  "inset"
38
38
  ]
39
39
  },
40
+ "mediaHrefInternal": {
41
+ "type": "object",
42
+ "properties": {
43
+ "type": {
44
+ "const": "internal"
45
+ },
46
+ "path": {
47
+ "type": "string"
48
+ }
49
+ },
50
+ "required": [
51
+ "path"
52
+ ],
53
+ "additionalProperties": false
54
+ },
55
+ "mediaHrefExternal": {
56
+ "type": "object",
57
+ "properties": {
58
+ "type": {
59
+ "const": "external"
60
+ },
61
+ "url": {
62
+ "type": "string",
63
+ "description": "\"uri-reference\" is unsuitable for brew, as it requires URL-encoding \"'\" (see: https://www.ietf.org/rfc/rfc3986.txt)",
64
+ "minLength": 3,
65
+ "pattern": "^https?://"
66
+ }
67
+ },
68
+ "required": [
69
+ "url"
70
+ ],
71
+ "additionalProperties": false
72
+ },
40
73
  "mediaHref": {
41
74
  "oneOf": [
42
75
  {
43
- "type": "object",
44
- "properties": {
45
- "type": {
46
- "const": "internal"
47
- },
48
- "path": {
49
- "type": "string"
50
- }
51
- },
52
- "required": [
53
- "path"
54
- ],
55
- "additionalProperties": false
76
+ "$ref": "#/$defs/mediaHrefInternal"
56
77
  },
57
78
  {
58
- "type": "object",
59
- "properties": {
60
- "type": {
61
- "const": "external"
62
- },
63
- "url": {
64
- "$ref": "util.json#/$defs/url"
65
- }
66
- },
67
- "required": [
68
- "url"
69
- ],
70
- "additionalProperties": false
79
+ "$ref": "#/$defs/mediaHrefExternal"
71
80
  }
72
81
  ]
73
82
  },
@@ -1308,19 +1317,7 @@
1308
1317
  "additionalProperties": false
1309
1318
  },
1310
1319
  {
1311
- "type": "object",
1312
- "properties": {
1313
- "type": {
1314
- "const": "external"
1315
- },
1316
- "url": {
1317
- "$ref": "util.json#/$defs/url"
1318
- }
1319
- },
1320
- "required": [
1321
- "url"
1322
- ],
1323
- "additionalProperties": false
1320
+ "$ref": "#/$defs/mediaHrefExternal"
1324
1321
  }
1325
1322
  ]
1326
1323
  }
@@ -3,7 +3,7 @@
3
3
  "$id": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.8.17",
6
+ "version": "1.8.18",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -37,37 +37,46 @@
37
37
  "inset"
38
38
  ]
39
39
  },
40
+ "mediaHrefInternal": {
41
+ "type": "object",
42
+ "properties": {
43
+ "type": {
44
+ "const": "internal"
45
+ },
46
+ "path": {
47
+ "type": "string"
48
+ }
49
+ },
50
+ "required": [
51
+ "path"
52
+ ],
53
+ "additionalProperties": false
54
+ },
55
+ "mediaHrefExternal": {
56
+ "type": "object",
57
+ "properties": {
58
+ "type": {
59
+ "const": "external"
60
+ },
61
+ "url": {
62
+ "type": "string",
63
+ "description": "\"uri-reference\" is unsuitable for brew, as it requires URL-encoding \"'\" (see: https://www.ietf.org/rfc/rfc3986.txt)",
64
+ "minLength": 3,
65
+ "pattern": "^https?://"
66
+ }
67
+ },
68
+ "required": [
69
+ "url"
70
+ ],
71
+ "additionalProperties": false
72
+ },
40
73
  "mediaHref": {
41
74
  "oneOf": [
42
75
  {
43
- "type": "object",
44
- "properties": {
45
- "type": {
46
- "const": "internal"
47
- },
48
- "path": {
49
- "type": "string"
50
- }
51
- },
52
- "required": [
53
- "path"
54
- ],
55
- "additionalProperties": false
76
+ "$ref": "#/$defs/mediaHrefInternal"
56
77
  },
57
78
  {
58
- "type": "object",
59
- "properties": {
60
- "type": {
61
- "const": "external"
62
- },
63
- "url": {
64
- "$ref": "util.json#/$defs/url"
65
- }
66
- },
67
- "required": [
68
- "url"
69
- ],
70
- "additionalProperties": false
79
+ "$ref": "#/$defs/mediaHrefExternal"
71
80
  }
72
81
  ]
73
82
  },
@@ -1308,19 +1317,7 @@
1308
1317
  "additionalProperties": false
1309
1318
  },
1310
1319
  {
1311
- "type": "object",
1312
- "properties": {
1313
- "type": {
1314
- "const": "external"
1315
- },
1316
- "url": {
1317
- "$ref": "util.json#/$defs/url"
1318
- }
1319
- },
1320
- "required": [
1321
- "url"
1322
- ],
1323
- "additionalProperties": false
1320
+ "$ref": "#/$defs/mediaHrefExternal"
1324
1321
  }
1325
1322
  ]
1326
1323
  }
@@ -3,7 +3,7 @@
3
3
  "$id": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.8.17",
6
+ "version": "1.8.18",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -37,37 +37,46 @@
37
37
  "inset"
38
38
  ]
39
39
  },
40
+ "mediaHrefInternal": {
41
+ "type": "object",
42
+ "properties": {
43
+ "type": {
44
+ "const": "internal"
45
+ },
46
+ "path": {
47
+ "type": "string"
48
+ }
49
+ },
50
+ "required": [
51
+ "path"
52
+ ],
53
+ "additionalProperties": false
54
+ },
55
+ "mediaHrefExternal": {
56
+ "type": "object",
57
+ "properties": {
58
+ "type": {
59
+ "const": "external"
60
+ },
61
+ "url": {
62
+ "type": "string",
63
+ "description": "\"uri-reference\" is unsuitable for brew, as it requires URL-encoding \"'\" (see: https://www.ietf.org/rfc/rfc3986.txt)",
64
+ "format": "uri-reference",
65
+ "pattern": "^https?://"
66
+ }
67
+ },
68
+ "required": [
69
+ "url"
70
+ ],
71
+ "additionalProperties": false
72
+ },
40
73
  "mediaHref": {
41
74
  "oneOf": [
42
75
  {
43
- "type": "object",
44
- "properties": {
45
- "type": {
46
- "const": "internal"
47
- },
48
- "path": {
49
- "type": "string"
50
- }
51
- },
52
- "required": [
53
- "path"
54
- ],
55
- "additionalProperties": false
76
+ "$ref": "#/$defs/mediaHrefInternal"
56
77
  },
57
78
  {
58
- "type": "object",
59
- "properties": {
60
- "type": {
61
- "const": "external"
62
- },
63
- "url": {
64
- "$ref": "util.json#/$defs/url"
65
- }
66
- },
67
- "required": [
68
- "url"
69
- ],
70
- "additionalProperties": false
79
+ "$ref": "#/$defs/mediaHrefExternal"
71
80
  }
72
81
  ]
73
82
  },
@@ -1280,19 +1289,7 @@
1280
1289
  "additionalProperties": false
1281
1290
  },
1282
1291
  {
1283
- "type": "object",
1284
- "properties": {
1285
- "type": {
1286
- "const": "external"
1287
- },
1288
- "url": {
1289
- "$ref": "util.json#/$defs/url"
1290
- }
1291
- },
1292
- "required": [
1293
- "url"
1294
- ],
1295
- "additionalProperties": false
1292
+ "$ref": "#/$defs/mediaHrefExternal"
1296
1293
  }
1297
1294
  ]
1298
1295
  }
@@ -3,7 +3,7 @@
3
3
  "$id": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.8.17",
6
+ "version": "1.8.18",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -37,37 +37,46 @@
37
37
  "inset"
38
38
  ]
39
39
  },
40
+ "mediaHrefInternal": {
41
+ "type": "object",
42
+ "properties": {
43
+ "type": {
44
+ "const": "internal"
45
+ },
46
+ "path": {
47
+ "type": "string"
48
+ }
49
+ },
50
+ "required": [
51
+ "path"
52
+ ],
53
+ "additionalProperties": false
54
+ },
55
+ "mediaHrefExternal": {
56
+ "type": "object",
57
+ "properties": {
58
+ "type": {
59
+ "const": "external"
60
+ },
61
+ "url": {
62
+ "type": "string",
63
+ "description": "\"uri-reference\" is unsuitable for brew, as it requires URL-encoding \"'\" (see: https://www.ietf.org/rfc/rfc3986.txt)",
64
+ "format": "uri-reference",
65
+ "pattern": "^https?://"
66
+ }
67
+ },
68
+ "required": [
69
+ "url"
70
+ ],
71
+ "additionalProperties": false
72
+ },
40
73
  "mediaHref": {
41
74
  "oneOf": [
42
75
  {
43
- "type": "object",
44
- "properties": {
45
- "type": {
46
- "const": "internal"
47
- },
48
- "path": {
49
- "type": "string"
50
- }
51
- },
52
- "required": [
53
- "path"
54
- ],
55
- "additionalProperties": false
76
+ "$ref": "#/$defs/mediaHrefInternal"
56
77
  },
57
78
  {
58
- "type": "object",
59
- "properties": {
60
- "type": {
61
- "const": "external"
62
- },
63
- "url": {
64
- "$ref": "util.json#/$defs/url"
65
- }
66
- },
67
- "required": [
68
- "url"
69
- ],
70
- "additionalProperties": false
79
+ "$ref": "#/$defs/mediaHrefExternal"
71
80
  }
72
81
  ]
73
82
  },
@@ -1280,19 +1289,7 @@
1280
1289
  "additionalProperties": false
1281
1290
  },
1282
1291
  {
1283
- "type": "object",
1284
- "properties": {
1285
- "type": {
1286
- "const": "external"
1287
- },
1288
- "url": {
1289
- "$ref": "util.json#/$defs/url"
1290
- }
1291
- },
1292
- "required": [
1293
- "url"
1294
- ],
1295
- "additionalProperties": false
1292
+ "$ref": "#/$defs/mediaHrefExternal"
1296
1293
  }
1297
1294
  ]
1298
1295
  }
@@ -3,7 +3,7 @@
3
3
  "$id": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.8.17",
6
+ "version": "1.8.18",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -37,37 +37,46 @@
37
37
  "inset"
38
38
  ]
39
39
  },
40
+ "mediaHrefInternal": {
41
+ "type": "object",
42
+ "properties": {
43
+ "type": {
44
+ "const": "internal"
45
+ },
46
+ "path": {
47
+ "type": "string"
48
+ }
49
+ },
50
+ "required": [
51
+ "path"
52
+ ],
53
+ "additionalProperties": false
54
+ },
55
+ "mediaHrefExternal": {
56
+ "type": "object",
57
+ "properties": {
58
+ "type": {
59
+ "const": "external"
60
+ },
61
+ "url": {
62
+ "type": "string",
63
+ "description": "\"uri-reference\" is unsuitable for brew, as it requires URL-encoding \"'\" (see: https://www.ietf.org/rfc/rfc3986.txt)",
64
+ "format": "uri-reference",
65
+ "pattern": "^https?://"
66
+ }
67
+ },
68
+ "required": [
69
+ "url"
70
+ ],
71
+ "additionalProperties": false
72
+ },
40
73
  "mediaHref": {
41
74
  "oneOf": [
42
75
  {
43
- "type": "object",
44
- "properties": {
45
- "type": {
46
- "const": "internal"
47
- },
48
- "path": {
49
- "type": "string"
50
- }
51
- },
52
- "required": [
53
- "path"
54
- ],
55
- "additionalProperties": false
76
+ "$ref": "#/$defs/mediaHrefInternal"
56
77
  },
57
78
  {
58
- "type": "object",
59
- "properties": {
60
- "type": {
61
- "const": "external"
62
- },
63
- "url": {
64
- "$ref": "util.json#/$defs/url"
65
- }
66
- },
67
- "required": [
68
- "url"
69
- ],
70
- "additionalProperties": false
79
+ "$ref": "#/$defs/mediaHrefExternal"
71
80
  }
72
81
  ]
73
82
  },
@@ -1280,19 +1289,7 @@
1280
1289
  "additionalProperties": false
1281
1290
  },
1282
1291
  {
1283
- "type": "object",
1284
- "properties": {
1285
- "type": {
1286
- "const": "external"
1287
- },
1288
- "url": {
1289
- "$ref": "util.json#/$defs/url"
1290
- }
1291
- },
1292
- "required": [
1293
- "url"
1294
- ],
1295
- "additionalProperties": false
1292
+ "$ref": "#/$defs/mediaHrefExternal"
1296
1293
  }
1297
1294
  ]
1298
1295
  }
@@ -3,7 +3,7 @@
3
3
  "$id": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.8.17",
6
+ "version": "1.8.18",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -37,37 +37,46 @@
37
37
  "inset"
38
38
  ]
39
39
  },
40
+ "mediaHrefInternal": {
41
+ "type": "object",
42
+ "properties": {
43
+ "type": {
44
+ "const": "internal"
45
+ },
46
+ "path": {
47
+ "type": "string"
48
+ }
49
+ },
50
+ "required": [
51
+ "path"
52
+ ],
53
+ "additionalProperties": false
54
+ },
55
+ "mediaHrefExternal": {
56
+ "type": "object",
57
+ "properties": {
58
+ "type": {
59
+ "const": "external"
60
+ },
61
+ "url": {
62
+ "type": "string",
63
+ "description": "\"uri-reference\" is unsuitable for brew, as it requires URL-encoding \"'\" (see: https://www.ietf.org/rfc/rfc3986.txt)",
64
+ "format": "uri-reference",
65
+ "pattern": "^https?://"
66
+ }
67
+ },
68
+ "required": [
69
+ "url"
70
+ ],
71
+ "additionalProperties": false
72
+ },
40
73
  "mediaHref": {
41
74
  "oneOf": [
42
75
  {
43
- "type": "object",
44
- "properties": {
45
- "type": {
46
- "const": "internal"
47
- },
48
- "path": {
49
- "type": "string"
50
- }
51
- },
52
- "required": [
53
- "path"
54
- ],
55
- "additionalProperties": false
76
+ "$ref": "#/$defs/mediaHrefInternal"
56
77
  },
57
78
  {
58
- "type": "object",
59
- "properties": {
60
- "type": {
61
- "const": "external"
62
- },
63
- "url": {
64
- "$ref": "util.json#/$defs/url"
65
- }
66
- },
67
- "required": [
68
- "url"
69
- ],
70
- "additionalProperties": false
79
+ "$ref": "#/$defs/mediaHrefExternal"
71
80
  }
72
81
  ]
73
82
  },
@@ -1280,19 +1289,7 @@
1280
1289
  "additionalProperties": false
1281
1290
  },
1282
1291
  {
1283
- "type": "object",
1284
- "properties": {
1285
- "type": {
1286
- "const": "external"
1287
- },
1288
- "url": {
1289
- "$ref": "util.json#/$defs/url"
1290
- }
1291
- },
1292
- "required": [
1293
- "url"
1294
- ],
1295
- "additionalProperties": false
1292
+ "$ref": "#/$defs/mediaHrefExternal"
1296
1293
  }
1297
1294
  ]
1298
1295
  }