5etools-utils 0.9.35 → 0.9.37

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.35",
3
+ "version": "0.9.37",
4
4
  "description": "Shared utilities for the 5etools ecosystem.",
5
5
  "type": "module",
6
6
  "main": "lib/Api.js",
@@ -0,0 +1,48 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "citations.json",
4
+ "version": "1.0.0",
5
+ "type": "object",
6
+ "$defs": {
7
+ "citation": {
8
+ "type": "object",
9
+ "properties": {
10
+ "name": {
11
+ "type": "string"
12
+ },
13
+ "source": {
14
+ "$ref": "util.json#/$defs/source"
15
+ },
16
+ "page": {
17
+ "$ref": "util.json#/$defs/page"
18
+ },
19
+ "entries": {
20
+ "type": "array",
21
+ "items": {
22
+ "$ref": "entry.json"
23
+ }
24
+ }
25
+ },
26
+ "required": [
27
+ "name",
28
+ "source",
29
+ "entries"
30
+ ],
31
+ "additionalProperties": false
32
+ }
33
+ },
34
+ "properties": {
35
+ "citation": {
36
+ "type": "array",
37
+ "minItems": 1,
38
+ "uniqueItems": true,
39
+ "items": {
40
+ "$ref": "#/$defs/citation"
41
+ }
42
+ }
43
+ },
44
+ "required": [
45
+ "citation"
46
+ ],
47
+ "additionalProperties": false
48
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.15",
3
+ "version": "1.10.16",
4
4
  "type": "object",
5
5
  "description": "Homebrew for 5etools. Should include arrays titled similarly to the main site data, e.g. `spell` or `class`",
6
6
  "$defs": {
@@ -643,6 +643,9 @@
643
643
  },
644
644
  "card": {
645
645
  "$ref": "decks.json#/properties/card"
646
+ },
647
+ "citation": {
648
+ "$ref": "citations.json#/properties/citation"
646
649
  }
647
650
  },
648
651
  "additionalProperties": false,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "magicvariants.json",
4
- "version": "1.8.9",
4
+ "version": "1.8.10",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "magicvariant": {
@@ -108,6 +108,9 @@
108
108
  "description": "Generally this should be omitted, as the type of the base item will be used.",
109
109
  "$ref": "items-shared.json#/$defs/itemType"
110
110
  },
111
+ "typeAlt": {
112
+ "$ref": "items-shared.json#/$defs/itemType"
113
+ },
111
114
  "property": {
112
115
  "description": "Generally this should be omitted, as the properties of the base item will be used.",
113
116
  "$ref": "items-shared.json#/$defs/itemProperty"
@@ -120,6 +123,9 @@
120
123
  "description": "Properties to remove from the specific variant, if present on the base item.",
121
124
  "$ref": "items-shared.json#/$defs/itemProperty"
122
125
  },
126
+ "range": {
127
+ "type": "string"
128
+ },
123
129
  "ac": {
124
130
  "type": "integer"
125
131
  },
@@ -0,0 +1,48 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "citations.json",
4
+ "version": "1.0.0",
5
+ "type": "object",
6
+ "$defs": {
7
+ "citation": {
8
+ "type": "object",
9
+ "properties": {
10
+ "name": {
11
+ "type": "string"
12
+ },
13
+ "source": {
14
+ "$ref": "util.json#/$defs/source"
15
+ },
16
+ "page": {
17
+ "$ref": "util.json#/$defs/page"
18
+ },
19
+ "entries": {
20
+ "type": "array",
21
+ "items": {
22
+ "$ref": "entry.json"
23
+ }
24
+ }
25
+ },
26
+ "required": [
27
+ "name",
28
+ "source",
29
+ "entries"
30
+ ],
31
+ "additionalProperties": false
32
+ }
33
+ },
34
+ "properties": {
35
+ "citation": {
36
+ "type": "array",
37
+ "minItems": 1,
38
+ "uniqueItems": true,
39
+ "items": {
40
+ "$ref": "#/$defs/citation"
41
+ }
42
+ }
43
+ },
44
+ "required": [
45
+ "citation"
46
+ ],
47
+ "additionalProperties": false
48
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.15",
3
+ "version": "1.10.16",
4
4
  "type": "object",
