5etools-utils 0.9.27 → 0.9.29

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.27",
3
+ "version": "0.9.29",
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": "objects.json",
4
- "version": "1.2.9",
4
+ "version": "1.3.0",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "object": {
@@ -17,7 +17,11 @@
17
17
  "$ref": "util.json#/$defs/page"
18
18
  },
19
19
  "size": {
20
- "$ref": "util.json#/$defs/size"
20
+ "type": "array",
21
+ "items": {
22
+ "$ref": "util.json#/$defs/size"
23
+ },
24
+ "uniqueItems": true
21
25
  },
22
26
  "creatureType": {
23
27
  "$ref": "util.json#/$defs/creatureType"
@@ -0,0 +1,73 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "sources.json",
4
+ "version": "1.0.0",
5
+ "type": "object",
6
+ "description": "Keys are source identifiers.",
7
+ "patternProperties": {
8
+ "^[-a-zA-Z0-9]+$": {
9
+ "type": "object",
10
+ "description": "Keys are spell names.",
11
+ "patternProperties": {
12
+ "^[-a-zA-Z0-9 '()/;]+$": {
13
+ "type": "object",
14
+ "properties": {
15
+ "class": {
16
+ "type": "array",
17
+ "items": {
18
+ "type": "object",
19
+ "properties": {
20
+ "name": {
21
+ "type": "string"
22
+ },
23
+ "source": {
24
+ "type": "string"
25
+ },
26
+ "definedInSource": {
27
+ "type": "string"
28
+ }
29
+ },
30
+ "required": [
31
+ "name",
32
+ "source"
33
+ ],
34
+ "additionalProperties": false
35
+ },
36
+ "minItems": 1
37
+ },
38
+ "classVariant": {
39
+ "type": "array",
40
+ "items": {
41
+ "type": "object",
42
+ "properties": {
43
+ "name": {
44
+ "type": "string"
45
+ },
46
+ "source": {
47
+ "type": "string"
48
+ },
49
+ "definedInSource": {
50
+ "type": "string"
51
+ }
52
+ },
53
+ "required": [
54
+ "name",
55
+ "source",
56
+ "definedInSource"
57
+ ],
58
+ "additionalProperties": false
59
+ },
60
+ "minItems": 1
61
+ }
62
+ },
63
+ "additionalProperties": false,
64
+ "minProperties": 1
65
+ }
66
+ },
67
+ "additionalProperties": false,
68
+ "minProperties": 1
69
+ }
70
+ },
71
+ "additionalProperties": false,
72
+ "minProperties": 1
73
+ }
@@ -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.2.9",
4
+ "version": "1.3.0",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "object": {
@@ -17,7 +17,11 @@
17
17
  "$ref": "util.json#/$defs/page"
18
18
  },
19
19
  "size": {
20
- "$ref": "util.json#/$defs/size"
20
+ "type": "array",
21
+ "items": {
22
+ "$ref": "util.json#/$defs/size"
23
+ },
24
+ "uniqueItems": true
21
25
  },
22
26
  "creatureType": {
23
27
  "$ref": "util.json#/$defs/creatureType"
@@ -0,0 +1,73 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "sources.json",
4
+ "version": "1.0.0",
5
+ "type": "object",
6
+ "description": "Keys are source identifiers.",
7
+ "patternProperties": {
8
+ "^[-a-zA-Z0-9]+$": {
9
+ "type": "object",
10
+ "description": "Keys are spell names.",
11
+ "patternProperties": {
12
+ "^[-a-zA-Z0-9 '()/;]+$": {
13
+ "type": "object",
14
+ "properties": {
15
+ "class": {
16
+ "type": "array",
17
+ "items": {
18
+ "type": "object",
19
+ "properties": {
20
+ "name": {
21
+ "type": "string"
22
+ },
23
+ "source": {
24
+ "type": "string"
25
+ },
26
+ "definedInSource": {
27
+ "type": "string"
28
+ }
29
+ },
30
+ "required": [
31
+ "name",
32
+ "source"
33
+ ],
34
+ "additionalProperties": false
35
+ },
36
+ "minItems": 1
37
+ },
38
+ "classVariant": {
39
+ "type": "array",
40
+ "items": {
41
+ "type": "object",
42
+ "properties": {
43
+ "name": {
44
+ "type": "string"
45
+ },
46
+ "source": {
47
+ "type": "string"
48
+ },
49
+ "definedInSource": {
50
+ "type": "string"
51
+ }
52
+ },
53
+ "required": [
54
+ "name",
55
+ "source",
56
+ "definedInSource"
57
+ ],
58
+ "additionalProperties": false
59
+ },
60
+ "minItems": 1
61
+ }
62
+ },
63
+ "additionalProperties": false,
64
+ "minProperties": 1
65
+ }
66
+ },
67
+ "additionalProperties": false,
68
+ "minProperties": 1
69
+ }
70
+ },
71
+ "additionalProperties": false,
72
+ "minProperties": 1
73
+ }
@@ -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.2.9",
4
+ "version": "1.3.0",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "object": {
@@ -17,7 +17,11 @@
17
17
  "$ref": "util.json#/$defs/page"
18
18
  },
