diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2022-02-25 22:01:01 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2022-02-25 22:01:01 -0400 |
commit | 6e2df0d972dcfa45be1e5f7f070fdebb969f4498 (patch) | |
tree | 25bb8a3be3a31a86902ab81e6fa5db609b9a4ce2 /src/data/validators.js | |
parent | a7281f12ee5fc52f8b748bb1fb555a057e8e6677 (diff) |
fill out data for artist pages + internal tweaks
Diffstat (limited to 'src/data/validators.js')
-rw-r--r-- | src/data/validators.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/data/validators.js b/src/data/validators.js index ca10833e..8f4d06d7 100644 --- a/src/data/validators.js +++ b/src/data/validators.js @@ -1,6 +1,6 @@ import { withAggregate } from '../util/sugar.js'; -import { color, ENABLE_COLOR } from '../util/cli.js'; +import { color, ENABLE_COLOR, decorateTime } from '../util/cli.js'; import { inspect as nodeInspect } from 'util'; @@ -155,7 +155,7 @@ function validateArrayItemsHelper(itemValidator) { export function validateArrayItems(itemValidator) { const fn = validateArrayItemsHelper(itemValidator); - return array => { + return decorateTime('validateArrayItems -> work', array => { isArray(array); withAggregate({message: 'Errors validating array items'}, ({ wrap }) => { @@ -163,7 +163,7 @@ export function validateArrayItems(itemValidator) { }); return true; - }; + }); } export function validateInstanceOf(constructor) { |