5etools-utils 0.10.24 → 0.10.26

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.24",
3
+ "version": "0.10.26",
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": "fluff-class.json",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "_subclassFluffItemData": {
@@ -32,6 +32,9 @@
32
32
  "$ref": "../entry.json"
33
33
  }
34
34
  },
35
+ "shortName": {
36
+ "type": "string"
37
+ },
35
38
  "className": {
36
39
  "type": "string"
37
40
  },
@@ -75,6 +78,9 @@
75
78
  "$ref": "../entry.json"
76
79
  }
77
80
  },
81
+ "shortName": {
82
+ "type": "string"
83
+ },
78
84
  "className": {
79
85
  "type": "string"
80
86
  },
@@ -85,6 +91,7 @@
85
91
  "additionalProperties": false,
86
92
  "required": [
87
93
  "name",
94
+ "shortName",
88
95
  "source",
89
96
  "className",
90
97
  "classSource"
@@ -127,6 +134,9 @@
127
134
  "$ref": "../entry.json"
128
135
  }
129
136
  },
137
+ "shortName": {
138
+ "type": "string"
139
+ },
130
140
  "className": {
131
141
  "type": "string"
132
142
  },
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "version": "1.0.0",
4
+ "type": "object",
5
+ "patternProperties": {
6
+ "^[-a-zA-Z0-9]+$": {
7
+ "type": "string"
8
+ }
9
+ },
10
+ "additionalProperties": false
11
+ }
@@ -468,7 +468,7 @@
468
468
  "$ref": "class/class.json#/properties/class"
469
469
  },
470
470
  "classFluff": {
471
- "$ref": "class/fluff.json#/properties/classFluff"
471
+ "$ref": "class/fluff-class.json#/properties/classFluff"
472
472
  },
473
473
  "foundryClass": {
474
474
  "$ref": "class/foundry.json#/properties/class"
@@ -477,7 +477,7 @@
477
477
  "$ref": "class/class.json#/properties/subclass"
478
478
  },
479
479
  "subclassFluff": {
480
- "$ref": "class/fluff.json#/properties/subclassFluff"
480
+ "$ref": "class/fluff-class.json#/properties/subclassFluff"
481
481
  },
482
482
  "foundrySubclass": {
483
483
  "$ref": "class/foundry.json#/properties/subclass"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "fluff-class.json",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "_subclassFluffItemData": {
@@ -32,6 +32,9 @@
32
32
  "$ref": "../entry.json"
33
33
  }
34
34
  },
35
+ "shortName": {
36
+ "type": "string"
37
+ },
35
38
  "className": {
36
39
  "type": "string"
37
40
  },
@@ -75,6 +78,9 @@
75
78
  "$ref": "../entry.json"
76
79
  }
77
80
  },
81
+ "shortName": {
82
+ "type": "string"
83
+ },
78
84
  "className": {
79
85
  "type": "string"
80
86
  },
@@ -85,6 +91,7 @@
85
91
  "additionalProperties": false,
86
92
  "required": [
87
93
  "name",
94
+ "shortName",
88
95
  "source",
89
96
  "className",
90
97
  "classSource"
@@ -127,6 +134,9 @@
127
134
  "$ref": "../entry.json"
128
135
  }
129
136
  },
137
+ "shortName": {
138
+ "type": "string"
139
+ },
130
140
  "className": {
131
141
  "type": "string"
132
142
  },
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "version": "1.0.0",
4
+ "type": "object",
5
+ "patternProperties": {
6
+ "^[-a-zA-Z0-9]+$": {
7
+ "type": "string"
8
+ }
9
+ },
10
+ "additionalProperties": false
11
+ }
@@ -466,7 +466,7 @@
466
466
  "$ref": "class/class.json#/properties/class"
467
467
  },
468
468
  "classFluff": {
469
- "$ref": "class/fluff.json#/properties/classFluff"
469
+ "$ref": "class/fluff-class.json#/properties/classFluff"
470
470
  },
471
471
  "foundryClass": {
472
472
  "$ref": "class/foundry.json#/properties/class"
@@ -475,7 +475,7 @@
475
475
  "$ref": "class/class.json#/properties/subclass"
476
476
  },
477
477
  "subclassFluff": {
478
- "$ref": "class/fluff.json#/properties/subclassFluff"
478
+ "$ref": "class/fluff-class.json#/properties/subclassFluff"
479
479
  },
480
480
  "foundrySubclass": {
481
481
  "$ref": "class/foundry.json#/properties/subclass"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "fluff-class.json",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "_subclassFluffItemData": {
@@ -32,6 +32,9 @@
32
32
  "$ref": "../entry.json"
33
33
  }
34
34
  },
