5etools-utils 0.16.36 → 0.16.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.16.36",
3
+ "version": "0.16.37",
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": "decks.json",
4
- "version": "1.0.9",
4
+ "version": "1.1.0",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "_deckSpreadOutcomesCardMap": {
@@ -34,6 +34,16 @@
34
34
  "minProperties": 1,
35
35
  "additionalProperties": false
36
36
  },
37
+ "_deckSpreadSeeAlsoHeader": {
38
+ "type": "array",
39
+ "items": {
40
+ "type": "string",
41
+ "description": "UIDs of adventure/book headers to be linked as a footnote.\n\nE.g. \"Fortunes of Ravenloft|CoS|2|Fortunes of Ravenloft\".",
42
+ "markdownDescription": "UIDs of adventure/book headers to be linked as a footnote.\n\nE.g. "Fortunes of Ravenloft|CoS|2|Fortunes of Ravenloft"."
43
+ },
44
+ "minItems": 1,
45
+ "uniqueItems": true
46
+ },
37
47
  "_deckSpreadPosition": {
38
48
  "type": "object",
39
49
  "properties": {
@@ -48,13 +58,10 @@
48
58
  "minItems": 1
49
59
  },
50
60
  "suits": {
51
- "$comment": "The suits this position may draw from; `null` matches cards which have no suit. Omit to draw from the whole deck.",
61
+ "$comment": "The suits this position may draw from; \"None\" matches cards which have no suit. Omit to draw from the whole deck.",
52
62
  "type": "array",
53
63
  "items": {
54
- "type": [
55
- "string",
56
- "null"
57
- ]
64
+ "type": "string"
58
65
  },
59
66
  "minItems": 1,
60
67
  "uniqueItems": true
@@ -65,7 +72,6 @@
65
72
  }
66
73
  },
67
74
  "required": [
68
- "name",
69
75
  "entries"
70
76
  ],
71
77
  "additionalProperties": false
@@ -88,6 +94,12 @@
88
94
  "$ref": "entry.json"
89
95
  }
90
96
  },
97
+ "seeAlsoAdventureHeader": {
98
+ "$ref": "#/$defs/_deckSpreadSeeAlsoHeader"
99
+ },
100
+ "seeAlsoBookHeader": {
101
+ "$ref": "#/$defs/_deckSpreadSeeAlsoHeader"
102
+ },
91
103
  "positions": {
92
104
  "type": "array",
93
105
  "items": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "decks.json",
4
- "version": "1.0.9",
4
+ "version": "1.1.0",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "_deckSpreadOutcomesCardMap": {
@@ -34,6 +34,16 @@
34
34
  "minProperties": 1,
35
35
  "additionalProperties": false
36
36
  },
37
+ "_deckSpreadSeeAlsoHeader": {
38
+ "type": "array",
39
+ "items": {
40
+ "type": "string",
41
+ "description": "UIDs of adventure/book headers to be linked as a footnote.\n\nE.g. \"Fortunes of Ravenloft|CoS|2|Fortunes of Ravenloft\".",
42
+ "markdownDescription": "UIDs of adventure/book headers to be linked as a footnote.\n\nE.g. "Fortunes of Ravenloft|CoS|2|Fortunes of Ravenloft"."
43
+ },
44
+ "minItems": 1,
45
+ "uniqueItems": true
46
+ },
37
47
  "_deckSpreadPosition": {
38
48
  "type": "object",
39
49
  "properties": {
@@ -48,13 +58,10 @@
48
58
  "minItems": 1
49
59
  },
50
60
  "suits": {
51
- "$comment": "The suits this position may draw from; `null` matches cards which have no suit. Omit to draw from the whole deck.",
61
+ "$comment": "The suits this position may draw from; \"None\" matches cards which have no suit. Omit to draw from the whole deck.",
52
62
  "type": "array",
53
63
  "items": {
54
- "type": [
55
- "string",
56
- "null"
57
- ]
64
+ "type": "string"
58
65
  },
59
66
  "minItems": 1,
60
67
  "uniqueItems": true
@@ -65,7 +72,6 @@
65
72
  }
66
73
  },
67
74
  "required": [
68
- "name",
69
75
  "entries"
70
76
  ],
71
77
  "additionalProperties": false
@@ -88,6 +94,12 @@
88
94
  "$ref": "entry.json"
89
95
  }
90
96
  },
