diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-11-14 21:45:08 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-11-14 21:45:08 -0400 |
commit | b053fa14052aaa24883e73a3f899016f963b5d43 (patch) | |
tree | dc88b97a0d49d7ea0bc6c2fbd858480b92703877 /src/data | |
parent | 682b62b33aa6e5a4c512343d0355d32cb1c67c17 (diff) |
data: expose CacheableObject directly via #cacheable-object import
Diffstat (limited to 'src/data')
-rw-r--r-- | src/data/things/index.js | 5 | ||||
-rw-r--r-- | src/data/yaml.js | 8 |
2 files changed, 3 insertions, 10 deletions
diff --git a/src/data/things/index.js b/src/data/things/index.js index 4ea1f007..d1143b0a 100644 --- a/src/data/things/index.js +++ b/src/data/things/index.js @@ -22,11 +22,6 @@ import * as wikiInfoClasses from './wiki-info.js'; export {default as Thing} from './thing.js'; -export { - default as CacheableObject, - CacheableObjectPropertyValueError, -} from './cacheable-object.js'; - const allClassLists = { 'album.js': albumClasses, 'art-tag.js': artTagClasses, diff --git a/src/data/yaml.js b/src/data/yaml.js index 1d35bae8..986f25d1 100644 --- a/src/data/yaml.js +++ b/src/data/yaml.js @@ -7,15 +7,13 @@ import {inspect as nodeInspect} from 'node:util'; import yaml from 'js-yaml'; +import CacheableObject, {CacheableObjectPropertyValueError} + from '#cacheable-object'; import {colors, ENABLE_COLOR, logInfo, logWarn} from '#cli'; import find, {bindFind} from '#find'; import {traverse} from '#node-utils'; -import T, { - CacheableObject, - CacheableObjectPropertyValueError, - Thing, -} from '#things'; +import T, {Thing} from '#things'; import { annotateErrorWithFile, |