5
5
  "description": "Homebrew for 5etools. Should include arrays titled similarly to the main site data, e.g. `spell` or `class`",
6
6
  "$defs": {
@@ -641,6 +641,9 @@
641
641
  },
642
642
  "card": {
643
643
  "$ref": "decks.json#/properties/card"
644
+ },
645
+ "citation": {
646
+ "$ref": "citations.json#/properties/citation"
644
647
  }
645
648
  },
646
649
  "additionalProperties": false,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "magicvariants.json",
4
- "version": "1.8.9",
4
+ "version": "1.8.10",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "magicvariant": {
@@ -108,6 +108,9 @@
108
108
  "description": "Generally this should be omitted, as the type of the base item will be used.",
109
109
  "$ref": "items-shared.json#/$defs/itemType"
110
110
  },
111
+ "typeAlt": {
112
+ "$ref": "items-shared.json#/$defs/itemType"
113
+ },
111
114
  "property": {
112
115
  "description": "Generally this should be omitted, as the properties of the base item will be used.",
113
116
  "$ref": "items-shared.json#/$defs/itemProperty"
@@ -120,6 +123,9 @@
120
123
  "description": "Properties to remove from the specific variant, if present on the base item.",
121
124
  "$ref": "items-shared.json#/$defs/itemProperty"
122
125
  },
126
+ "range": {
127
+ "type": "string"
128
+ },
123
129
  "ac": {
124
130
  "type": "integer"
125
131
  },
@@ -0,0 +1,48 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "citations.json",
4
+ "version": "1.0.0",
5
+ "type": "object",
6
+ "$defs": {
7
+ "citation": {
8
+ "type": "object",
9
+ "properties": {
10
+ "name": {
11
+ "type": "string"
12
+ },
13
+ "source": {
14
+ "$ref": "util.json#/$defs/source"
15
+ },
16
+ "page": {
17
+ "$ref": "util.json#/$defs/page"
18
+ },
19
+ "entries": {
20
+ "type": "array",
21
+ "items": {
22
+ "$ref": "entry.json"
23
+ }
24
+ }
25
+ },
26
+ "required": [
27
+ "name",
28
+ "source",
29
+ "entries"
30
+ ],
31
+ "additionalProperties": false
32
+ }
33
+ },
34
+ "properties": {
35
+ "citation": {
36
+ "type": "array",
37
+ "minItems": 1,
38
+ "uniqueItems": true,
39
+ "items": {
40
+ "$ref": "#/$defs/citation"
41
+ }
42
+ }
43
+ },
44
+ "required": [
45
+ "citation"
46
+ ],
47
+ "additionalProperties": false
48
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.15",
3
+ "version": "1.10.16",
4
4
  "type": "object",
5
5
  "description": "Homebrew for 5etools. Should include arrays titled similarly to the main site data, e.g. `spell` or `class`",
6
6
  "$defs": {
@@ -643,6 +643,9 @@
643
643
  },
644
644
  "card": {
645
645
  "$ref": "decks.json#/properties/card"
646
+ },
647
+ "citation": {
648
+ "$ref": "citations.json#/properties/citation"
646
649
  }
647
650
  },
648
651
  "additionalProperties": false,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "magicvariants.json",
4
- "version": "1.8.9",
4
+ "version": "1.8.10",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "magicvariant": {
@@ -99,6 +99,9 @@
99
99
  "description": "Generally this should be omitted, as the type of the base item will be used.",
100
100
  "$ref": "items-shared.json#/$defs/itemType"
101
101
  },
102
+ "typeAlt": {
103
+ "$ref": "items-shared.json#/$defs/itemType"
104
+ },
102
105
  "property": {
103
106
  "description": "Generally this should be omitted, as the properties of the base item will be used.",
104
107
  "$ref": "items-shared.json#/$defs/itemProperty"
@@ -111,6 +114,9 @@
111
114
  "description": "Properties to remove from the specific variant, if present on the base item.",
112
115
  "$ref": "items-shared.json#/$defs/itemProperty"
113
116
  },
