5etools-utils 0.9.35 → 0.9.36

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.36",
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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,
@@ -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,