chore: automated housekeeping...

This commit is contained in:
Pieter Vander Vennet 2025-05-03 23:48:35 +02:00
parent 612e71a4b6
commit 511d20eb34
245 changed files with 43884 additions and 8661 deletions

View file

@ -198,8 +198,13 @@ export default class LayerConfig extends WithContextLoader {
throw context + ": Preset " + i + " tags are not an array"
}
if (pr.tags.some(t => typeof t !== "string")) {
throw context + ": Preset " + i + ": all tags should be a simple tag (thus: a string) which should also be uploadable. A non-string type is found"
if (pr.tags.some((t) => typeof t !== "string")) {
throw (
context +
": Preset " +
i +
": all tags should be a simple tag (thus: a string) which should also be uploadable. A non-string type is found"
)
}
const config: PresetConfig = {
@ -285,7 +290,9 @@ export default class LayerConfig extends WithContextLoader {
tr["rewrite"] === undefined
) ?? []
if (missingIds?.length > 0 && official) {
const msg = `Context: ${context}; Some tagRenderings of ${this.id} are missing an id: ${missingIds.map(x => JSON.stringify(x)).join(", ")} `
const msg = `Context: ${context}; Some tagRenderings of ${
this.id
} are missing an id: ${missingIds.map((x) => JSON.stringify(x)).join(", ")} `
console.error(msg)
throw msg
}