117
+ "range": {
118
+ "type": "string"
119
+ },
114
120
  "ac": {
115
121
  "type": "integer"
116
122
  },
@@ -0,0 +1,48 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "citations.json",
4
+ "version": "1.0.0",
5
+ "type": "object",
6
+ "$defs": {
7
+ "citation": {
8
+ "type": "object",
9
+ "properties": {
10
+ "name": {
11
+ "type": "string"
12
+ },
13
+ "source": {
14
+ "$ref": "util.json#/$defs/source"
15
+ },
16
+ "page": {
17
+ "$ref": "util.json#/$defs/page"
18
+ },
19
+ "entries": {
20
+ "type": "array",
21
+ "items": {
22
+ "$ref": "entry.json"
23
+ }
24
+ }
25
+ },
26
+ "required": [
27
+ "name",
28
+ "source",
29
+ "entries"
30
+ ],
31
+ "additionalProperties": false
32
+ }
33
+ },
34
+ "properties": {
35
+ "citation": {
36
+ "type": "array",
37
+ "minItems": 1,
38
+ "uniqueItems": true,
39
+ "items": {
40
+ "$ref": "#/$defs/citation"
41
+ }
42
+ }
43
+ },
44
+ "required": [
45
+ "citation"
46
+ ],
47
+ "additionalProperties": false
48
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.15",
3
+ "version": "1.10.16",
4
4
  "type": "object",
5
5
  "description": "Homebrew for 5etools. Should include arrays titled similarly to the main site data, e.g. `spell` or `class`",
6
6
  "$defs": {
@@ -641,6 +641,9 @@
641
641
  },
642
642
  "card": {
643
643
  "$ref": "decks.json#/properties/card"
644
+ },
645
+ "citation": {
646
+ "$ref": "citations.json#/properties/citation"
644
647
  }
645
648
  },
646
649
  "additionalProperties": false,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "magicvariants.json",
4
- "version": "1.8.9",
4
+ "version": "1.8.10",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "magicvariant": {
@@ -99,6 +99,9 @@
99
99
  "description": "Generally this should be omitted, as the type of the base item will be used.",
100
100
  "$ref": "items-shared.json#/$defs/itemType"
101
101
  },
102
+ "typeAlt": {
103
+ "$ref": "items-shared.json#/$defs/itemType"
104
+ },
102
105
  "property": {
103
106
  "description": "Generally this should be omitted, as the properties of the base item will be used.",
104
107
  "$ref": "items-shared.json#/$defs/itemProperty"
@@ -111,6 +114,9 @@
111
114
  "description": "Properties to remove from the specific variant, if present on the base item.",
112
115
  "$ref": "items-shared.json#/$defs/itemProperty"
113
116
  },
117
+ "range": {
118
+ "type": "string"
119
+ },
114
120
  "ac": {
115
121
  "type": "integer"
116
122
  },
@@ -0,0 +1,48 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "citations.json",
4
+ "version": "1.0.0",
5
+ "type": "object",
6
+ "$defs": {
7
+ "citation": {
8
+ "type": "object",
9
+ "properties": {
10
+ "name": {
11
+ "type": "string"
12
+ },
13
+ "source": {
14
+ "$ref": "util.json#/$defs/source"
15
+ },
16
+ "page": {
17
+ "$ref": "util.json#/$defs/page"
18
+ },
19
+ "entries": {
20
+ "type": "array",
21
+ "items": {
22
+ "$ref": "entry.json"
23
+ }
24
+ }
25
+ },
26
+ "required": [
27
+ "name",
28
+ "source",
29
+ "entries"
30
+ ],
31
+ "additionalProperties": false
32
+ }
33
+ },
34
+ "properties": {
35
+ "citation": {
36
+ "type": "array",
37
+ "minItems": 1,
38
+ "uniqueItems": true,
39
+ "items": {
40
+ "$ref": "#/$defs/citation"
41
+ }
42
+ }
43
+ },
44
+ "required": [
45
+ "citation"
46
+ ],
47
+ "additionalProperties": false
48
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.15",
3
+ "version": "1.10.16",
4
4
  "type": "object",
5
5
  "description": "Homebrew for 5etools. Should include arrays titled similarly to the main site data, e.g. `spell` or `class`",
