From 7a3038b982c4d318e146698527070f096591aa4f Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 16 Feb 2024 09:39:14 -0400 Subject: sugar: move many functions into new #aggregate import --- src/data/yaml.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/data/yaml.js') diff --git a/src/data/yaml.js b/src/data/yaml.js index 7a0643e8..100e07b9 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}); -- cgit 1.3.0-6-gf8a5