5etools-utils 0.12.13 → 0.12.14

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.
@@ -90,7 +90,8 @@ class _BrewIndexMeta extends _BrewIndex {
90
90
  ? fileInfo.contents._meta.status === "ready" ? undefined : fileInfo.contents._meta.status
91
91
  : undefined,
92
92
  // partnered
93
- p: fileInfo.contents._meta.partnered ? Number(fileInfo.contents._meta.partnered) : undefined,
93
+ // TODO(Future) index at a per-source level? Make e.g. `index-sources-2.json` with `json` -> { object }` and migrate
94
+ p: fileInfo.contents._meta.sources.some(it => it.partnered) ? 1 : undefined,
94
95
  };
95
96
  }
96
97
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "5etools-utils",
3
- "version": "0.12.13",
3
+ "version": "0.12.14",
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.10.23",
3
+ "version": "1.10.24",
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": {
@@ -86,7 +86,7 @@
86
86
  "minLength": 3
87
87
  },
88
88
  "partnered": {
89
- "description": "If this is a \"partnered\" source; usually one which is available and similarly marked on D&D Beyond.",
89
+ "description": "If this is a \"partnered\" source; usually one which is shown under the \"Partnered\" section of \"https://www.dndbeyond.com/sources\".",
90
90
  "type": "boolean"
91
91
  },
92
92
  "targetSchema": {
@@ -287,10 +287,6 @@
287
287
  "description": "If this homebrew file should be ignored/hidden by any indexer.",
288
288
  "const": true
289
289
  },
290
- "partnered": {
291
- "description": "If this homebrew file is \"partnered\" content, usually including sources which are shown under the \"Partnered\" section of \"https://www.dndbeyond.com/sources\".",
292
- "const": true
293
- },
294
290
  "status": {
295
291
  "description": "An overall status for the homebrew.\n\"ready\" indicates that this brew is ready for use, and is in an internally consistent state.\n\"wip\" indicates that this brew is e.g. incomplete, or partially migrated between versions of the source document(s).\n\"invalid\" indicates that using this brew is inadvisable, because while it is schema-passing, it breaks clients which attempt to use it.\n\"deprecated\" indicates this brew is ready for use, but that using it is inadvisable, because e.g. it has been superseded by another brew.",
296
292
  "type": "string",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.23",
3
+ "version": "1.10.24",
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": {
@@ -84,7 +84,7 @@
84
84
  "minLength": 3
85
85
  },
86
86
  "partnered": {
87
- "description": "If this is a \"partnered\" source; usually one which is available and similarly marked on D&D Beyond.",
87
+ "description": "If this is a \"partnered\" source; usually one which is shown under the \"Partnered\" section of \"https://www.dndbeyond.com/sources\".",
88
88
  "type": "boolean"
89
89
  },
90
90
  "targetSchema": {
@@ -285,10 +285,6 @@
285
285
  "description": "If this homebrew file should be ignored/hidden by any indexer.",
286
286
  "const": true
287
287
  },
288
- "partnered": {
289
- "description": "If this homebrew file is \"partnered\" content, usually including sources which are shown under the \"Partnered\" section of \"https://www.dndbeyond.com/sources\".",
290
- "const": true
291
- },
292
288
  "status": {
293
289
  "description": "An overall status for the homebrew.\n\"ready\" indicates that this brew is ready for use, and is in an internally consistent state.\n\"wip\" indicates that this brew is e.g. incomplete, or partially migrated between versions of the source document(s).\n\"invalid\" indicates that using this brew is inadvisable, because while it is schema-passing, it breaks clients which attempt to use it.\n\"deprecated\" indicates this brew is ready for use, but that using it is inadvisable, because e.g. it has been superseded by another brew.",
294
290
  "type": "string",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.23",
3
+ "version": "1.10.24",
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": {
@@ -86,7 +86,7 @@
86
86
  "minLength": 3
87
87
  },
88
88
  "partnered": {
89
- "description": "If this is a \"partnered\" source; usually one which is available and similarly marked on D&D Beyond.",
89
+ "description": "If this is a \"partnered\" source; usually one which is shown under the \"Partnered\" section of \"https://www.dndbeyond.com/sources\".",
90
90
  "type": "boolean"
91
91
  },
92
92
  "targetSchema": {
@@ -287,10 +287,6 @@
287
287
  "description": "If this homebrew file should be ignored/hidden by any indexer.",
288
288
  "const": true
289
289
  },
