5etools-utils 0.8.9 → 0.8.11

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/lib/UtilClean.js CHANGED
@@ -1,6 +1,7 @@
1
1
  const _CLEAN_JSON_REPLACEMENTS = {
2
2
  "—": "\\u2014",
3
3
  "–": "\\u2013",
4
+ "‑": "\\u2011",
4
5
  "−": "\\u2212",
5
6
  "“": `\\"`,
6
7
  "”": `\\"`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "5etools-utils",
3
- "version": "0.8.9",
3
+ "version": "0.8.11",
4
4
  "description": "Shared utilities for the 5etools ecosystem.",
5
5
  "type": "module",
6
6
  "main": "lib/Api.js",
@@ -3,7 +3,7 @@
3
3
  "$id": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.8.11",
6
+ "version": "1.8.12",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -236,7 +236,17 @@
236
236
  }
237
237
  },
238
238
  "by": {
239
- "type": "string"
239
+ "oneOf": [
240
+ {
241
+ "type": "string"
242
+ },
243
+ {
244
+ "type": "array",
245
+ "items": {
246
+ "type": "string"
247
+ }
248
+ }
249
+ ]
240
250
  },
241
251
  "from": {
242
252
  "type": "string"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.8",
3
+ "version": "1.10.9",
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": {
@@ -267,6 +267,16 @@
267
267
  "minItems": 1,
268
268
  "uniqueItems": true
269
269
  },
270
+ "fonts": {
271
+ "description": "A map of \"font family\" to font URL.",
272
+ "type": "object",
273
+ "patternProperties": {
274
+ "^[a-zA-Z0-9]+$": {
275
+ "type": "string",
276
+ "minLength": 3
277
+ }
278
+ }
279
+ },
270
280
  "unlisted": {
271
281
  "description": "If this homebrew file should be ignored/hidden by any indexer.",
272
282
  "type": "boolean"
@@ -3,7 +3,7 @@
3
3
  "$id": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.8.11",
6
+ "version": "1.8.12",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -236,7 +236,17 @@
236
236
  }
237
237
  },
238
238
  "by": {
239
- "type": "string"
239
+ "oneOf": [
240
+ {
241
+ "type": "string"
242
+ },
243
+ {
244
+ "type": "array",
245
+ "items": {
246
+ "type": "string"
247
+ }
248
+ }
249
+ ]
240
250
  },
241
251
  "from": {
242
252
  "type": "string"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.8",
3
+ "version": "1.10.9",
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": {
@@ -265,6 +265,16 @@
265
265
  "minItems": 1,
266
266
  "uniqueItems": true
267
267
  },
268
+ "fonts": {
269
+ "description": "A map of \"font family\" to font URL.",
270
+ "type": "object",
271
+ "patternProperties": {
272
+ "^[a-zA-Z0-9]+$": {
273
+ "type": "string",
274
+ "minLength": 3
275
+ }
276
+ }
277
+ },
268
278
  "unlisted": {
269
279
  "description": "If this homebrew file should be ignored/hidden by any indexer.",
270
280
  "type": "boolean"
@@ -3,7 +3,7 @@
3
3
  "$id": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.8.11",
6
+ "version": "1.8.12",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -236,7 +236,17 @@
236
236
  }
237
237
  },
238
238
  "by": {
239
- "type": "string"
239
+ "oneOf": [
240
+ {
241
+ "type": "string"
242
+ },
243
+ {
244
+ "type": "array",
245
+ "items": {
246
+ "type": "string"
247
+ }
248
+ }
249
+ ]
240
250
  },
241
251
  "from": {
242
252
  "type": "string"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.8",
3
+ "version": "1.10.9",
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": {
@@ -267,6 +267,16 @@
267
267
  "minItems": 1,
268
268
  "uniqueItems": true
269
269
  },
270
+ "fonts": {
271
+ "description": "A map of \"font family\" to font URL.",
272
+ "type": "object",
273
+ "patternProperties": {
274
+ "^[a-zA-Z0-9]+$": {
275
+ "type": "string",
276
+ "minLength": 3
277
+ }
278
+ }
279
+ },
270
280
  "unlisted": {
271
281
  "description": "If this homebrew file should be ignored/hidden by any indexer.",
272
282
  "type": "boolean"
@@ -3,7 +3,7 @@
3
3
  "$id": "entry.json",
4
4
  "title": "Entry",
5
5
  "description": "A recursively renderable object.",
6
- "version": "1.8.11",
6
+ "version": "1.8.12",
7
7
  "$defs": {
8
8
  "_arrayOfSpell": {
9
9
  "type": "array",
@@ -236,7 +236,17 @@
236
236
  }
237
237
  },
238
238
  "by": {
239
- "type": "string"
239
+ "oneOf": [
240
+ {
241
+ "type": "string"
242
+ },
243
+ {
244
+ "type": "array",
245
+ "items": {
246
+ "type": "string"
247
+ }
248
+ }
249
+ ]
240
250
  },
241
251
  "from": {
242
252
  "type": "string"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.8",
3
+ "version": "1.10.9",
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": {
@@ -265,6 +265,16 @@
265
265
  "minItems": 1,
266
266
  "uniqueItems": true
267
267
  },
268
+ "fonts": {
269
+ "description": "A map of \"font family\" to font URL.",
270
+ "type": "object",
271
+ "patternProperties": {
272
+ "^[a-zA-Z0-9]+$": {
273
+ "type": "string",
274
+ "minLength": 3
275
+ }
276
+ }
277
+ },
268
278
  "unlisted": {
269
279
  "description": "If this homebrew file should be ignored/hidden by any indexer.",
270
280
  "type": "boolean"