35
+ "shortName": {
36
+ "type": "string"
37
+ },
35
38
  "className": {
36
39
  "type": "string"
37
40
  },
@@ -75,6 +78,9 @@
75
78
  "$ref": "../entry.json"
76
79
  }
77
80
  },
81
+ "shortName": {
82
+ "type": "string"
83
+ },
78
84
  "className": {
79
85
  "type": "string"
80
86
  },
@@ -85,6 +91,7 @@
85
91
  "additionalProperties": false,
86
92
  "required": [
87
93
  "name",
94
+ "shortName",
88
95
  "source",
89
96
  "className",
90
97
  "classSource"
@@ -127,6 +134,9 @@
127
134
  "$ref": "../entry.json"
128
135
  }
129
136
  },
137
+ "shortName": {
138
+ "type": "string"
139
+ },
130
140
  "className": {
131
141
  "type": "string"
132
142
  },
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "version": "1.0.0",
4
+ "type": "object",
5
+ "patternProperties": {
6
+ "^[-a-zA-Z0-9]+$": {
7
+ "type": "string"
8
+ }
9
+ },
10
+ "additionalProperties": false
11
+ }
@@ -468,7 +468,7 @@
468
468
  "$ref": "class/class.json#/properties/class"
469
469
  },
470
470
  "classFluff": {
471
- "$ref": "class/fluff.json#/properties/classFluff"
471
+ "$ref": "class/fluff-class.json#/properties/classFluff"
472
472
  },
473
473
  "foundryClass": {
474
474
  "$ref": "class/foundry.json#/properties/class"
@@ -477,7 +477,7 @@
477
477
  "$ref": "class/class.json#/properties/subclass"
478
478
  },
479
479
  "subclassFluff": {
480
- "$ref": "class/fluff.json#/properties/subclassFluff"
480
+ "$ref": "class/fluff-class.json#/properties/subclassFluff"
481
481
  },
482
482
  "foundrySubclass": {
483
483
  "$ref": "class/foundry.json#/properties/subclass"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "fluff-class.json",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "type": "object",
6
6
  "$defs": {
7
7
  "_subclassFluffItemData": {
@@ -32,6 +32,9 @@
32
32
  "$ref": "../entry.json"
33
33
  }
34
34
  },
35
+ "shortName": {
36
+ "type": "string"
37
+ },
35
38
  "className": {
36
39
  "type": "string"
37
40
  },
@@ -75,6 +78,9 @@
75
78
  "$ref": "../entry.json"
76
79
  }
77
80
  },
81
+ "shortName": {
82
+ "type": "string"
83
+ },
78
84
  "className": {
79
85
  "type": "string"
80
86
  },
@@ -85,6 +91,7 @@
85
91
  "additionalProperties": false,
86
92
  "required": [
87
93
  "name",
94
+ "shortName",
88
95
  "source",
89
96
  "className",
90
97
  "classSource"
@@ -127,6 +134,9 @@
127
134
  "$ref": "../entry.json"
128
135
  }
129
136
  },
137
+ "shortName": {
138
+ "type": "string"
139
+ },
130
140
  "className": {
131
141
  "type": "string"
132
142
  },
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "version": "1.0.0",
4
+ "type": "object",
5
+ "patternProperties": {
6
+ "^[-a-zA-Z0-9]+$": {
7
+ "type": "string"
8
+ }
9
+ },
10
+ "additionalProperties": false
11
+ }
@@ -466,7 +466,7 @@
466
466
  "$ref": "class/class.json#/properties/class"
467
467
  },
468
468
  "classFluff": {
469
- "$ref": "class/fluff.json#/properties/classFluff"
469
+ "$ref": "class/fluff-class.json#/properties/classFluff"
470
470
  },
471
471
  "foundryClass": {
472
472
  "$ref": "class/foundry.json#/properties/class"
@@ -475,7 +475,7 @@
475
475
  "$ref": "class/class.json#/properties/subclass"
476
476
  },
477
477
  "subclassFluff": {
478
- "$ref": "class/fluff.json#/properties/subclassFluff"
478
+ "$ref": "class/fluff-class.json#/properties/subclassFluff"
479
479
  },
