@qodalis/cli-string 2.0.0-beta.9 → 2.0.0-rc.1
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/package.json +2 -2
- package/public-api.d.mts +1 -2
- package/public-api.d.ts +1 -2
- package/public-api.js +13 -13
- package/public-api.js.map +1 -1
- package/public-api.mjs +14 -14
- package/public-api.mjs.map +1 -1
- package/umd/index.global.js +246 -97
package/umd/index.global.js
CHANGED
|
@@ -7,7 +7,11 @@ var string = (() => {
|
|
|
7
7
|
var __getProtoOf = Object.getPrototypeOf;
|
|
8
8
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
9
|
var __commonJS = (cb, mod) => function __require() {
|
|
10
|
-
|
|
10
|
+
try {
|
|
11
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
12
|
+
} catch (e) {
|
|
13
|
+
throw mod = 0, e;
|
|
14
|
+
}
|
|
11
15
|
};
|
|
12
16
|
var __copyProps = (to, from, except, desc) => {
|
|
13
17
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
@@ -26,15 +30,15 @@ var string = (() => {
|
|
|
26
30
|
mod
|
|
27
31
|
));
|
|
28
32
|
|
|
29
|
-
// ../../../node_modules/.pnpm/lodash@4.
|
|
33
|
+
// ../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/lodash.js
|
|
30
34
|
var require_lodash = __commonJS({
|
|
31
|
-
"../../../node_modules/.pnpm/lodash@4.
|
|
35
|
+
"../../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/lodash.js"(exports, module2) {
|
|
32
36
|
"use strict";
|
|
33
37
|
(function() {
|
|
34
38
|
var undefined;
|
|
35
|
-
var VERSION = "4.
|
|
39
|
+
var VERSION = "4.18.1";
|
|
36
40
|
var LARGE_ARRAY_SIZE = 200;
|
|
37
|
-
var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`";
|
|
41
|
+
var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`", INVALID_TEMPL_IMPORTS_ERROR_TEXT = "Invalid `imports` option passed into `_.template`";
|
|
38
42
|
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
|
39
43
|
var MAX_MEMOIZE_SIZE = 500;
|
|
40
44
|
var PLACEHOLDER = "__lodash_placeholder__";
|
|
@@ -1964,19 +1968,12 @@ var string = (() => {
|
|
|
1964
1968
|
if (!length) {
|
|
1965
1969
|
return true;
|
|
1966
1970
|
}
|
|
1967
|
-
var isRootPrimitive = object == null || typeof object !== "object" && typeof object !== "function";
|
|
1968
1971
|
while (++index < length) {
|
|
1969
|
-
var key = path[index];
|
|
1970
|
-
if (typeof key !== "string") {
|
|
1971
|
-
continue;
|
|
1972
|
-
}
|
|
1972
|
+
var key = toKey(path[index]);
|
|
1973
1973
|
if (key === "__proto__" && !hasOwnProperty.call(object, "__proto__")) {
|
|
1974
1974
|
return false;
|
|
1975
1975
|
}
|
|
1976
|
-
if (key === "constructor"
|
|
1977
|
-
if (isRootPrimitive && index === 0) {
|
|
1978
|
-
continue;
|
|
1979
|
-
}
|
|
1976
|
+
if ((key === "constructor" || key === "prototype") && index < length - 1) {
|
|
1980
1977
|
return false;
|
|
1981
1978
|
}
|
|
1982
1979
|
}
|
|
@@ -3308,7 +3305,7 @@ var string = (() => {
|
|
|
3308
3305
|
var index = -1, length = pairs == null ? 0 : pairs.length, result2 = {};
|
|
3309
3306
|
while (++index < length) {
|
|
3310
3307
|
var pair = pairs[index];
|
|
3311
|
-
result2
|
|
3308
|
+
baseAssignValue(result2, pair[0], pair[1]);
|
|
3312
3309
|
}
|
|
3313
3310
|
return result2;
|
|
3314
3311
|
}
|
|
@@ -4692,8 +4689,13 @@ var string = (() => {
|
|
|
4692
4689
|
options = undefined;
|
|
4693
4690
|
}
|
|
4694
4691
|
string = toString(string);
|
|
4695
|
-
options =
|
|
4696
|
-
var imports =
|
|
4692
|
+
options = assignWith({}, options, settings, customDefaultsAssignIn);
|
|
4693
|
+
var imports = assignWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys);
|
|
4694
|
+
arrayEach(importsKeys, function(key) {
|
|
4695
|
+
if (reForbiddenIdentifierChars.test(key)) {
|
|
4696
|
+
throw new Error2(INVALID_TEMPL_IMPORTS_ERROR_TEXT);
|
|
4697
|
+
}
|
|
4698
|
+
});
|
|
4697
4699
|
var isEscaping, isEvaluating, index = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '";
|
|
4698
4700
|
var reDelimiters = RegExp2(
|
|
4699
4701
|
(options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$",
|
|
@@ -5535,7 +5537,11 @@ var string = (() => {
|
|
|
5535
5537
|
var __getProtoOf2 = Object.getPrototypeOf;
|
|
5536
5538
|
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
5537
5539
|
var __commonJS2 = (cb, mod) => function __require() {
|
|
5538
|
-
|
|
5540
|
+
try {
|
|
5541
|
+
return mod || (0, cb[__getOwnPropNames2(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
5542
|
+
} catch (e) {
|
|
5543
|
+
throw mod = 0, e;
|
|
5544
|
+
}
|
|
5539
5545
|
};
|
|
5540
5546
|
var __copyProps2 = (to, from, except, desc) => {
|
|
5541
5547
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
@@ -5554,7 +5560,7 @@ var string = (() => {
|
|
|
5554
5560
|
mod
|
|
5555
5561
|
));
|
|
5556
5562
|
var require_constants = __commonJS2({
|
|
5557
|
-
"../../node_modules/.pnpm/semver@7.
|
|
5563
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/constants.js"(exports, module2) {
|
|
5558
5564
|
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
5559
5565
|
var MAX_LENGTH = 256;
|
|
5560
5566
|
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
|
|
@@ -5583,26 +5589,26 @@ var string = (() => {
|
|
|
5583
5589
|
}
|
|
5584
5590
|
});
|
|
5585
5591
|
var require_debug = __commonJS2({
|
|
5586
|
-
"../../node_modules/.pnpm/semver@7.
|
|
5592
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/debug.js"(exports, module2) {
|
|
5587
5593
|
var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
5588
5594
|
};
|
|
5589
5595
|
module2.exports = debug;
|
|
5590
5596
|
}
|
|
5591
5597
|
});
|
|
5592
5598
|
var require_re = __commonJS2({
|
|
5593
|
-
"../../node_modules/.pnpm/semver@7.
|
|
5599
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/re.js"(exports, module2) {
|
|
5594
5600
|
var {
|
|
5595
5601
|
MAX_SAFE_COMPONENT_LENGTH,
|
|
5596
5602
|
MAX_SAFE_BUILD_LENGTH,
|
|
5597
5603
|
MAX_LENGTH
|
|
5598
5604
|
} = require_constants();
|
|
5599
5605
|
var debug = require_debug();
|
|
5600
|
-
exports
|
|
5601
|
-
var re = exports
|
|
5602
|
-
var safeRe = exports
|
|
5603
|
-
var src = exports
|
|
5604
|
-
var safeSrc = exports
|
|
5605
|
-
var t = exports
|
|
5606
|
+
exports = module2.exports = {};
|
|
5607
|
+
var re = exports.re = [];
|
|
5608
|
+
var safeRe = exports.safeRe = [];
|
|
5609
|
+
var src = exports.src = [];
|
|
5610
|
+
var safeSrc = exports.safeSrc = [];
|
|
5611
|
+
var t = exports.t = {};
|
|
5606
5612
|
var R = 0;
|
|
5607
5613
|
var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
5608
5614
|
var safeRegexReplacements = [
|
|
@@ -5655,18 +5661,18 @@ var string = (() => {
|
|
|
5655
5661
|
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
5656
5662
|
createToken("LONETILDE", "(?:~>?)");
|
|
5657
5663
|
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
5658
|
-
exports
|
|
5664
|
+
exports.tildeTrimReplace = "$1~";
|
|
5659
5665
|
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
5660
5666
|
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
5661
5667
|
createToken("LONECARET", "(?:\\^)");
|
|
5662
5668
|
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
5663
|
-
exports
|
|
5669
|
+
exports.caretTrimReplace = "$1^";
|
|
5664
5670
|
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
5665
5671
|
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
5666
5672
|
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
5667
5673
|
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
5668
5674
|
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
5669
|
-
exports
|
|
5675
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
5670
5676
|
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
5671
5677
|
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
5672
5678
|
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
@@ -5675,7 +5681,7 @@ var string = (() => {
|
|
|
5675
5681
|
}
|
|
5676
5682
|
});
|
|
5677
5683
|
var require_parse_options = __commonJS2({
|
|
5678
|
-
"../../node_modules/.pnpm/semver@7.
|
|
5684
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/parse-options.js"(exports, module2) {
|
|
5679
5685
|
var looseOption = Object.freeze({ loose: true });
|
|
5680
5686
|
var emptyOpts = Object.freeze({});
|
|
5681
5687
|
var parseOptions = (options) => {
|
|
@@ -5691,7 +5697,7 @@ var string = (() => {
|
|
|
5691
5697
|
}
|
|
5692
5698
|
});
|
|
5693
5699
|
var require_identifiers = __commonJS2({
|
|
5694
|
-
"../../node_modules/.pnpm/semver@7.
|
|
5700
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/identifiers.js"(exports, module2) {
|
|
5695
5701
|
var numeric = /^[0-9]+$/;
|
|
5696
5702
|
var compareIdentifiers = (a, b) => {
|
|
5697
5703
|
if (typeof a === "number" && typeof b === "number") {
|
|
@@ -5713,12 +5719,24 @@ var string = (() => {
|
|
|
5713
5719
|
}
|
|
5714
5720
|
});
|
|
5715
5721
|
var require_semver = __commonJS2({
|
|
5716
|
-
"../../node_modules/.pnpm/semver@7.
|
|
5722
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/semver.js"(exports, module2) {
|
|
5717
5723
|
var debug = require_debug();
|
|
5718
5724
|
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
5719
5725
|
var { safeRe: re, t } = require_re();
|
|
5720
5726
|
var parseOptions = require_parse_options();
|
|
5721
5727
|
var { compareIdentifiers } = require_identifiers();
|
|
5728
|
+
var isPrereleaseIdentifier = (prerelease, identifier) => {
|
|
5729
|
+
const identifiers = identifier.split(".");
|
|
5730
|
+
if (identifiers.length > prerelease.length) {
|
|
5731
|
+
return false;
|
|
5732
|
+
}
|
|
5733
|
+
for (let i = 0; i < identifiers.length; i++) {
|
|
5734
|
+
if (compareIdentifiers(prerelease[i], identifiers[i]) !== 0) {
|
|
5735
|
+
return false;
|
|
5736
|
+
}
|
|
5737
|
+
}
|
|
5738
|
+
return true;
|
|
5739
|
+
};
|
|
5722
5740
|
var SemVer = class _SemVer {
|
|
5723
5741
|
constructor(version, options) {
|
|
5724
5742
|
options = parseOptions(options);
|
|
@@ -5965,8 +5983,9 @@ var string = (() => {
|
|
|
5965
5983
|
if (identifierBase === false) {
|
|
5966
5984
|
prerelease = [identifier];
|
|
5967
5985
|
}
|
|
5968
|
-
if (
|
|
5969
|
-
|
|
5986
|
+
if (isPrereleaseIdentifier(this.prerelease, identifier)) {
|
|
5987
|
+
const prereleaseBase = this.prerelease[identifier.split(".").length];
|
|
5988
|
+
if (isNaN(prereleaseBase)) {
|
|
5970
5989
|
this.prerelease = prerelease;
|
|
5971
5990
|
}
|
|
5972
5991
|
} else {
|
|
@@ -5989,7 +6008,7 @@ var string = (() => {
|
|
|
5989
6008
|
}
|
|
5990
6009
|
});
|
|
5991
6010
|
var require_parse = __commonJS2({
|
|
5992
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6011
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/parse.js"(exports, module2) {
|
|
5993
6012
|
var SemVer = require_semver();
|
|
5994
6013
|
var parse = (version, options, throwErrors = false) => {
|
|
5995
6014
|
if (version instanceof SemVer) {
|
|
@@ -6008,7 +6027,7 @@ var string = (() => {
|
|
|
6008
6027
|
}
|
|
6009
6028
|
});
|
|
6010
6029
|
var require_valid = __commonJS2({
|
|
6011
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6030
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/valid.js"(exports, module2) {
|
|
6012
6031
|
var parse = require_parse();
|
|
6013
6032
|
var valid2 = (version, options) => {
|
|
6014
6033
|
const v = parse(version, options);
|
|
@@ -6018,7 +6037,7 @@ var string = (() => {
|
|
|
6018
6037
|
}
|
|
6019
6038
|
});
|
|
6020
6039
|
var require_clean = __commonJS2({
|
|
6021
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6040
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/clean.js"(exports, module2) {
|
|
6022
6041
|
var parse = require_parse();
|
|
6023
6042
|
var clean = (version, options) => {
|
|
6024
6043
|
const s = parse(version.trim().replace(/^[=v]+/, ""), options);
|
|
@@ -6028,7 +6047,7 @@ var string = (() => {
|
|
|
6028
6047
|
}
|
|
6029
6048
|
});
|
|
6030
6049
|
var require_inc = __commonJS2({
|
|
6031
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6050
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/inc.js"(exports, module2) {
|
|
6032
6051
|
var SemVer = require_semver();
|
|
6033
6052
|
var inc = (version, release, options, identifier, identifierBase) => {
|
|
6034
6053
|
if (typeof options === "string") {
|
|
@@ -6049,7 +6068,7 @@ var string = (() => {
|
|
|
6049
6068
|
}
|
|
6050
6069
|
});
|
|
6051
6070
|
var require_diff = __commonJS2({
|
|
6052
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6071
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/diff.js"(exports, module2) {
|
|
6053
6072
|
var parse = require_parse();
|
|
6054
6073
|
var diff = (version1, version2) => {
|
|
6055
6074
|
const v1 = parse(version1, null, true);
|
|
@@ -6090,28 +6109,28 @@ var string = (() => {
|
|
|
6090
6109
|
}
|
|
6091
6110
|
});
|
|
6092
6111
|
var require_major = __commonJS2({
|
|
6093
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6112
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/major.js"(exports, module2) {
|
|
6094
6113
|
var SemVer = require_semver();
|
|
6095
6114
|
var major = (a, loose) => new SemVer(a, loose).major;
|
|
6096
6115
|
module2.exports = major;
|
|
6097
6116
|
}
|
|
6098
6117
|
});
|
|
6099
6118
|
var require_minor = __commonJS2({
|
|
6100
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6119
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/minor.js"(exports, module2) {
|
|
6101
6120
|
var SemVer = require_semver();
|
|
6102
6121
|
var minor = (a, loose) => new SemVer(a, loose).minor;
|
|
6103
6122
|
module2.exports = minor;
|
|
6104
6123
|
}
|
|
6105
6124
|
});
|
|
6106
6125
|
var require_patch = __commonJS2({
|
|
6107
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6126
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/patch.js"(exports, module2) {
|
|
6108
6127
|
var SemVer = require_semver();
|
|
6109
6128
|
var patch = (a, loose) => new SemVer(a, loose).patch;
|
|
6110
6129
|
module2.exports = patch;
|
|
6111
6130
|
}
|
|
6112
6131
|
});
|
|
6113
6132
|
var require_prerelease = __commonJS2({
|
|
6114
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6133
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/prerelease.js"(exports, module2) {
|
|
6115
6134
|
var parse = require_parse();
|
|
6116
6135
|
var prerelease = (version, options) => {
|
|
6117
6136
|
const parsed = parse(version, options);
|
|
@@ -6121,28 +6140,28 @@ var string = (() => {
|
|
|
6121
6140
|
}
|
|
6122
6141
|
});
|
|
6123
6142
|
var require_compare = __commonJS2({
|
|
6124
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6143
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare.js"(exports, module2) {
|
|
6125
6144
|
var SemVer = require_semver();
|
|
6126
6145
|
var compare2 = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
6127
6146
|
module2.exports = compare2;
|
|
6128
6147
|
}
|
|
6129
6148
|
});
|
|
6130
6149
|
var require_rcompare = __commonJS2({
|
|
6131
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6150
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rcompare.js"(exports, module2) {
|
|
6132
6151
|
var compare2 = require_compare();
|
|
6133
6152
|
var rcompare = (a, b, loose) => compare2(b, a, loose);
|
|
6134
6153
|
module2.exports = rcompare;
|
|
6135
6154
|
}
|
|
6136
6155
|
});
|
|
6137
6156
|
var require_compare_loose = __commonJS2({
|
|
6138
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6157
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-loose.js"(exports, module2) {
|
|
6139
6158
|
var compare2 = require_compare();
|
|
6140
6159
|
var compareLoose = (a, b) => compare2(a, b, true);
|
|
6141
6160
|
module2.exports = compareLoose;
|
|
6142
6161
|
}
|
|
6143
6162
|
});
|
|
6144
6163
|
var require_compare_build = __commonJS2({
|
|
6145
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6164
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-build.js"(exports, module2) {
|
|
6146
6165
|
var SemVer = require_semver();
|
|
6147
6166
|
var compareBuild = (a, b, loose) => {
|
|
6148
6167
|
const versionA = new SemVer(a, loose);
|
|
@@ -6153,63 +6172,63 @@ var string = (() => {
|
|
|
6153
6172
|
}
|
|
6154
6173
|
});
|
|
6155
6174
|
var require_sort = __commonJS2({
|
|
6156
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6175
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/sort.js"(exports, module2) {
|
|
6157
6176
|
var compareBuild = require_compare_build();
|
|
6158
|
-
var sort = (
|
|
6177
|
+
var sort = (list2, loose) => list2.sort((a, b) => compareBuild(a, b, loose));
|
|
6159
6178
|
module2.exports = sort;
|
|
6160
6179
|
}
|
|
6161
6180
|
});
|
|
6162
6181
|
var require_rsort = __commonJS2({
|
|
6163
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6182
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rsort.js"(exports, module2) {
|
|
6164
6183
|
var compareBuild = require_compare_build();
|
|
6165
|
-
var rsort = (
|
|
6184
|
+
var rsort = (list2, loose) => list2.sort((a, b) => compareBuild(b, a, loose));
|
|
6166
6185
|
module2.exports = rsort;
|
|
6167
6186
|
}
|
|
6168
6187
|
});
|
|
6169
6188
|
var require_gt = __commonJS2({
|
|
6170
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6189
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gt.js"(exports, module2) {
|
|
6171
6190
|
var compare2 = require_compare();
|
|
6172
6191
|
var gt = (a, b, loose) => compare2(a, b, loose) > 0;
|
|
6173
6192
|
module2.exports = gt;
|
|
6174
6193
|
}
|
|
6175
6194
|
});
|
|
6176
6195
|
var require_lt = __commonJS2({
|
|
6177
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6196
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lt.js"(exports, module2) {
|
|
6178
6197
|
var compare2 = require_compare();
|
|
6179
6198
|
var lt = (a, b, loose) => compare2(a, b, loose) < 0;
|
|
6180
6199
|
module2.exports = lt;
|
|
6181
6200
|
}
|
|
6182
6201
|
});
|
|
6183
6202
|
var require_eq = __commonJS2({
|
|
6184
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6203
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/eq.js"(exports, module2) {
|
|
6185
6204
|
var compare2 = require_compare();
|
|
6186
6205
|
var eq = (a, b, loose) => compare2(a, b, loose) === 0;
|
|
6187
6206
|
module2.exports = eq;
|
|
6188
6207
|
}
|
|
6189
6208
|
});
|
|
6190
6209
|
var require_neq = __commonJS2({
|
|
6191
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6210
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/neq.js"(exports, module2) {
|
|
6192
6211
|
var compare2 = require_compare();
|
|
6193
6212
|
var neq = (a, b, loose) => compare2(a, b, loose) !== 0;
|
|
6194
6213
|
module2.exports = neq;
|
|
6195
6214
|
}
|
|
6196
6215
|
});
|
|
6197
6216
|
var require_gte = __commonJS2({
|
|
6198
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6217
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gte.js"(exports, module2) {
|
|
6199
6218
|
var compare2 = require_compare();
|
|
6200
6219
|
var gte2 = (a, b, loose) => compare2(a, b, loose) >= 0;
|
|
6201
6220
|
module2.exports = gte2;
|
|
6202
6221
|
}
|
|
6203
6222
|
});
|
|
6204
6223
|
var require_lte = __commonJS2({
|
|
6205
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6224
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lte.js"(exports, module2) {
|
|
6206
6225
|
var compare2 = require_compare();
|
|
6207
6226
|
var lte = (a, b, loose) => compare2(a, b, loose) <= 0;
|
|
6208
6227
|
module2.exports = lte;
|
|
6209
6228
|
}
|
|
6210
6229
|
});
|
|
6211
6230
|
var require_cmp = __commonJS2({
|
|
6212
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6231
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/cmp.js"(exports, module2) {
|
|
6213
6232
|
var eq = require_eq();
|
|
6214
6233
|
var neq = require_neq();
|
|
6215
6234
|
var gt = require_gt();
|
|
@@ -6256,7 +6275,7 @@ var string = (() => {
|
|
|
6256
6275
|
}
|
|
6257
6276
|
});
|
|
6258
6277
|
var require_coerce = __commonJS2({
|
|
6259
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6278
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/coerce.js"(exports, module2) {
|
|
6260
6279
|
var SemVer = require_semver();
|
|
6261
6280
|
var parse = require_parse();
|
|
6262
6281
|
var { safeRe: re, t } = require_re();
|
|
@@ -6298,8 +6317,46 @@ var string = (() => {
|
|
|
6298
6317
|
module2.exports = coerce2;
|
|
6299
6318
|
}
|
|
6300
6319
|
});
|
|
6320
|
+
var require_truncate = __commonJS2({
|
|
6321
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/truncate.js"(exports, module2) {
|
|
6322
|
+
var parse = require_parse();
|
|
6323
|
+
var constants2 = require_constants();
|
|
6324
|
+
var SemVer = require_semver();
|
|
6325
|
+
var truncate = (version, truncation, options) => {
|
|
6326
|
+
if (!constants2.RELEASE_TYPES.includes(truncation)) {
|
|
6327
|
+
return null;
|
|
6328
|
+
}
|
|
6329
|
+
const clonedVersion = cloneInputVersion(version, options);
|
|
6330
|
+
return clonedVersion && doTruncation(clonedVersion, truncation);
|
|
6331
|
+
};
|
|
6332
|
+
var cloneInputVersion = (version, options) => {
|
|
6333
|
+
const versionStringToParse = version instanceof SemVer ? version.version : version;
|
|
6334
|
+
return parse(versionStringToParse, options);
|
|
6335
|
+
};
|
|
6336
|
+
var doTruncation = (version, truncation) => {
|
|
6337
|
+
if (isPrerelease(truncation)) {
|
|
6338
|
+
return version.version;
|
|
6339
|
+
}
|
|
6340
|
+
version.prerelease = [];
|
|
6341
|
+
switch (truncation) {
|
|
6342
|
+
case "major":
|
|
6343
|
+
version.minor = 0;
|
|
6344
|
+
version.patch = 0;
|
|
6345
|
+
break;
|
|
6346
|
+
case "minor":
|
|
6347
|
+
version.patch = 0;
|
|
6348
|
+
break;
|
|
6349
|
+
}
|
|
6350
|
+
return version.format();
|
|
6351
|
+
};
|
|
6352
|
+
var isPrerelease = (type) => {
|
|
6353
|
+
return type.startsWith("pre");
|
|
6354
|
+
};
|
|
6355
|
+
module2.exports = truncate;
|
|
6356
|
+
}
|
|
6357
|
+
});
|
|
6301
6358
|
var require_lrucache = __commonJS2({
|
|
6302
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6359
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/lrucache.js"(exports, module2) {
|
|
6303
6360
|
var LRUCache = class {
|
|
6304
6361
|
constructor() {
|
|
6305
6362
|
this.max = 1e3;
|
|
@@ -6334,7 +6391,7 @@ var string = (() => {
|
|
|
6334
6391
|
}
|
|
6335
6392
|
});
|
|
6336
6393
|
var require_range = __commonJS2({
|
|
6337
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6394
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/range.js"(exports, module2) {
|
|
6338
6395
|
var SPACE_CHARACTERS = /\s+/g;
|
|
6339
6396
|
var Range = class _Range {
|
|
6340
6397
|
constructor(range, options) {
|
|
@@ -6401,6 +6458,7 @@ var string = (() => {
|
|
|
6401
6458
|
return this.range;
|
|
6402
6459
|
}
|
|
6403
6460
|
parseRange(range) {
|
|
6461
|
+
range = range.replace(BUILDSTRIPRE, "");
|
|
6404
6462
|
const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
|
|
6405
6463
|
const memoKey = memoOpts + ":" + range;
|
|
6406
6464
|
const cached = cache.get(memoKey);
|
|
@@ -6483,12 +6541,14 @@ var string = (() => {
|
|
|
6483
6541
|
var SemVer = require_semver();
|
|
6484
6542
|
var {
|
|
6485
6543
|
safeRe: re,
|
|
6544
|
+
src,
|
|
6486
6545
|
t,
|
|
6487
6546
|
comparatorTrimReplace,
|
|
6488
6547
|
tildeTrimReplace,
|
|
6489
6548
|
caretTrimReplace
|
|
6490
6549
|
} = require_re();
|
|
6491
6550
|
var { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants();
|
|
6551
|
+
var BUILDSTRIPRE = new RegExp(src[t.BUILD], "g");
|
|
6492
6552
|
var isNullSet = (c) => c.value === "<0.0.0-0";
|
|
6493
6553
|
var isAny = (c) => c.value === "";
|
|
6494
6554
|
var isSatisfiable = (comparators, options) => {
|
|
@@ -6517,20 +6577,22 @@ var string = (() => {
|
|
|
6517
6577
|
return comp;
|
|
6518
6578
|
};
|
|
6519
6579
|
var isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
6580
|
+
var invalidXRangeOrder = (M, m, p) => isX(M) && !isX(m) || isX(m) && p && !isX(p);
|
|
6520
6581
|
var replaceTildes = (comp, options) => {
|
|
6521
6582
|
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
6522
6583
|
};
|
|
6523
6584
|
var replaceTilde = (comp, options) => {
|
|
6524
6585
|
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
6586
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
6525
6587
|
return comp.replace(r, (_2, M, m, p, pr) => {
|
|
6526
6588
|
debug("tilde", comp, _2, M, m, p, pr);
|
|
6527
6589
|
let ret;
|
|
6528
6590
|
if (isX(M)) {
|
|
6529
6591
|
ret = "";
|
|
6530
6592
|
} else if (isX(m)) {
|
|
6531
|
-
ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
6593
|
+
ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
6532
6594
|
} else if (isX(p)) {
|
|
6533
|
-
ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
6595
|
+
ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
6534
6596
|
} else if (pr) {
|
|
6535
6597
|
debug("replaceTilde pr", pr);
|
|
6536
6598
|
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
@@ -6576,9 +6638,9 @@ var string = (() => {
|
|
|
6576
6638
|
debug("no pr");
|
|
6577
6639
|
if (M === "0") {
|
|
6578
6640
|
if (m === "0") {
|
|
6579
|
-
ret = `>=${M}.${m}.${p}
|
|
6641
|
+
ret = `>=${M}.${m}.${p} <${M}.${m}.${+p + 1}-0`;
|
|
6580
6642
|
} else {
|
|
6581
|
-
ret = `>=${M}.${m}.${p}
|
|
6643
|
+
ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
6582
6644
|
}
|
|
6583
6645
|
} else {
|
|
6584
6646
|
ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
@@ -6597,6 +6659,9 @@ var string = (() => {
|
|
|
6597
6659
|
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
6598
6660
|
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
6599
6661
|
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
6662
|
+
if (invalidXRangeOrder(M, m, p)) {
|
|
6663
|
+
return comp;
|
|
6664
|
+
}
|
|
6600
6665
|
const xM = isX(M);
|
|
6601
6666
|
const xm = xM || isX(m);
|
|
6602
6667
|
const xp = xm || isX(p);
|
|
@@ -6708,7 +6773,7 @@ var string = (() => {
|
|
|
6708
6773
|
}
|
|
6709
6774
|
});
|
|
6710
6775
|
var require_comparator = __commonJS2({
|
|
6711
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6776
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/comparator.js"(exports, module2) {
|
|
6712
6777
|
var ANY = /* @__PURE__ */ Symbol("SemVer ANY");
|
|
6713
6778
|
var Comparator = class _Comparator {
|
|
6714
6779
|
static get ANY() {
|
|
@@ -6818,7 +6883,7 @@ var string = (() => {
|
|
|
6818
6883
|
}
|
|
6819
6884
|
});
|
|
6820
6885
|
var require_satisfies = __commonJS2({
|
|
6821
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6886
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/satisfies.js"(exports, module2) {
|
|
6822
6887
|
var Range = require_range();
|
|
6823
6888
|
var satisfies2 = (version, range, options) => {
|
|
6824
6889
|
try {
|
|
@@ -6832,14 +6897,14 @@ var string = (() => {
|
|
|
6832
6897
|
}
|
|
6833
6898
|
});
|
|
6834
6899
|
var require_to_comparators = __commonJS2({
|
|
6835
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6900
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/to-comparators.js"(exports, module2) {
|
|
6836
6901
|
var Range = require_range();
|
|
6837
6902
|
var toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
6838
6903
|
module2.exports = toComparators;
|
|
6839
6904
|
}
|
|
6840
6905
|
});
|
|
6841
6906
|
var require_max_satisfying = __commonJS2({
|
|
6842
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6907
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/max-satisfying.js"(exports, module2) {
|
|
6843
6908
|
var SemVer = require_semver();
|
|
6844
6909
|
var Range = require_range();
|
|
6845
6910
|
var maxSatisfying = (versions, range, options) => {
|
|
@@ -6865,7 +6930,7 @@ var string = (() => {
|
|
|
6865
6930
|
}
|
|
6866
6931
|
});
|
|
6867
6932
|
var require_min_satisfying = __commonJS2({
|
|
6868
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6933
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-satisfying.js"(exports, module2) {
|
|
6869
6934
|
var SemVer = require_semver();
|
|
6870
6935
|
var Range = require_range();
|
|
6871
6936
|
var minSatisfying = (versions, range, options) => {
|
|
@@ -6891,7 +6956,7 @@ var string = (() => {
|
|
|
6891
6956
|
}
|
|
6892
6957
|
});
|
|
6893
6958
|
var require_min_version = __commonJS2({
|
|
6894
|
-
"../../node_modules/.pnpm/semver@7.
|
|
6959
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-version.js"(exports, module2) {
|
|
6895
6960
|
var SemVer = require_semver();
|
|
6896
6961
|
var Range = require_range();
|
|
6897
6962
|
var gt = require_gt();
|
|
@@ -6947,7 +7012,7 @@ var string = (() => {
|
|
|
6947
7012
|
}
|
|
6948
7013
|
});
|
|
6949
7014
|
var require_valid2 = __commonJS2({
|
|
6950
|
-
"../../node_modules/.pnpm/semver@7.
|
|
7015
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/valid.js"(exports, module2) {
|
|
6951
7016
|
var Range = require_range();
|
|
6952
7017
|
var validRange = (range, options) => {
|
|
6953
7018
|
try {
|
|
@@ -6960,7 +7025,7 @@ var string = (() => {
|
|
|
6960
7025
|
}
|
|
6961
7026
|
});
|
|
6962
7027
|
var require_outside = __commonJS2({
|
|
6963
|
-
"../../node_modules/.pnpm/semver@7.
|
|
7028
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/outside.js"(exports, module2) {
|
|
6964
7029
|
var SemVer = require_semver();
|
|
6965
7030
|
var Comparator = require_comparator();
|
|
6966
7031
|
var { ANY } = Comparator;
|
|
@@ -7026,21 +7091,21 @@ var string = (() => {
|
|
|
7026
7091
|
}
|
|
7027
7092
|
});
|
|
7028
7093
|
var require_gtr = __commonJS2({
|
|
7029
|
-
"../../node_modules/.pnpm/semver@7.
|
|
7094
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/gtr.js"(exports, module2) {
|
|
7030
7095
|
var outside = require_outside();
|
|
7031
7096
|
var gtr = (version, range, options) => outside(version, range, ">", options);
|
|
7032
7097
|
module2.exports = gtr;
|
|
7033
7098
|
}
|
|
7034
7099
|
});
|
|
7035
7100
|
var require_ltr = __commonJS2({
|
|
7036
|
-
"../../node_modules/.pnpm/semver@7.
|
|
7101
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/ltr.js"(exports, module2) {
|
|
7037
7102
|
var outside = require_outside();
|
|
7038
7103
|
var ltr = (version, range, options) => outside(version, range, "<", options);
|
|
7039
7104
|
module2.exports = ltr;
|
|
7040
7105
|
}
|
|
7041
7106
|
});
|
|
7042
7107
|
var require_intersects = __commonJS2({
|
|
7043
|
-
"../../node_modules/.pnpm/semver@7.
|
|
7108
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/intersects.js"(exports, module2) {
|
|
7044
7109
|
var Range = require_range();
|
|
7045
7110
|
var intersects = (r1, r2, options) => {
|
|
7046
7111
|
r1 = new Range(r1, options);
|
|
@@ -7051,7 +7116,7 @@ var string = (() => {
|
|
|
7051
7116
|
}
|
|
7052
7117
|
});
|
|
7053
7118
|
var require_simplify = __commonJS2({
|
|
7054
|
-
"../../node_modules/.pnpm/semver@7.
|
|
7119
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/simplify.js"(exports, module2) {
|
|
7055
7120
|
var satisfies2 = require_satisfies();
|
|
7056
7121
|
var compare2 = require_compare();
|
|
7057
7122
|
module2.exports = (versions, range, options) => {
|
|
@@ -7098,7 +7163,7 @@ var string = (() => {
|
|
|
7098
7163
|
}
|
|
7099
7164
|
});
|
|
7100
7165
|
var require_subset = __commonJS2({
|
|
7101
|
-
"../../node_modules/.pnpm/semver@7.
|
|
7166
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/subset.js"(exports, module2) {
|
|
7102
7167
|
var Range = require_range();
|
|
7103
7168
|
var Comparator = require_comparator();
|
|
7104
7169
|
var { ANY } = Comparator;
|
|
@@ -7205,7 +7270,7 @@ var string = (() => {
|
|
|
7205
7270
|
if (higher === c && higher !== gt) {
|
|
7206
7271
|
return false;
|
|
7207
7272
|
}
|
|
7208
|
-
} else if (gt.operator === ">=" && !
|
|
7273
|
+
} else if (gt.operator === ">=" && !c.test(gt.semver)) {
|
|
7209
7274
|
return false;
|
|
7210
7275
|
}
|
|
7211
7276
|
}
|
|
@@ -7220,7 +7285,7 @@ var string = (() => {
|
|
|
7220
7285
|
if (lower === c && lower !== lt) {
|
|
7221
7286
|
return false;
|
|
7222
7287
|
}
|
|
7223
|
-
} else if (lt.operator === "<=" && !
|
|
7288
|
+
} else if (lt.operator === "<=" && !c.test(lt.semver)) {
|
|
7224
7289
|
return false;
|
|
7225
7290
|
}
|
|
7226
7291
|
}
|
|
@@ -7257,7 +7322,7 @@ var string = (() => {
|
|
|
7257
7322
|
}
|
|
7258
7323
|
});
|
|
7259
7324
|
var require_semver2 = __commonJS2({
|
|
7260
|
-
"../../node_modules/.pnpm/semver@7.
|
|
7325
|
+
"../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/index.js"(exports, module2) {
|
|
7261
7326
|
var internalRe = require_re();
|
|
7262
7327
|
var constants2 = require_constants();
|
|
7263
7328
|
var SemVer = require_semver();
|
|
@@ -7285,6 +7350,7 @@ var string = (() => {
|
|
|
7285
7350
|
var lte = require_lte();
|
|
7286
7351
|
var cmp = require_cmp();
|
|
7287
7352
|
var coerce2 = require_coerce();
|
|
7353
|
+
var truncate = require_truncate();
|
|
7288
7354
|
var Comparator = require_comparator();
|
|
7289
7355
|
var Range = require_range();
|
|
7290
7356
|
var satisfies2 = require_satisfies();
|
|
@@ -7323,6 +7389,7 @@ var string = (() => {
|
|
|
7323
7389
|
lte,
|
|
7324
7390
|
cmp,
|
|
7325
7391
|
coerce: coerce2,
|
|
7392
|
+
truncate,
|
|
7326
7393
|
Comparator,
|
|
7327
7394
|
Range,
|
|
7328
7395
|
satisfies: satisfies2,
|
|
@@ -7360,10 +7427,83 @@ var string = (() => {
|
|
|
7360
7427
|
CliForegroundColor2["Reset"] = "\x1B[0m";
|
|
7361
7428
|
return CliForegroundColor2;
|
|
7362
7429
|
})(CliForegroundColor || {});
|
|
7430
|
+
function createCliToken(name) {
|
|
7431
|
+
return name;
|
|
7432
|
+
}
|
|
7433
|
+
var ICliUserSessionService_TOKEN = createCliToken("cli-user-session-service");
|
|
7434
|
+
var ICliUsersStoreService_TOKEN = createCliToken("cli-users-store-service");
|
|
7435
|
+
var ICliGroupsStoreService_TOKEN = createCliToken("cli-groups-store-service");
|
|
7436
|
+
var ICliAuthService_TOKEN = createCliToken("cli-auth-service");
|
|
7437
|
+
var ICliCompletionProvider_TOKEN = createCliToken("cli-completion-provider");
|
|
7438
|
+
var ICliDragDropService_TOKEN = createCliToken("cli-drag-drop-service");
|
|
7439
|
+
var ICliFileTransferService_TOKEN = createCliToken("cli-file-transfer-service");
|
|
7440
|
+
var ICliTranslationService_TOKEN = createCliToken("cli-translation-service");
|
|
7441
|
+
var ICliPermissionService_TOKEN = createCliToken("cli-permission-service");
|
|
7442
|
+
var ICliFilePickerProvider_TOKEN = createCliToken("cli-file-picker-provider");
|
|
7443
|
+
var ICliHttpClient_TOKEN = createCliToken("cli-http-client");
|
|
7444
|
+
var ICliUserEventService_TOKEN = createCliToken("cli-user-event-service");
|
|
7445
|
+
var ICliAuditService_TOKEN = createCliToken("cli-audit-service");
|
|
7446
|
+
var ICliAuthorizationService_TOKEN = createCliToken("cli-authorization-service");
|
|
7447
|
+
var ICliPermissionRegistry_TOKEN = createCliToken("cli-permission-registry");
|
|
7448
|
+
var ICliSessionsService_TOKEN = createCliToken("cli-sessions-service");
|
|
7449
|
+
var ICliKeyValueStore_TOKEN = createCliToken("cli-key-value-store");
|
|
7450
|
+
var ICliServerAuthTokenProvider_TOKEN = createCliToken("cli-server-auth-token-provider");
|
|
7451
|
+
var ICliServerAuthService_TOKEN = createCliToken("cli-server-auth-service");
|
|
7452
|
+
var ICliServerManager_TOKEN = createCliToken("cli-server-manager");
|
|
7453
|
+
function resolveHeaders(provider) {
|
|
7454
|
+
if (!provider) return {};
|
|
7455
|
+
return typeof provider === "function" ? provider() : provider;
|
|
7456
|
+
}
|
|
7457
|
+
var ICliCommandGuard_TOKEN = createCliToken("cli-command-guard");
|
|
7458
|
+
var ICliEventBus_TOKEN = createCliToken("cli-event-bus");
|
|
7363
7459
|
var DefaultLibraryAuthor = {
|
|
7364
7460
|
name: "Nicolae Lupei",
|
|
7365
7461
|
email: "nicolae.lupei@qodalis.com"
|
|
7366
7462
|
};
|
|
7463
|
+
function splitShellWords(text) {
|
|
7464
|
+
const words = [];
|
|
7465
|
+
let current = "";
|
|
7466
|
+
let inWord = false;
|
|
7467
|
+
for (let i = 0; i < text.length; i++) {
|
|
7468
|
+
const ch = text[i];
|
|
7469
|
+
if (ch === "\\" && i + 1 < text.length) {
|
|
7470
|
+
current += text[++i];
|
|
7471
|
+
inWord = true;
|
|
7472
|
+
} else if (ch === "'" && text.indexOf("'", i + 1) !== -1) {
|
|
7473
|
+
const end = text.indexOf("'", i + 1);
|
|
7474
|
+
current += text.slice(i + 1, end);
|
|
7475
|
+
inWord = true;
|
|
7476
|
+
i = end;
|
|
7477
|
+
} else if (ch === '"' && closingDoubleQuote(text, i) !== -1) {
|
|
7478
|
+
const end = closingDoubleQuote(text, i);
|
|
7479
|
+
current += unescapeDoubleQuoted(text.slice(i + 1, end));
|
|
7480
|
+
inWord = true;
|
|
7481
|
+
i = end;
|
|
7482
|
+
} else if (/\s/.test(ch)) {
|
|
7483
|
+
if (inWord) words.push(current);
|
|
7484
|
+
current = "";
|
|
7485
|
+
inWord = false;
|
|
7486
|
+
} else {
|
|
7487
|
+
current += ch;
|
|
7488
|
+
inWord = true;
|
|
7489
|
+
}
|
|
7490
|
+
}
|
|
7491
|
+
if (inWord) words.push(current);
|
|
7492
|
+
return words;
|
|
7493
|
+
}
|
|
7494
|
+
function joinShellWords(text) {
|
|
7495
|
+
return splitShellWords(text).join(" ");
|
|
7496
|
+
}
|
|
7497
|
+
function closingDoubleQuote(text, start) {
|
|
7498
|
+
for (let i = start + 1; i < text.length; i++) {
|
|
7499
|
+
if (text[i] === "\\") i++;
|
|
7500
|
+
else if (text[i] === '"') return i;
|
|
7501
|
+
}
|
|
7502
|
+
return -1;
|
|
7503
|
+
}
|
|
7504
|
+
function unescapeDoubleQuoted(text) {
|
|
7505
|
+
return text.replace(/\\(["\\$`])/g, "$1");
|
|
7506
|
+
}
|
|
7367
7507
|
var semver = __toESM2(require_semver2());
|
|
7368
7508
|
var API_VERSION = 2;
|
|
7369
7509
|
var VERSIONS_ENDPOINT = "/api/qcli/versions";
|
|
@@ -7386,9 +7526,18 @@ var string = (() => {
|
|
|
7386
7526
|
* Returns the negotiated API version and the base path for all subsequent calls,
|
|
7387
7527
|
* or null if the server is unreachable or incompatible.
|
|
7388
7528
|
*/
|
|
7389
|
-
static async discover(baseUrl) {
|
|
7529
|
+
static async discover(baseUrl, headers, options) {
|
|
7530
|
+
let response;
|
|
7531
|
+
try {
|
|
7532
|
+
const resolved = resolveHeaders(headers);
|
|
7533
|
+
response = await fetch(`${baseUrl}${VERSIONS_ENDPOINT}`, {
|
|
7534
|
+
headers: Object.keys(resolved).length > 0 ? resolved : void 0
|
|
7535
|
+
});
|
|
7536
|
+
} catch (e) {
|
|
7537
|
+
if (options?.rethrowNetworkErrors) throw e;
|
|
7538
|
+
return null;
|
|
7539
|
+
}
|
|
7390
7540
|
try {
|
|
7391
|
-
const response = await fetch(`${baseUrl}${VERSIONS_ENDPOINT}`);
|
|
7392
7541
|
if (!response.ok) return null;
|
|
7393
7542
|
const info = await response.json();
|
|
7394
7543
|
const version = this.negotiate(info);
|
|
@@ -8223,7 +8372,7 @@ var string = (() => {
|
|
|
8223
8372
|
var _ = __toESM(require_lodash());
|
|
8224
8373
|
|
|
8225
8374
|
// src/lib/version.ts
|
|
8226
|
-
var LIBRARY_VERSION = "2.0.0-
|
|
8375
|
+
var LIBRARY_VERSION = "2.0.0-rc.1";
|
|
8227
8376
|
var API_VERSION2 = 2;
|
|
8228
8377
|
|
|
8229
8378
|
// src/lib/processors/cli-string-command-processor.ts
|
|
@@ -8236,7 +8385,7 @@ var string = (() => {
|
|
|
8236
8385
|
acceptsRawInput: true,
|
|
8237
8386
|
valueRequired: true,
|
|
8238
8387
|
processCommand: async (cmd, context) => {
|
|
8239
|
-
const text = cmd.value || cmd.data || "";
|
|
8388
|
+
const text = joinShellWords(cmd.value ?? "") || cmd.data || "";
|
|
8240
8389
|
const result = transform(text);
|
|
8241
8390
|
context.writer.writeln(
|
|
8242
8391
|
`${context.writer.wrapInColor("Result: ", CliForegroundColor.Yellow)}${result}`
|
|
@@ -8429,7 +8578,7 @@ var string = (() => {
|
|
|
8429
8578
|
}
|
|
8430
8579
|
],
|
|
8431
8580
|
processCommand: async (command, context) => {
|
|
8432
|
-
const text = command.value || command.data || "";
|
|
8581
|
+
const text = joinShellWords(command.value ?? "") || command.data || "";
|
|
8433
8582
|
const count = Math.min(
|
|
8434
8583
|
parseInt(command.args["count"] || command.args["n"]) || 2,
|
|
8435
8584
|
1e3
|
|
@@ -8482,7 +8631,7 @@ var string = (() => {
|
|
|
8482
8631
|
}
|
|
8483
8632
|
],
|
|
8484
8633
|
processCommand: async (command, context) => {
|
|
8485
|
-
const text = command.value || command.data || "";
|
|
8634
|
+
const text = joinShellWords(command.value ?? "") || command.data || "";
|
|
8486
8635
|
const find = command.args["find"] || command.args["f"] || "";
|
|
8487
8636
|
const replacement = command.args["with"] || command.args["w"] || "";
|
|
8488
8637
|
if (!find) {
|
|
@@ -8537,7 +8686,7 @@ var string = (() => {
|
|
|
8537
8686
|
}
|
|
8538
8687
|
],
|
|
8539
8688
|
processCommand: async (command, context) => {
|
|
8540
|
-
const text = command.value || command.data || "";
|
|
8689
|
+
const text = joinShellWords(command.value ?? "") || command.data || "";
|
|
8541
8690
|
const length = parseInt(command.args["length"] || command.args["l"]) || 30;
|
|
8542
8691
|
const suffix = command.args["suffix"] ?? "...";
|
|
8543
8692
|
const result = text.length > length ? text.substring(0, length - suffix.length) + suffix : text;
|
|
@@ -8587,7 +8736,7 @@ var string = (() => {
|
|
|
8587
8736
|
}
|
|
8588
8737
|
],
|
|
8589
8738
|
processCommand: async (command, context) => {
|
|
8590
|
-
const text = command.value || command.data || "";
|
|
8739
|
+
const text = joinShellWords(command.value ?? "") || command.data || "";
|
|
8591
8740
|
const length = parseInt(
|
|
8592
8741
|
command.args["length"] || command.args["l"]
|
|
8593
8742
|
);
|
|
@@ -8651,7 +8800,7 @@ var string = (() => {
|
|
|
8651
8800
|
}
|
|
8652
8801
|
],
|
|
8653
8802
|
processCommand: async (command, context) => {
|
|
8654
|
-
const text = command.value || command.data || "";
|
|
8803
|
+
const text = joinShellWords(command.value ?? "") || command.data || "";
|
|
8655
8804
|
const delimiter = command.args["by"] || command.args["d"] || command.args["delimiter"] || " ";
|
|
8656
8805
|
const parts = text.split(delimiter);
|
|
8657
8806
|
const { writer } = context;
|
|
@@ -8684,7 +8833,7 @@ var string = (() => {
|
|
|
8684
8833
|
acceptsRawInput: true,
|
|
8685
8834
|
valueRequired: true,
|
|
8686
8835
|
processCommand: async (command, context) => {
|
|
8687
|
-
const text = command.value || command.data || "";
|
|
8836
|
+
const text = joinShellWords(command.value ?? "") || command.data || "";
|
|
8688
8837
|
const words = lodash.words(text);
|
|
8689
8838
|
const { writer } = context;
|
|
8690
8839
|
writer.writeln(
|
|
@@ -8718,7 +8867,7 @@ var string = (() => {
|
|
|
8718
8867
|
acceptsRawInput: true,
|
|
8719
8868
|
valueRequired: true,
|
|
8720
8869
|
processCommand: async (command, context) => {
|
|
8721
|
-
const text = command.value || command.data || "";
|
|
8870
|
+
const text = joinShellWords(command.value ?? "") || command.data || "";
|
|
8722
8871
|
context.writer.writeln(
|
|
8723
8872
|
`${context.writer.wrapInColor("Result: ", CliForegroundColor.Yellow)}${text.length}`
|
|
8724
8873
|
);
|
|
@@ -8741,7 +8890,7 @@ var string = (() => {
|
|
|
8741
8890
|
acceptsRawInput: true,
|
|
8742
8891
|
valueRequired: true,
|
|
8743
8892
|
processCommand: async (command, context) => {
|
|
8744
|
-
const text = command.value || command.data || "";
|
|
8893
|
+
const text = joinShellWords(command.value ?? "") || command.data || "";
|
|
8745
8894
|
const { writer } = context;
|
|
8746
8895
|
const lines = text.split(/\r?\n/).length;
|
|
8747
8896
|
const wordCount = text.trim() ? text.trim().split(/\s+/).length : 0;
|
|
@@ -8794,7 +8943,7 @@ var string = (() => {
|
|
|
8794
8943
|
}
|
|
8795
8944
|
],
|
|
8796
8945
|
processCommand: async (command, context) => {
|
|
8797
|
-
const text = command.value || command.data || "";
|
|
8946
|
+
const text = joinShellWords(command.value ?? "") || command.data || "";
|
|
8798
8947
|
const find = command.args["find"] || command.args["f"] || "";
|
|
8799
8948
|
const result = text.includes(find);
|
|
8800
8949
|
const { writer } = context;
|
|
@@ -8832,7 +8981,7 @@ var string = (() => {
|
|
|
8832
8981
|
}
|
|
8833
8982
|
],
|
|
8834
8983
|
processCommand: async (command, context) => {
|
|
8835
|
-
const text = command.value || command.data || "";
|
|
8984
|
+
const text = joinShellWords(command.value ?? "") || command.data || "";
|
|
8836
8985
|
const find = command.args["find"] || command.args["f"] || "";
|
|
8837
8986
|
const result = text.startsWith(find);
|
|
8838
8987
|
const { writer } = context;
|
|
@@ -8868,7 +9017,7 @@ var string = (() => {
|
|
|
8868
9017
|
}
|
|
8869
9018
|
],
|
|
8870
9019
|
processCommand: async (command, context) => {
|
|
8871
|
-
const text = command.value || command.data || "";
|
|
9020
|
+
const text = joinShellWords(command.value ?? "") || command.data || "";
|
|
8872
9021
|
const find = command.args["find"] || command.args["f"] || "";
|
|
8873
9022
|
const result = text.endsWith(find);
|
|
8874
9023
|
const { writer } = context;
|