97
+ "seeAlsoAdventureHeader": {
98
+ "$ref": "#/$defs/_deckSpreadSeeAlsoHeader"
99
+ },
100
+ "seeAlsoBookHeader": {
101
+ "$ref": "#/$defs/_deckSpreadSeeAlsoHeader"
102
+ },
91
103
  "positions": {
92
104
  "type": "array",
93
105
  "items": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "decks.json",
4
- "version": "1.0.9",
4
+ "version": "1.1.0",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "_deckSpreadOutcomesCardMap": {
@@ -34,6 +34,16 @@
34
34
  "minProperties": 1,
35
35
  "additionalProperties": false
36
36
  },
37
+ "_deckSpreadSeeAlsoHeader": {
38
+ "type": "array",
39
+ "items": {
40
+ "type": "string",
41
+ "description": "UIDs of adventure/book headers to be linked as a footnote.\n\nE.g. \"Fortunes of Ravenloft|CoS|2|Fortunes of Ravenloft\".",
42
+ "markdownDescription": "UIDs of adventure/book headers to be linked as a footnote.\n\nE.g. "Fortunes of Ravenloft|CoS|2|Fortunes of Ravenloft"."
43
+ },
44
+ "minItems": 1,
45
+ "uniqueItems": true
46
+ },
37
47
  "_deckSpreadPosition": {
38
48
  "type": "object",
39
49
  "properties": {
@@ -48,13 +58,10 @@
48
58
  "minItems": 1
49
59
  },
50
60
  "suits": {
51
- "$comment": "The suits this position may draw from; `null` matches cards which have no suit. Omit to draw from the whole deck.",
61
+ "$comment": "The suits this position may draw from; \"None\" matches cards which have no suit. Omit to draw from the whole deck.",
52
62
  "type": "array",
53
63
  "items": {
54
- "type": [
55
- "string",
56
- "null"
57
- ]
64
+ "type": "string"
58
65
  },
59
66
  "minItems": 1,
60
67
  "uniqueItems": true
@@ -65,7 +72,6 @@
65
72
  }
66
73
  },
67
74
  "required": [
68
- "name",
69
75
  "entries"
70
76
  ],
71
77
  "additionalProperties": false
@@ -88,6 +94,12 @@
88
94
  "$ref": "entry.json"
89
95
  }
90
96
  },
97
+ "seeAlsoAdventureHeader": {
98
+ "$ref": "#/$defs/_deckSpreadSeeAlsoHeader"
99
+ },
100
+ "seeAlsoBookHeader": {
101
+ "$ref": "#/$defs/_deckSpreadSeeAlsoHeader"
102
+ },
91
103
  "positions": {
92
104
  "type": "array",
93
105
  "items": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "decks.json",
4
- "version": "1.0.9",
4
+ "version": "1.1.0",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "_deckSpreadOutcomesCardMap": {
@@ -34,6 +34,16 @@
34
34
  "minProperties": 1,
35
35
  "additionalProperties": false
36
36
  },
37
+ "_deckSpreadSeeAlsoHeader": {
38
+ "type": "array",
39
+ "items": {
40
+ "type": "string",
41
+ "description": "UIDs of adventure/book headers to be linked as a footnote.\n\nE.g. \"Fortunes of Ravenloft|CoS|2|Fortunes of Ravenloft\".",
42
+ "markdownDescription": "UIDs of adventure/book headers to be linked as a footnote.\n\nE.g. "Fortunes of Ravenloft|CoS|2|Fortunes of Ravenloft"."
43
+ },
44
+ "minItems": 1,
45
+ "uniqueItems": true
46
+ },
37
47
  "_deckSpreadPosition": {
38
48
  "type": "object",
39
49
  "properties": {
@@ -48,13 +58,10 @@
48
58
  "minItems": 1
49
59
  },
50
60
  "suits": {
51
- "$comment": "The suits this position may draw from; `null` matches cards which have no suit. Omit to draw from the whole deck.",
61
+ "$comment": "The suits this position may draw from; \"None\" matches cards which have no suit. Omit to draw from the whole deck.",
52
62
  "type": "array",
53
63
  "items": {
54
- "type": [
55
- "string",
56
- "null"
57
- ]
64
+ "type": "string"
58
65
  },
59
66
  "minItems": 1,
60
67
  "uniqueItems": true
@@ -65,7 +72,6 @@
65
72
  }
66
73
  },
67
74
  "required": [
68
- "name",
69
75
  "entries"
70
76
  ],
71
77
  "additionalProperties": false
@@ -88,6 +94,12 @@
88
94
  "$ref": "entry.json"
89
95
  }
90
96
  },