290
- "partnered": {
291
- "description": "If this homebrew file is \"partnered\" content, usually including sources which are shown under the \"Partnered\" section of \"https://www.dndbeyond.com/sources\".",
292
- "const": true
293
- },
294
290
  "status": {
295
291
  "description": "An overall status for the homebrew.\n\"ready\" indicates that this brew is ready for use, and is in an internally consistent state.\n\"wip\" indicates that this brew is e.g. incomplete, or partially migrated between versions of the source document(s).\n\"invalid\" indicates that using this brew is inadvisable, because while it is schema-passing, it breaks clients which attempt to use it.\n\"deprecated\" indicates this brew is ready for use, but that using it is inadvisable, because e.g. it has been superseded by another brew.",
296
292
  "type": "string",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.23",
3
+ "version": "1.10.24",
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": {
@@ -84,7 +84,7 @@
84
84
  "minLength": 3
85
85
  },
86
86
  "partnered": {
87
- "description": "If this is a \"partnered\" source; usually one which is available and similarly marked on D&D Beyond.",
87
+ "description": "If this is a \"partnered\" source; usually one which is shown under the \"Partnered\" section of \"https://www.dndbeyond.com/sources\".",
88
88
  "type": "boolean"
89
89
  },
90
90
  "targetSchema": {
@@ -285,10 +285,6 @@
285
285
  "description": "If this homebrew file should be ignored/hidden by any indexer.",
286
286
  "const": true
287
287
  },
288
- "partnered": {
289
- "description": "If this homebrew file is \"partnered\" content, usually including sources which are shown under the \"Partnered\" section of \"https://www.dndbeyond.com/sources\".",
290
- "const": true
291
- },
292
288
  "status": {
293
289
  "description": "An overall status for the homebrew.\n\"ready\" indicates that this brew is ready for use, and is in an internally consistent state.\n\"wip\" indicates that this brew is e.g. incomplete, or partially migrated between versions of the source document(s).\n\"invalid\" indicates that using this brew is inadvisable, because while it is schema-passing, it breaks clients which attempt to use it.\n\"deprecated\" indicates this brew is ready for use, but that using it is inadvisable, because e.g. it has been superseded by another brew.",
294
290
  "type": "string",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.23",
3
+ "version": "1.10.24",
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": {
@@ -86,7 +86,7 @@
86
86
  "minLength": 3
87
87
  },
88
88
  "partnered": {
89
- "description": "If this is a \"partnered\" source; usually one which is available and similarly marked on D&D Beyond.",
89
+ "description": "If this is a \"partnered\" source; usually one which is shown under the \"Partnered\" section of \"https://www.dndbeyond.com/sources\".",
90
90
  "type": "boolean"
91
91
  },
92
92
  "targetSchema": {
@@ -287,10 +287,6 @@
287
287
  "description": "If this homebrew file should be ignored/hidden by any indexer.",
288
288
  "const": true
289
289
  },
290
- "partnered": {
291
- "description": "If this homebrew file is \"partnered\" content, usually including sources which are shown under the \"Partnered\" section of \"https://www.dndbeyond.com/sources\".",
292
- "const": true
293
- },
294
290
  "status": {
295
291
  "description": "An overall status for the homebrew.\n\"ready\" indicates that this brew is ready for use, and is in an internally consistent state.\n\"wip\" indicates that this brew is e.g. incomplete, or partially migrated between versions of the source document(s).\n\"invalid\" indicates that using this brew is inadvisable, because while it is schema-passing, it breaks clients which attempt to use it.\n\"deprecated\" indicates this brew is ready for use, but that using it is inadvisable, because e.g. it has been superseded by another brew.",
296
292
  "type": "string",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.23",
3
+ "version": "1.10.24",
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": {
@@ -84,7 +84,7 @@
84
84
  "minLength": 3
85
85
  },
86
86
  "partnered": {
87
- "description": "If this is a \"partnered\" source; usually one which is available and similarly marked on D&D Beyond.",
87
+ "description": "If this is a \"partnered\" source; usually one which is shown under the \"Partnered\" section of \"https://www.dndbeyond.com/sources\".",
88
88
  "type": "boolean"
89
89
  },
90
90
  "targetSchema": {
@@ -285,10 +285,6 @@
285
285
  "description": "If this homebrew file should be ignored/hidden by any indexer.",
286
286
  "const": true
287
287
  },
288
- "partnered": {
289
- "description": "If this homebrew file is \"partnered\" content, usually including sources which are shown under the \"Partnered\" section of \"https://www.dndbeyond.com/sources\".",
290
- "const": true
291
- },
292
288
  "status": {
293
289
  "description": "An overall status for the homebrew.\n\"ready\" indicates that this brew is ready for use, and is in an internally consistent state.\n\"wip\" indicates that this brew is e.g. incomplete, or partially migrated between versions of the source document(s).\n\"invalid\" indicates that using this brew is inadvisable, because while it is schema-passing, it breaks clients which attempt to use it.\n\"deprecated\" indicates this brew is ready for use, but that using it is inadvisable, because e.g. it has been superseded by another brew.",
294
290
  "type": "string",