@lazy-node/semver-ampersand 1.0.17 → 1.0.21
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/CHANGELOG.md +41 -0
- package/lib/Range.js +3 -3
- package/lib/Range.js.map +1 -1
- package/lib/maxSatisfying.js +1 -1
- package/lib/maxSatisfying.js.map +1 -1
- package/lib/minSatisfying.js +1 -1
- package/lib/minSatisfying.js.map +1 -1
- package/lib/range/parseRange.js +1 -1
- package/lib/range/parseRange.js.map +1 -1
- package/lib/satisfies.js +1 -1
- package/lib/satisfies.js.map +1 -1
- package/lib/simplifyRange.js +1 -1
- package/lib/simplifyRange.js.map +1 -1
- package/lib/util/split.js +1 -1
- package/lib/util/split.js.map +1 -1
- package/lib/validRange.js +1 -1
- package/lib/validRange.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,47 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.0.21](https://github.com/bluelovers/ws-yarn-workspaces/compare/@lazy-node/semver-ampersand@1.0.20...@lazy-node/semver-ampersand@1.0.21) (2022-01-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @lazy-node/semver-ampersand
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.0.20](https://github.com/bluelovers/ws-yarn-workspaces/compare/@lazy-node/semver-ampersand@1.0.19...@lazy-node/semver-ampersand@1.0.20) (2021-12-16)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### 🔖 Miscellaneous
|
|
18
|
+
|
|
19
|
+
* . ([104475f](https://github.com/bluelovers/ws-yarn-workspaces/commit/104475f2baa62e53dcc4cd6f3fb3a425cba1c88d))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [1.0.19](https://github.com/bluelovers/ws-yarn-workspaces/compare/@lazy-node/semver-ampersand@1.0.18...@lazy-node/semver-ampersand@1.0.19) (2021-12-06)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### ♻️ Chores
|
|
29
|
+
|
|
30
|
+
* **deps:** update deps ([0377f3d](https://github.com/bluelovers/ws-yarn-workspaces/commit/0377f3da359fd07fb6cfaa86accaefaef993036c))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## [1.0.18](https://github.com/bluelovers/ws-yarn-workspaces/compare/@lazy-node/semver-ampersand@1.0.17...@lazy-node/semver-ampersand@1.0.18) (2021-11-28)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### ♻️ Chores
|
|
40
|
+
|
|
41
|
+
* **deps:** update deps ([35d2bc5](https://github.com/bluelovers/ws-yarn-workspaces/commit/35d2bc557a8f73fd8638b073dedc189e5423c52e))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
6
47
|
## [1.0.17](https://github.com/bluelovers/ws-yarn-workspaces/compare/@lazy-node/semver-ampersand@1.0.15...@lazy-node/semver-ampersand@1.0.17) (2021-11-23)
|
|
7
48
|
|
|
8
49
|
|
package/lib/Range.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Range = exports.SemverRange = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const range_1 =
|
|
5
|
+
const range_1 = tslib_1.__importDefault(require("semver/classes/range"));
|
|
6
6
|
const handleAmpersandAndSpaces_1 = require("./handleAmpersandAndSpaces");
|
|
7
7
|
const stringifyComparators_1 = require("./util/stringifyComparators");
|
|
8
|
-
const semver_1 =
|
|
9
|
-
const class_without_call_parent_constructor_1 =
|
|
8
|
+
const semver_1 = tslib_1.__importDefault(require("semver/classes/semver"));
|
|
9
|
+
const class_without_call_parent_constructor_1 = tslib_1.__importDefault(require("class-without-call-parent-constructor"));
|
|
10
10
|
const semver_2 = require("semver");
|
|
11
11
|
const options_1 = require("./range/options");
|
|
12
12
|
const toRangeString_1 = require("./range/toRangeString");
|
package/lib/Range.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Range.js","sourceRoot":"","sources":["Range.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"Range.js","sourceRoot":"","sources":["Range.ts"],"names":[],"mappings":";;;;AAAA,yEAA+C;AAC/C,yEAAsE;AAEtE,sEAAsE;AACtE,2EAA2C;AAC3C,0HAAsF;AACtF,mCAAoC;AACpC,6CAAkF;AAClF,yDAAsD;AACtD,0CAA2D;AAC3D,+DAA4D;AAC5D,wEAAqE;AACrE,wCAAsD;AACtD,mDAAgD;AAEhD,MAAa,WAA2C,SAAQ,IAAA,+CAAiC,EAAC,eAAW,CAAC;IAY7G,YAAY,SAAc,EAAE,cAAgC;QAE3D,wCAAwC;QACxC,KAAK,EAAE,CAAC;QAER,cAAc,GAAG,IAAA,yCAAmB,EAAC,cAAc,CAAC,CAAC;QAErD,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC;QAEvE,IAAI,OAAO,SAAS,KAAK,QAAQ,IAAI,KAAK,KAAK,SAAS,EACxD;YACC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;SAC3B;QAED,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;QAE9B,IAAI,CAAC,GAAG,EACR;YAEC,GAAG,GAAG,IAAI,CAAC,oBAAoB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;SAChD;QAED,IAAA,mCAA0B,EAAC,GAAG,EAAE,yBAAyB,KAAK,EAAE,CAAC,CAAC;QAElE,GAAG,GAAG,IAAA,mCAAg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AC,CAAC,CAAC;YAChB,KAAK,GAAG,KAAK,CAAC,KAAK,CAAA;SACnB;aACI,IAAI,KAAK,YAAY,gBAAM,EAChC;YACC,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;SACvB;QAED,IAAI,CAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,MAAM,MAAK,CAAC,EACrB;YACC,IAAA,mCAA0B,EAAC,GAAG,CAAC,CAAC;SAChC;QAED,OAAO,GAAG,IAAA,2BAAiB,EAAC,OAAO,CAAC,CAAC;QAErC,KAAK,GAAG,IAAA,mDAAwB,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAEjD,OAAO;YACN,KAAK;YACL,OAAO;YACP,GAAG;SACH,CAAA;IACF,CAAC;IAES,eAAe,CAAC,OAAiB;QAEzC,IAA2B,CAAC,OAAO,GAAG,OAAO,CAAC;QAC/C,IAAA,sBAAY,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC7B,CAAC;IAEQ,MAAM;QAEb,IAA2B,CAAC,KAAK,GAAG,IAAA,8CAAuB,EAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACvE,OAAO,IAAI,CAAC,KAAK,CAAA;IAClB,CAAC;IAED;;OAEG;IACH,aAAa;QAEZ,OAAO,IAAA,6BAAa,EAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IACjC,CAAC;CAED;AAtID,kCAsIC;AAEuB,4BAAK;AAE7B,kBAAe,WAAW,CAAA","sourcesContent":["import semverRange from 'semver/classes/range';\nimport { handleAmpersandAndSpaces } from './handleAmpersandAndSpaces';\nimport { IComparatorSet, IComparatorSetInput, IOptions, IOptionsOrLoose, ISemverRangeInput } from './types';\nimport { stringifyComparatorsSet } from './util/stringifyComparators';\nimport SemVer from 'semver/classes/semver';\nimport classWithoutCallParentConstructor from 'class-without-call-parent-constructor';\nimport { Comparator } from 'semver';\nimport { _copyOptions, _isSameOptions, _normalizeOptions } from './range/options';\nimport { toRangeString } from './range/toRangeString';\nimport { assertInvalidComparatorSet } from './util/assert';\nimport { fixComparatorSet } from './range/fixComparatorSet';\nimport { parseOptionsOrLoose } from './internal/parseOptionsOrLoose';\nimport { splitDoubleVerticalBar } from './util/split';\nimport { parseRange } from './range/parseRange';\n\nexport class SemverRange<RAW extends ISemverRangeInput> extends classWithoutCallParentConstructor(semverRange)\n{\n\treadonly rawSource?: RAW;\n\n\toverride readonly range: string;\n\toverride readonly raw: string;\n\toverride readonly set: IComparatorSet;\n\n\toverride readonly options: IOptions;\n\toverride readonly loose: boolean;\n\toverride readonly includePrerelease: boolean;\n\n\tconstructor(rawSource: RAW, optionsOrLoose?: IOptionsOrLoose)\n\t{\n\t\t// skip original semverRange constructor\n\t\tsuper();\n\n\t\toptionsOrLoose = parseOptionsOrLoose(optionsOrLoose);\n\n\t\tlet { range, options, set } = this._inherit(rawSource, optionsOrLoose);\n\n\t\tif (typeof rawSource === 'string' && range !== rawSource)\n\t\t{\n\t\t\tthis.rawSource = rawSource;\n\t\t}\n\n\t\tthis._inheritOptions(options);\n\n\t\tif (!set)\n\t\t{\n\n\t\t\tset = this._buildComparatorsSet(range, options);\n\t\t}\n\n\t\tassertInvalidComparatorSet(set, `Invalid SemVer Range: ${range}`);\n\n\t\tset = fixComparatorSet(set, options.unsafeOptimize);\n\n\t\tassertInvalidComparatorSet(set);\n\n\t\tthis.raw = range;\n\t\tthis.set = set;\n\n\t\tthis.format()\n\t}\n\n\tprotected _buildComparatorsSet(range: string, options: IOptions): IComparatorSetInput\n\t{\n\t\tlet comparatorsSet = splitDoubleVerticalBar(range)\n\t\t\t// map the range to a 2d array of comparators\n\t\t\t.map(range => this.parseRange(range))\n\t\t\t// throw out any comparator lists that are empty\n\t\t\t// this generally means that it was not a valid range, which is allowed\n\t\t\t// in loose mode, but will still throw if the WHOLE range is invalid.\n\t\t\t.filter(c => c.length)\n\t\t;\n\n\t\treturn comparatorsSet\n\t}\n\n\toverride parseRange(range: string)\n\t{\n\t\treturn parseRange(range, this.options)\n\t}\n\n\tprotected _inherit(range: ISemverRangeInput, options: IOptions)\n\t{\n\t\tlet set: IComparatorSet;\n\n\t\tif (range instanceof semverRange)\n\t\t{\n\t\t\toptions = {\n\t\t\t\tloose: range.loose,\n\t\t\t\tincludePrerelease: range.includePrerelease,\n\t\t\t\t...range.options,\n\t\t\t\t...options,\n\t\t\t}\n\n\t\t\toptions = _normalizeOptions(options);\n\n\t\t\tif (_isSameOptions(range, options))\n\t\t\t{\n\t\t\t\tset = range.set;\n\t\t\t}\n\n\t\t\trange = range.raw;\n\t\t}\n\n\t\tif (range instanceof Comparator)\n\t\t{\n\t\t\tset = [[range]];\n\t\t\trange = range.value\n\t\t}\n\t\telse if (range instanceof SemVer)\n\t\t{\n\t\t\trange = range.format();\n\t\t}\n\n\t\tif (set?.length === 0)\n\t\t{\n\t\t\tassertInvalidComparatorSet(set);\n\t\t}\n\n\t\toptions = _normalizeOptions(options);\n\n\t\trange = handleAmpersandAndSpaces(range, options);\n\n\t\treturn {\n\t\t\trange,\n\t\t\toptions,\n\t\t\tset,\n\t\t}\n\t}\n\n\tprotected _inheritOptions(options: IOptions)\n\t{\n\t\t(this as any as semverRange).options = options;\n\t\t_copyOptions(this, options);\n\t}\n\n\toverride format()\n\t{\n\t\t(this as any as semverRange).range = stringifyComparatorsSet(this.set);\n\t\treturn this.range\n\t}\n\n\t/**\n\t * Return '*' instead of '' so that truthiness works.\n\t */\n\ttoRangeString()\n\t{\n\t\treturn toRangeString(this.range)\n\t}\n\n}\n\nexport { SemverRange as Range }\n\nexport default SemverRange\n"]}
|
package/lib/maxSatisfying.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.maxSatisfying = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const max_satisfying_1 =
|
|
5
|
+
const max_satisfying_1 = tslib_1.__importDefault(require("semver/ranges/max-satisfying"));
|
|
6
6
|
const handleAmpersandAndSpaces_1 = require("./handleAmpersandAndSpaces");
|
|
7
7
|
function maxSatisfying(versions, range, optionsOrLoose) {
|
|
8
8
|
return (0, max_satisfying_1.default)(versions, (0, handleAmpersandAndSpaces_1.handleAmpersandAndSpaces)(range), optionsOrLoose);
|
package/lib/maxSatisfying.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"maxSatisfying.js","sourceRoot":"","sources":["maxSatisfying.ts"],"names":[],"mappings":";;;;AAEA
|
|
1
|
+
{"version":3,"file":"maxSatisfying.js","sourceRoot":"","sources":["maxSatisfying.ts"],"names":[],"mappings":";;;;AAEA,0FAA+D;AAC/D,yEAAsE;AAEtE,SAAgB,aAAa,CAA4B,QAA0B,EAClF,KAAqB,EACrB,cAAkC;IAGlC,OAAO,IAAA,wBAAmB,EAAC,QAAQ,EAAE,IAAA,mDAAwB,EAAC,KAAK,CAAQ,EAAE,cAAc,CAAC,CAAA;AAC7F,CAAC;AAND,sCAMC;AAED,kBAAe,aAAa,CAAA","sourcesContent":["import SemVer from 'semver/classes/semver';\nimport { Options } from 'semver';\nimport semverMaxSatisfying from 'semver/ranges/max-satisfying';\nimport { handleAmpersandAndSpaces } from './handleAmpersandAndSpaces';\n\nexport function maxSatisfying<T extends string | SemVer>(versions: ReadonlyArray<T>,\n\trange: string | Range,\n\toptionsOrLoose?: boolean | Options,\n): T\n{\n\treturn semverMaxSatisfying(versions, handleAmpersandAndSpaces(range) as any, optionsOrLoose)\n}\n\nexport default maxSatisfying\n"]}
|
package/lib/minSatisfying.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.minSatisfying = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const min_satisfying_1 =
|
|
5
|
+
const min_satisfying_1 = tslib_1.__importDefault(require("semver/ranges/min-satisfying"));
|
|
6
6
|
const handleAmpersandAndSpaces_1 = require("./handleAmpersandAndSpaces");
|
|
7
7
|
function minSatisfying(versions, range, optionsOrLoose) {
|
|
8
8
|
return (0, min_satisfying_1.default)(versions, (0, handleAmpersandAndSpaces_1.handleAmpersandAndSpaces)(range), optionsOrLoose);
|
package/lib/minSatisfying.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"minSatisfying.js","sourceRoot":"","sources":["minSatisfying.ts"],"names":[],"mappings":";;;;AAEA
|
|
1
|
+
{"version":3,"file":"minSatisfying.js","sourceRoot":"","sources":["minSatisfying.ts"],"names":[],"mappings":";;;;AAEA,0FAA+D;AAC/D,yEAAsE;AAEtE,SAAgB,aAAa,CAA4B,QAA0B,EAClF,KAAqB,EACrB,cAAkC;IAGlC,OAAO,IAAA,wBAAmB,EAAC,QAAQ,EAAE,IAAA,mDAAwB,EAAC,KAAK,CAAQ,EAAE,cAAc,CAAC,CAAA;AAC7F,CAAC;AAND,sCAMC;AAED,kBAAe,aAAa,CAAA","sourcesContent":["import SemVer from 'semver/classes/semver';\nimport { Options } from 'semver';\nimport semverMinSatisfying from 'semver/ranges/min-satisfying';\nimport { handleAmpersandAndSpaces } from './handleAmpersandAndSpaces';\n\nexport function minSatisfying<T extends string | SemVer>(versions: ReadonlyArray<T>,\n\trange: string | Range,\n\toptionsOrLoose?: boolean | Options,\n): T\n{\n\treturn semverMinSatisfying(versions, handleAmpersandAndSpaces(range) as any, optionsOrLoose)\n}\n\nexport default minSatisfying\n"]}
|
package/lib/range/parseRange.js
CHANGED
|
@@ -6,7 +6,7 @@ const cache_1 = require("./cache");
|
|
|
6
6
|
const semver_1 = require("semver");
|
|
7
7
|
const detect_1 = require("../comparator/detect");
|
|
8
8
|
const re_1 = require("semver/internal/re");
|
|
9
|
-
const debug_1 =
|
|
9
|
+
const debug_1 = tslib_1.__importDefault(require("semver/internal/debug"));
|
|
10
10
|
const util_1 = require("./util");
|
|
11
11
|
const split_1 = require("../util/split");
|
|
12
12
|
const array_hyper_unique_1 = require("array-hyper-unique");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseRange.js","sourceRoot":"","sources":["parseRange.ts"],"names":[],"mappings":";;;;AAAA,mCAAgC;AAChC,mCAAoC;AACpC,iDAAiD;AAEjD,2CAAqG;AACrG
|
|
1
|
+
{"version":3,"file":"parseRange.js","sourceRoot":"","sources":["parseRange.ts"],"names":[],"mappings":";;;;AAAA,mCAAgC;AAChC,mCAAoC;AACpC,iDAAiD;AAEjD,2CAAqG;AACrG,0EAA0C;AAC1C,iCAAqE;AACrE,yCAAmE;AACnE,2DAA4D;AAC5D,oCAAoC;AACpC,0EAAuE;AAGvE;;;GAGG;AACH,SAAgB,WAAW,CAAC,OAAiB;IAE5C,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAC9D,CAAC;AAHD,kCAGC;AAED,SAAgB,mBAAmB,CAAC,KAAa,EAAE,OAAiB;IAEnE,uCAAuC;IACvC,MAAM,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAE,CAAC,MAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,OAAE,CAAC,MAAC,CAAC,WAAW,CAAC,CAAA;IACrE,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,EAAE,EAAE,IAAA,oBAAa,EAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAA;IACnE,IAAA,eAAK,EAAC,gBAAgB,EAAE,KAAK,CAAC,CAAA;IAC9B,uCAAuC;IACvC,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,OAAE,CAAC,MAAC,CAAC,cAAc,CAAC,EAAE,0BAAqB,CAAC,CAAA;IAClE,IAAA,eAAK,EAAC,iBAAiB,EAAE,KAAK,EAAE,OAAE,CAAC,MAAC,CAAC,cAAc,CAAC,CAAC,CAAA;IAErD,wBAA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,CAAA;IAEpB,yCAAyC;IACzC,oDAAoD;IACpD,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,CAAC,CAAA;IACrC,MAAM,OAAO,GAAG,cAAc,QAAQ,IAAI,KAAK,EAAE,CAAA;IACjD,MAAM,MAAM,GAAG,aAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;IACjC,IAAI,MAAM,EACV;QACC,OAAO,MAAM,CAAA;KACb;IAED,MAAM,MAAM,GAAG,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;IAE7C,aAAK,CAAC,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA;IAC1B,OAAO,MAAM,CAAA;AACd,CAAC;AAlBD,gCAkBC;AAED,SAAgB,aAAa,CAAC,KAAa,EAAE,UAAoB,EAAE;IAElE,KAAK,GAAG,IAAA,mDAAwB,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAEjD,IAAI,QAAQ,GAAG,IAAA,8BAAsB,EAAC,KAAK,CAAC;QAC3C,6CAA6C;SAC5C,GAAG,CAAC,KAAK,CAAC,EAAE;QACZ,KAAK,GAAG,mBAAmB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAE5C,OAAO,IAAA,kBAAU,EAAC,KAAK,CAAC,CAAA;IACzB,CAAC,CAAC,CACF;IAED,QAAQ,GAAG,IAAA,2CAAsB,EAAC,QAAQ,CAAC,CAAA;IAE3C,OAAO,QAAQ,CAAA;AAChB,CAAC;AAhBD,sCAgBC","sourcesContent":["import { cache } from './cache';\nimport { Comparator } from 'semver';\nimport { isNullSet } from '../comparator/detect';\nimport { IOptions } from '../types';\nimport { caretTrimReplace, comparatorTrimReplace, re, t, tildeTrimReplace } from 'semver/internal/re'\nimport debug from 'semver/internal/debug';\nimport { hyphenReplace, parseComparator, replaceGTE0 } from './util';\nimport { splitDoubleVerticalBar, splitSpace } from '../util/split';\nimport { array_unique_overwrite } from 'array-hyper-unique';\nimport { reSpaces } from '../const';\nimport { handleAmpersandAndSpaces } from '../handleAmpersandAndSpaces';\nimport { array_sub_map } from '../util/array';\n\n/**\n * memoize range parsing for performance.\n * this is a very hot path, and fully deterministic.\n */\nexport function getMemoOpts(options: IOptions)\n{\n\treturn Object.keys(options).filter(k => options[k]).join(',')\n}\n\nexport function normalizeRangeInput(range: string, options: IOptions)\n{\n\t// `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`\n\tconst hr = options.loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]\n\trange = range.replace(hr, hyphenReplace(options.includePrerelease))\n\tdebug('hyphen replace', range)\n\t// `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`\n\trange = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)\n\tdebug('comparator trim', range, re[t.COMPARATORTRIM])\n\n\t// `~ 1.2.3` => `~1.2.3`\n\trange = range.replace(re[t.TILDETRIM], tildeTrimReplace)\n\n\t// `^ 1.2.3` => `^1.2.3`\n\trange = range.replace(re[t.CARETTRIM], caretTrimReplace)\n\n\t// normalize spaces\n\trange = range.replace(reSpaces, ' ')\n\n\treturn range\n}\n\nexport function normalizeRangeInputForComparator(range: string, options: IOptions)\n{\n\tlet rangeList = splitSpace(range)\n\t\t.map(comp => parseComparator(comp, options))\n\t;\n\n\trangeList = splitSpace(rangeList.join(' '))\n\t\t// >=0.0.0 is equivalent to *\n\t\t.map(comp => replaceGTE0(comp, options))\n\n\treturn array_unique_overwrite(rangeList)\n}\n\nexport function parseRangeCore(range: string, options: IOptions): ReadonlyArray<Comparator>\n{\n\trange = normalizeRangeInput(range, options);\n\n\t// At this point, the range is completely trimmed and\n\t// ready to be split into comparators.\n\n\tlet rangeList = normalizeRangeInputForComparator(range, options)\n\n\tif (options.loose)\n\t{\n\t\trangeList = filterRangeListForComparator(rangeList, options)\n\t}\n\n\tlet compList = rangeList\n\t\t.map(comp => new Comparator(comp, options))\n\n\tconst result = reduceComparatorList(compList)\n\n\treturn result\n}\n\n/**\n * in loose mode, throw out any that are not valid comparators\n */\nexport function filterRangeListForComparator(rangeList: string[], options: IOptions)\n{\n\tconst compRe = options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]\n\n\treturn rangeList.filter(comp => !!comp.match(compRe))\n}\n\n/**\n * if any comparators are the null set, then replace with JUST null set\n * if more than one comparator, remove any * comparators\n * also, don't include the same comparator more than once\n */\nexport function reduceComparatorList(compList: Comparator[])\n{\n\tconst l = compList.length\n\tconst rangeMap = new Map<string, Comparator>()\n\tfor (const comp of compList)\n\t{\n\t\tif (isNullSet(comp))\n\t\t{\n\t\t\treturn [comp]\n\t\t}\n\t\trangeMap.set(comp.value, comp)\n\t}\n\tif (rangeMap.size > 1 && rangeMap.has(''))\n\t{\n\t\trangeMap.delete('')\n\t}\n\n\tconst result = [...rangeMap.values()]\n\n\treturn result\n}\n\nexport function parseRange(range: string, options: IOptions): ReadonlyArray<Comparator>\n{\n\trange = range.trim()\n\n\t// memoize range parsing for performance.\n\t// this is a very hot path, and fully deterministic.\n\tconst memoOpts = getMemoOpts(options)\n\tconst memoKey = `parseRange:${memoOpts}:${range}`\n\tconst cached = cache.get(memoKey)\n\tif (cached)\n\t{\n\t\treturn cached\n\t}\n\n\tconst result = parseRangeCore(range, options)\n\n\tcache.set(memoKey, result)\n\treturn result\n}\n\nexport function buildRangeSet(range: string, options: IOptions = {})\n{\n\trange = handleAmpersandAndSpaces(range, options);\n\n\tlet rangeSet = splitDoubleVerticalBar(range)\n\t\t// map the range to a 2d array of comparators\n\t\t.map(range => {\n\t\t\trange = normalizeRangeInput(range, options);\n\n\t\t\treturn splitSpace(range)\n\t\t})\n\t;\n\n\trangeSet = array_unique_overwrite(rangeSet)\n\n\treturn rangeSet\n}\n\n\n"]}
|
package/lib/satisfies.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.satisfies = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const satisfies_1 =
|
|
5
|
+
const satisfies_1 = tslib_1.__importDefault(require("semver/functions/satisfies"));
|
|
6
6
|
const handleAmpersandAndSpaces_1 = require("./handleAmpersandAndSpaces");
|
|
7
7
|
function satisfies(version, range, optionsOrLoose) {
|
|
8
8
|
return (0, satisfies_1.default)(version, (0, handleAmpersandAndSpaces_1.handleAmpersandAndSpaces)(range), optionsOrLoose);
|
package/lib/satisfies.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"satisfies.js","sourceRoot":"","sources":["satisfies.ts"],"names":[],"mappings":";;;;AAEA,
|
|
1
|
+
{"version":3,"file":"satisfies.js","sourceRoot":"","sources":["satisfies.ts"],"names":[],"mappings":";;;;AAEA,mFAAyD;AACzD,yEAAsE;AAEtE,SAAgB,SAAS,CAAC,OAAwB,EAAE,KAAqB,EAAE,cAAkC;IAE5G,OAAO,IAAA,mBAAe,EAAC,OAAO,EAAE,IAAA,mDAAwB,EAAC,KAAK,CAAQ,EAAE,cAAc,CAAC,CAAA;AACxF,CAAC;AAHD,8BAGC;AAED,kBAAe,SAAS,CAAA","sourcesContent":["import SemVer from 'semver/classes/semver';\nimport { Options } from 'semver';\nimport semverSatisfies from 'semver/functions/satisfies';\nimport { handleAmpersandAndSpaces } from './handleAmpersandAndSpaces';\n\nexport function satisfies(version: string | SemVer, range: string | Range, optionsOrLoose?: boolean | Options)\n{\n\treturn semverSatisfies(version, handleAmpersandAndSpaces(range) as any, optionsOrLoose)\n}\n\nexport default satisfies\n"]}
|
package/lib/simplifyRange.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.simplifyRange = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const simplify_1 =
|
|
5
|
+
const simplify_1 = tslib_1.__importDefault(require("semver/ranges/simplify"));
|
|
6
6
|
const handleAmpersandAndSpaces_1 = require("./handleAmpersandAndSpaces");
|
|
7
7
|
function simplifyRange(ranges, range, options) {
|
|
8
8
|
return (0, simplify_1.default)(ranges, (0, handleAmpersandAndSpaces_1.handleAmpersandAndSpaces)(range), options);
|
package/lib/simplifyRange.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simplifyRange.js","sourceRoot":"","sources":["simplifyRange.ts"],"names":[],"mappings":";;;;AAEA,
|
|
1
|
+
{"version":3,"file":"simplifyRange.js","sourceRoot":"","sources":["simplifyRange.ts"],"names":[],"mappings":";;;;AAEA,8EAAyD;AACzD,yEAAsE;AAEtE,SAAgB,aAAa,CAA4B,MAAgB,EAAE,KAAQ,EAAE,OAAiB;IAGrG,OAAO,IAAA,kBAAmB,EAAC,MAAM,EAAE,IAAA,mDAAwB,EAAC,KAAK,CAAQ,EAAE,OAAO,CAAM,CAAA;AACzF,CAAC;AAJD,sCAIC;AAED,kBAAe,aAAa,CAAA","sourcesContent":["import SemVer from 'semver/classes/semver';\nimport { Options } from 'semver';\nimport semverSimplifyRange from 'semver/ranges/simplify';\nimport { handleAmpersandAndSpaces } from './handleAmpersandAndSpaces';\n\nexport function simplifyRange<T extends string | SemVer>(ranges: string[], range: T, options?: Options,\n)\n{\n\treturn semverSimplifyRange(ranges, handleAmpersandAndSpaces(range) as any, options) as T\n}\n\nexport default simplifyRange\n"]}
|
package/lib/util/split.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.splitSpace = exports.splitDoubleVerticalBar = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const split_smartly2_1 =
|
|
5
|
+
const split_smartly2_1 = tslib_1.__importDefault(require("split-smartly2"));
|
|
6
6
|
const const_1 = require("../const");
|
|
7
7
|
exports.splitDoubleVerticalBar = (0, split_smartly2_1.default)(const_1.reDoubleVerticalBar, {
|
|
8
8
|
includeSeparatorMode: "NONE" /* INCLUDE_SEPARATOR_NONE */,
|
package/lib/util/split.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"split.js","sourceRoot":"","sources":["split.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"split.js","sourceRoot":"","sources":["split.ts"],"names":[],"mappings":";;;;AAAA,4EAAwE;AACxE,oCAAyD;AAE5C,QAAA,sBAAsB,GAAG,IAAA,wBAAY,EAAC,2BAAmB,EAAE;IACvE,oBAAoB,qCAAiD;IACrE,QAAQ,EAAE,IAAI;CACd,CAA8B,CAAC;AAEnB,QAAA,UAAU,GAAG,IAAA,wBAAY,EAAC,gBAAQ,EAAE;IAChD,oBAAoB,qCAAiD;IACrE,QAAQ,EAAE,IAAI;CACd,CAA8B,CAAC","sourcesContent":["import splitSmartly, { EnumIncludeSeparatorMode } from 'split-smartly2';\nimport { reDoubleVerticalBar, reSpaces } from '../const';\n\nexport const splitDoubleVerticalBar = splitSmartly(reDoubleVerticalBar, {\n\tincludeSeparatorMode: EnumIncludeSeparatorMode.INCLUDE_SEPARATOR_NONE,\n\tbrackets: true,\n}) as (str: string) => string[];\n\nexport const splitSpace = splitSmartly(reSpaces, {\n\tincludeSeparatorMode: EnumIncludeSeparatorMode.INCLUDE_SEPARATOR_NONE,\n\tbrackets: true,\n}) as (str: string) => string[];\n"]}
|
package/lib/validRange.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.validRange = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const parseOptionsOrLoose_1 = require("./internal/parseOptionsOrLoose");
|
|
6
|
-
const Range_1 =
|
|
6
|
+
const Range_1 = tslib_1.__importDefault(require("./Range"));
|
|
7
7
|
const assert_1 = require("./util/assert");
|
|
8
8
|
/**
|
|
9
9
|
* Return the valid range or null if it's not valid
|
package/lib/validRange.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validRange.js","sourceRoot":"","sources":["validRange.ts"],"names":[],"mappings":";;;;AACA,wEAAqE;AACrE,
|
|
1
|
+
{"version":3,"file":"validRange.js","sourceRoot":"","sources":["validRange.ts"],"names":[],"mappings":";;;;AACA,wEAAqE;AACrE,4DAAkC;AAElC,0CAAoD;AAEpD;;GAEG;AACH,SAAgB,UAAU,CAAC,KAAa,EAAE,cAAgC;IAEzE,IAAI,OAAO,KAAK,KAAK,QAAQ,EAC7B;QACC,MAAM,IAAI,SAAS,CAAC,mCAAmC,KAAK,EAAE,CAAC,CAAA;KAC/D;IAED,cAAc,GAAG,IAAA,yCAAmB,EAAC,cAAc,CAAC,CAAA;IAEpD,IACA;QACC,IAAI,CAAC,IAAA,4BAAmB,EAAC,KAAK,EAAE,cAAc,CAAC,EAC/C;YACC,OAAO,IAAI,eAAW,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC,aAAa,EAAE,CAAA;SAC7D;KACD;IACD,OAAO,EAAE,EACT;KAEC;IAED,OAAO,IAAI,CAAA;AACZ,CAAC;AAtBD,gCAsBC;AAED,kBAAe,UAAU,CAAA","sourcesContent":["import SemVer from 'semver/classes/semver';\nimport { parseOptionsOrLoose } from './internal/parseOptionsOrLoose';\nimport SemverRange from './Range';\nimport { IOptionsOrLoose } from './types';\nimport { hasInvalidCharacter } from './util/assert';\n\n/**\n * Return the valid range or null if it's not valid\n */\nexport function validRange(range: string, optionsOrLoose?: IOptionsOrLoose)\n{\n\tif (typeof range !== 'string')\n\t{\n\t\tthrow new TypeError(`range should be string, but got ${range}`)\n\t}\n\n\toptionsOrLoose = parseOptionsOrLoose(optionsOrLoose)\n\n\ttry\n\t{\n\t\tif (!hasInvalidCharacter(range, optionsOrLoose))\n\t\t{\n\t\t\treturn new SemverRange(range, optionsOrLoose).toRangeString()\n\t\t}\n\t}\n\tcatch (er)\n\t{\n\n\t}\n\n\treturn null\n}\n\nexport default validRange\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lazy-node/semver-ampersand",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21",
|
|
4
4
|
"description": "semver with support (&)ampersand",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"semver",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"sort-package-json": "yarn-tool sort"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"array-hyper-unique": "^
|
|
41
|
+
"array-hyper-unique": "^2.0.6",
|
|
42
42
|
"class-without-call-parent-constructor": "^2.0.4",
|
|
43
43
|
"lru-cache2": "^6.0.7",
|
|
44
44
|
"split-smartly2": "^1.1.11",
|
|
45
|
-
"ts-type": "^2.
|
|
45
|
+
"ts-type": "^2.1.4",
|
|
46
46
|
"tslib": "^2.3.1"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "fbb93ec93e0baf2b76dac0e29a19376ce46652e1"
|
|
55
55
|
}
|