5etools-utils 0.15.8 → 0.15.9

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.15.8",
3
+ "version": "0.15.9",
4
4
  "description": "Shared utilities for the 5etools ecosystem.",
5
5
  "type": "module",
6
6
  "main": "lib/Api.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.11.7",
3
+ "version": "1.12.0",
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": {
@@ -315,16 +315,6 @@
315
315
  },
316
316
  "markdownDescription": "Structure as per "dependencies". Additional sources to be included when loading the file."
317
317
  },
318
- "references": {
319
- "description": "A \"soft\" alternative to `\"dependencies\"`, used only for data validation (and may therefore be omitted).\n\nAn array of `[\"<NonSiteJsonSource1>\", ..., \"<NonSiteJsonSourceN>\"]`. Entities from these sources will be made available when running e.g. 5etools' `test-tags.js`.",
320
- "type": "array",
321
- "items": {
322
- "type": "string"
323
- },
324
- "minItems": 1,
325
- "uniqueItems": true,
326
- "markdownDescription": "A &quot;soft&quot; alternative to &quot;dependencies&quot;, used only for data validation (and may therefore be omitted).\n\nAn array of [&quot;&lt;NonSiteJsonSource1&gt;&quot;, ..., &quot;&lt;NonSiteJsonSourceN&gt;&quot;]. Entities from these sources will be made available when running e.g. 5etools&apos; test-tags.js."
327
- },
328
318
  "internalCopies": {
329
319
  "description": "An array of keys that are copied from within the current document. e.g. \"item\", \"monsterFluff\", \"background\" etc.",
330
320
  "type": "array",
@@ -381,6 +371,16 @@
381
371
  "description": "Supplementary information used when testing this homebrew.",
382
372
  "type": "object",
383
373
  "properties": {
374
+ "references": {
375
+ "description": "A \"soft\" alternative to `\"dependencies\"`, used only for data validation (and may therefore be omitted).\n\nAn array of `[\"<NonSiteJsonSource1>\", ..., \"<NonSiteJsonSourceN>\"]`. Entities from these sources will be made available when running e.g. 5etools' `test-tags.js`.",
376
+ "type": "array",
377
+ "items": {
378
+ "type": "string"
379
+ },
380
+ "minItems": 1,
381
+ "uniqueItems": true,
382
+ "markdownDescription": "A &quot;soft&quot; alternative to &quot;dependencies&quot;, used only for data validation (and may therefore be omitted).\n\nAn array of [&quot;&lt;NonSiteJsonSource1&gt;&quot;, ..., &quot;&lt;NonSiteJsonSourceN&gt;&quot;]. Entities from these sources will be made available when running e.g. 5etools&apos; test-tags.js."
383
+ },
384
384
  "additionalImageSources": {
385
385
  "description": "Other sources from which this homebrew should be allowed to use images.",
386
386
  "type": "array",
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "util-copy.json",
4
4
  "title": "Util: Copy",
5
- "version": "1.0.10",
5
+ "version": "1.0.11",
6
6
  "$defs": {
7
7
  "_mod_renameArr_rename": {
8
8
  "type": "object",
@@ -1112,7 +1112,9 @@
1112
1112
  "required": [
1113
1113
  "_variables"
1114
1114
  ]
1115
- }
1115
+ },
1116
+ "minItems": 1,
1117
+ "uniqueItems": true
1116
1118
  }
1117
1119
  },
1118
1120
  "required": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.11.7",
3
+ "version": "1.12.0",
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": {
@@ -313,16 +313,6 @@
313
313
  },
314
314
  "markdownDescription": "Structure as per &quot;dependencies&quot;. Additional sources to be included when loading the file."
315
315
  },
