5etools-utils 0.12.12 → 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.
@@ -85,7 +85,13 @@ class _BrewIndexMeta extends _BrewIndex {
85
85
  // abbreviation
86
86
  a: fileInfo.contents._meta.sources.map(it => it.abbreviation).filter(Boolean),
87
87
  // status
88
- s: fileInfo.contents._meta.status,
88
+ s: fileInfo.contents._meta.status
89
+ // Skip adding "ready", as this is the implicit value
90
+ ? fileInfo.contents._meta.status === "ready" ? undefined : fileInfo.contents._meta.status
91
+ : undefined,
92
+ // partnered
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,
89
95
  };
90
96
  }
91
97
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "5etools-utils",
3
- "version": "0.12.12",
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.22",
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": {
@@ -285,7 +285,7 @@
285
285
  },
286
286
  "unlisted": {
287
287
  "description": "If this homebrew file should be ignored/hidden by any indexer.",
288
- "type": "boolean"
288
+ "const": true
289
289
  },
290
290
  "status": {
291
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.",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.22",
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": {
@@ -283,7 +283,7 @@
283
283
  },
284
284
  "unlisted": {
285
285
  "description": "If this homebrew file should be ignored/hidden by any indexer.",
286
- "type": "boolean"
286
+ "const": true
287
287
  },
288
288
  "status": {
289
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.",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.22",
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": {
@@ -285,7 +285,7 @@
285
285
  },
286
286
  "unlisted": {
287
287
  "description": "If this homebrew file should be ignored/hidden by any indexer.",
288
- "type": "boolean"
288
+ "const": true
289
289
  },
290
290
  "status": {
291
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.",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.22",
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": {
@@ -283,7 +283,7 @@
283
283
  },
284
284
  "unlisted": {
285
285
  "description": "If this homebrew file should be ignored/hidden by any indexer.",
286
- "type": "boolean"
286
+ "const": true
287
287
  },
288
288
  "status": {
289
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.",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.22",
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": {
@@ -285,7 +285,7 @@
285
285
  },
286
286
  "unlisted": {
287
287
  "description": "If this homebrew file should be ignored/hidden by any indexer.",
288
- "type": "boolean"
288
+ "const": true
289
289
  },
290
290
  "status": {
291
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.",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "version": "1.10.22",
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": {
@@ -283,7 +283,7 @@
283
283
  },
284
284
  "unlisted": {
285
285
  "description": "If this homebrew file should be ignored/hidden by any indexer.",
286
- "type": "boolean"
286
+ "const": true
287
287
  },
288
288
  "status": {
289
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.",