6
6
  "$defs": {
@@ -643,6 +643,9 @@
643
643
  },
644
644
  "card": {
645
645
  "$ref": "decks.json#/properties/card"
646
+ },
647
+ "citation": {
648
+ "$ref": "citations.json#/properties/citation"
646
649
  }
647
650
  },
648
651
  "additionalProperties": false,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "magicvariants.json",
4
- "version": "1.8.9",
4
+ "version": "1.8.10",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "magicvariant": {
@@ -108,6 +108,9 @@
108
108
  "description": "Generally this should be omitted, as the type of the base item will be used.",
109
109
  "$ref": "items-shared.json#/$defs/itemType"
110
110
  },
111
+ "typeAlt": {
112
+ "$ref": "items-shared.json#/$defs/itemType"
113
+ },
111
114
  "property": {
112
115
  "description": "Generally this should be omitted, as the properties of the base item will be used.",
113
116
  "$ref": "items-shared.json#/$defs/itemProperty"
@@ -120,6 +123,9 @@
120
123
  "description": "Properties to remove from the specific variant, if present on the base item.",
121
124
  "$ref": "items-shared.json#/$defs/itemProperty"
122
125
  },
126
+ "range": {
127
+ "type": "string"
128
+ },
123
129
  "ac": {
124
130
  "type": "integer"
125
131
  },
@@ -0,0 +1,48 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "citations.json",
4
+ "version": "1.0.0",
5
+ "type": "object",
6
+ "$defs": {
7
+ "citation": {
8
+ "type": "object",
9
+ "properties": {
10
+ "name": {
11
+ "type": "string"
12
+ },
13
+ "source": {
14
+ "$ref": "util.json#/$defs/source"
15
+ },
16
+ "page": {
17
+ "$ref": "util.json#/$defs/page"
18
+ },
19
+ "entries": {
20
+ "type": "array",
21
+ "items": {
22
+ "$ref": "entry.json"
23
+ }
24
+ }
25
+ },
26
+ "required": [
27
+ "name",
28
+ "source",
29
+ "entries"
30
+ ],
31
+ "additionalProperties": false
32
+ }
33
+ },
34
+ "properties": {
35
+ "citation": {
36
+ "type": "array",
37
+ "minItems": 1,
38
+ "uniqueItems": true,
39
+ "items": {
40
+ "$ref": "#/$defs/citation"
41
+ }
42
+ }
43
+ },
44
+ "required": [
45
+ "citation"
46
+ ],
47
+ "additionalProperties": false
48
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.15",
3
+ "version": "1.10.16",
4
4
  "type": "object",
5
5
  "description": "Homebrew for 5etools. Should include arrays titled similarly to the main site data, e.g. `spell` or `class`",
6
6
  "$defs": {
@@ -641,6 +641,9 @@
641
641
  },
642
642
  "card": {
643
643
  "$ref": "decks.json#/properties/card"
644
+ },
645
+ "citation": {
646
+ "$ref": "citations.json#/properties/citation"
644
647
  }
645
648
  },
646
649
  "additionalProperties": false,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "magicvariants.json",
4
- "version": "1.8.9",
4
+ "version": "1.8.10",
5
5
  "type": "object",
6
6
  "properties": {
7
7
  "magicvariant": {
@@ -108,6 +108,9 @@
108
108
  "description": "Generally this should be omitted, as the type of the base item will be used.",
109
109
  "$ref": "items-shared.json#/$defs/itemType"
110
110
  },
111
+ "typeAlt": {
112
+ "$ref": "items-shared.json#/$defs/itemType"
113
+ },
111
114
  "property": {
112
115
  "description": "Generally this should be omitted, as the properties of the base item will be used.",
113
116
  "$ref": "items-shared.json#/$defs/itemProperty"
@@ -120,6 +123,9 @@
120
123
  "description": "Properties to remove from the specific variant, if present on the base item.",
121
124
  "$ref": "items-shared.json#/$defs/itemProperty"
122
125
  },
126
+ "range": {
127
+ "type": "string"
128
+ },
123
129
  "ac": {
124
130
  "type": "integer"
125
131
  },