316
- "references": {
317
- "description": "A \"soft\" alternative to `\"dependencies\"`, used only for data validation (and may therefore be omitted).\n\nAn array of `[\"<NonSiteJsonSource1>\", ..., \"<NonSiteJsonSourceN>\"]`. Entities from these sources will be made available when running e.g. 5etools' `test-tags.js`.",
318
- "type": "array",
319
- "items": {
320
- "type": "string"
321
- },
322
- "minItems": 1,
323
- "uniqueItems": true,
324
- "markdownDescription": "A &quot;soft&quot; alternative to &quot;dependencies&quot;, used only for data validation (and may therefore be omitted).\n\nAn array of [&quot;&lt;NonSiteJsonSource1&gt;&quot;, ..., &quot;&lt;NonSiteJsonSourceN&gt;&quot;]. Entities from these sources will be made available when running e.g. 5etools&apos; test-tags.js."
325
- },
326
316
  "internalCopies": {
327
317
  "description": "An array of keys that are copied from within the current document. e.g. \"item\", \"monsterFluff\", \"background\" etc.",
328
318
  "type": "array",
@@ -379,6 +369,16 @@
379
369
  "description": "Supplementary information used when testing this homebrew.",
380
370
  "type": "object",
381
371
  "properties": {
372
+ "references": {
373
+ "description": "A \"soft\" alternative to `\"dependencies\"`, used only for data validation (and may therefore be omitted).\n\nAn array of `[\"<NonSiteJsonSource1>\", ..., \"<NonSiteJsonSourceN>\"]`. Entities from these sources will be made available when running e.g. 5etools' `test-tags.js`.",
374
+ "type": "array",
375
+ "items": {
376
+ "type": "string"
377
+ },
378
+ "minItems": 1,
379
+ "uniqueItems": true,
380
+ "markdownDescription": "A &quot;soft&quot; alternative to &quot;dependencies&quot;, used only for data validation (and may therefore be omitted).\n\nAn array of [&quot;&lt;NonSiteJsonSource1&gt;&quot;, ..., &quot;&lt;NonSiteJsonSourceN&gt;&quot;]. Entities from these sources will be made available when running e.g. 5etools&apos; test-tags.js."
381
+ },
382
382
  "additionalImageSources": {
383
383
  "description": "Other sources from which this homebrew should be allowed to use images.",
384
384
  "type": "array",
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "util-copy.json",
4
4
  "title": "Util: Copy",
5
- "version": "1.0.10",
5
+ "version": "1.0.11",
6
6
  "$defs": {
7
7
  "_mod_renameArr_rename": {
8
8
  "type": "object",
@@ -1112,7 +1112,9 @@
1112
1112
  "required": [
1113
1113
  "_variables"
1114
1114
  ]
1115
- }
1115
+ },
1116
+ "minItems": 1,
1117
+ "uniqueItems": true
1116
1118
  }
1117
1119
  },
1118
1120
  "required": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.11.7",
3
+ "version": "1.12.0",
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": {
@@ -315,16 +315,6 @@
315
315
  },
316
316
  "markdownDescription": "Structure as per &quot;dependencies&quot;. Additional sources to be included when loading the file."
317
317
  },
318
- "references": {
319
- "description": "A \"soft\" alternative to `\"dependencies\"`, used only for data validation (and may therefore be omitted).\n\nAn array of `[\"<NonSiteJsonSource1>\", ..., \"<NonSiteJsonSourceN>\"]`. Entities from these sources will be made available when running e.g. 5etools' `test-tags.js`.",
320
- "type": "array",
321
- "items": {
322
- "type": "string"
323
- },
324
- "minItems": 1,
325
- "uniqueItems": true,
326
- "markdownDescription": "A &quot;soft&quot; alternative to &quot;dependencies&quot;, used only for data validation (and may therefore be omitted).\n\nAn array of [&quot;&lt;NonSiteJsonSource1&gt;&quot;, ..., &quot;&lt;NonSiteJsonSourceN&gt;&quot;]. Entities from these sources will be made available when running e.g. 5etools&apos; test-tags.js."
327
- },
328
318
  "internalCopies": {
329
319
  "description": "An array of keys that are copied from within the current document. e.g. \"item\", \"monsterFluff\", \"background\" etc.",
330
320
  "type": "array",
@@ -381,6 +371,16 @@
381
371
  "description": "Supplementary information used when testing this homebrew.",
382
372
  "type": "object",
383
373
  "properties": {
374
+ "references": {
375
+ "description": "A \"soft\" alternative to `\"dependencies\"`, used only for data validation (and may therefore be omitted).\n\nAn array of `[\"<NonSiteJsonSource1>\", ..., \"<NonSiteJsonSourceN>\"]`. Entities from these sources will be made available when running e.g. 5etools' `test-tags.js`.",
376
+ "type": "array",
377
+ "items": {
378
+ "type": "string"
379
+ },
380
+ "minItems": 1,
381
+ "uniqueItems": true,
382
+ "markdownDescription": "A &quot;soft&quot; alternative to &quot;dependencies&quot;, used only for data validation (and may therefore be omitted).\n\nAn array of [&quot;&lt;NonSiteJsonSource1&gt;&quot;, ..., &quot;&lt;NonSiteJsonSourceN&gt;&quot;]. Entities from these sources will be made available when running e.g. 5etools&apos; test-tags.js."
383
+ },
384
384
  "additionalImageSources": {
385
385
  "description": "Other sources from which this homebrew should be allowed to use images.",
386
386
  "type": "array",
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "util-copy.json",
4
4
  "title": "Util: Copy",
5
- "version": "1.0.10",
5
+ "version": "1.0.11",
6
6
  "$defs": {
7
7
  "_mod_renameArr_rename": {
8
8
  "type": "object",
@@ -1112,7 +1112,9 @@
1112
1112
  "required": [
1113
1113
  "_variables"
1114
1114
  ]
1115
- }
1115
+ },
1116
+ "minItems": 1,
1117
+ "uniqueItems": true
1116
1118
  }
1117
1119
  },
1118
1120
  "required": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.11.7",
3
+ "version": "1.12.0",
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": {
@@ -313,16 +313,6 @@
313
313
  },