97
+ "seeAlsoAdventureHeader": {
98
+ "$ref": "#/$defs/_deckSpreadSeeAlsoHeader"
99
+ },
100
+ "seeAlsoBookHeader": {
101
+ "$ref": "#/$defs/_deckSpreadSeeAlsoHeader"
102
+ },
91
103
  "positions": {
92
104
  "type": "array",
93
105
  "items": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "decks.json",
4
- "version": "1.0.9",
4
+ "version": "1.1.0",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "_deckSpreadOutcomesCardMap": {
@@ -34,6 +34,16 @@
34
34
  "minProperties": 1,
35
35
  "additionalProperties": false
36
36
  },
37
+ "_deckSpreadSeeAlsoHeader": {
38
+ "type": "array",
39
+ "items": {
40
+ "type": "string",
41
+ "description": "UIDs of adventure/book headers to be linked as a footnote.\n\nE.g. \"Fortunes of Ravenloft|CoS|2|Fortunes of Ravenloft\".",
42
+ "markdownDescription": "UIDs of adventure/book headers to be linked as a footnote.\n\nE.g. "Fortunes of Ravenloft|CoS|2|Fortunes of Ravenloft"."
43
+ },
44
+ "minItems": 1,
45
+ "uniqueItems": true
46
+ },
37
47
  "_deckSpreadPosition": {
38
48
  "type": "object",
39
49
  "properties": {
@@ -48,13 +58,10 @@
48
58
  "minItems": 1
49
59
  },
50
60
  "suits": {
51
- "$comment": "The suits this position may draw from; `null` matches cards which have no suit. Omit to draw from the whole deck.",
61
+ "$comment": "The suits this position may draw from; \"None\" matches cards which have no suit. Omit to draw from the whole deck.",
52
62
  "type": "array",
53
63
  "items": {
54
- "type": [
55
- "string",
56
- "null"
57
- ]
64
+ "type": "string"
58
65
  },
59
66
  "minItems": 1,
60
67
  "uniqueItems": true
@@ -65,7 +72,6 @@
65
72
  }
66
73
  },
67
74
  "required": [
68
- "name",
69
75
  "entries"
70
76
  ],
71
77
  "additionalProperties": false
@@ -88,6 +94,12 @@
88
94
  "$ref": "entry.json"
89
95
  }
90
96
  },
97
+ "seeAlsoAdventureHeader": {
98
+ "$ref": "#/$defs/_deckSpreadSeeAlsoHeader"
99
+ },
100
+ "seeAlsoBookHeader": {
101
+ "$ref": "#/$defs/_deckSpreadSeeAlsoHeader"
102
+ },
91
103
  "positions": {
92
104
  "type": "array",
93
105
  "items": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "decks.json",
4
- "version": "1.0.9",
4
+ "version": "1.1.0",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "_deckSpreadOutcomesCardMap": {
@@ -34,6 +34,16 @@
34
34
  "minProperties": 1,
35
35
  "additionalProperties": false
36
36
  },
37
+ "_deckSpreadSeeAlsoHeader": {
38
+ "type": "array",
39
+ "items": {
40
+ "type": "string",
41
+ "description": "UIDs of adventure/book headers to be linked as a footnote.\n\nE.g. \"Fortunes of Ravenloft|CoS|2|Fortunes of Ravenloft\".",
42
+ "markdownDescription": "UIDs of adventure/book headers to be linked as a footnote.\n\nE.g. "Fortunes of Ravenloft|CoS|2|Fortunes of Ravenloft"."
43
+ },
44
+ "minItems": 1,
45
+ "uniqueItems": true
46
+ },
37
47
  "_deckSpreadPosition": {
38
48
  "type": "object",
39
49
  "properties": {
@@ -48,13 +58,10 @@
48
58
  "minItems": 1
49
59
  },
50
60
  "suits": {
51
- "$comment": "The suits this position may draw from; `null` matches cards which have no suit. Omit to draw from the whole deck.",
61
+ "$comment": "The suits this position may draw from; \"None\" matches cards which have no suit. Omit to draw from the whole deck.",
52
62
  "type": "array",
53
63
  "items": {
54
- "type": [
55
- "string",
56
- "null"
57
- ]
64
+ "type": "string"
58
65
  },
59
66
  "minItems": 1,
60
67
  "uniqueItems": true
@@ -65,7 +72,6 @@
65
72
  }
66
73
  },
67
74
  "required": [
68
- "name",
69
75
  "entries"
70
76
  ],
71
77
  "additionalProperties": false
@@ -88,6 +94,12 @@
88
94
  "$ref": "entry.json"
89
95
  }
90
96
  },
97
+ "seeAlsoAdventureHeader": {
98
+ "$ref": "#/$defs/_deckSpreadSeeAlsoHeader"
99
+ },
100
+ "seeAlsoBookHeader": {
101
+ "$ref": "#/$defs/_deckSpreadSeeAlsoHeader"
102
+ },
91
103
  "positions": {
92
104
  "type": "array",
93
105
  "items": {