diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-02-16 09:39:14 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-02-16 10:28:02 -0400 |
commit | 7a3038b982c4d318e146698527070f096591aa4f (patch) | |
tree | 02ef22e2c740dc02f073189718a315afff100fe5 /src/data/yaml.js | |
parent | 2b0a5231170049bc4fd7f44009c9f32b1404d5a5 (diff) |
sugar: move many functions into new #aggregate import
Diffstat (limited to 'src/data/yaml.js')
-rw-r--r-- | src/data/yaml.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/data/yaml.js b/src/data/yaml.js index 7a0643e..100e07b 100644 --- a/src/data/yaml.js +++ b/src/data/yaml.js @@ -10,23 +10,20 @@ import yaml from 'js-yaml'; import {colors, ENABLE_COLOR, logInfo, logWarn} from '#cli'; import {reportDuplicateDirectories, filterReferenceErrors} from '#data-checks'; +import {atOffset, empty, filterProperties, typeAppearance, withEntries} + from '#sugar'; import Thing from '#thing'; import thingConstructors from '#things'; import {sortByName} from '#wiki-data'; import { annotateErrorWithFile, - atOffset, decorateErrorWithIndex, decorateErrorWithAnnotation, - empty, - filterProperties, openAggregate, showAggregate, - typeAppearance, withAggregate, - withEntries, -} from '#sugar'; +} from '#aggregate'; function inspect(value, opts = {}) { return nodeInspect(value, {colors: ENABLE_COLOR, ...opts}); |