314
314
  "markdownDescription": "Structure as per &quot;dependencies&quot;. Additional sources to be included when loading the file."
315
315
  },
316
- "references": {
317
- "description": "A \"soft\" alternative to `\"dependencies\"`, used only for data validation (and may therefore be omitted).\n\nAn array of `[\"<NonSiteJsonSource1>\", ..., \"<NonSiteJsonSourceN>\"]`. Entities from these sources will be made available when running e.g. 5etools' `test-tags.js`.",
318
- "type": "array",
319
- "items": {
320
- "type": "string"
321
- },
322
- "minItems": 1,
323
- "uniqueItems": true,
324
- "markdownDescription": "A &quot;soft&quot; alternative to &quot;dependencies&quot;, used only for data validation (and may therefore be omitted).\n\nAn array of [&quot;&lt;NonSiteJsonSource1&gt;&quot;, ..., &quot;&lt;NonSiteJsonSourceN&gt;&quot;]. Entities from these sources will be made available when running e.g. 5etools&apos; test-tags.js."
325
- },
326
316
  "internalCopies": {
327
317
  "description": "An array of keys that are copied from within the current document. e.g. \"item\", \"monsterFluff\", \"background\" etc.",
328
318
  "type": "array",
@@ -379,6 +369,16 @@
379
369
  "description": "Supplementary information used when testing this homebrew.",
380
370
  "type": "object",
381
371
  "properties": {
372
+ "references": {
373
+ "description": "A \"soft\" alternative to `\"dependencies\"`, used only for data validation (and may therefore be omitted).\n\nAn array of `[\"<NonSiteJsonSource1>\", ..., \"<NonSiteJsonSourceN>\"]`. Entities from these sources will be made available when running e.g. 5etools' `test-tags.js`.",
374
+ "type": "array",
375
+ "items": {
376
+ "type": "string"
377
+ },
378
+ "minItems": 1,
379
+ "uniqueItems": true,
380
+ "markdownDescription": "A &quot;soft&quot; alternative to &quot;dependencies&quot;, used only for data validation (and may therefore be omitted).\n\nAn array of [&quot;&lt;NonSiteJsonSource1&gt;&quot;, ..., &quot;&lt;NonSiteJsonSourceN&gt;&quot;]. Entities from these sources will be made available when running e.g. 5etools&apos; test-tags.js."
381
+ },
382
382
  "additionalImageSources": {
383
383
  "description": "Other sources from which this homebrew should be allowed to use images.",
384
384
  "type": "array",
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "util-copy.json",
4
4
  "title": "Util: Copy",
5
- "version": "1.0.10",
5
+ "version": "1.0.11",
6
6
  "$defs": {
7
7
  "_mod_renameArr_rename": {
8
8
  "type": "object",
@@ -1112,7 +1112,9 @@
1112
1112
  "required": [
1113
1113
  "_variables"
1114
1114
  ]
1115
- }
1115
+ },
1116
+ "minItems": 1,
1117
+ "uniqueItems": true
1116
1118
  }
1117
1119
  },
1118
1120
  "required": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.11.7",
3
+ "version": "1.12.0",
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": {
@@ -315,16 +315,6 @@
315
315
  },
316
316
  "markdownDescription": "Structure as per &quot;dependencies&quot;. Additional sources to be included when loading the file."
317
317
  },
