@windrun-huaiin/dev-scripts 14.1.3 → 14.1.4
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/commands/create-diaomao-app.d.ts.map +1 -1
- package/dist/commands/create-diaomao-app.js +2 -0
- package/dist/commands/create-diaomao-app.mjs +2 -0
- package/package.json +1 -1
- package/dist/_virtual/_commonjsHelpers.js +0 -7
- package/dist/_virtual/_commonjsHelpers.mjs +0 -5
- package/dist/_virtual/index.js +0 -11
- package/dist/_virtual/index.mjs +0 -7
- package/dist/_virtual/re.js +0 -5
- package/dist/_virtual/re.mjs +0 -3
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/comparator.js +0 -161
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/comparator.mjs +0 -159
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/range.js +0 -576
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/range.mjs +0 -574
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.js +0 -350
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/classes/semver.mjs +0 -348
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.js +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/clean.mjs +0 -19
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/cmp.js +0 -72
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/cmp.mjs +0 -70
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.js +0 -77
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/coerce.mjs +0 -75
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-build.js +0 -22
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-build.mjs +0 -20
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-loose.js +0 -18
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare-loose.mjs +0 -16
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare.js +0 -20
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare.mjs +0 -18
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.js +0 -73
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/diff.mjs +0 -71
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/eq.js +0 -18
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/eq.mjs +0 -16
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gt.js +0 -18
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gt.mjs +0 -16
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gte.js +0 -18
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gte.mjs +0 -16
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/inc.js +0 -34
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/inc.mjs +0 -32
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lt.js +0 -18
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lt.mjs +0 -16
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lte.js +0 -18
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lte.mjs +0 -16
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/major.js +0 -18
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/major.mjs +0 -16
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/minor.js +0 -18
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/minor.mjs +0 -16
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/neq.js +0 -18
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/neq.mjs +0 -16
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.js +0 -31
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/parse.mjs +0 -29
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/patch.js +0 -18
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/patch.mjs +0 -16
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.js +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/prerelease.mjs +0 -19
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rcompare.js +0 -18
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rcompare.mjs +0 -16
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rsort.js +0 -18
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/rsort.mjs +0 -16
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/satisfies.js +0 -25
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/satisfies.mjs +0 -23
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/sort.js +0 -18
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/sort.mjs +0 -16
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.js +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/valid.mjs +0 -19
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/index.js +0 -144
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/index.mjs +0 -142
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js +0 -48
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.mjs +0 -46
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.js +0 -22
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.mjs +0 -20
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.js +0 -40
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.mjs +0 -38
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/lrucache.js +0 -53
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/lrucache.mjs +0 -51
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.js +0 -28
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.mjs +0 -26
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.js +0 -239
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.mjs +0 -237
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/gtr.js +0 -19
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/gtr.mjs +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/intersects.js +0 -22
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/intersects.mjs +0 -20
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/ltr.js +0 -19
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/ltr.mjs +0 -17
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/max-satisfying.js +0 -41
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/max-satisfying.mjs +0 -39
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-satisfying.js +0 -40
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-satisfying.mjs +0 -38
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-version.js +0 -78
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-version.mjs +0 -76
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/outside.js +0 -102
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/outside.mjs +0 -100
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/simplify.js +0 -63
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/simplify.mjs +0 -61
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/subset.js +0 -265
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/subset.mjs +0 -263
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/to-comparators.js +0 -23
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/to-comparators.mjs +0 -21
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/valid.js +0 -26
- package/dist/node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/valid.mjs +0 -24
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-collection.js +0 -90
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-collection.mjs +0 -88
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-doc.js +0 -45
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-doc.mjs +0 -43
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-node.js +0 -105
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-node.mjs +0 -102
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-scalar.js +0 -88
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/compose-scalar.mjs +0 -86
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/composer.js +0 -219
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/composer.mjs +0 -217
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-block-map.js +0 -117
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-block-map.mjs +0 -115
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +0 -200
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-block-scalar.mjs +0 -198
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +0 -51
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-block-seq.mjs +0 -49
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-end.js +0 -39
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-end.mjs +0 -37
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +0 -209
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-flow-collection.mjs +0 -207
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +0 -225
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.mjs +0 -223
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-props.js +0 -148
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/resolve-props.mjs +0 -146
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-contains-newline.js +0 -36
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-contains-newline.mjs +0 -34
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +0 -28
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.mjs +0 -26
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +0 -17
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-flow-indent-check.mjs +0 -15
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-map-includes.js +0 -15
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/compose/util-map-includes.mjs +0 -13
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/Document.js +0 -337
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/Document.mjs +0 -335
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/anchors.js +0 -76
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/anchors.mjs +0 -71
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/applyReviver.js +0 -57
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/applyReviver.mjs +0 -55
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/createNode.js +0 -90
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/createNode.mjs +0 -88
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/directives.js +0 -178
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/doc/directives.mjs +0 -176
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/errors.js +0 -62
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/errors.mjs +0 -57
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/log.js +0 -9
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/log.mjs +0 -7
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Alias.js +0 -116
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Alias.mjs +0 -114
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Collection.js +0 -151
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Collection.mjs +0 -147
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Node.js +0 -40
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Node.mjs +0 -38
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Pair.js +0 -39
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Pair.mjs +0 -36
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Scalar.js +0 -27
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/Scalar.mjs +0 -24
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/YAMLMap.js +0 -147
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/YAMLMap.mjs +0 -144
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +0 -115
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/YAMLSeq.mjs +0 -113
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +0 -65
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/addPairToJSMap.mjs +0 -63
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/identity.js +0 -53
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/identity.mjs +0 -36
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/toJS.js +0 -39
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/nodes/toJS.mjs +0 -37
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/cst.js +0 -79
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/cst.mjs +0 -73
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/lexer.js +0 -719
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/lexer.mjs +0 -717
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/line-counter.js +0 -41
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/line-counter.mjs +0 -39
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/parser.js +0 -969
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/parse/parser.mjs +0 -967
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/public-api.js +0 -68
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/public-api.mjs +0 -64
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/Schema.js +0 -39
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/Schema.mjs +0 -37
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/map.js +0 -19
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/map.mjs +0 -17
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/null.js +0 -17
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/null.mjs +0 -15
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/seq.js +0 -19
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/seq.mjs +0 -17
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/string.js +0 -16
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/common/string.mjs +0 -14
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/bool.js +0 -21
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/bool.mjs +0 -19
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/float.js +0 -47
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/float.mjs +0 -43
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/int.js +0 -42
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/int.mjs +0 -38
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/schema.js +0 -25
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/core/schema.mjs +0 -23
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/json/schema.js +0 -64
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/json/schema.mjs +0 -62
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/tags.js +0 -99
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/tags.mjs +0 -96
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +0 -60
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.mjs +0 -58
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +0 -29
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.mjs +0 -26
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +0 -50
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/float.mjs +0 -46
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +0 -76
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/int.mjs +0 -71
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +0 -68
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.mjs +0 -64
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +0 -77
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.mjs +0 -74
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +0 -82
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.mjs +0 -78
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +0 -41
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.mjs +0 -39
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +0 -96
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/set.mjs +0 -93
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +0 -105
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.mjs +0 -101
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +0 -151
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/foldFlowLines.mjs +0 -146
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringify.js +0 -131
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringify.mjs +0 -128
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +0 -145
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyCollection.mjs +0 -143
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyComment.js +0 -24
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyComment.mjs +0 -20
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +0 -87
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyDocument.mjs +0 -85
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +0 -26
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyNumber.mjs +0 -24
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyPair.js +0 -152
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyPair.mjs +0 -150
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyString.js +0 -338
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/stringify/stringifyString.mjs +0 -336
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/visit.js +0 -148
- package/dist/node_modules/.pnpm/yaml@2.8.2/node_modules/yaml/browser/dist/visit.mjs +0 -146
|
@@ -1,576 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var lrucache = require('../internal/lrucache.js');
|
|
4
|
-
var parseOptions = require('../internal/parse-options.js');
|
|
5
|
-
var comparator = require('./comparator.js');
|
|
6
|
-
var debug = require('../internal/debug.js');
|
|
7
|
-
var semver = require('./semver.js');
|
|
8
|
-
var re = require('../internal/re.js');
|
|
9
|
-
var constants = require('../internal/constants.js');
|
|
10
|
-
|
|
11
|
-
var range;
|
|
12
|
-
var hasRequiredRange;
|
|
13
|
-
|
|
14
|
-
function requireRange () {
|
|
15
|
-
if (hasRequiredRange) return range;
|
|
16
|
-
hasRequiredRange = 1;
|
|
17
|
-
|
|
18
|
-
const SPACE_CHARACTERS = /\s+/g;
|
|
19
|
-
|
|
20
|
-
// hoisted class for cyclic dependency
|
|
21
|
-
class Range {
|
|
22
|
-
constructor (range, options) {
|
|
23
|
-
options = parseOptions$1(options);
|
|
24
|
-
|
|
25
|
-
if (range instanceof Range) {
|
|
26
|
-
if (
|
|
27
|
-
range.loose === !!options.loose &&
|
|
28
|
-
range.includePrerelease === !!options.includePrerelease
|
|
29
|
-
) {
|
|
30
|
-
return range
|
|
31
|
-
} else {
|
|
32
|
-
return new Range(range.raw, options)
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
if (range instanceof Comparator) {
|
|
37
|
-
// just put it in the set and return
|
|
38
|
-
this.raw = range.value;
|
|
39
|
-
this.set = [[range]];
|
|
40
|
-
this.formatted = undefined;
|
|
41
|
-
return this
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
this.options = options;
|
|
45
|
-
this.loose = !!options.loose;
|
|
46
|
-
this.includePrerelease = !!options.includePrerelease;
|
|
47
|
-
|
|
48
|
-
// First reduce all whitespace as much as possible so we do not have to rely
|
|
49
|
-
// on potentially slow regexes like \s*. This is then stored and used for
|
|
50
|
-
// future error messages as well.
|
|
51
|
-
this.raw = range.trim().replace(SPACE_CHARACTERS, ' ');
|
|
52
|
-
|
|
53
|
-
// First, split on ||
|
|
54
|
-
this.set = this.raw
|
|
55
|
-
.split('||')
|
|
56
|
-
// map the range to a 2d array of comparators
|
|
57
|
-
.map(r => this.parseRange(r.trim()))
|
|
58
|
-
// throw out any comparator lists that are empty
|
|
59
|
-
// this generally means that it was not a valid range, which is allowed
|
|
60
|
-
// in loose mode, but will still throw if the WHOLE range is invalid.
|
|
61
|
-
.filter(c => c.length);
|
|
62
|
-
|
|
63
|
-
if (!this.set.length) {
|
|
64
|
-
throw new TypeError(`Invalid SemVer Range: ${this.raw}`)
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
// if we have any that are not the null set, throw out null sets.
|
|
68
|
-
if (this.set.length > 1) {
|
|
69
|
-
// keep the first one, in case they're all null sets
|
|
70
|
-
const first = this.set[0];
|
|
71
|
-
this.set = this.set.filter(c => !isNullSet(c[0]));
|
|
72
|
-
if (this.set.length === 0) {
|
|
73
|
-
this.set = [first];
|
|
74
|
-
} else if (this.set.length > 1) {
|
|
75
|
-
// if we have any that are *, then the range is just *
|
|
76
|
-
for (const c of this.set) {
|
|
77
|
-
if (c.length === 1 && isAny(c[0])) {
|
|
78
|
-
this.set = [c];
|
|
79
|
-
break
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
this.formatted = undefined;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
get range () {
|
|
89
|
-
if (this.formatted === undefined) {
|
|
90
|
-
this.formatted = '';
|
|
91
|
-
for (let i = 0; i < this.set.length; i++) {
|
|
92
|
-
if (i > 0) {
|
|
93
|
-
this.formatted += '||';
|
|
94
|
-
}
|
|
95
|
-
const comps = this.set[i];
|
|
96
|
-
for (let k = 0; k < comps.length; k++) {
|
|
97
|
-
if (k > 0) {
|
|
98
|
-
this.formatted += ' ';
|
|
99
|
-
}
|
|
100
|
-
this.formatted += comps[k].toString().trim();
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
return this.formatted
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
format () {
|
|
108
|
-
return this.range
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
toString () {
|
|
112
|
-
return this.range
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
parseRange (range) {
|
|
116
|
-
// memoize range parsing for performance.
|
|
117
|
-
// this is a very hot path, and fully deterministic.
|
|
118
|
-
const memoOpts =
|
|
119
|
-
(this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) |
|
|
120
|
-
(this.options.loose && FLAG_LOOSE);
|
|
121
|
-
const memoKey = memoOpts + ':' + range;
|
|
122
|
-
const cached = cache.get(memoKey);
|
|
123
|
-
if (cached) {
|
|
124
|
-
return cached
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
const loose = this.options.loose;
|
|
128
|
-
// `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
|
|
129
|
-
const hr = loose ? re$1[t.HYPHENRANGELOOSE] : re$1[t.HYPHENRANGE];
|
|
130
|
-
range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
131
|
-
debug$1('hyphen replace', range);
|
|
132
|
-
|
|
133
|
-
// `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
|
|
134
|
-
range = range.replace(re$1[t.COMPARATORTRIM], comparatorTrimReplace);
|
|
135
|
-
debug$1('comparator trim', range);
|
|
136
|
-
|
|
137
|
-
// `~ 1.2.3` => `~1.2.3`
|
|
138
|
-
range = range.replace(re$1[t.TILDETRIM], tildeTrimReplace);
|
|
139
|
-
debug$1('tilde trim', range);
|
|
140
|
-
|
|
141
|
-
// `^ 1.2.3` => `^1.2.3`
|
|
142
|
-
range = range.replace(re$1[t.CARETTRIM], caretTrimReplace);
|
|
143
|
-
debug$1('caret trim', range);
|
|
144
|
-
|
|
145
|
-
// At this point, the range is completely trimmed and
|
|
146
|
-
// ready to be split into comparators.
|
|
147
|
-
|
|
148
|
-
let rangeList = range
|
|
149
|
-
.split(' ')
|
|
150
|
-
.map(comp => parseComparator(comp, this.options))
|
|
151
|
-
.join(' ')
|
|
152
|
-
.split(/\s+/)
|
|
153
|
-
// >=0.0.0 is equivalent to *
|
|
154
|
-
.map(comp => replaceGTE0(comp, this.options));
|
|
155
|
-
|
|
156
|
-
if (loose) {
|
|
157
|
-
// in loose mode, throw out any that are not valid comparators
|
|
158
|
-
rangeList = rangeList.filter(comp => {
|
|
159
|
-
debug$1('loose invalid filter', comp, this.options);
|
|
160
|
-
return !!comp.match(re$1[t.COMPARATORLOOSE])
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
debug$1('range list', rangeList);
|
|
164
|
-
|
|
165
|
-
// if any comparators are the null set, then replace with JUST null set
|
|
166
|
-
// if more than one comparator, remove any * comparators
|
|
167
|
-
// also, don't include the same comparator more than once
|
|
168
|
-
const rangeMap = new Map();
|
|
169
|
-
const comparators = rangeList.map(comp => new Comparator(comp, this.options));
|
|
170
|
-
for (const comp of comparators) {
|
|
171
|
-
if (isNullSet(comp)) {
|
|
172
|
-
return [comp]
|
|
173
|
-
}
|
|
174
|
-
rangeMap.set(comp.value, comp);
|
|
175
|
-
}
|
|
176
|
-
if (rangeMap.size > 1 && rangeMap.has('')) {
|
|
177
|
-
rangeMap.delete('');
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
const result = [...rangeMap.values()];
|
|
181
|
-
cache.set(memoKey, result);
|
|
182
|
-
return result
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
intersects (range, options) {
|
|
186
|
-
if (!(range instanceof Range)) {
|
|
187
|
-
throw new TypeError('a Range is required')
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
return this.set.some((thisComparators) => {
|
|
191
|
-
return (
|
|
192
|
-
isSatisfiable(thisComparators, options) &&
|
|
193
|
-
range.set.some((rangeComparators) => {
|
|
194
|
-
return (
|
|
195
|
-
isSatisfiable(rangeComparators, options) &&
|
|
196
|
-
thisComparators.every((thisComparator) => {
|
|
197
|
-
return rangeComparators.every((rangeComparator) => {
|
|
198
|
-
return thisComparator.intersects(rangeComparator, options)
|
|
199
|
-
})
|
|
200
|
-
})
|
|
201
|
-
)
|
|
202
|
-
})
|
|
203
|
-
)
|
|
204
|
-
})
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
// if ANY of the sets match ALL of its comparators, then pass
|
|
208
|
-
test (version) {
|
|
209
|
-
if (!version) {
|
|
210
|
-
return false
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
if (typeof version === 'string') {
|
|
214
|
-
try {
|
|
215
|
-
version = new SemVer(version, this.options);
|
|
216
|
-
} catch (er) {
|
|
217
|
-
return false
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
for (let i = 0; i < this.set.length; i++) {
|
|
222
|
-
if (testSet(this.set[i], version, this.options)) {
|
|
223
|
-
return true
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
return false
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
range = Range;
|
|
231
|
-
|
|
232
|
-
const LRU = lrucache.__require();
|
|
233
|
-
const cache = new LRU();
|
|
234
|
-
|
|
235
|
-
const parseOptions$1 = parseOptions.__require();
|
|
236
|
-
const Comparator = comparator.__require();
|
|
237
|
-
const debug$1 = debug.__require();
|
|
238
|
-
const SemVer = semver.__require();
|
|
239
|
-
const {
|
|
240
|
-
safeRe: re$1,
|
|
241
|
-
t,
|
|
242
|
-
comparatorTrimReplace,
|
|
243
|
-
tildeTrimReplace,
|
|
244
|
-
caretTrimReplace,
|
|
245
|
-
} = re.__require();
|
|
246
|
-
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = constants.__require();
|
|
247
|
-
|
|
248
|
-
const isNullSet = c => c.value === '<0.0.0-0';
|
|
249
|
-
const isAny = c => c.value === '';
|
|
250
|
-
|
|
251
|
-
// take a set of comparators and determine whether there
|
|
252
|
-
// exists a version which can satisfy it
|
|
253
|
-
const isSatisfiable = (comparators, options) => {
|
|
254
|
-
let result = true;
|
|
255
|
-
const remainingComparators = comparators.slice();
|
|
256
|
-
let testComparator = remainingComparators.pop();
|
|
257
|
-
|
|
258
|
-
while (result && remainingComparators.length) {
|
|
259
|
-
result = remainingComparators.every((otherComparator) => {
|
|
260
|
-
return testComparator.intersects(otherComparator, options)
|
|
261
|
-
});
|
|
262
|
-
|
|
263
|
-
testComparator = remainingComparators.pop();
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
return result
|
|
267
|
-
};
|
|
268
|
-
|
|
269
|
-
// comprised of xranges, tildes, stars, and gtlt's at this point.
|
|
270
|
-
// already replaced the hyphen ranges
|
|
271
|
-
// turn into a set of JUST comparators.
|
|
272
|
-
const parseComparator = (comp, options) => {
|
|
273
|
-
comp = comp.replace(re$1[t.BUILD], '');
|
|
274
|
-
debug$1('comp', comp, options);
|
|
275
|
-
comp = replaceCarets(comp, options);
|
|
276
|
-
debug$1('caret', comp);
|
|
277
|
-
comp = replaceTildes(comp, options);
|
|
278
|
-
debug$1('tildes', comp);
|
|
279
|
-
comp = replaceXRanges(comp, options);
|
|
280
|
-
debug$1('xrange', comp);
|
|
281
|
-
comp = replaceStars(comp, options);
|
|
282
|
-
debug$1('stars', comp);
|
|
283
|
-
return comp
|
|
284
|
-
};
|
|
285
|
-
|
|
286
|
-
const isX = id => !id || id.toLowerCase() === 'x' || id === '*';
|
|
287
|
-
|
|
288
|
-
// ~, ~> --> * (any, kinda silly)
|
|
289
|
-
// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0
|
|
290
|
-
// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0
|
|
291
|
-
// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0
|
|
292
|
-
// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0
|
|
293
|
-
// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0
|
|
294
|
-
// ~0.0.1 --> >=0.0.1 <0.1.0-0
|
|
295
|
-
const replaceTildes = (comp, options) => {
|
|
296
|
-
return comp
|
|
297
|
-
.trim()
|
|
298
|
-
.split(/\s+/)
|
|
299
|
-
.map((c) => replaceTilde(c, options))
|
|
300
|
-
.join(' ')
|
|
301
|
-
};
|
|
302
|
-
|
|
303
|
-
const replaceTilde = (comp, options) => {
|
|
304
|
-
const r = options.loose ? re$1[t.TILDELOOSE] : re$1[t.TILDE];
|
|
305
|
-
return comp.replace(r, (_, M, m, p, pr) => {
|
|
306
|
-
debug$1('tilde', comp, _, M, m, p, pr);
|
|
307
|
-
let ret;
|
|
308
|
-
|
|
309
|
-
if (isX(M)) {
|
|
310
|
-
ret = '';
|
|
311
|
-
} else if (isX(m)) {
|
|
312
|
-
ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
313
|
-
} else if (isX(p)) {
|
|
314
|
-
// ~1.2 == >=1.2.0 <1.3.0-0
|
|
315
|
-
ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
316
|
-
} else if (pr) {
|
|
317
|
-
debug$1('replaceTilde pr', pr);
|
|
318
|
-
ret = `>=${M}.${m}.${p}-${pr
|
|
319
|
-
} <${M}.${+m + 1}.0-0`;
|
|
320
|
-
} else {
|
|
321
|
-
// ~1.2.3 == >=1.2.3 <1.3.0-0
|
|
322
|
-
ret = `>=${M}.${m}.${p
|
|
323
|
-
} <${M}.${+m + 1}.0-0`;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
debug$1('tilde return', ret);
|
|
327
|
-
return ret
|
|
328
|
-
})
|
|
329
|
-
};
|
|
330
|
-
|
|
331
|
-
// ^ --> * (any, kinda silly)
|
|
332
|
-
// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0
|
|
333
|
-
// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0
|
|
334
|
-
// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0
|
|
335
|
-
// ^1.2.3 --> >=1.2.3 <2.0.0-0
|
|
336
|
-
// ^1.2.0 --> >=1.2.0 <2.0.0-0
|
|
337
|
-
// ^0.0.1 --> >=0.0.1 <0.0.2-0
|
|
338
|
-
// ^0.1.0 --> >=0.1.0 <0.2.0-0
|
|
339
|
-
const replaceCarets = (comp, options) => {
|
|
340
|
-
return comp
|
|
341
|
-
.trim()
|
|
342
|
-
.split(/\s+/)
|
|
343
|
-
.map((c) => replaceCaret(c, options))
|
|
344
|
-
.join(' ')
|
|
345
|
-
};
|
|
346
|
-
|
|
347
|
-
const replaceCaret = (comp, options) => {
|
|
348
|
-
debug$1('caret', comp, options);
|
|
349
|
-
const r = options.loose ? re$1[t.CARETLOOSE] : re$1[t.CARET];
|
|
350
|
-
const z = options.includePrerelease ? '-0' : '';
|
|
351
|
-
return comp.replace(r, (_, M, m, p, pr) => {
|
|
352
|
-
debug$1('caret', comp, _, M, m, p, pr);
|
|
353
|
-
let ret;
|
|
354
|
-
|
|
355
|
-
if (isX(M)) {
|
|
356
|
-
ret = '';
|
|
357
|
-
} else if (isX(m)) {
|
|
358
|
-
ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
359
|
-
} else if (isX(p)) {
|
|
360
|
-
if (M === '0') {
|
|
361
|
-
ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
362
|
-
} else {
|
|
363
|
-
ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
364
|
-
}
|
|
365
|
-
} else if (pr) {
|
|
366
|
-
debug$1('replaceCaret pr', pr);
|
|
367
|
-
if (M === '0') {
|
|
368
|
-
if (m === '0') {
|
|
369
|
-
ret = `>=${M}.${m}.${p}-${pr
|
|
370
|
-
} <${M}.${m}.${+p + 1}-0`;
|
|
371
|
-
} else {
|
|
372
|
-
ret = `>=${M}.${m}.${p}-${pr
|
|
373
|
-
} <${M}.${+m + 1}.0-0`;
|
|
374
|
-
}
|
|
375
|
-
} else {
|
|
376
|
-
ret = `>=${M}.${m}.${p}-${pr
|
|
377
|
-
} <${+M + 1}.0.0-0`;
|
|
378
|
-
}
|
|
379
|
-
} else {
|
|
380
|
-
debug$1('no pr');
|
|
381
|
-
if (M === '0') {
|
|
382
|
-
if (m === '0') {
|
|
383
|
-
ret = `>=${M}.${m}.${p
|
|
384
|
-
}${z} <${M}.${m}.${+p + 1}-0`;
|
|
385
|
-
} else {
|
|
386
|
-
ret = `>=${M}.${m}.${p
|
|
387
|
-
}${z} <${M}.${+m + 1}.0-0`;
|
|
388
|
-
}
|
|
389
|
-
} else {
|
|
390
|
-
ret = `>=${M}.${m}.${p
|
|
391
|
-
} <${+M + 1}.0.0-0`;
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
debug$1('caret return', ret);
|
|
396
|
-
return ret
|
|
397
|
-
})
|
|
398
|
-
};
|
|
399
|
-
|
|
400
|
-
const replaceXRanges = (comp, options) => {
|
|
401
|
-
debug$1('replaceXRanges', comp, options);
|
|
402
|
-
return comp
|
|
403
|
-
.split(/\s+/)
|
|
404
|
-
.map((c) => replaceXRange(c, options))
|
|
405
|
-
.join(' ')
|
|
406
|
-
};
|
|
407
|
-
|
|
408
|
-
const replaceXRange = (comp, options) => {
|
|
409
|
-
comp = comp.trim();
|
|
410
|
-
const r = options.loose ? re$1[t.XRANGELOOSE] : re$1[t.XRANGE];
|
|
411
|
-
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
412
|
-
debug$1('xRange', comp, ret, gtlt, M, m, p, pr);
|
|
413
|
-
const xM = isX(M);
|
|
414
|
-
const xm = xM || isX(m);
|
|
415
|
-
const xp = xm || isX(p);
|
|
416
|
-
const anyX = xp;
|
|
417
|
-
|
|
418
|
-
if (gtlt === '=' && anyX) {
|
|
419
|
-
gtlt = '';
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
// if we're including prereleases in the match, then we need
|
|
423
|
-
// to fix this to -0, the lowest possible prerelease value
|
|
424
|
-
pr = options.includePrerelease ? '-0' : '';
|
|
425
|
-
|
|
426
|
-
if (xM) {
|
|
427
|
-
if (gtlt === '>' || gtlt === '<') {
|
|
428
|
-
// nothing is allowed
|
|
429
|
-
ret = '<0.0.0-0';
|
|
430
|
-
} else {
|
|
431
|
-
// nothing is forbidden
|
|
432
|
-
ret = '*';
|
|
433
|
-
}
|
|
434
|
-
} else if (gtlt && anyX) {
|
|
435
|
-
// we know patch is an x, because we have any x at all.
|
|
436
|
-
// replace X with 0
|
|
437
|
-
if (xm) {
|
|
438
|
-
m = 0;
|
|
439
|
-
}
|
|
440
|
-
p = 0;
|
|
441
|
-
|
|
442
|
-
if (gtlt === '>') {
|
|
443
|
-
// >1 => >=2.0.0
|
|
444
|
-
// >1.2 => >=1.3.0
|
|
445
|
-
gtlt = '>=';
|
|
446
|
-
if (xm) {
|
|
447
|
-
M = +M + 1;
|
|
448
|
-
m = 0;
|
|
449
|
-
p = 0;
|
|
450
|
-
} else {
|
|
451
|
-
m = +m + 1;
|
|
452
|
-
p = 0;
|
|
453
|
-
}
|
|
454
|
-
} else if (gtlt === '<=') {
|
|
455
|
-
// <=0.7.x is actually <0.8.0, since any 0.7.x should
|
|
456
|
-
// pass. Similarly, <=7.x is actually <8.0.0, etc.
|
|
457
|
-
gtlt = '<';
|
|
458
|
-
if (xm) {
|
|
459
|
-
M = +M + 1;
|
|
460
|
-
} else {
|
|
461
|
-
m = +m + 1;
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
if (gtlt === '<') {
|
|
466
|
-
pr = '-0';
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
470
|
-
} else if (xm) {
|
|
471
|
-
ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
472
|
-
} else if (xp) {
|
|
473
|
-
ret = `>=${M}.${m}.0${pr
|
|
474
|
-
} <${M}.${+m + 1}.0-0`;
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
debug$1('xRange return', ret);
|
|
478
|
-
|
|
479
|
-
return ret
|
|
480
|
-
})
|
|
481
|
-
};
|
|
482
|
-
|
|
483
|
-
// Because * is AND-ed with everything else in the comparator,
|
|
484
|
-
// and '' means "any version", just remove the *s entirely.
|
|
485
|
-
const replaceStars = (comp, options) => {
|
|
486
|
-
debug$1('replaceStars', comp, options);
|
|
487
|
-
// Looseness is ignored here. star is always as loose as it gets!
|
|
488
|
-
return comp
|
|
489
|
-
.trim()
|
|
490
|
-
.replace(re$1[t.STAR], '')
|
|
491
|
-
};
|
|
492
|
-
|
|
493
|
-
const replaceGTE0 = (comp, options) => {
|
|
494
|
-
debug$1('replaceGTE0', comp, options);
|
|
495
|
-
return comp
|
|
496
|
-
.trim()
|
|
497
|
-
.replace(re$1[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')
|
|
498
|
-
};
|
|
499
|
-
|
|
500
|
-
// This function is passed to string.replace(re[t.HYPHENRANGE])
|
|
501
|
-
// M, m, patch, prerelease, build
|
|
502
|
-
// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
|
|
503
|
-
// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do
|
|
504
|
-
// 1.2 - 3.4 => >=1.2.0 <3.5.0-0
|
|
505
|
-
// TODO build?
|
|
506
|
-
const hyphenReplace = incPr => ($0,
|
|
507
|
-
from, fM, fm, fp, fpr, fb,
|
|
508
|
-
to, tM, tm, tp, tpr) => {
|
|
509
|
-
if (isX(fM)) {
|
|
510
|
-
from = '';
|
|
511
|
-
} else if (isX(fm)) {
|
|
512
|
-
from = `>=${fM}.0.0${incPr ? '-0' : ''}`;
|
|
513
|
-
} else if (isX(fp)) {
|
|
514
|
-
from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`;
|
|
515
|
-
} else if (fpr) {
|
|
516
|
-
from = `>=${from}`;
|
|
517
|
-
} else {
|
|
518
|
-
from = `>=${from}${incPr ? '-0' : ''}`;
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
if (isX(tM)) {
|
|
522
|
-
to = '';
|
|
523
|
-
} else if (isX(tm)) {
|
|
524
|
-
to = `<${+tM + 1}.0.0-0`;
|
|
525
|
-
} else if (isX(tp)) {
|
|
526
|
-
to = `<${tM}.${+tm + 1}.0-0`;
|
|
527
|
-
} else if (tpr) {
|
|
528
|
-
to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
529
|
-
} else if (incPr) {
|
|
530
|
-
to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
531
|
-
} else {
|
|
532
|
-
to = `<=${to}`;
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
return `${from} ${to}`.trim()
|
|
536
|
-
};
|
|
537
|
-
|
|
538
|
-
const testSet = (set, version, options) => {
|
|
539
|
-
for (let i = 0; i < set.length; i++) {
|
|
540
|
-
if (!set[i].test(version)) {
|
|
541
|
-
return false
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
if (version.prerelease.length && !options.includePrerelease) {
|
|
546
|
-
// Find the set of versions that are allowed to have prereleases
|
|
547
|
-
// For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
|
|
548
|
-
// That should allow `1.2.3-pr.2` to pass.
|
|
549
|
-
// However, `1.2.4-alpha.notready` should NOT be allowed,
|
|
550
|
-
// even though it's within the range set by the comparators.
|
|
551
|
-
for (let i = 0; i < set.length; i++) {
|
|
552
|
-
debug$1(set[i].semver);
|
|
553
|
-
if (set[i].semver === Comparator.ANY) {
|
|
554
|
-
continue
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
if (set[i].semver.prerelease.length > 0) {
|
|
558
|
-
const allowed = set[i].semver;
|
|
559
|
-
if (allowed.major === version.major &&
|
|
560
|
-
allowed.minor === version.minor &&
|
|
561
|
-
allowed.patch === version.patch) {
|
|
562
|
-
return true
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
// Version has a -pre, but it's not one of the ones we like.
|
|
568
|
-
return false
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
return true
|
|
572
|
-
};
|
|
573
|
-
return range;
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
exports.__require = requireRange;
|