19
19
  "size": {
20
- "$ref": "util.json#/$defs/size"
20
+ "type": "array",
21
+ "items": {
22
+ "$ref": "util.json#/$defs/size"
23
+ },
24
+ "uniqueItems": true
21
25
  },
22
26
  "creatureType": {
23
27
  "$ref": "util.json#/$defs/creatureType"
@@ -0,0 +1,73 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "sources.json",
4
+ "version": "1.0.0",
5
+ "type": "object",
6
+ "description": "Keys are source identifiers.",
7
+ "patternProperties": {
8
+ "^[-a-zA-Z0-9]+$": {
9
+ "type": "object",
10
+ "description": "Keys are spell names.",
11
+ "patternProperties": {
12
+ "^[-a-zA-Z0-9 '()/;]+$": {
13
+ "type": "object",
14
+ "properties": {
15
+ "class": {
16
+ "type": "array",
17
+ "items": {
18
+ "type": "object",
19
+ "properties": {
20
+ "name": {
21
+ "type": "string"
22
+ },
23
+ "source": {
24
+ "type": "string"
25
+ },
26
+ "definedInSource": {
27
+ "type": "string"
28
+ }
29
+ },
30
+ "required": [
31
+ "name",
32
+ "source"
33
+ ],
34
+ "additionalProperties": false
35
+ },
36
+ "minItems": 1
37
+ },
38
+ "classVariant": {
39
+ "type": "array",
40
+ "items": {
41
+ "type": "object",
42
+ "properties": {
43
+ "name": {
44
+ "type": "string"
45
+ },
46
+ "source": {
47
+ "type": "string"
48
+ },
49
+ "definedInSource": {
50
+ "type": "string"
51
+ }
52
+ },
53
+ "required": [
54
+ "name",
55
+ "source",
56
+ "definedInSource"
57
+ ],
58
+ "additionalProperties": false
59
+ },
60
+ "minItems": 1
61
+ }
62
+ },
63
+ "additionalProperties": false,
64
+ "minProperties": 1
65
+ }
66
+ },
67
+ "additionalProperties": false,
68
+ "minProperties": 1
69
+ }
70
+ },
71
+ "additionalProperties": false,
72
+ "minProperties": 1
73
+ }
@@ -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.2.9",
4
+ "version": "1.3.0",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "object": {
@@ -17,7 +17,11 @@
17
17
  "$ref": "util.json#/$defs/page"
18
18
  },
19
19
  "size": {
20
- "$ref": "util.json#/$defs/size"
20
+ "type": "array",
21
+ "items": {
22
+ "$ref": "util.json#/$defs/size"
23
+ },
24
+ "uniqueItems": true
21
25
  },
22
26
  "creatureType": {
23
27
  "$ref": "util.json#/$defs/creatureType"
@@ -0,0 +1,73 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "sources.json",
4
+ "version": "1.0.0",
5
+ "type": "object",
6
+ "description": "Keys are source identifiers.",
7
+ "patternProperties": {
8
+ "^[-a-zA-Z0-9]+$": {
9
+ "type": "object",
10
+ "description": "Keys are spell names.",
11
+ "patternProperties": {
12
+ "^[-a-zA-Z0-9 '()/;]+$": {
13
+ "type": "object",
14
+ "properties": {
15
+ "class": {
16
+ "type": "array",
17
+ "items": {
18
+ "type": "object",
19
+ "properties": {
20
+ "name": {
21
+ "type": "string"
22
+ },
23
+ "source": {
24
+ "type": "string"
25
+ },
26
+ "definedInSource": {
27
+ "type": "string"
28
+ }
29
+ },
30
+ "required": [
31
+ "name",
32
+ "source"
33
+ ],
34
+ "additionalProperties": false
35
+ },
36
+ "minItems": 1
37
+ },
38
+ "classVariant": {
39
+ "type": "array",
40
+ "items": {
41
+ "type": "object",
42
+ "properties": {
43
+ "name": {
44
+ "type": "string"
45
+ },
46
+ "source": {
47
+ "type": "string"
48
+ },
49
+ "definedInSource": {
50
+ "type": "string"
51
+ }
52
+ },
53
+ "required": [
54
+ "name",
55
+ "source",
56
+ "definedInSource"
57
+ ],
58
+ "additionalProperties": false
59
+ },
60
+ "minItems": 1
61
+ }
62
+ },
63
+ "additionalProperties": false,
64
+ "minProperties": 1
65
+ }
66
+ },
67
+ "additionalProperties": false,
68
+ "minProperties": 1
69
+ }
70
+ },
71
+ "additionalProperties": false,
72
+ "minProperties": 1
73
+ }
@@ -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.2.9",
4
+ "version": "1.3.0",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "object": {
@@ -17,7 +17,11 @@
17
17
  "$ref": "util.json#/$defs/page"
18
18
  },