480
480
  "foundrySubclass": {
481
481
  "$ref": "class/foundry.json#/properties/subclass"
@@ -0,0 +1,165 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "fluff-class.json",
4
+ "version": "1.0.1",
5
+ "type": "object",
6
+ "$defs": {
7
+ "_subclassFluffItemData": {
8
+ "type": "object",
9
+ "properties": {
10
+ "name": {
11
+ "type": "string"
12
+ },
13
+ "source": {
14
+ "$ref": "../util.json#/$defs/source"
15
+ },
16
+ "images": {
17
+ "oneOf": [
18
+ {
19
+ "type": "array",
20
+ "items": {
21
+ "$ref": "../entry.json#/$defs/entryImage"
22
+ }
23
+ },
24
+ {
25
+ "type": "null"
26
+ }
27
+ ]
28
+ },
29
+ "entries": {
30
+ "type": "array",
31
+ "items": {
32
+ "$ref": "../entry.json"
33
+ }
34
+ },
35
+ "shortName": {
36
+ "type": "string"
37
+ },
38
+ "className": {
39
+ "type": "string"
40
+ },
41
+ "classSource": {
42
+ "$ref": "../util.json#/$defs/source"
43
+ }
44
+ },
45
+ "additionalProperties": false
46
+ },
47
+ "subclassFluffArray": {
48
+ "type": "array",
49
+ "minItems": 1,
50
+ "uniqueItems": true,
51
+ "items": {
52
+ "anyOf": [
53
+ {
54
+ "type": "object",
55
+ "properties": {
56
+ "name": {
57
+ "type": "string"
58
+ },
59
+ "source": {
60
+ "$ref": "../util.json#/$defs/source"
61
+ },
62
+ "images": {
63
+ "oneOf": [
64
+ {
65
+ "type": "array",
66
+ "items": {
67
+ "$ref": "../entry.json#/$defs/entryImage"
68
+ }
69
+ },
70
+ {
71
+ "type": "null"
72
+ }
73
+ ]
74
+ },
75
+ "entries": {
76
+ "type": "array",
77
+ "items": {
78
+ "$ref": "../entry.json"
79
+ }
80
+ },
81
+ "shortName": {
82
+ "type": "string"
83
+ },
84
+ "className": {
85
+ "type": "string"
86
+ },
87
+ "classSource": {
88
+ "$ref": "../util.json#/$defs/source"
89
+ }
90
+ },
91
+ "additionalProperties": false,
92
+ "required": [
93
+ "name",
94
+ "shortName",
95
+ "source",
96
+ "className",
97
+ "classSource"
98
+ ]
99
+ },
100
+ {
101
+ "type": "object",
102
+ "properties": {
103
+ "name": {
104
+ "type": "string"
105
+ },
106
+ "source": {
107
+ "$ref": "../util.json#/$defs/source"
108
+ },
109
+ "images": {
110
+ "oneOf": [
111
+ {
112
+ "type": "array",
113
+ "items": {
114
+ "$ref": "../entry.json#/$defs/entryImage"
115
+ }
116
+ },
117
+ {
118
+ "type": "null"
119
+ },
120
+ {
121
+ "type": "array",
122
+ "items": {
123
+ "$ref": "../entry.json#/$defs/entryImage"
124
+ }
125
+ },
126
+ {
127
+ "type": "null"
128
+ }
129
+ ]
130
+ },
131
+ "entries": {
132
+ "type": "array",
133
+ "items": {
134
+ "$ref": "../entry.json"
135
+ }
136
+ },
137
+ "shortName": {
138
+ "type": "string"
139
+ },
140
+ "className": {
141
+ "type": "string"
142
+ },
143
+ "classSource": {
144
+ "$ref": "../util.json#/$defs/source"
145
+ }
146
+ },
147
+ "additionalProperties": false
148
+ }
149
+ ]
150
+ }
151
+ }
152
+ },
153
+ "properties": {
154
+ "_meta": {
155
+ "$ref": "../util.json#/$defs/metaBlock"
156
+ },
157
+ "classFluff": {
158
+ "$ref": "../util.json#/$defs/genericFluffArray"
159
+ },
160
+ "subclassFluff": {
161
+ "$ref": "#/$defs/subclassFluffArray"
162
+ }
163
+ },
164
+ "additionalProperties": false
165
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "version": "1.0.0",
4
+ "type": "object",
5
+ "patternProperties": {
6
+ "^[-a-zA-Z0-9]+$": {
7
+ "type": "string"
8
+ }
9
+ },
10
+ "additionalProperties": false
11
+ }
@@ -468,7 +468,7 @@
468
468
  "$ref": "class/class.json#/properties/class"
469
469
  },
470
470
  "classFluff": {
471
- "$ref": "class/fluff.json#/properties/classFluff"
471
+ "$ref": "class/fluff-class.json#/properties/classFluff"
472
472
  },
473
473
  "foundryClass": {
474
474
  "$ref": "class/foundry.json#/properties/class"
@@ -477,7 +477,7 @@
477
477
  "$ref": "class/class.json#/properties/subclass"
478
478
  },
