@windrun-huaiin/dev-scripts 13.1.0 → 14.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_commonjsHelpers.js +7 -0
- package/dist/_virtual/_commonjsHelpers.mjs +5 -0
- package/dist/_virtual/index.js +11 -0
- package/dist/_virtual/index.mjs +7 -0
- package/dist/_virtual/re.js +5 -0
- package/dist/_virtual/re.mjs +3 -0
- package/dist/cli.js +33 -1
- package/dist/cli.mjs +33 -1
- package/dist/commands/diaomao-update.d.ts +3 -0
- package/dist/commands/diaomao-update.d.ts.map +1 -0
- package/dist/commands/diaomao-update.js +304 -0
- package/dist/commands/diaomao-update.mjs +302 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +9 -0
- package/dist/config/index.mjs +9 -0
- package/dist/config/schema.d.ts +5 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +5 -0
- package/dist/config/schema.mjs +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.mjs +1 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/comparator.js +161 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/comparator.mjs +159 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/range.js +576 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/range.mjs +574 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.js +350 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.mjs +348 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.js +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.mjs +19 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/cmp.js +72 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/cmp.mjs +70 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.js +77 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.mjs +75 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-build.js +22 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-build.mjs +20 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-loose.js +18 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-loose.mjs +16 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare.js +20 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare.mjs +18 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.js +73 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.mjs +71 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/eq.js +18 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/eq.mjs +16 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gt.js +18 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gt.mjs +16 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gte.js +18 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gte.mjs +16 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/inc.js +34 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/inc.mjs +32 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lt.js +18 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lt.mjs +16 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lte.js +18 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lte.mjs +16 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/major.js +18 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/major.mjs +16 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/minor.js +18 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/minor.mjs +16 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/neq.js +18 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/neq.mjs +16 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js +31 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.mjs +29 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/patch.js +18 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/patch.mjs +16 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.js +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.mjs +19 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rcompare.js +18 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rcompare.mjs +16 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rsort.js +18 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rsort.mjs +16 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/satisfies.js +25 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/satisfies.mjs +23 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/sort.js +18 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/sort.mjs +16 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.js +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.mjs +19 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/index.js +144 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/index.mjs +142 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js +48 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.mjs +46 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.js +22 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.mjs +20 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.js +40 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.mjs +38 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/lrucache.js +53 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/lrucache.mjs +51 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.js +28 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.mjs +26 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.js +239 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.mjs +237 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/gtr.js +19 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/gtr.mjs +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/intersects.js +22 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/intersects.mjs +20 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/ltr.js +19 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/ltr.mjs +17 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/max-satisfying.js +41 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/max-satisfying.mjs +39 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-satisfying.js +40 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-satisfying.mjs +38 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-version.js +78 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-version.mjs +76 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/outside.js +102 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/outside.mjs +100 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/simplify.js +63 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/simplify.mjs +61 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/subset.js +265 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/subset.mjs +263 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/to-comparators.js +23 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/to-comparators.mjs +21 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/valid.js +26 -0
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/valid.mjs +24 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-collection.js +90 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-collection.mjs +88 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-doc.js +45 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-doc.mjs +43 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-node.js +105 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-node.mjs +102 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-scalar.js +88 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-scalar.mjs +86 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/composer.js +219 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/composer.mjs +217 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-block-map.js +117 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-block-map.mjs +115 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +200 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-block-scalar.mjs +198 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +51 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-block-seq.mjs +49 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-end.js +39 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-end.mjs +37 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +209 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-flow-collection.mjs +207 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +225 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.mjs +223 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-props.js +148 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-props.mjs +146 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-contains-newline.js +36 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-contains-newline.mjs +34 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +28 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.mjs +26 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +17 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-flow-indent-check.mjs +15 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-map-includes.js +15 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-map-includes.mjs +13 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/Document.js +337 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/Document.mjs +335 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/anchors.js +76 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/anchors.mjs +71 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/applyReviver.js +57 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/applyReviver.mjs +55 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/createNode.js +90 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/createNode.mjs +88 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/directives.js +178 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/directives.mjs +176 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/errors.js +62 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/errors.mjs +57 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/log.js +9 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/log.mjs +7 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Alias.js +116 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Alias.mjs +114 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Collection.js +151 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Collection.mjs +147 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Node.js +40 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Node.mjs +38 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Pair.js +39 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Pair.mjs +36 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Scalar.js +27 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Scalar.mjs +24 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/YAMLMap.js +147 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/YAMLMap.mjs +144 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +115 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/YAMLSeq.mjs +113 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +65 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/addPairToJSMap.mjs +63 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/identity.js +53 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/identity.mjs +36 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/toJS.js +39 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/toJS.mjs +37 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/cst.js +79 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/cst.mjs +73 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/lexer.js +719 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/lexer.mjs +717 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/line-counter.js +41 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/line-counter.mjs +39 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/parser.js +969 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/parser.mjs +967 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/public-api.js +68 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/public-api.mjs +64 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/Schema.js +39 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/Schema.mjs +37 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/map.js +19 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/map.mjs +17 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/null.js +17 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/null.mjs +15 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/seq.js +19 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/seq.mjs +17 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/string.js +16 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/string.mjs +14 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/bool.js +21 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/bool.mjs +19 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/float.js +47 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/float.mjs +43 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/int.js +42 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/int.mjs +38 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/schema.js +25 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/schema.mjs +23 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/json/schema.js +64 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/json/schema.mjs +62 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/tags.js +99 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/tags.mjs +96 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +60 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.mjs +58 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +29 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.mjs +26 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +50 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/float.mjs +46 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +76 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/int.mjs +71 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +68 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.mjs +64 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +77 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.mjs +74 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +82 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.mjs +78 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +41 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.mjs +39 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +96 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/set.mjs +93 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +105 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.mjs +101 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +151 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/foldFlowLines.mjs +146 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringify.js +131 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringify.mjs +128 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +145 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyCollection.mjs +143 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyComment.js +24 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyComment.mjs +20 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +87 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyDocument.mjs +85 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +26 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyNumber.mjs +24 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyPair.js +152 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyPair.mjs +150 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyString.js +338 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyString.mjs +336 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/visit.js +148 -0
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/visit.mjs +146 -0
- package/package.json +6 -4
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var composer = require('./compose/composer.js');
|
|
4
|
+
var Document = require('./doc/Document.js');
|
|
5
|
+
var errors = require('./errors.js');
|
|
6
|
+
var log = require('./log.js');
|
|
7
|
+
var identity = require('./nodes/identity.js');
|
|
8
|
+
var lineCounter = require('./parse/line-counter.js');
|
|
9
|
+
var parser = require('./parse/parser.js');
|
|
10
|
+
|
|
11
|
+
function parseOptions(options) {
|
|
12
|
+
const prettyErrors = options.prettyErrors !== false;
|
|
13
|
+
const lineCounter$1 = options.lineCounter || (prettyErrors && new lineCounter.LineCounter()) || null;
|
|
14
|
+
return { lineCounter: lineCounter$1, prettyErrors };
|
|
15
|
+
}
|
|
16
|
+
/** Parse an input string into a single YAML.Document */
|
|
17
|
+
function parseDocument(source, options = {}) {
|
|
18
|
+
const { lineCounter, prettyErrors } = parseOptions(options);
|
|
19
|
+
const parser$1 = new parser.Parser(lineCounter?.addNewLine);
|
|
20
|
+
const composer$1 = new composer.Composer(options);
|
|
21
|
+
// `doc` is always set by compose.end(true) at the very latest
|
|
22
|
+
let doc = null;
|
|
23
|
+
for (const _doc of composer$1.compose(parser$1.parse(source), true, source.length)) {
|
|
24
|
+
if (!doc)
|
|
25
|
+
doc = _doc;
|
|
26
|
+
else if (doc.options.logLevel !== 'silent') {
|
|
27
|
+
doc.errors.push(new errors.YAMLParseError(_doc.range.slice(0, 2), 'MULTIPLE_DOCS', 'Source contains multiple documents; please use YAML.parseAllDocuments()'));
|
|
28
|
+
break;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
if (prettyErrors && lineCounter) {
|
|
32
|
+
doc.errors.forEach(errors.prettifyError(source, lineCounter));
|
|
33
|
+
doc.warnings.forEach(errors.prettifyError(source, lineCounter));
|
|
34
|
+
}
|
|
35
|
+
return doc;
|
|
36
|
+
}
|
|
37
|
+
function parse(src, reviver, options) {
|
|
38
|
+
let _reviver = undefined;
|
|
39
|
+
const doc = parseDocument(src, options);
|
|
40
|
+
if (!doc)
|
|
41
|
+
return null;
|
|
42
|
+
doc.warnings.forEach(warning => log.warn(doc.options.logLevel, warning));
|
|
43
|
+
if (doc.errors.length > 0) {
|
|
44
|
+
if (doc.options.logLevel !== 'silent')
|
|
45
|
+
throw doc.errors[0];
|
|
46
|
+
else
|
|
47
|
+
doc.errors = [];
|
|
48
|
+
}
|
|
49
|
+
return doc.toJS(Object.assign({ reviver: _reviver }, options));
|
|
50
|
+
}
|
|
51
|
+
function stringify(value, replacer, options) {
|
|
52
|
+
let _replacer = null;
|
|
53
|
+
if (Array.isArray(replacer)) {
|
|
54
|
+
_replacer = replacer;
|
|
55
|
+
}
|
|
56
|
+
if (value === undefined) {
|
|
57
|
+
const { keepUndefined } = {};
|
|
58
|
+
if (!keepUndefined)
|
|
59
|
+
return undefined;
|
|
60
|
+
}
|
|
61
|
+
if (identity.isDocument(value) && !_replacer)
|
|
62
|
+
return value.toString(options);
|
|
63
|
+
return new Document.Document(value, _replacer, options).toString(options);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
exports.parse = parse;
|
|
67
|
+
exports.parseDocument = parseDocument;
|
|
68
|
+
exports.stringify = stringify;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Composer } from './compose/composer.mjs';
|
|
2
|
+
import { Document } from './doc/Document.mjs';
|
|
3
|
+
import { prettifyError, YAMLParseError } from './errors.mjs';
|
|
4
|
+
import { warn } from './log.mjs';
|
|
5
|
+
import { isDocument } from './nodes/identity.mjs';
|
|
6
|
+
import { LineCounter } from './parse/line-counter.mjs';
|
|
7
|
+
import { Parser } from './parse/parser.mjs';
|
|
8
|
+
|
|
9
|
+
function parseOptions(options) {
|
|
10
|
+
const prettyErrors = options.prettyErrors !== false;
|
|
11
|
+
const lineCounter = options.lineCounter || (prettyErrors && new LineCounter()) || null;
|
|
12
|
+
return { lineCounter, prettyErrors };
|
|
13
|
+
}
|
|
14
|
+
/** Parse an input string into a single YAML.Document */
|
|
15
|
+
function parseDocument(source, options = {}) {
|
|
16
|
+
const { lineCounter, prettyErrors } = parseOptions(options);
|
|
17
|
+
const parser = new Parser(lineCounter?.addNewLine);
|
|
18
|
+
const composer = new Composer(options);
|
|
19
|
+
// `doc` is always set by compose.end(true) at the very latest
|
|
20
|
+
let doc = null;
|
|
21
|
+
for (const _doc of composer.compose(parser.parse(source), true, source.length)) {
|
|
22
|
+
if (!doc)
|
|
23
|
+
doc = _doc;
|
|
24
|
+
else if (doc.options.logLevel !== 'silent') {
|
|
25
|
+
doc.errors.push(new YAMLParseError(_doc.range.slice(0, 2), 'MULTIPLE_DOCS', 'Source contains multiple documents; please use YAML.parseAllDocuments()'));
|
|
26
|
+
break;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
if (prettyErrors && lineCounter) {
|
|
30
|
+
doc.errors.forEach(prettifyError(source, lineCounter));
|
|
31
|
+
doc.warnings.forEach(prettifyError(source, lineCounter));
|
|
32
|
+
}
|
|
33
|
+
return doc;
|
|
34
|
+
}
|
|
35
|
+
function parse(src, reviver, options) {
|
|
36
|
+
let _reviver = undefined;
|
|
37
|
+
const doc = parseDocument(src, options);
|
|
38
|
+
if (!doc)
|
|
39
|
+
return null;
|
|
40
|
+
doc.warnings.forEach(warning => warn(doc.options.logLevel, warning));
|
|
41
|
+
if (doc.errors.length > 0) {
|
|
42
|
+
if (doc.options.logLevel !== 'silent')
|
|
43
|
+
throw doc.errors[0];
|
|
44
|
+
else
|
|
45
|
+
doc.errors = [];
|
|
46
|
+
}
|
|
47
|
+
return doc.toJS(Object.assign({ reviver: _reviver }, options));
|
|
48
|
+
}
|
|
49
|
+
function stringify(value, replacer, options) {
|
|
50
|
+
let _replacer = null;
|
|
51
|
+
if (Array.isArray(replacer)) {
|
|
52
|
+
_replacer = replacer;
|
|
53
|
+
}
|
|
54
|
+
if (value === undefined) {
|
|
55
|
+
const { keepUndefined } = {};
|
|
56
|
+
if (!keepUndefined)
|
|
57
|
+
return undefined;
|
|
58
|
+
}
|
|
59
|
+
if (isDocument(value) && !_replacer)
|
|
60
|
+
return value.toString(options);
|
|
61
|
+
return new Document(value, _replacer, options).toString(options);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export { parse, parseDocument, stringify };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var identity = require('../nodes/identity.js');
|
|
4
|
+
var map = require('./common/map.js');
|
|
5
|
+
var seq = require('./common/seq.js');
|
|
6
|
+
var string = require('./common/string.js');
|
|
7
|
+
var tags = require('./tags.js');
|
|
8
|
+
|
|
9
|
+
const sortMapEntriesByKey = (a, b) => a.key < b.key ? -1 : a.key > b.key ? 1 : 0;
|
|
10
|
+
class Schema {
|
|
11
|
+
constructor({ compat, customTags, merge, resolveKnownTags, schema, sortMapEntries, toStringDefaults }) {
|
|
12
|
+
this.compat = Array.isArray(compat)
|
|
13
|
+
? tags.getTags(compat, 'compat')
|
|
14
|
+
: compat
|
|
15
|
+
? tags.getTags(null, compat)
|
|
16
|
+
: null;
|
|
17
|
+
this.name = (typeof schema === 'string' && schema) || 'core';
|
|
18
|
+
this.knownTags = resolveKnownTags ? tags.coreKnownTags : {};
|
|
19
|
+
this.tags = tags.getTags(customTags, this.name, merge);
|
|
20
|
+
this.toStringOptions = toStringDefaults ?? null;
|
|
21
|
+
Object.defineProperty(this, identity.MAP, { value: map.map });
|
|
22
|
+
Object.defineProperty(this, identity.SCALAR, { value: string.string });
|
|
23
|
+
Object.defineProperty(this, identity.SEQ, { value: seq.seq });
|
|
24
|
+
// Used by createMap()
|
|
25
|
+
this.sortMapEntries =
|
|
26
|
+
typeof sortMapEntries === 'function'
|
|
27
|
+
? sortMapEntries
|
|
28
|
+
: sortMapEntries === true
|
|
29
|
+
? sortMapEntriesByKey
|
|
30
|
+
: null;
|
|
31
|
+
}
|
|
32
|
+
clone() {
|
|
33
|
+
const copy = Object.create(Schema.prototype, Object.getOwnPropertyDescriptors(this));
|
|
34
|
+
copy.tags = this.tags.slice();
|
|
35
|
+
return copy;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
exports.Schema = Schema;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { MAP, SCALAR, SEQ } from '../nodes/identity.mjs';
|
|
2
|
+
import { map } from './common/map.mjs';
|
|
3
|
+
import { seq } from './common/seq.mjs';
|
|
4
|
+
import { string } from './common/string.mjs';
|
|
5
|
+
import { getTags, coreKnownTags } from './tags.mjs';
|
|
6
|
+
|
|
7
|
+
const sortMapEntriesByKey = (a, b) => a.key < b.key ? -1 : a.key > b.key ? 1 : 0;
|
|
8
|
+
class Schema {
|
|
9
|
+
constructor({ compat, customTags, merge, resolveKnownTags, schema, sortMapEntries, toStringDefaults }) {
|
|
10
|
+
this.compat = Array.isArray(compat)
|
|
11
|
+
? getTags(compat, 'compat')
|
|
12
|
+
: compat
|
|
13
|
+
? getTags(null, compat)
|
|
14
|
+
: null;
|
|
15
|
+
this.name = (typeof schema === 'string' && schema) || 'core';
|
|
16
|
+
this.knownTags = resolveKnownTags ? coreKnownTags : {};
|
|
17
|
+
this.tags = getTags(customTags, this.name, merge);
|
|
18
|
+
this.toStringOptions = toStringDefaults ?? null;
|
|
19
|
+
Object.defineProperty(this, MAP, { value: map });
|
|
20
|
+
Object.defineProperty(this, SCALAR, { value: string });
|
|
21
|
+
Object.defineProperty(this, SEQ, { value: seq });
|
|
22
|
+
// Used by createMap()
|
|
23
|
+
this.sortMapEntries =
|
|
24
|
+
typeof sortMapEntries === 'function'
|
|
25
|
+
? sortMapEntries
|
|
26
|
+
: sortMapEntries === true
|
|
27
|
+
? sortMapEntriesByKey
|
|
28
|
+
: null;
|
|
29
|
+
}
|
|
30
|
+
clone() {
|
|
31
|
+
const copy = Object.create(Schema.prototype, Object.getOwnPropertyDescriptors(this));
|
|
32
|
+
copy.tags = this.tags.slice();
|
|
33
|
+
return copy;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { Schema };
|
package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/map.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var identity = require('../../nodes/identity.js');
|
|
4
|
+
var YAMLMap = require('../../nodes/YAMLMap.js');
|
|
5
|
+
|
|
6
|
+
const map = {
|
|
7
|
+
collection: 'map',
|
|
8
|
+
default: true,
|
|
9
|
+
nodeClass: YAMLMap.YAMLMap,
|
|
10
|
+
tag: 'tag:yaml.org,2002:map',
|
|
11
|
+
resolve(map, onError) {
|
|
12
|
+
if (!identity.isMap(map))
|
|
13
|
+
onError('Expected a mapping for this tag');
|
|
14
|
+
return map;
|
|
15
|
+
},
|
|
16
|
+
createNode: (schema, obj, ctx) => YAMLMap.YAMLMap.from(schema, obj, ctx)
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
exports.map = map;
|
package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/map.mjs
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { isMap } from '../../nodes/identity.mjs';
|
|
2
|
+
import { YAMLMap } from '../../nodes/YAMLMap.mjs';
|
|
3
|
+
|
|
4
|
+
const map = {
|
|
5
|
+
collection: 'map',
|
|
6
|
+
default: true,
|
|
7
|
+
nodeClass: YAMLMap,
|
|
8
|
+
tag: 'tag:yaml.org,2002:map',
|
|
9
|
+
resolve(map, onError) {
|
|
10
|
+
if (!isMap(map))
|
|
11
|
+
onError('Expected a mapping for this tag');
|
|
12
|
+
return map;
|
|
13
|
+
},
|
|
14
|
+
createNode: (schema, obj, ctx) => YAMLMap.from(schema, obj, ctx)
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { map };
|
package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/null.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var Scalar = require('../../nodes/Scalar.js');
|
|
4
|
+
|
|
5
|
+
const nullTag = {
|
|
6
|
+
identify: value => value == null,
|
|
7
|
+
createNode: () => new Scalar.Scalar(null),
|
|
8
|
+
default: true,
|
|
9
|
+
tag: 'tag:yaml.org,2002:null',
|
|
10
|
+
test: /^(?:~|[Nn]ull|NULL)?$/,
|
|
11
|
+
resolve: () => new Scalar.Scalar(null),
|
|
12
|
+
stringify: ({ source }, ctx) => typeof source === 'string' && nullTag.test.test(source)
|
|
13
|
+
? source
|
|
14
|
+
: ctx.options.nullStr
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
exports.nullTag = nullTag;
|
package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/null.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Scalar } from '../../nodes/Scalar.mjs';
|
|
2
|
+
|
|
3
|
+
const nullTag = {
|
|
4
|
+
identify: value => value == null,
|
|
5
|
+
createNode: () => new Scalar(null),
|
|
6
|
+
default: true,
|
|
7
|
+
tag: 'tag:yaml.org,2002:null',
|
|
8
|
+
test: /^(?:~|[Nn]ull|NULL)?$/,
|
|
9
|
+
resolve: () => new Scalar(null),
|
|
10
|
+
stringify: ({ source }, ctx) => typeof source === 'string' && nullTag.test.test(source)
|
|
11
|
+
? source
|
|
12
|
+
: ctx.options.nullStr
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { nullTag };
|
package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/seq.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var identity = require('../../nodes/identity.js');
|
|
4
|
+
var YAMLSeq = require('../../nodes/YAMLSeq.js');
|
|
5
|
+
|
|
6
|
+
const seq = {
|
|
7
|
+
collection: 'seq',
|
|
8
|
+
default: true,
|
|
9
|
+
nodeClass: YAMLSeq.YAMLSeq,
|
|
10
|
+
tag: 'tag:yaml.org,2002:seq',
|
|
11
|
+
resolve(seq, onError) {
|
|
12
|
+
if (!identity.isSeq(seq))
|
|
13
|
+
onError('Expected a sequence for this tag');
|
|
14
|
+
return seq;
|
|
15
|
+
},
|
|
16
|
+
createNode: (schema, obj, ctx) => YAMLSeq.YAMLSeq.from(schema, obj, ctx)
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
exports.seq = seq;
|
package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/seq.mjs
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { isSeq } from '../../nodes/identity.mjs';
|
|
2
|
+
import { YAMLSeq } from '../../nodes/YAMLSeq.mjs';
|
|
3
|
+
|
|
4
|
+
const seq = {
|
|
5
|
+
collection: 'seq',
|
|
6
|
+
default: true,
|
|
7
|
+
nodeClass: YAMLSeq,
|
|
8
|
+
tag: 'tag:yaml.org,2002:seq',
|
|
9
|
+
resolve(seq, onError) {
|
|
10
|
+
if (!isSeq(seq))
|
|
11
|
+
onError('Expected a sequence for this tag');
|
|
12
|
+
return seq;
|
|
13
|
+
},
|
|
14
|
+
createNode: (schema, obj, ctx) => YAMLSeq.from(schema, obj, ctx)
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { seq };
|
package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/string.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var stringifyString = require('../../stringify/stringifyString.js');
|
|
4
|
+
|
|
5
|
+
const string = {
|
|
6
|
+
identify: value => typeof value === 'string',
|
|
7
|
+
default: true,
|
|
8
|
+
tag: 'tag:yaml.org,2002:str',
|
|
9
|
+
resolve: str => str,
|
|
10
|
+
stringify(item, ctx, onComment, onChompKeep) {
|
|
11
|
+
ctx = Object.assign({ actualString: true }, ctx);
|
|
12
|
+
return stringifyString.stringifyString(item, ctx, onComment, onChompKeep);
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
exports.string = string;
|
package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/string.mjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { stringifyString } from '../../stringify/stringifyString.mjs';
|
|
2
|
+
|
|
3
|
+
const string = {
|
|
4
|
+
identify: value => typeof value === 'string',
|
|
5
|
+
default: true,
|
|
6
|
+
tag: 'tag:yaml.org,2002:str',
|
|
7
|
+
resolve: str => str,
|
|
8
|
+
stringify(item, ctx, onComment, onChompKeep) {
|
|
9
|
+
ctx = Object.assign({ actualString: true }, ctx);
|
|
10
|
+
return stringifyString(item, ctx, onComment, onChompKeep);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { string };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var Scalar = require('../../nodes/Scalar.js');
|
|
4
|
+
|
|
5
|
+
const boolTag = {
|
|
6
|
+
identify: value => typeof value === 'boolean',
|
|
7
|
+
default: true,
|
|
8
|
+
tag: 'tag:yaml.org,2002:bool',
|
|
9
|
+
test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
|
|
10
|
+
resolve: str => new Scalar.Scalar(str[0] === 't' || str[0] === 'T'),
|
|
11
|
+
stringify({ source, value }, ctx) {
|
|
12
|
+
if (source && boolTag.test.test(source)) {
|
|
13
|
+
const sv = source[0] === 't' || source[0] === 'T';
|
|
14
|
+
if (value === sv)
|
|
15
|
+
return source;
|
|
16
|
+
}
|
|
17
|
+
return value ? ctx.options.trueStr : ctx.options.falseStr;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
exports.boolTag = boolTag;
|
package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/bool.mjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Scalar } from '../../nodes/Scalar.mjs';
|
|
2
|
+
|
|
3
|
+
const boolTag = {
|
|
4
|
+
identify: value => typeof value === 'boolean',
|
|
5
|
+
default: true,
|
|
6
|
+
tag: 'tag:yaml.org,2002:bool',
|
|
7
|
+
test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
|
|
8
|
+
resolve: str => new Scalar(str[0] === 't' || str[0] === 'T'),
|
|
9
|
+
stringify({ source, value }, ctx) {
|
|
10
|
+
if (source && boolTag.test.test(source)) {
|
|
11
|
+
const sv = source[0] === 't' || source[0] === 'T';
|
|
12
|
+
if (value === sv)
|
|
13
|
+
return source;
|
|
14
|
+
}
|
|
15
|
+
return value ? ctx.options.trueStr : ctx.options.falseStr;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { boolTag };
|
package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/float.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var Scalar = require('../../nodes/Scalar.js');
|
|
4
|
+
var stringifyNumber = require('../../stringify/stringifyNumber.js');
|
|
5
|
+
|
|
6
|
+
const floatNaN = {
|
|
7
|
+
identify: value => typeof value === 'number',
|
|
8
|
+
default: true,
|
|
9
|
+
tag: 'tag:yaml.org,2002:float',
|
|
10
|
+
test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
|
|
11
|
+
resolve: str => str.slice(-3).toLowerCase() === 'nan'
|
|
12
|
+
? NaN
|
|
13
|
+
: str[0] === '-'
|
|
14
|
+
? Number.NEGATIVE_INFINITY
|
|
15
|
+
: Number.POSITIVE_INFINITY,
|
|
16
|
+
stringify: stringifyNumber.stringifyNumber
|
|
17
|
+
};
|
|
18
|
+
const floatExp = {
|
|
19
|
+
identify: value => typeof value === 'number',
|
|
20
|
+
default: true,
|
|
21
|
+
tag: 'tag:yaml.org,2002:float',
|
|
22
|
+
format: 'EXP',
|
|
23
|
+
test: /^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,
|
|
24
|
+
resolve: str => parseFloat(str),
|
|
25
|
+
stringify(node) {
|
|
26
|
+
const num = Number(node.value);
|
|
27
|
+
return isFinite(num) ? num.toExponential() : stringifyNumber.stringifyNumber(node);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
const float = {
|
|
31
|
+
identify: value => typeof value === 'number',
|
|
32
|
+
default: true,
|
|
33
|
+
tag: 'tag:yaml.org,2002:float',
|
|
34
|
+
test: /^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,
|
|
35
|
+
resolve(str) {
|
|
36
|
+
const node = new Scalar.Scalar(parseFloat(str));
|
|
37
|
+
const dot = str.indexOf('.');
|
|
38
|
+
if (dot !== -1 && str[str.length - 1] === '0')
|
|
39
|
+
node.minFractionDigits = str.length - dot - 1;
|
|
40
|
+
return node;
|
|
41
|
+
},
|
|
42
|
+
stringify: stringifyNumber.stringifyNumber
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
exports.float = float;
|
|
46
|
+
exports.floatExp = floatExp;
|
|
47
|
+
exports.floatNaN = floatNaN;
|
package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/float.mjs
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Scalar } from '../../nodes/Scalar.mjs';
|
|
2
|
+
import { stringifyNumber } from '../../stringify/stringifyNumber.mjs';
|
|
3
|
+
|
|
4
|
+
const floatNaN = {
|
|
5
|
+
identify: value => typeof value === 'number',
|
|
6
|
+
default: true,
|
|
7
|
+
tag: 'tag:yaml.org,2002:float',
|
|
8
|
+
test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
|
|
9
|
+
resolve: str => str.slice(-3).toLowerCase() === 'nan'
|
|
10
|
+
? NaN
|
|
11
|
+
: str[0] === '-'
|
|
12
|
+
? Number.NEGATIVE_INFINITY
|
|
13
|
+
: Number.POSITIVE_INFINITY,
|
|
14
|
+
stringify: stringifyNumber
|
|
15
|
+
};
|
|
16
|
+
const floatExp = {
|
|
17
|
+
identify: value => typeof value === 'number',
|
|
18
|
+
default: true,
|
|
19
|
+
tag: 'tag:yaml.org,2002:float',
|
|
20
|
+
format: 'EXP',
|
|
21
|
+
test: /^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,
|
|
22
|
+
resolve: str => parseFloat(str),
|
|
23
|
+
stringify(node) {
|
|
24
|
+
const num = Number(node.value);
|
|
25
|
+
return isFinite(num) ? num.toExponential() : stringifyNumber(node);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
const float = {
|
|
29
|
+
identify: value => typeof value === 'number',
|
|
30
|
+
default: true,
|
|
31
|
+
tag: 'tag:yaml.org,2002:float',
|
|
32
|
+
test: /^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,
|
|
33
|
+
resolve(str) {
|
|
34
|
+
const node = new Scalar(parseFloat(str));
|
|
35
|
+
const dot = str.indexOf('.');
|
|
36
|
+
if (dot !== -1 && str[str.length - 1] === '0')
|
|
37
|
+
node.minFractionDigits = str.length - dot - 1;
|
|
38
|
+
return node;
|
|
39
|
+
},
|
|
40
|
+
stringify: stringifyNumber
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export { float, floatExp, floatNaN };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var stringifyNumber = require('../../stringify/stringifyNumber.js');
|
|
4
|
+
|
|
5
|
+
const intIdentify = (value) => typeof value === 'bigint' || Number.isInteger(value);
|
|
6
|
+
const intResolve = (str, offset, radix, { intAsBigInt }) => (intAsBigInt ? BigInt(str) : parseInt(str.substring(offset), radix));
|
|
7
|
+
function intStringify(node, radix, prefix) {
|
|
8
|
+
const { value } = node;
|
|
9
|
+
if (intIdentify(value) && value >= 0)
|
|
10
|
+
return prefix + value.toString(radix);
|
|
11
|
+
return stringifyNumber.stringifyNumber(node);
|
|
12
|
+
}
|
|
13
|
+
const intOct = {
|
|
14
|
+
identify: value => intIdentify(value) && value >= 0,
|
|
15
|
+
default: true,
|
|
16
|
+
tag: 'tag:yaml.org,2002:int',
|
|
17
|
+
format: 'OCT',
|
|
18
|
+
test: /^0o[0-7]+$/,
|
|
19
|
+
resolve: (str, _onError, opt) => intResolve(str, 2, 8, opt),
|
|
20
|
+
stringify: node => intStringify(node, 8, '0o')
|
|
21
|
+
};
|
|
22
|
+
const int = {
|
|
23
|
+
identify: intIdentify,
|
|
24
|
+
default: true,
|
|
25
|
+
tag: 'tag:yaml.org,2002:int',
|
|
26
|
+
test: /^[-+]?[0-9]+$/,
|
|
27
|
+
resolve: (str, _onError, opt) => intResolve(str, 0, 10, opt),
|
|
28
|
+
stringify: stringifyNumber.stringifyNumber
|
|
29
|
+
};
|
|
30
|
+
const intHex = {
|
|
31
|
+
identify: value => intIdentify(value) && value >= 0,
|
|
32
|
+
default: true,
|
|
33
|
+
tag: 'tag:yaml.org,2002:int',
|
|
34
|
+
format: 'HEX',
|
|
35
|
+
test: /^0x[0-9a-fA-F]+$/,
|
|
36
|
+
resolve: (str, _onError, opt) => intResolve(str, 2, 16, opt),
|
|
37
|
+
stringify: node => intStringify(node, 16, '0x')
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
exports.int = int;
|
|
41
|
+
exports.intHex = intHex;
|
|
42
|
+
exports.intOct = intOct;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { stringifyNumber } from '../../stringify/stringifyNumber.mjs';
|
|
2
|
+
|
|
3
|
+
const intIdentify = (value) => typeof value === 'bigint' || Number.isInteger(value);
|
|
4
|
+
const intResolve = (str, offset, radix, { intAsBigInt }) => (intAsBigInt ? BigInt(str) : parseInt(str.substring(offset), radix));
|
|
5
|
+
function intStringify(node, radix, prefix) {
|
|
6
|
+
const { value } = node;
|
|
7
|
+
if (intIdentify(value) && value >= 0)
|
|
8
|
+
return prefix + value.toString(radix);
|
|
9
|
+
return stringifyNumber(node);
|
|
10
|
+
}
|
|
11
|
+
const intOct = {
|
|
12
|
+
identify: value => intIdentify(value) && value >= 0,
|
|
13
|
+
default: true,
|
|
14
|
+
tag: 'tag:yaml.org,2002:int',
|
|
15
|
+
format: 'OCT',
|
|
16
|
+
test: /^0o[0-7]+$/,
|
|
17
|
+
resolve: (str, _onError, opt) => intResolve(str, 2, 8, opt),
|
|
18
|
+
stringify: node => intStringify(node, 8, '0o')
|
|
19
|
+
};
|
|
20
|
+
const int = {
|
|
21
|
+
identify: intIdentify,
|
|
22
|
+
default: true,
|
|
23
|
+
tag: 'tag:yaml.org,2002:int',
|
|
24
|
+
test: /^[-+]?[0-9]+$/,
|
|
25
|
+
resolve: (str, _onError, opt) => intResolve(str, 0, 10, opt),
|
|
26
|
+
stringify: stringifyNumber
|
|
27
|
+
};
|
|
28
|
+
const intHex = {
|
|
29
|
+
identify: value => intIdentify(value) && value >= 0,
|
|
30
|
+
default: true,
|
|
31
|
+
tag: 'tag:yaml.org,2002:int',
|
|
32
|
+
format: 'HEX',
|
|
33
|
+
test: /^0x[0-9a-fA-F]+$/,
|
|
34
|
+
resolve: (str, _onError, opt) => intResolve(str, 2, 16, opt),
|
|
35
|
+
stringify: node => intStringify(node, 16, '0x')
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export { int, intHex, intOct };
|
package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/schema.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var map = require('../common/map.js');
|
|
4
|
+
var _null = require('../common/null.js');
|
|
5
|
+
var seq = require('../common/seq.js');
|
|
6
|
+
var string = require('../common/string.js');
|
|
7
|
+
var bool = require('./bool.js');
|
|
8
|
+
var float = require('./float.js');
|
|
9
|
+
var int = require('./int.js');
|
|
10
|
+
|
|
11
|
+
const schema = [
|
|
12
|
+
map.map,
|
|
13
|
+
seq.seq,
|
|
14
|
+
string.string,
|
|
15
|
+
_null.nullTag,
|
|
16
|
+
bool.boolTag,
|
|
17
|
+
int.intOct,
|
|
18
|
+
int.int,
|
|
19
|
+
int.intHex,
|
|
20
|
+
float.floatNaN,
|
|
21
|
+
float.floatExp,
|
|
22
|
+
float.float
|
|
23
|
+
];
|
|
24
|
+
|
|
25
|
+
exports.schema = schema;
|
package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/schema.mjs
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { map } from '../common/map.mjs';
|
|
2
|
+
import { nullTag } from '../common/null.mjs';
|
|
3
|
+
import { seq } from '../common/seq.mjs';
|
|
4
|
+
import { string } from '../common/string.mjs';
|
|
5
|
+
import { boolTag } from './bool.mjs';
|
|
6
|
+
import { floatNaN, floatExp, float } from './float.mjs';
|
|
7
|
+
import { intOct, int, intHex } from './int.mjs';
|
|
8
|
+
|
|
9
|
+
const schema = [
|
|
10
|
+
map,
|
|
11
|
+
seq,
|
|
12
|
+
string,
|
|
13
|
+
nullTag,
|
|
14
|
+
boolTag,
|
|
15
|
+
intOct,
|
|
16
|
+
int,
|
|
17
|
+
intHex,
|
|
18
|
+
floatNaN,
|
|
19
|
+
floatExp,
|
|
20
|
+
float
|
|
21
|
+
];
|
|
22
|
+
|
|
23
|
+
export { schema };
|