19
19
  "size": {
20
- "$ref": "util.json#/$defs/size"
20
+ "type": "array",
21
+ "items": {
22
+ "$ref": "util.json#/$defs/size"
23
+ },
24
+ "uniqueItems": true
21
25
  },
22
26
  "creatureType": {
23
27
  "$ref": "util.json#/$defs/creatureType"
@@ -0,0 +1,73 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "sources.json",
4
+ "version": "1.0.0",
5
+ "type": "object",
6
+ "description": "Keys are source identifiers.",
7
+ "patternProperties": {
8
+ "^[-a-zA-Z0-9]+$": {
9
+ "type": "object",
10
+ "description": "Keys are spell names.",
11
+ "patternProperties": {
12
+ "^[-a-zA-Z0-9 '()/;]+$": {
13
+ "type": "object",
14
+ "properties": {
15
+ "class": {
16
+ "type": "array",
17
+ "items": {
18
+ "type": "object",
19
+ "properties": {
20
+ "name": {
21
+ "type": "string"
22
+ },
23
+ "source": {
24
+ "type": "string"
25
+ },
26
+ "definedInSource": {
27
+ "type": "string"
28
+ }
29
+ },
30
+ "required": [
31
+ "name",
32
+ "source"
33
+ ],
34
+ "additionalProperties": false
35
+ },
36
+ "minItems": 1
37
+ },
38
+ "classVariant": {
39
+ "type": "array",
40
+ "items": {
41
+ "type": "object",
42
+ "properties": {
43
+ "name": {
44
+ "type": "string"
45
+ },
46
+ "source": {
47
+ "type": "string"
48
+ },
49
+ "definedInSource": {
50
+ "type": "string"
51
+ }
52
+ },
53
+ "required": [
54
+ "name",
55
+ "source",
56
+ "definedInSource"
57
+ ],
58
+ "additionalProperties": false
59
+ },
60
+ "minItems": 1
61
+ }
62
+ },
63
+ "additionalProperties": false,
64
+ "minProperties": 1
65
+ }
66
+ },
67
+ "additionalProperties": false,
68
+ "minProperties": 1
69
+ }
70
+ },
71
+ "additionalProperties": false,
72
+ "minProperties": 1
73
+ }
@@ -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.2.9",
4
+ "version": "1.3.0",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "object": {
@@ -17,7 +17,11 @@
17
17
  "$ref": "util.json#/$defs/page"
18
18
  },
19
19
  "size": {
20
- "$ref": "util.json#/$defs/size"
20
+ "type": "array",
21
+ "items": {
22
+ "$ref": "util.json#/$defs/size"
23
+ },
24
+ "uniqueItems": true
21
25
  },
22
26
  "creatureType": {
23
27
  "$ref": "util.json#/$defs/creatureType"
@@ -0,0 +1,73 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "sources.json",
4
+ "version": "1.0.0",
5
+ "type": "object",
6
+ "description": "Keys are source identifiers.",
7
+ "patternProperties": {
8
+ "^[-a-zA-Z0-9]+$": {
9
+ "type": "object",
10
+ "description": "Keys are spell names.",
11
+ "patternProperties": {
12
+ "^[-a-zA-Z0-9 '()/;]+$": {
13
+ "type": "object",
14
+ "properties": {
15
+ "class": {
16
+ "type": "array",
17
+ "items": {
18
+ "type": "object",
19
+ "properties": {
20
+ "name": {
21
+ "type": "string"
22
+ },
23
+ "source": {
24
+ "type": "string"
25
+ },
26
+ "definedInSource": {
27
+ "type": "string"
28
+ }
29
+ },
30
+ "required": [
31
+ "name",
32
+ "source"
33
+ ],
34
+ "additionalProperties": false
35
+ },
36
+ "minItems": 1
37
+ },
38
+ "classVariant": {
39
+ "type": "array",
40
+ "items": {
41
+ "type": "object",
42
+ "properties": {
43
+ "name": {
44
+ "type": "string"
45
+ },
46
+ "source": {
47
+ "type": "string"
48
+ },
49
+ "definedInSource": {
50
+ "type": "string"
51
+ }
52
+ },
53
+ "required": [
54
+ "name",
55
+ "source",
56
+ "definedInSource"
57
+ ],
58
+ "additionalProperties": false
59
+ },
60
+ "minItems": 1
61
+ }
62
+ },
63
+ "additionalProperties": false,
64
+ "minProperties": 1
65
+ }
66
+ },
67
+ "additionalProperties": false,
68
+ "minProperties": 1
69
+ }
70
+ },
71
+ "additionalProperties": false,
72
+ "minProperties": 1
73
+ }