479
479
  "subclassFluff": {
480
- "$ref": "class/fluff.json#/properties/subclassFluff"
480
+ "$ref": "class/fluff-class.json#/properties/subclassFluff"
481
481
  },
482
482
  "foundrySubclass": {
483
483
  "$ref": "class/foundry.json#/properties/subclass"
@@ -0,0 +1,165 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "fluff-class.json",
4
+ "version": "1.0.1",
5
+ "type": "object",
6
+ "$defs": {
7
+ "_subclassFluffItemData": {
8
+ "type": "object",
9
+ "properties": {
10
+ "name": {
11
+ "type": "string"
12
+ },
13
+ "source": {
14
+ "$ref": "../util.json#/$defs/source"
15
+ },
16
+ "images": {
17
+ "oneOf": [
18
+ {
19
+ "type": "array",
20
+ "items": {
21
+ "$ref": "../entry.json#/$defs/entryImage"
22
+ }
23
+ },
24
+ {
25
+ "type": "null"
26
+ }
27
+ ]
28
+ },
29
+ "entries": {
30
+ "type": "array",
31
+ "items": {
32
+ "$ref": "../entry.json"
33
+ }
34
+ },
35
+ "shortName": {
36
+ "type": "string"
37
+ },
38
+ "className": {
39
+ "type": "string"
40
+ },
41
+ "classSource": {
42
+ "$ref": "../util.json#/$defs/source"
43
+ }
44
+ },
45
+ "additionalProperties": false
46
+ },
47
+ "subclassFluffArray": {
48
+ "type": "array",
49
+ "minItems": 1,
50
+ "uniqueItems": true,
51
+ "items": {
52
+ "anyOf": [
53
+ {
54
+ "type": "object",
55
+ "properties": {
56
+ "name": {
57
+ "type": "string"
58
+ },
59
+ "source": {
60
+ "$ref": "../util.json#/$defs/source"
61
+ },
62
+ "images": {
63
+ "oneOf": [
64
+ {
65
+ "type": "array",
66
+ "items": {
67
+ "$ref": "../entry.json#/$defs/entryImage"
68
+ }
69
+ },
70
+ {
71
+ "type": "null"
72
+ }
73
+ ]
74
+ },
75
+ "entries": {
76
+ "type": "array",
77
+ "items": {
78
+ "$ref": "../entry.json"
79
+ }
80
+ },
81
+ "shortName": {
82
+ "type": "string"
83
+ },
84
+ "className": {
85
+ "type": "string"
86
+ },
87
+ "classSource": {
88
+ "$ref": "../util.json#/$defs/source"
89
+ }
90
+ },
91
+ "additionalProperties": false,
92
+ "required": [
93
+ "name",
94
+ "shortName",
95
+ "source",
96
+ "className",
97
+ "classSource"
98
+ ]
99
+ },
100
+ {
101
+ "type": "object",
102
+ "properties": {
103
+ "name": {
104
+ "type": "string"
105
+ },
106
+ "source": {
107
+ "$ref": "../util.json#/$defs/source"
108
+ },
109
+ "images": {
110
+ "oneOf": [
111
+ {
112
+ "type": "array",
113
+ "items": {
114
+ "$ref": "../entry.json#/$defs/entryImage"
115
+ }
116
+ },
117
+ {
118
+ "type": "null"
119
+ },
120
+ {
121
+ "type": "array",
122
+ "items": {
123
+ "$ref": "../entry.json#/$defs/entryImage"
124
+ }
125
+ },
126
+ {
127
+ "type": "null"
128
+ }
129
+ ]
130
+ },
131
+ "entries": {
132
+ "type": "array",
133
+ "items": {
134
+ "$ref": "../entry.json"
135
+ }
136
+ },
137
+ "shortName": {
138
+ "type": "string"
139
+ },
140
+ "className": {
141
+ "type": "string"
142
+ },
143
+ "classSource": {
144
+ "$ref": "../util.json#/$defs/source"
145
+ }
146
+ },
147
+ "additionalProperties": false
148
+ }
149
+ ]
150
+ }
151
+ }
152
+ },
153
+ "properties": {
154
+ "_meta": {
155
+ "$ref": "../util.json#/$defs/metaBlock"
156
+ },
157
+ "classFluff": {
158
+ "$ref": "../util.json#/$defs/genericFluffArray"
159
+ },
160
+ "subclassFluff": {
161
+ "$ref": "#/$defs/subclassFluffArray"
162
+ }
163
+ },
164
+ "additionalProperties": false
165
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "version": "1.0.0",
4
+ "type": "object",
5
+ "patternProperties": {
6
+ "^[-a-zA-Z0-9]+$": {
7
+ "type": "string"
8
+ }
9
+ },
10
+ "additionalProperties": false
11
+ }