318
- "references": {
319
- "description": "A \"soft\" alternative to `\"dependencies\"`, used only for data validation (and may therefore be omitted).\n\nAn array of `[\"<NonSiteJsonSource1>\", ..., \"<NonSiteJsonSourceN>\"]`. Entities from these sources will be made available when running e.g. 5etools' `test-tags.js`.",
320
- "type": "array",
321
- "items": {
322
- "type": "string"
323
- },
324
- "minItems": 1,
325
- "uniqueItems": true,
326
- "markdownDescription": "A &quot;soft&quot; alternative to &quot;dependencies&quot;, used only for data validation (and may therefore be omitted).\n\nAn array of [&quot;&lt;NonSiteJsonSource1&gt;&quot;, ..., &quot;&lt;NonSiteJsonSourceN&gt;&quot;]. Entities from these sources will be made available when running e.g. 5etools&apos; test-tags.js."
327
- },
328
318
  "internalCopies": {
329
319
  "description": "An array of keys that are copied from within the current document. e.g. \"item\", \"monsterFluff\", \"background\" etc.",
330
320
  "type": "array",
@@ -381,6 +371,16 @@
381
371
  "description": "Supplementary information used when testing this homebrew.",
382
372
  "type": "object",
383
373
  "properties": {
374
+ "references": {
375
+ "description": "A \"soft\" alternative to `\"dependencies\"`, used only for data validation (and may therefore be omitted).\n\nAn array of `[\"<NonSiteJsonSource1>\", ..., \"<NonSiteJsonSourceN>\"]`. Entities from these sources will be made available when running e.g. 5etools' `test-tags.js`.",
376
+ "type": "array",
377
+ "items": {
378
+ "type": "string"
379
+ },
380
+ "minItems": 1,
381
+ "uniqueItems": true,
382
+ "markdownDescription": "A &quot;soft&quot; alternative to &quot;dependencies&quot;, used only for data validation (and may therefore be omitted).\n\nAn array of [&quot;&lt;NonSiteJsonSource1&gt;&quot;, ..., &quot;&lt;NonSiteJsonSourceN&gt;&quot;]. Entities from these sources will be made available when running e.g. 5etools&apos; test-tags.js."
383
+ },
384
384
  "additionalImageSources": {
385
385
  "description": "Other sources from which this homebrew should be allowed to use images.",
386
386
  "type": "array",
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "util-copy.json",
4
4
  "title": "Util: Copy",
5
- "version": "1.0.10",
5
+ "version": "1.0.11",
6
6
  "$defs": {
7
7
  "_mod_renameArr_rename": {
8
8
  "type": "object",
@@ -1112,7 +1112,9 @@
1112
1112
  "required": [
1113
1113
  "_variables"
1114
1114
  ]
1115
- }
1115
+ },
1116
+ "minItems": 1,
1117
+ "uniqueItems": true
1116
1118
  }
1117
1119
  },
1118
1120
  "required": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.11.7",
3
+ "version": "1.12.0",
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": {
@@ -313,16 +313,6 @@
313
313
  },
314
314
  "markdownDescription": "Structure as per &quot;dependencies&quot;. Additional sources to be included when loading the file."
315
315
  },
316
- "references": {
317
- "description": "A \"soft\" alternative to `\"dependencies\"`, used only for data validation (and may therefore be omitted).\n\nAn array of `[\"<NonSiteJsonSource1>\", ..., \"<NonSiteJsonSourceN>\"]`. Entities from these sources will be made available when running e.g. 5etools' `test-tags.js`.",
318
- "type": "array",
319
- "items": {
320
- "type": "string"
321
- },
322
- "minItems": 1,
323
- "uniqueItems": true,
324
- "markdownDescription": "A &quot;soft&quot; alternative to &quot;dependencies&quot;, used only for data validation (and may therefore be omitted).\n\nAn array of [&quot;&lt;NonSiteJsonSource1&gt;&quot;, ..., &quot;&lt;NonSiteJsonSourceN&gt;&quot;]. Entities from these sources will be made available when running e.g. 5etools&apos; test-tags.js."
325
- },
326
316
  "internalCopies": {
327
317
  "description": "An array of keys that are copied from within the current document. e.g. \"item\", \"monsterFluff\", \"background\" etc.",
328
318
  "type": "array",
@@ -379,6 +369,16 @@
379
369
  "description": "Supplementary information used when testing this homebrew.",
380
370
  "type": "object",
381
371
  "properties": {
372
+ "references": {
373
+ "description": "A \"soft\" alternative to `\"dependencies\"`, used only for data validation (and may therefore be omitted).\n\nAn array of `[\"<NonSiteJsonSource1>\", ..., \"<NonSiteJsonSourceN>\"]`. Entities from these sources will be made available when running e.g. 5etools' `test-tags.js`.",
374
+ "type": "array",
375
+ "items": {
376
+ "type": "string"
377
+ },
378
+ "minItems": 1,
379
+ "uniqueItems": true,
380
+ "markdownDescription": "A &quot;soft&quot; alternative to &quot;dependencies&quot;, used only for data validation (and may therefore be omitted).\n\nAn array of [&quot;&lt;NonSiteJsonSource1&gt;&quot;, ..., &quot;&lt;NonSiteJsonSourceN&gt;&quot;]. Entities from these sources will be made available when running e.g. 5etools&apos; test-tags.js."
381
+ },
382
382
  "additionalImageSources": {
383
383
  "description": "Other sources from which this homebrew should be allowed to use images.",
384
384
  "type": "array",
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "util-copy.json",
4
4
  "title": "Util: Copy",
5
- "version": "1.0.10",
5
+ "version": "1.0.11",
6
6
  "$defs": {
7
7
  "_mod_renameArr_rename": {
8
8
  "type": "object",
@@ -1112,7 +1112,9 @@
1112
1112
  "required": [
1113
1113
  "_variables"
1114
1114
  ]
1115
- }
1115
+ },
1116
+ "minItems": 1,
1117
+ "uniqueItems": true
1116
1118
  }
1117
1119
  },
1118
1120
  "required": [