@hot-updater/plugin-core 0.16.1 → 0.16.3
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/index.cjs +913 -42
- package/dist/index.js +935 -73
- package/dist/makeEnv.spec.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -9515,6 +9515,552 @@ var __webpack_modules__ = {
|
|
|
9515
9515
|
return result;
|
|
9516
9516
|
};
|
|
9517
9517
|
},
|
|
9518
|
+
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
9519
|
+
const stringify = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js");
|
|
9520
|
+
const compile = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js");
|
|
9521
|
+
const expand = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js");
|
|
9522
|
+
const parse = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js");
|
|
9523
|
+
const braces = (input, options = {})=>{
|
|
9524
|
+
let output = [];
|
|
9525
|
+
if (Array.isArray(input)) for (const pattern of input){
|
|
9526
|
+
const result = braces.create(pattern, options);
|
|
9527
|
+
if (Array.isArray(result)) output.push(...result);
|
|
9528
|
+
else output.push(result);
|
|
9529
|
+
}
|
|
9530
|
+
else output = [].concat(braces.create(input, options));
|
|
9531
|
+
if (options && true === options.expand && true === options.nodupes) output = [
|
|
9532
|
+
...new Set(output)
|
|
9533
|
+
];
|
|
9534
|
+
return output;
|
|
9535
|
+
};
|
|
9536
|
+
braces.parse = (input, options = {})=>parse(input, options);
|
|
9537
|
+
braces.stringify = (input, options = {})=>{
|
|
9538
|
+
if ('string' == typeof input) return stringify(braces.parse(input, options), options);
|
|
9539
|
+
return stringify(input, options);
|
|
9540
|
+
};
|
|
9541
|
+
braces.compile = (input, options = {})=>{
|
|
9542
|
+
if ('string' == typeof input) input = braces.parse(input, options);
|
|
9543
|
+
return compile(input, options);
|
|
9544
|
+
};
|
|
9545
|
+
braces.expand = (input, options = {})=>{
|
|
9546
|
+
if ('string' == typeof input) input = braces.parse(input, options);
|
|
9547
|
+
let result = expand(input, options);
|
|
9548
|
+
if (true === options.noempty) result = result.filter(Boolean);
|
|
9549
|
+
if (true === options.nodupes) result = [
|
|
9550
|
+
...new Set(result)
|
|
9551
|
+
];
|
|
9552
|
+
return result;
|
|
9553
|
+
};
|
|
9554
|
+
braces.create = (input, options = {})=>{
|
|
9555
|
+
if ('' === input || input.length < 3) return [
|
|
9556
|
+
input
|
|
9557
|
+
];
|
|
9558
|
+
return true !== options.expand ? braces.compile(input, options) : braces.expand(input, options);
|
|
9559
|
+
};
|
|
9560
|
+
module.exports = braces;
|
|
9561
|
+
},
|
|
9562
|
+
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
9563
|
+
const fill = __webpack_require__("../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js");
|
|
9564
|
+
const utils = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js");
|
|
9565
|
+
const compile = (ast, options = {})=>{
|
|
9566
|
+
const walk = (node, parent = {})=>{
|
|
9567
|
+
const invalidBlock = utils.isInvalidBrace(parent);
|
|
9568
|
+
const invalidNode = true === node.invalid && true === options.escapeInvalid;
|
|
9569
|
+
const invalid = true === invalidBlock || true === invalidNode;
|
|
9570
|
+
const prefix = true === options.escapeInvalid ? '\\' : '';
|
|
9571
|
+
let output = '';
|
|
9572
|
+
if (true === node.isOpen) return prefix + node.value;
|
|
9573
|
+
if (true === node.isClose) {
|
|
9574
|
+
console.log('node.isClose', prefix, node.value);
|
|
9575
|
+
return prefix + node.value;
|
|
9576
|
+
}
|
|
9577
|
+
if ('open' === node.type) return invalid ? prefix + node.value : '(';
|
|
9578
|
+
if ('close' === node.type) return invalid ? prefix + node.value : ')';
|
|
9579
|
+
if ('comma' === node.type) return 'comma' === node.prev.type ? '' : invalid ? node.value : '|';
|
|
9580
|
+
if (node.value) return node.value;
|
|
9581
|
+
if (node.nodes && node.ranges > 0) {
|
|
9582
|
+
const args = utils.reduce(node.nodes);
|
|
9583
|
+
const range = fill(...args, {
|
|
9584
|
+
...options,
|
|
9585
|
+
wrap: false,
|
|
9586
|
+
toRegex: true,
|
|
9587
|
+
strictZeros: true
|
|
9588
|
+
});
|
|
9589
|
+
if (0 !== range.length) return args.length > 1 && range.length > 1 ? `(${range})` : range;
|
|
9590
|
+
}
|
|
9591
|
+
if (node.nodes) for (const child of node.nodes)output += walk(child, node);
|
|
9592
|
+
return output;
|
|
9593
|
+
};
|
|
9594
|
+
return walk(ast);
|
|
9595
|
+
};
|
|
9596
|
+
module.exports = compile;
|
|
9597
|
+
},
|
|
9598
|
+
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js": function(module) {
|
|
9599
|
+
module.exports = {
|
|
9600
|
+
MAX_LENGTH: 10000,
|
|
9601
|
+
CHAR_0: '0',
|
|
9602
|
+
CHAR_9: '9',
|
|
9603
|
+
CHAR_UPPERCASE_A: 'A',
|
|
9604
|
+
CHAR_LOWERCASE_A: 'a',
|
|
9605
|
+
CHAR_UPPERCASE_Z: 'Z',
|
|
9606
|
+
CHAR_LOWERCASE_Z: 'z',
|
|
9607
|
+
CHAR_LEFT_PARENTHESES: '(',
|
|
9608
|
+
CHAR_RIGHT_PARENTHESES: ')',
|
|
9609
|
+
CHAR_ASTERISK: '*',
|
|
9610
|
+
CHAR_AMPERSAND: '&',
|
|
9611
|
+
CHAR_AT: '@',
|
|
9612
|
+
CHAR_BACKSLASH: '\\',
|
|
9613
|
+
CHAR_BACKTICK: '`',
|
|
9614
|
+
CHAR_CARRIAGE_RETURN: '\r',
|
|
9615
|
+
CHAR_CIRCUMFLEX_ACCENT: '^',
|
|
9616
|
+
CHAR_COLON: ':',
|
|
9617
|
+
CHAR_COMMA: ',',
|
|
9618
|
+
CHAR_DOLLAR: '$',
|
|
9619
|
+
CHAR_DOT: '.',
|
|
9620
|
+
CHAR_DOUBLE_QUOTE: '"',
|
|
9621
|
+
CHAR_EQUAL: '=',
|
|
9622
|
+
CHAR_EXCLAMATION_MARK: '!',
|
|
9623
|
+
CHAR_FORM_FEED: '\f',
|
|
9624
|
+
CHAR_FORWARD_SLASH: '/',
|
|
9625
|
+
CHAR_HASH: '#',
|
|
9626
|
+
CHAR_HYPHEN_MINUS: '-',
|
|
9627
|
+
CHAR_LEFT_ANGLE_BRACKET: '<',
|
|
9628
|
+
CHAR_LEFT_CURLY_BRACE: '{',
|
|
9629
|
+
CHAR_LEFT_SQUARE_BRACKET: '[',
|
|
9630
|
+
CHAR_LINE_FEED: '\n',
|
|
9631
|
+
CHAR_NO_BREAK_SPACE: '\u00A0',
|
|
9632
|
+
CHAR_PERCENT: '%',
|
|
9633
|
+
CHAR_PLUS: '+',
|
|
9634
|
+
CHAR_QUESTION_MARK: '?',
|
|
9635
|
+
CHAR_RIGHT_ANGLE_BRACKET: '>',
|
|
9636
|
+
CHAR_RIGHT_CURLY_BRACE: '}',
|
|
9637
|
+
CHAR_RIGHT_SQUARE_BRACKET: ']',
|
|
9638
|
+
CHAR_SEMICOLON: ';',
|
|
9639
|
+
CHAR_SINGLE_QUOTE: '\'',
|
|
9640
|
+
CHAR_SPACE: ' ',
|
|
9641
|
+
CHAR_TAB: '\t',
|
|
9642
|
+
CHAR_UNDERSCORE: '_',
|
|
9643
|
+
CHAR_VERTICAL_LINE: '|',
|
|
9644
|
+
CHAR_ZERO_WIDTH_NOBREAK_SPACE: '\uFEFF'
|
|
9645
|
+
};
|
|
9646
|
+
},
|
|
9647
|
+
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
9648
|
+
const fill = __webpack_require__("../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js");
|
|
9649
|
+
const stringify = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js");
|
|
9650
|
+
const utils = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js");
|
|
9651
|
+
const append = (queue = '', stash = '', enclose = false)=>{
|
|
9652
|
+
const result = [];
|
|
9653
|
+
queue = [].concat(queue);
|
|
9654
|
+
stash = [].concat(stash);
|
|
9655
|
+
if (!stash.length) return queue;
|
|
9656
|
+
if (!queue.length) return enclose ? utils.flatten(stash).map((ele)=>`{${ele}}`) : stash;
|
|
9657
|
+
for (const item of queue)if (Array.isArray(item)) for (const value1 of item)result.push(append(value1, stash, enclose));
|
|
9658
|
+
else for (let ele of stash){
|
|
9659
|
+
if (true === enclose && 'string' == typeof ele) ele = `{${ele}}`;
|
|
9660
|
+
result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele);
|
|
9661
|
+
}
|
|
9662
|
+
return utils.flatten(result);
|
|
9663
|
+
};
|
|
9664
|
+
const expand = (ast, options = {})=>{
|
|
9665
|
+
const rangeLimit = void 0 === options.rangeLimit ? 1000 : options.rangeLimit;
|
|
9666
|
+
const walk = (node, parent = {})=>{
|
|
9667
|
+
node.queue = [];
|
|
9668
|
+
let p = parent;
|
|
9669
|
+
let q = parent.queue;
|
|
9670
|
+
while('brace' !== p.type && 'root' !== p.type && p.parent){
|
|
9671
|
+
p = p.parent;
|
|
9672
|
+
q = p.queue;
|
|
9673
|
+
}
|
|
9674
|
+
if (node.invalid || node.dollar) {
|
|
9675
|
+
q.push(append(q.pop(), stringify(node, options)));
|
|
9676
|
+
return;
|
|
9677
|
+
}
|
|
9678
|
+
if ('brace' === node.type && true !== node.invalid && 2 === node.nodes.length) {
|
|
9679
|
+
q.push(append(q.pop(), [
|
|
9680
|
+
'{}'
|
|
9681
|
+
]));
|
|
9682
|
+
return;
|
|
9683
|
+
}
|
|
9684
|
+
if (node.nodes && node.ranges > 0) {
|
|
9685
|
+
const args = utils.reduce(node.nodes);
|
|
9686
|
+
if (utils.exceedsLimit(...args, options.step, rangeLimit)) throw new RangeError('expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.');
|
|
9687
|
+
let range = fill(...args, options);
|
|
9688
|
+
if (0 === range.length) range = stringify(node, options);
|
|
9689
|
+
q.push(append(q.pop(), range));
|
|
9690
|
+
node.nodes = [];
|
|
9691
|
+
return;
|
|
9692
|
+
}
|
|
9693
|
+
const enclose = utils.encloseBrace(node);
|
|
9694
|
+
let queue = node.queue;
|
|
9695
|
+
let block = node;
|
|
9696
|
+
while('brace' !== block.type && 'root' !== block.type && block.parent){
|
|
9697
|
+
block = block.parent;
|
|
9698
|
+
queue = block.queue;
|
|
9699
|
+
}
|
|
9700
|
+
for(let i = 0; i < node.nodes.length; i++){
|
|
9701
|
+
const child = node.nodes[i];
|
|
9702
|
+
if ('comma' === child.type && 'brace' === node.type) {
|
|
9703
|
+
if (1 === i) queue.push('');
|
|
9704
|
+
queue.push('');
|
|
9705
|
+
continue;
|
|
9706
|
+
}
|
|
9707
|
+
if ('close' === child.type) {
|
|
9708
|
+
q.push(append(q.pop(), queue, enclose));
|
|
9709
|
+
continue;
|
|
9710
|
+
}
|
|
9711
|
+
if (child.value && 'open' !== child.type) {
|
|
9712
|
+
queue.push(append(queue.pop(), child.value));
|
|
9713
|
+
continue;
|
|
9714
|
+
}
|
|
9715
|
+
if (child.nodes) walk(child, node);
|
|
9716
|
+
}
|
|
9717
|
+
return queue;
|
|
9718
|
+
};
|
|
9719
|
+
return utils.flatten(walk(ast));
|
|
9720
|
+
};
|
|
9721
|
+
module.exports = expand;
|
|
9722
|
+
},
|
|
9723
|
+
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
9724
|
+
const stringify = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js");
|
|
9725
|
+
const { MAX_LENGTH, CHAR_BACKSLASH, CHAR_BACKTICK, CHAR_COMMA, CHAR_DOT, CHAR_LEFT_PARENTHESES, CHAR_RIGHT_PARENTHESES, CHAR_LEFT_CURLY_BRACE, CHAR_RIGHT_CURLY_BRACE, CHAR_LEFT_SQUARE_BRACKET, CHAR_RIGHT_SQUARE_BRACKET, CHAR_DOUBLE_QUOTE, CHAR_SINGLE_QUOTE, CHAR_NO_BREAK_SPACE, CHAR_ZERO_WIDTH_NOBREAK_SPACE } = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js");
|
|
9726
|
+
const parse = (input, options = {})=>{
|
|
9727
|
+
if ('string' != typeof input) throw new TypeError('Expected a string');
|
|
9728
|
+
const opts = options || {};
|
|
9729
|
+
const max = 'number' == typeof opts.maxLength ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
9730
|
+
if (input.length > max) throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
|
|
9731
|
+
const ast = {
|
|
9732
|
+
type: 'root',
|
|
9733
|
+
input,
|
|
9734
|
+
nodes: []
|
|
9735
|
+
};
|
|
9736
|
+
const stack = [
|
|
9737
|
+
ast
|
|
9738
|
+
];
|
|
9739
|
+
let block = ast;
|
|
9740
|
+
let prev = ast;
|
|
9741
|
+
let brackets = 0;
|
|
9742
|
+
const length = input.length;
|
|
9743
|
+
let index = 0;
|
|
9744
|
+
let depth = 0;
|
|
9745
|
+
let value1;
|
|
9746
|
+
const advance = ()=>input[index++];
|
|
9747
|
+
const push = (node)=>{
|
|
9748
|
+
if ('text' === node.type && 'dot' === prev.type) prev.type = 'text';
|
|
9749
|
+
if (prev && 'text' === prev.type && 'text' === node.type) {
|
|
9750
|
+
prev.value += node.value;
|
|
9751
|
+
return;
|
|
9752
|
+
}
|
|
9753
|
+
block.nodes.push(node);
|
|
9754
|
+
node.parent = block;
|
|
9755
|
+
node.prev = prev;
|
|
9756
|
+
prev = node;
|
|
9757
|
+
return node;
|
|
9758
|
+
};
|
|
9759
|
+
push({
|
|
9760
|
+
type: 'bos'
|
|
9761
|
+
});
|
|
9762
|
+
while(index < length){
|
|
9763
|
+
block = stack[stack.length - 1];
|
|
9764
|
+
value1 = advance();
|
|
9765
|
+
if (value1 === CHAR_ZERO_WIDTH_NOBREAK_SPACE || value1 === CHAR_NO_BREAK_SPACE) continue;
|
|
9766
|
+
if (value1 === CHAR_BACKSLASH) {
|
|
9767
|
+
push({
|
|
9768
|
+
type: 'text',
|
|
9769
|
+
value: (options.keepEscaping ? value1 : '') + advance()
|
|
9770
|
+
});
|
|
9771
|
+
continue;
|
|
9772
|
+
}
|
|
9773
|
+
if (value1 === CHAR_RIGHT_SQUARE_BRACKET) {
|
|
9774
|
+
push({
|
|
9775
|
+
type: 'text',
|
|
9776
|
+
value: '\\' + value1
|
|
9777
|
+
});
|
|
9778
|
+
continue;
|
|
9779
|
+
}
|
|
9780
|
+
if (value1 === CHAR_LEFT_SQUARE_BRACKET) {
|
|
9781
|
+
brackets++;
|
|
9782
|
+
let next;
|
|
9783
|
+
while(index < length && (next = advance())){
|
|
9784
|
+
value1 += next;
|
|
9785
|
+
if (next === CHAR_LEFT_SQUARE_BRACKET) {
|
|
9786
|
+
brackets++;
|
|
9787
|
+
continue;
|
|
9788
|
+
}
|
|
9789
|
+
if (next === CHAR_BACKSLASH) {
|
|
9790
|
+
value1 += advance();
|
|
9791
|
+
continue;
|
|
9792
|
+
}
|
|
9793
|
+
if (next === CHAR_RIGHT_SQUARE_BRACKET) {
|
|
9794
|
+
brackets--;
|
|
9795
|
+
if (0 === brackets) break;
|
|
9796
|
+
}
|
|
9797
|
+
}
|
|
9798
|
+
push({
|
|
9799
|
+
type: 'text',
|
|
9800
|
+
value: value1
|
|
9801
|
+
});
|
|
9802
|
+
continue;
|
|
9803
|
+
}
|
|
9804
|
+
if (value1 === CHAR_LEFT_PARENTHESES) {
|
|
9805
|
+
block = push({
|
|
9806
|
+
type: 'paren',
|
|
9807
|
+
nodes: []
|
|
9808
|
+
});
|
|
9809
|
+
stack.push(block);
|
|
9810
|
+
push({
|
|
9811
|
+
type: 'text',
|
|
9812
|
+
value: value1
|
|
9813
|
+
});
|
|
9814
|
+
continue;
|
|
9815
|
+
}
|
|
9816
|
+
if (value1 === CHAR_RIGHT_PARENTHESES) {
|
|
9817
|
+
if ('paren' !== block.type) {
|
|
9818
|
+
push({
|
|
9819
|
+
type: 'text',
|
|
9820
|
+
value: value1
|
|
9821
|
+
});
|
|
9822
|
+
continue;
|
|
9823
|
+
}
|
|
9824
|
+
block = stack.pop();
|
|
9825
|
+
push({
|
|
9826
|
+
type: 'text',
|
|
9827
|
+
value: value1
|
|
9828
|
+
});
|
|
9829
|
+
block = stack[stack.length - 1];
|
|
9830
|
+
continue;
|
|
9831
|
+
}
|
|
9832
|
+
if (value1 === CHAR_DOUBLE_QUOTE || value1 === CHAR_SINGLE_QUOTE || value1 === CHAR_BACKTICK) {
|
|
9833
|
+
const open = value1;
|
|
9834
|
+
let next;
|
|
9835
|
+
if (true !== options.keepQuotes) value1 = '';
|
|
9836
|
+
while(index < length && (next = advance())){
|
|
9837
|
+
if (next === CHAR_BACKSLASH) {
|
|
9838
|
+
value1 += next + advance();
|
|
9839
|
+
continue;
|
|
9840
|
+
}
|
|
9841
|
+
if (next === open) {
|
|
9842
|
+
if (true === options.keepQuotes) value1 += next;
|
|
9843
|
+
break;
|
|
9844
|
+
}
|
|
9845
|
+
value1 += next;
|
|
9846
|
+
}
|
|
9847
|
+
push({
|
|
9848
|
+
type: 'text',
|
|
9849
|
+
value: value1
|
|
9850
|
+
});
|
|
9851
|
+
continue;
|
|
9852
|
+
}
|
|
9853
|
+
if (value1 === CHAR_LEFT_CURLY_BRACE) {
|
|
9854
|
+
depth++;
|
|
9855
|
+
const dollar = prev.value && '$' === prev.value.slice(-1) || true === block.dollar;
|
|
9856
|
+
const brace = {
|
|
9857
|
+
type: 'brace',
|
|
9858
|
+
open: true,
|
|
9859
|
+
close: false,
|
|
9860
|
+
dollar,
|
|
9861
|
+
depth,
|
|
9862
|
+
commas: 0,
|
|
9863
|
+
ranges: 0,
|
|
9864
|
+
nodes: []
|
|
9865
|
+
};
|
|
9866
|
+
block = push(brace);
|
|
9867
|
+
stack.push(block);
|
|
9868
|
+
push({
|
|
9869
|
+
type: 'open',
|
|
9870
|
+
value: value1
|
|
9871
|
+
});
|
|
9872
|
+
continue;
|
|
9873
|
+
}
|
|
9874
|
+
if (value1 === CHAR_RIGHT_CURLY_BRACE) {
|
|
9875
|
+
if ('brace' !== block.type) {
|
|
9876
|
+
push({
|
|
9877
|
+
type: 'text',
|
|
9878
|
+
value: value1
|
|
9879
|
+
});
|
|
9880
|
+
continue;
|
|
9881
|
+
}
|
|
9882
|
+
const type = 'close';
|
|
9883
|
+
block = stack.pop();
|
|
9884
|
+
block.close = true;
|
|
9885
|
+
push({
|
|
9886
|
+
type,
|
|
9887
|
+
value: value1
|
|
9888
|
+
});
|
|
9889
|
+
depth--;
|
|
9890
|
+
block = stack[stack.length - 1];
|
|
9891
|
+
continue;
|
|
9892
|
+
}
|
|
9893
|
+
if (value1 === CHAR_COMMA && depth > 0) {
|
|
9894
|
+
if (block.ranges > 0) {
|
|
9895
|
+
block.ranges = 0;
|
|
9896
|
+
const open = block.nodes.shift();
|
|
9897
|
+
block.nodes = [
|
|
9898
|
+
open,
|
|
9899
|
+
{
|
|
9900
|
+
type: 'text',
|
|
9901
|
+
value: stringify(block)
|
|
9902
|
+
}
|
|
9903
|
+
];
|
|
9904
|
+
}
|
|
9905
|
+
push({
|
|
9906
|
+
type: 'comma',
|
|
9907
|
+
value: value1
|
|
9908
|
+
});
|
|
9909
|
+
block.commas++;
|
|
9910
|
+
continue;
|
|
9911
|
+
}
|
|
9912
|
+
if (value1 === CHAR_DOT && depth > 0 && 0 === block.commas) {
|
|
9913
|
+
const siblings = block.nodes;
|
|
9914
|
+
if (0 === depth || 0 === siblings.length) {
|
|
9915
|
+
push({
|
|
9916
|
+
type: 'text',
|
|
9917
|
+
value: value1
|
|
9918
|
+
});
|
|
9919
|
+
continue;
|
|
9920
|
+
}
|
|
9921
|
+
if ('dot' === prev.type) {
|
|
9922
|
+
block.range = [];
|
|
9923
|
+
prev.value += value1;
|
|
9924
|
+
prev.type = 'range';
|
|
9925
|
+
if (3 !== block.nodes.length && 5 !== block.nodes.length) {
|
|
9926
|
+
block.invalid = true;
|
|
9927
|
+
block.ranges = 0;
|
|
9928
|
+
prev.type = 'text';
|
|
9929
|
+
continue;
|
|
9930
|
+
}
|
|
9931
|
+
block.ranges++;
|
|
9932
|
+
block.args = [];
|
|
9933
|
+
continue;
|
|
9934
|
+
}
|
|
9935
|
+
if ('range' === prev.type) {
|
|
9936
|
+
siblings.pop();
|
|
9937
|
+
const before = siblings[siblings.length - 1];
|
|
9938
|
+
before.value += prev.value + value1;
|
|
9939
|
+
prev = before;
|
|
9940
|
+
block.ranges--;
|
|
9941
|
+
continue;
|
|
9942
|
+
}
|
|
9943
|
+
push({
|
|
9944
|
+
type: 'dot',
|
|
9945
|
+
value: value1
|
|
9946
|
+
});
|
|
9947
|
+
continue;
|
|
9948
|
+
}
|
|
9949
|
+
push({
|
|
9950
|
+
type: 'text',
|
|
9951
|
+
value: value1
|
|
9952
|
+
});
|
|
9953
|
+
}
|
|
9954
|
+
do {
|
|
9955
|
+
block = stack.pop();
|
|
9956
|
+
if ('root' !== block.type) {
|
|
9957
|
+
block.nodes.forEach((node)=>{
|
|
9958
|
+
if (!node.nodes) {
|
|
9959
|
+
if ('open' === node.type) node.isOpen = true;
|
|
9960
|
+
if ('close' === node.type) node.isClose = true;
|
|
9961
|
+
if (!node.nodes) node.type = 'text';
|
|
9962
|
+
node.invalid = true;
|
|
9963
|
+
}
|
|
9964
|
+
});
|
|
9965
|
+
const parent = stack[stack.length - 1];
|
|
9966
|
+
const index = parent.nodes.indexOf(block);
|
|
9967
|
+
parent.nodes.splice(index, 1, ...block.nodes);
|
|
9968
|
+
}
|
|
9969
|
+
}while (stack.length > 0);
|
|
9970
|
+
push({
|
|
9971
|
+
type: 'eos'
|
|
9972
|
+
});
|
|
9973
|
+
return ast;
|
|
9974
|
+
};
|
|
9975
|
+
module.exports = parse;
|
|
9976
|
+
},
|
|
9977
|
+
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
9978
|
+
const utils = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js");
|
|
9979
|
+
module.exports = (ast, options = {})=>{
|
|
9980
|
+
const stringify = (node, parent = {})=>{
|
|
9981
|
+
const invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent);
|
|
9982
|
+
const invalidNode = true === node.invalid && true === options.escapeInvalid;
|
|
9983
|
+
let output = '';
|
|
9984
|
+
if (node.value) {
|
|
9985
|
+
if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) return '\\' + node.value;
|
|
9986
|
+
return node.value;
|
|
9987
|
+
}
|
|
9988
|
+
if (node.value) return node.value;
|
|
9989
|
+
if (node.nodes) for (const child of node.nodes)output += stringify(child);
|
|
9990
|
+
return output;
|
|
9991
|
+
};
|
|
9992
|
+
return stringify(ast);
|
|
9993
|
+
};
|
|
9994
|
+
},
|
|
9995
|
+
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js": function(__unused_webpack_module, exports) {
|
|
9996
|
+
exports.isInteger = (num)=>{
|
|
9997
|
+
if ('number' == typeof num) return Number.isInteger(num);
|
|
9998
|
+
if ('string' == typeof num && '' !== num.trim()) return Number.isInteger(Number(num));
|
|
9999
|
+
return false;
|
|
10000
|
+
};
|
|
10001
|
+
exports.find = (node, type)=>node.nodes.find((node)=>node.type === type);
|
|
10002
|
+
exports.exceedsLimit = (min, max, step = 1, limit)=>{
|
|
10003
|
+
if (false === limit) return false;
|
|
10004
|
+
if (!exports.isInteger(min) || !exports.isInteger(max)) return false;
|
|
10005
|
+
return (Number(max) - Number(min)) / Number(step) >= limit;
|
|
10006
|
+
};
|
|
10007
|
+
exports.escapeNode = (block, n = 0, type)=>{
|
|
10008
|
+
const node = block.nodes[n];
|
|
10009
|
+
if (!node) return;
|
|
10010
|
+
if (type && node.type === type || 'open' === node.type || 'close' === node.type) {
|
|
10011
|
+
if (true !== node.escaped) {
|
|
10012
|
+
node.value = '\\' + node.value;
|
|
10013
|
+
node.escaped = true;
|
|
10014
|
+
}
|
|
10015
|
+
}
|
|
10016
|
+
};
|
|
10017
|
+
exports.encloseBrace = (node)=>{
|
|
10018
|
+
if ('brace' !== node.type) return false;
|
|
10019
|
+
if (node.commas >> 0 + node.ranges >> 0 === 0) {
|
|
10020
|
+
node.invalid = true;
|
|
10021
|
+
return true;
|
|
10022
|
+
}
|
|
10023
|
+
return false;
|
|
10024
|
+
};
|
|
10025
|
+
exports.isInvalidBrace = (block)=>{
|
|
10026
|
+
if ('brace' !== block.type) return false;
|
|
10027
|
+
if (true === block.invalid || block.dollar) return true;
|
|
10028
|
+
if (block.commas >> 0 + block.ranges >> 0 === 0) {
|
|
10029
|
+
block.invalid = true;
|
|
10030
|
+
return true;
|
|
10031
|
+
}
|
|
10032
|
+
if (true !== block.open || true !== block.close) {
|
|
10033
|
+
block.invalid = true;
|
|
10034
|
+
return true;
|
|
10035
|
+
}
|
|
10036
|
+
return false;
|
|
10037
|
+
};
|
|
10038
|
+
exports.isOpenOrClose = (node)=>{
|
|
10039
|
+
if ('open' === node.type || 'close' === node.type) return true;
|
|
10040
|
+
return true === node.open || true === node.close;
|
|
10041
|
+
};
|
|
10042
|
+
exports.reduce = (nodes)=>nodes.reduce((acc, node)=>{
|
|
10043
|
+
if ('text' === node.type) acc.push(node.value);
|
|
10044
|
+
if ('range' === node.type) node.type = 'text';
|
|
10045
|
+
return acc;
|
|
10046
|
+
}, []);
|
|
10047
|
+
exports.flatten = (...args)=>{
|
|
10048
|
+
const result = [];
|
|
10049
|
+
const flat = (arr)=>{
|
|
10050
|
+
for(let i = 0; i < arr.length; i++){
|
|
10051
|
+
const ele = arr[i];
|
|
10052
|
+
if (Array.isArray(ele)) {
|
|
10053
|
+
flat(ele);
|
|
10054
|
+
continue;
|
|
10055
|
+
}
|
|
10056
|
+
if (void 0 !== ele) result.push(ele);
|
|
10057
|
+
}
|
|
10058
|
+
return result;
|
|
10059
|
+
};
|
|
10060
|
+
flat(args);
|
|
10061
|
+
return result;
|
|
10062
|
+
};
|
|
10063
|
+
},
|
|
9518
10064
|
"../../node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
9519
10065
|
const cliBoxes = __webpack_require__("../../node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/boxes.json");
|
|
9520
10066
|
module.exports = cliBoxes;
|
|
@@ -11198,69 +11744,240 @@ var __webpack_modules__ = {
|
|
|
11198
11744
|
callback.call(self1.context, err, result);
|
|
11199
11745
|
self1.release(self1);
|
|
11200
11746
|
};
|
|
11201
|
-
}
|
|
11202
|
-
function queueAsPromised(context, worker, concurrency) {
|
|
11203
|
-
if ('function' == typeof context) {
|
|
11204
|
-
concurrency = worker;
|
|
11205
|
-
worker = context;
|
|
11206
|
-
context = null;
|
|
11207
|
-
}
|
|
11208
|
-
function asyncWrapper(arg, cb) {
|
|
11209
|
-
worker.call(this, arg).then(function(res) {
|
|
11210
|
-
cb(null, res);
|
|
11211
|
-
}, cb);
|
|
11212
|
-
}
|
|
11213
|
-
var queue = fastqueue(context, asyncWrapper, concurrency);
|
|
11214
|
-
var pushCb = queue.push;
|
|
11215
|
-
var unshiftCb = queue.unshift;
|
|
11216
|
-
queue.push = push;
|
|
11217
|
-
queue.unshift = unshift;
|
|
11218
|
-
queue.drained = drained;
|
|
11219
|
-
return queue;
|
|
11220
|
-
function push(value1) {
|
|
11221
|
-
var p = new Promise(function(resolve, reject) {
|
|
11222
|
-
pushCb(value1, function(err, result) {
|
|
11223
|
-
if (err) {
|
|
11224
|
-
reject(err);
|
|
11225
|
-
return;
|
|
11226
|
-
}
|
|
11227
|
-
resolve(result);
|
|
11228
|
-
});
|
|
11229
|
-
});
|
|
11230
|
-
p.catch(noop);
|
|
11231
|
-
return p;
|
|
11747
|
+
}
|
|
11748
|
+
function queueAsPromised(context, worker, concurrency) {
|
|
11749
|
+
if ('function' == typeof context) {
|
|
11750
|
+
concurrency = worker;
|
|
11751
|
+
worker = context;
|
|
11752
|
+
context = null;
|
|
11753
|
+
}
|
|
11754
|
+
function asyncWrapper(arg, cb) {
|
|
11755
|
+
worker.call(this, arg).then(function(res) {
|
|
11756
|
+
cb(null, res);
|
|
11757
|
+
}, cb);
|
|
11758
|
+
}
|
|
11759
|
+
var queue = fastqueue(context, asyncWrapper, concurrency);
|
|
11760
|
+
var pushCb = queue.push;
|
|
11761
|
+
var unshiftCb = queue.unshift;
|
|
11762
|
+
queue.push = push;
|
|
11763
|
+
queue.unshift = unshift;
|
|
11764
|
+
queue.drained = drained;
|
|
11765
|
+
return queue;
|
|
11766
|
+
function push(value1) {
|
|
11767
|
+
var p = new Promise(function(resolve, reject) {
|
|
11768
|
+
pushCb(value1, function(err, result) {
|
|
11769
|
+
if (err) {
|
|
11770
|
+
reject(err);
|
|
11771
|
+
return;
|
|
11772
|
+
}
|
|
11773
|
+
resolve(result);
|
|
11774
|
+
});
|
|
11775
|
+
});
|
|
11776
|
+
p.catch(noop);
|
|
11777
|
+
return p;
|
|
11778
|
+
}
|
|
11779
|
+
function unshift(value1) {
|
|
11780
|
+
var p = new Promise(function(resolve, reject) {
|
|
11781
|
+
unshiftCb(value1, function(err, result) {
|
|
11782
|
+
if (err) {
|
|
11783
|
+
reject(err);
|
|
11784
|
+
return;
|
|
11785
|
+
}
|
|
11786
|
+
resolve(result);
|
|
11787
|
+
});
|
|
11788
|
+
});
|
|
11789
|
+
p.catch(noop);
|
|
11790
|
+
return p;
|
|
11791
|
+
}
|
|
11792
|
+
function drained() {
|
|
11793
|
+
if (queue.idle()) return new Promise(function(resolve) {
|
|
11794
|
+
resolve();
|
|
11795
|
+
});
|
|
11796
|
+
var previousDrain = queue.drain;
|
|
11797
|
+
var p = new Promise(function(resolve) {
|
|
11798
|
+
queue.drain = function() {
|
|
11799
|
+
previousDrain();
|
|
11800
|
+
resolve();
|
|
11801
|
+
};
|
|
11802
|
+
});
|
|
11803
|
+
return p;
|
|
11804
|
+
}
|
|
11805
|
+
}
|
|
11806
|
+
module.exports = fastqueue;
|
|
11807
|
+
module.exports.promise = queueAsPromised;
|
|
11808
|
+
},
|
|
11809
|
+
"../../node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
11810
|
+
/*!
|
|
11811
|
+
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
11812
|
+
*
|
|
11813
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
11814
|
+
* Licensed under the MIT License.
|
|
11815
|
+
*/ const util = __webpack_require__("util");
|
|
11816
|
+
const toRegexRange = __webpack_require__("../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js");
|
|
11817
|
+
const isObject = (val)=>null !== val && 'object' == typeof val && !Array.isArray(val);
|
|
11818
|
+
const transform = (toNumber)=>(value1)=>true === toNumber ? Number(value1) : String(value1);
|
|
11819
|
+
const isValidValue = (value1)=>'number' == typeof value1 || 'string' == typeof value1 && '' !== value1;
|
|
11820
|
+
const isNumber = (num)=>Number.isInteger(+num);
|
|
11821
|
+
const zeros = (input)=>{
|
|
11822
|
+
let value1 = `${input}`;
|
|
11823
|
+
let index = -1;
|
|
11824
|
+
if ('-' === value1[0]) value1 = value1.slice(1);
|
|
11825
|
+
if ('0' === value1) return false;
|
|
11826
|
+
while('0' === value1[++index]);
|
|
11827
|
+
return index > 0;
|
|
11828
|
+
};
|
|
11829
|
+
const stringify = (start, end, options)=>{
|
|
11830
|
+
if ('string' == typeof start || 'string' == typeof end) return true;
|
|
11831
|
+
return true === options.stringify;
|
|
11832
|
+
};
|
|
11833
|
+
const pad = (input, maxLength, toNumber)=>{
|
|
11834
|
+
if (maxLength > 0) {
|
|
11835
|
+
let dash = '-' === input[0] ? '-' : '';
|
|
11836
|
+
if (dash) input = input.slice(1);
|
|
11837
|
+
input = dash + input.padStart(dash ? maxLength - 1 : maxLength, '0');
|
|
11838
|
+
}
|
|
11839
|
+
if (false === toNumber) return String(input);
|
|
11840
|
+
return input;
|
|
11841
|
+
};
|
|
11842
|
+
const toMaxLen = (input, maxLength)=>{
|
|
11843
|
+
let negative = '-' === input[0] ? '-' : '';
|
|
11844
|
+
if (negative) {
|
|
11845
|
+
input = input.slice(1);
|
|
11846
|
+
maxLength--;
|
|
11847
|
+
}
|
|
11848
|
+
while(input.length < maxLength)input = '0' + input;
|
|
11849
|
+
return negative ? '-' + input : input;
|
|
11850
|
+
};
|
|
11851
|
+
const toSequence = (parts, options)=>{
|
|
11852
|
+
parts.negatives.sort((a, b)=>a < b ? -1 : a > b ? 1 : 0);
|
|
11853
|
+
parts.positives.sort((a, b)=>a < b ? -1 : a > b ? 1 : 0);
|
|
11854
|
+
let prefix = options.capture ? '' : '?:';
|
|
11855
|
+
let positives = '';
|
|
11856
|
+
let negatives = '';
|
|
11857
|
+
let result;
|
|
11858
|
+
if (parts.positives.length) positives = parts.positives.join('|');
|
|
11859
|
+
if (parts.negatives.length) negatives = `-(${prefix}${parts.negatives.join('|')})`;
|
|
11860
|
+
result = positives && negatives ? `${positives}|${negatives}` : positives || negatives;
|
|
11861
|
+
if (options.wrap) return `(${prefix}${result})`;
|
|
11862
|
+
return result;
|
|
11863
|
+
};
|
|
11864
|
+
const toRange = (a, b, isNumbers, options)=>{
|
|
11865
|
+
if (isNumbers) return toRegexRange(a, b, {
|
|
11866
|
+
wrap: false,
|
|
11867
|
+
...options
|
|
11868
|
+
});
|
|
11869
|
+
let start = String.fromCharCode(a);
|
|
11870
|
+
if (a === b) return start;
|
|
11871
|
+
let stop = String.fromCharCode(b);
|
|
11872
|
+
return `[${start}-${stop}]`;
|
|
11873
|
+
};
|
|
11874
|
+
const toRegex = (start, end, options)=>{
|
|
11875
|
+
if (Array.isArray(start)) {
|
|
11876
|
+
let wrap = true === options.wrap;
|
|
11877
|
+
let prefix = options.capture ? '' : '?:';
|
|
11878
|
+
return wrap ? `(${prefix}${start.join('|')})` : start.join('|');
|
|
11879
|
+
}
|
|
11880
|
+
return toRegexRange(start, end, options);
|
|
11881
|
+
};
|
|
11882
|
+
const rangeError = (...args)=>new RangeError('Invalid range arguments: ' + util.inspect(...args));
|
|
11883
|
+
const invalidRange = (start, end, options)=>{
|
|
11884
|
+
if (true === options.strictRanges) throw rangeError([
|
|
11885
|
+
start,
|
|
11886
|
+
end
|
|
11887
|
+
]);
|
|
11888
|
+
return [];
|
|
11889
|
+
};
|
|
11890
|
+
const invalidStep = (step, options)=>{
|
|
11891
|
+
if (true === options.strictRanges) throw new TypeError(`Expected step "${step}" to be a number`);
|
|
11892
|
+
return [];
|
|
11893
|
+
};
|
|
11894
|
+
const fillNumbers = (start, end, step = 1, options = {})=>{
|
|
11895
|
+
let a = Number(start);
|
|
11896
|
+
let b = Number(end);
|
|
11897
|
+
if (!Number.isInteger(a) || !Number.isInteger(b)) {
|
|
11898
|
+
if (true === options.strictRanges) throw rangeError([
|
|
11899
|
+
start,
|
|
11900
|
+
end
|
|
11901
|
+
]);
|
|
11902
|
+
return [];
|
|
11903
|
+
}
|
|
11904
|
+
if (0 === a) a = 0;
|
|
11905
|
+
if (0 === b) b = 0;
|
|
11906
|
+
let descending = a > b;
|
|
11907
|
+
let startString = String(start);
|
|
11908
|
+
let endString = String(end);
|
|
11909
|
+
let stepString = String(step);
|
|
11910
|
+
step = Math.max(Math.abs(step), 1);
|
|
11911
|
+
let padded = zeros(startString) || zeros(endString) || zeros(stepString);
|
|
11912
|
+
let maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0;
|
|
11913
|
+
let toNumber = false === padded && false === stringify(start, end, options);
|
|
11914
|
+
let format = options.transform || transform(toNumber);
|
|
11915
|
+
if (options.toRegex && 1 === step) return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), true, options);
|
|
11916
|
+
let parts = {
|
|
11917
|
+
negatives: [],
|
|
11918
|
+
positives: []
|
|
11919
|
+
};
|
|
11920
|
+
let push = (num)=>parts[num < 0 ? 'negatives' : 'positives'].push(Math.abs(num));
|
|
11921
|
+
let range = [];
|
|
11922
|
+
let index = 0;
|
|
11923
|
+
while(descending ? a >= b : a <= b){
|
|
11924
|
+
if (true === options.toRegex && step > 1) push(a);
|
|
11925
|
+
else range.push(pad(format(a, index), maxLen, toNumber));
|
|
11926
|
+
a = descending ? a - step : a + step;
|
|
11927
|
+
index++;
|
|
11232
11928
|
}
|
|
11233
|
-
|
|
11234
|
-
|
|
11235
|
-
|
|
11236
|
-
|
|
11237
|
-
|
|
11238
|
-
|
|
11239
|
-
|
|
11240
|
-
|
|
11241
|
-
|
|
11242
|
-
|
|
11243
|
-
|
|
11244
|
-
|
|
11929
|
+
if (true === options.toRegex) return step > 1 ? toSequence(parts, options) : toRegex(range, null, {
|
|
11930
|
+
wrap: false,
|
|
11931
|
+
...options
|
|
11932
|
+
});
|
|
11933
|
+
return range;
|
|
11934
|
+
};
|
|
11935
|
+
const fillLetters = (start, end, step = 1, options = {})=>{
|
|
11936
|
+
if (!isNumber(start) && start.length > 1 || !isNumber(end) && end.length > 1) return invalidRange(start, end, options);
|
|
11937
|
+
let format = options.transform || ((val)=>String.fromCharCode(val));
|
|
11938
|
+
let a = `${start}`.charCodeAt(0);
|
|
11939
|
+
let b = `${end}`.charCodeAt(0);
|
|
11940
|
+
let descending = a > b;
|
|
11941
|
+
let min = Math.min(a, b);
|
|
11942
|
+
let max = Math.max(a, b);
|
|
11943
|
+
if (options.toRegex && 1 === step) return toRange(min, max, false, options);
|
|
11944
|
+
let range = [];
|
|
11945
|
+
let index = 0;
|
|
11946
|
+
while(descending ? a >= b : a <= b){
|
|
11947
|
+
range.push(format(a, index));
|
|
11948
|
+
a = descending ? a - step : a + step;
|
|
11949
|
+
index++;
|
|
11245
11950
|
}
|
|
11246
|
-
|
|
11247
|
-
|
|
11248
|
-
|
|
11249
|
-
|
|
11250
|
-
|
|
11251
|
-
|
|
11252
|
-
|
|
11253
|
-
|
|
11254
|
-
|
|
11255
|
-
|
|
11256
|
-
|
|
11257
|
-
|
|
11951
|
+
if (true === options.toRegex) return toRegex(range, null, {
|
|
11952
|
+
wrap: false,
|
|
11953
|
+
options
|
|
11954
|
+
});
|
|
11955
|
+
return range;
|
|
11956
|
+
};
|
|
11957
|
+
const fill = (start, end, step, options = {})=>{
|
|
11958
|
+
if (null == end && isValidValue(start)) return [
|
|
11959
|
+
start
|
|
11960
|
+
];
|
|
11961
|
+
if (!isValidValue(start) || !isValidValue(end)) return invalidRange(start, end, options);
|
|
11962
|
+
if ('function' == typeof step) return fill(start, end, 1, {
|
|
11963
|
+
transform: step
|
|
11964
|
+
});
|
|
11965
|
+
if (isObject(step)) return fill(start, end, 0, step);
|
|
11966
|
+
let opts = {
|
|
11967
|
+
...options
|
|
11968
|
+
};
|
|
11969
|
+
if (true === opts.capture) opts.wrap = true;
|
|
11970
|
+
step = step || opts.step || 1;
|
|
11971
|
+
if (!isNumber(step)) {
|
|
11972
|
+
if (null != step && !isObject(step)) return invalidStep(step, opts);
|
|
11973
|
+
return fill(start, end, 1, step);
|
|
11258
11974
|
}
|
|
11259
|
-
|
|
11260
|
-
|
|
11261
|
-
|
|
11975
|
+
if (isNumber(start) && isNumber(end)) return fillNumbers(start, end, step, opts);
|
|
11976
|
+
return fillLetters(start, end, Math.max(Math.abs(step), 1), opts);
|
|
11977
|
+
};
|
|
11978
|
+
module.exports = fill;
|
|
11262
11979
|
},
|
|
11263
|
-
"../../node_modules/.pnpm/fill-range@7.
|
|
11980
|
+
"../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
11264
11981
|
/*!
|
|
11265
11982
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
11266
11983
|
*
|
|
@@ -11302,15 +12019,15 @@ var __webpack_modules__ = {
|
|
|
11302
12019
|
while(input.length < maxLength)input = '0' + input;
|
|
11303
12020
|
return negative ? '-' + input : input;
|
|
11304
12021
|
};
|
|
11305
|
-
const toSequence = (parts, options)=>{
|
|
12022
|
+
const toSequence = (parts, options, maxLen)=>{
|
|
11306
12023
|
parts.negatives.sort((a, b)=>a < b ? -1 : a > b ? 1 : 0);
|
|
11307
12024
|
parts.positives.sort((a, b)=>a < b ? -1 : a > b ? 1 : 0);
|
|
11308
12025
|
let prefix = options.capture ? '' : '?:';
|
|
11309
12026
|
let positives = '';
|
|
11310
12027
|
let negatives = '';
|
|
11311
12028
|
let result;
|
|
11312
|
-
if (parts.positives.length) positives = parts.positives.join('|');
|
|
11313
|
-
if (parts.negatives.length) negatives = `-(${prefix}${parts.negatives.join('|')})`;
|
|
12029
|
+
if (parts.positives.length) positives = parts.positives.map((v)=>toMaxLen(String(v), maxLen)).join('|');
|
|
12030
|
+
if (parts.negatives.length) negatives = `-(${prefix}${parts.negatives.map((v)=>toMaxLen(String(v), maxLen)).join('|')})`;
|
|
11314
12031
|
result = positives && negatives ? `${positives}|${negatives}` : positives || negatives;
|
|
11315
12032
|
if (options.wrap) return `(${prefix}${result})`;
|
|
11316
12033
|
return result;
|
|
@@ -11380,7 +12097,7 @@ var __webpack_modules__ = {
|
|
|
11380
12097
|
a = descending ? a - step : a + step;
|
|
11381
12098
|
index++;
|
|
11382
12099
|
}
|
|
11383
|
-
if (true === options.toRegex) return step > 1 ? toSequence(parts, options) : toRegex(range, null, {
|
|
12100
|
+
if (true === options.toRegex) return step > 1 ? toSequence(parts, options, maxLen) : toRegex(range, null, {
|
|
11384
12101
|
wrap: false,
|
|
11385
12102
|
...options
|
|
11386
12103
|
});
|
|
@@ -11432,7 +12149,7 @@ var __webpack_modules__ = {
|
|
|
11432
12149
|
module.exports = fill;
|
|
11433
12150
|
},
|
|
11434
12151
|
"../../node_modules/.pnpm/git-up@7.0.0/node_modules/git-up/lib/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
11435
|
-
var parseUrl = __webpack_require__("../../node_modules/.pnpm/parse-url@8.1.0/node_modules/parse-url/dist/index.js"), isSsh = __webpack_require__("../../node_modules/.pnpm/is-ssh@1.4.
|
|
12152
|
+
var parseUrl = __webpack_require__("../../node_modules/.pnpm/parse-url@8.1.0/node_modules/parse-url/dist/index.js"), isSsh = __webpack_require__("../../node_modules/.pnpm/is-ssh@1.4.1/node_modules/is-ssh/lib/index.js");
|
|
11436
12153
|
function gitUp(input) {
|
|
11437
12154
|
var output = parseUrl(input);
|
|
11438
12155
|
output.token = "";
|
|
@@ -11911,8 +12628,8 @@ var __webpack_modules__ = {
|
|
|
11911
12628
|
return false;
|
|
11912
12629
|
};
|
|
11913
12630
|
},
|
|
11914
|
-
"../../node_modules/.pnpm/is-ssh@1.4.
|
|
11915
|
-
var protocols = __webpack_require__("../../node_modules/.pnpm/protocols@2.0.
|
|
12631
|
+
"../../node_modules/.pnpm/is-ssh@1.4.1/node_modules/is-ssh/lib/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
12632
|
+
var protocols = __webpack_require__("../../node_modules/.pnpm/protocols@2.0.2/node_modules/protocols/lib/index.js");
|
|
11916
12633
|
function isSsh(input) {
|
|
11917
12634
|
if (Array.isArray(input)) return -1 !== input.indexOf("ssh") || -1 !== input.indexOf("rsync");
|
|
11918
12635
|
if ("string" != typeof input) return false;
|
|
@@ -17898,6 +18615,151 @@ var __webpack_modules__ = {
|
|
|
17898
18615
|
};
|
|
17899
18616
|
module.exports = micromatch;
|
|
17900
18617
|
},
|
|
18618
|
+
"../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
18619
|
+
const util = __webpack_require__("util");
|
|
18620
|
+
const braces = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js");
|
|
18621
|
+
const picomatch = __webpack_require__("../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.js");
|
|
18622
|
+
const utils = __webpack_require__("../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js");
|
|
18623
|
+
const isEmptyString = (v)=>'' === v || './' === v;
|
|
18624
|
+
const hasBraces = (v)=>{
|
|
18625
|
+
const index = v.indexOf('{');
|
|
18626
|
+
return index > -1 && v.indexOf('}', index) > -1;
|
|
18627
|
+
};
|
|
18628
|
+
const micromatch = (list, patterns, options)=>{
|
|
18629
|
+
patterns = [].concat(patterns);
|
|
18630
|
+
list = [].concat(list);
|
|
18631
|
+
let omit = new Set();
|
|
18632
|
+
let keep = new Set();
|
|
18633
|
+
let items = new Set();
|
|
18634
|
+
let negatives = 0;
|
|
18635
|
+
let onResult = (state)=>{
|
|
18636
|
+
items.add(state.output);
|
|
18637
|
+
if (options && options.onResult) options.onResult(state);
|
|
18638
|
+
};
|
|
18639
|
+
for(let i = 0; i < patterns.length; i++){
|
|
18640
|
+
let isMatch = picomatch(String(patterns[i]), {
|
|
18641
|
+
...options,
|
|
18642
|
+
onResult
|
|
18643
|
+
}, true);
|
|
18644
|
+
let negated = isMatch.state.negated || isMatch.state.negatedExtglob;
|
|
18645
|
+
if (negated) negatives++;
|
|
18646
|
+
for (let item of list){
|
|
18647
|
+
let matched = isMatch(item, true);
|
|
18648
|
+
let match = negated ? !matched.isMatch : matched.isMatch;
|
|
18649
|
+
if (!!match) {
|
|
18650
|
+
if (negated) omit.add(matched.output);
|
|
18651
|
+
else {
|
|
18652
|
+
omit.delete(matched.output);
|
|
18653
|
+
keep.add(matched.output);
|
|
18654
|
+
}
|
|
18655
|
+
}
|
|
18656
|
+
}
|
|
18657
|
+
}
|
|
18658
|
+
let result = negatives === patterns.length ? [
|
|
18659
|
+
...items
|
|
18660
|
+
] : [
|
|
18661
|
+
...keep
|
|
18662
|
+
];
|
|
18663
|
+
let matches = result.filter((item)=>!omit.has(item));
|
|
18664
|
+
if (options && 0 === matches.length) {
|
|
18665
|
+
if (true === options.failglob) throw new Error(`No matches found for "${patterns.join(', ')}"`);
|
|
18666
|
+
if (true === options.nonull || true === options.nullglob) return options.unescape ? patterns.map((p)=>p.replace(/\\/g, '')) : patterns;
|
|
18667
|
+
}
|
|
18668
|
+
return matches;
|
|
18669
|
+
};
|
|
18670
|
+
micromatch.match = micromatch;
|
|
18671
|
+
micromatch.matcher = (pattern, options)=>picomatch(pattern, options);
|
|
18672
|
+
micromatch.isMatch = (str, patterns, options)=>picomatch(patterns, options)(str);
|
|
18673
|
+
micromatch.any = micromatch.isMatch;
|
|
18674
|
+
micromatch.not = (list, patterns, options = {})=>{
|
|
18675
|
+
patterns = [].concat(patterns).map(String);
|
|
18676
|
+
let result = new Set();
|
|
18677
|
+
let items = [];
|
|
18678
|
+
let onResult = (state)=>{
|
|
18679
|
+
if (options.onResult) options.onResult(state);
|
|
18680
|
+
items.push(state.output);
|
|
18681
|
+
};
|
|
18682
|
+
let matches = new Set(micromatch(list, patterns, {
|
|
18683
|
+
...options,
|
|
18684
|
+
onResult
|
|
18685
|
+
}));
|
|
18686
|
+
for (let item of items)if (!matches.has(item)) result.add(item);
|
|
18687
|
+
return [
|
|
18688
|
+
...result
|
|
18689
|
+
];
|
|
18690
|
+
};
|
|
18691
|
+
micromatch.contains = (str, pattern, options)=>{
|
|
18692
|
+
if ('string' != typeof str) throw new TypeError(`Expected a string: "${util.inspect(str)}"`);
|
|
18693
|
+
if (Array.isArray(pattern)) return pattern.some((p)=>micromatch.contains(str, p, options));
|
|
18694
|
+
if ('string' == typeof pattern) {
|
|
18695
|
+
if (isEmptyString(str) || isEmptyString(pattern)) return false;
|
|
18696
|
+
if (str.includes(pattern) || str.startsWith('./') && str.slice(2).includes(pattern)) return true;
|
|
18697
|
+
}
|
|
18698
|
+
return micromatch.isMatch(str, pattern, {
|
|
18699
|
+
...options,
|
|
18700
|
+
contains: true
|
|
18701
|
+
});
|
|
18702
|
+
};
|
|
18703
|
+
micromatch.matchKeys = (obj, patterns, options)=>{
|
|
18704
|
+
if (!utils.isObject(obj)) throw new TypeError('Expected the first argument to be an object');
|
|
18705
|
+
let keys = micromatch(Object.keys(obj), patterns, options);
|
|
18706
|
+
let res = {};
|
|
18707
|
+
for (let key of keys)res[key] = obj[key];
|
|
18708
|
+
return res;
|
|
18709
|
+
};
|
|
18710
|
+
micromatch.some = (list, patterns, options)=>{
|
|
18711
|
+
let items = [].concat(list);
|
|
18712
|
+
for (let pattern of [].concat(patterns)){
|
|
18713
|
+
let isMatch = picomatch(String(pattern), options);
|
|
18714
|
+
if (items.some((item)=>isMatch(item))) return true;
|
|
18715
|
+
}
|
|
18716
|
+
return false;
|
|
18717
|
+
};
|
|
18718
|
+
micromatch.every = (list, patterns, options)=>{
|
|
18719
|
+
let items = [].concat(list);
|
|
18720
|
+
for (let pattern of [].concat(patterns)){
|
|
18721
|
+
let isMatch = picomatch(String(pattern), options);
|
|
18722
|
+
if (!items.every((item)=>isMatch(item))) return false;
|
|
18723
|
+
}
|
|
18724
|
+
return true;
|
|
18725
|
+
};
|
|
18726
|
+
micromatch.all = (str, patterns, options)=>{
|
|
18727
|
+
if ('string' != typeof str) throw new TypeError(`Expected a string: "${util.inspect(str)}"`);
|
|
18728
|
+
return [].concat(patterns).every((p)=>picomatch(p, options)(str));
|
|
18729
|
+
};
|
|
18730
|
+
micromatch.capture = (glob, input, options)=>{
|
|
18731
|
+
let posix = utils.isWindows(options);
|
|
18732
|
+
let regex = picomatch.makeRe(String(glob), {
|
|
18733
|
+
...options,
|
|
18734
|
+
capture: true
|
|
18735
|
+
});
|
|
18736
|
+
let match = regex.exec(posix ? utils.toPosixSlashes(input) : input);
|
|
18737
|
+
if (match) return match.slice(1).map((v)=>void 0 === v ? '' : v);
|
|
18738
|
+
};
|
|
18739
|
+
micromatch.makeRe = (...args)=>picomatch.makeRe(...args);
|
|
18740
|
+
micromatch.scan = (...args)=>picomatch.scan(...args);
|
|
18741
|
+
micromatch.parse = (patterns, options)=>{
|
|
18742
|
+
let res = [];
|
|
18743
|
+
for (let pattern of [].concat(patterns || []))for (let str of braces(String(pattern), options))res.push(picomatch.parse(str, options));
|
|
18744
|
+
return res;
|
|
18745
|
+
};
|
|
18746
|
+
micromatch.braces = (pattern, options)=>{
|
|
18747
|
+
if ('string' != typeof pattern) throw new TypeError('Expected a string');
|
|
18748
|
+
if (options && true === options.nobrace || !hasBraces(pattern)) return [
|
|
18749
|
+
pattern
|
|
18750
|
+
];
|
|
18751
|
+
return braces(pattern, options);
|
|
18752
|
+
};
|
|
18753
|
+
micromatch.braceExpand = (pattern, options)=>{
|
|
18754
|
+
if ('string' != typeof pattern) throw new TypeError('Expected a string');
|
|
18755
|
+
return micromatch.braces(pattern, {
|
|
18756
|
+
...options,
|
|
18757
|
+
expand: true
|
|
18758
|
+
});
|
|
18759
|
+
};
|
|
18760
|
+
micromatch.hasBraces = hasBraces;
|
|
18761
|
+
module.exports = micromatch;
|
|
18762
|
+
},
|
|
17901
18763
|
"../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js": function(module) {
|
|
17902
18764
|
var s = 1000;
|
|
17903
18765
|
var m = 60 * s;
|
|
@@ -21510,8 +22372,8 @@ var __webpack_modules__ = {
|
|
|
21510
22372
|
}
|
|
21511
22373
|
module.exports = ZStream;
|
|
21512
22374
|
},
|
|
21513
|
-
"../../node_modules/.pnpm/parse-path@7.0.
|
|
21514
|
-
var protocols = __webpack_require__("../../node_modules/.pnpm/protocols@2.0.
|
|
22375
|
+
"../../node_modules/.pnpm/parse-path@7.0.1/node_modules/parse-path/lib/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
22376
|
+
var protocols = __webpack_require__("../../node_modules/.pnpm/protocols@2.0.2/node_modules/protocols/lib/index.js");
|
|
21515
22377
|
function parsePath(url) {
|
|
21516
22378
|
var output = {
|
|
21517
22379
|
protocols: [],
|
|
@@ -21562,7 +22424,7 @@ var __webpack_modules__ = {
|
|
|
21562
22424
|
module.exports = parsePath;
|
|
21563
22425
|
},
|
|
21564
22426
|
"../../node_modules/.pnpm/parse-url@8.1.0/node_modules/parse-url/dist/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
21565
|
-
var parsePath = __webpack_require__("../../node_modules/.pnpm/parse-path@7.0.
|
|
22427
|
+
var parsePath = __webpack_require__("../../node_modules/.pnpm/parse-path@7.0.1/node_modules/parse-path/lib/index.js");
|
|
21566
22428
|
function _interopDefaultLegacy(e) {
|
|
21567
22429
|
return e && 'object' == typeof e && 'default' in e ? e : {
|
|
21568
22430
|
default: e
|
|
@@ -23267,7 +24129,7 @@ var __webpack_modules__ = {
|
|
|
23267
24129
|
}
|
|
23268
24130
|
}
|
|
23269
24131
|
},
|
|
23270
|
-
"../../node_modules/.pnpm/protocols@2.0.
|
|
24132
|
+
"../../node_modules/.pnpm/protocols@2.0.2/node_modules/protocols/lib/index.js": function(module) {
|
|
23271
24133
|
module.exports = function(input, first) {
|
|
23272
24134
|
if (true === first) first = 0;
|
|
23273
24135
|
var prots = "";
|
|
@@ -26257,7 +27119,7 @@ var __webpack_modules__ = {
|
|
|
26257
27119
|
});
|
|
26258
27120
|
exports.createPackageGraph = void 0;
|
|
26259
27121
|
const createDependencyMap_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/graph/createDependencyMap.js");
|
|
26260
|
-
const micromatch_1 = __importDefault(__webpack_require__("../../node_modules/.pnpm/micromatch@4.0.
|
|
27122
|
+
const micromatch_1 = __importDefault(__webpack_require__("../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js"));
|
|
26261
27123
|
function createPackageGraph(packages, filters) {
|
|
26262
27124
|
const packageSet = new Set();
|
|
26263
27125
|
const edges = [];
|
|
@@ -26846,7 +27708,7 @@ var __webpack_modules__ = {
|
|
|
26846
27708
|
value: true
|
|
26847
27709
|
});
|
|
26848
27710
|
exports.getScopedPackages = void 0;
|
|
26849
|
-
const micromatch_1 = __importDefault(__webpack_require__("../../node_modules/.pnpm/micromatch@4.0.
|
|
27711
|
+
const micromatch_1 = __importDefault(__webpack_require__("../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js"));
|
|
26850
27712
|
function getScopedPackages(search, packages) {
|
|
26851
27713
|
const packageNames = Array.isArray(packages) ? packages : Object.keys(packages);
|
|
26852
27714
|
const results = new Set();
|
|
@@ -26983,7 +27845,7 @@ var __webpack_modules__ = {
|
|
|
26983
27845
|
value: true
|
|
26984
27846
|
});
|
|
26985
27847
|
exports.getPackagesByFiles = void 0;
|
|
26986
|
-
const micromatch_1 = __importDefault(__webpack_require__("../../node_modules/.pnpm/micromatch@4.0.
|
|
27848
|
+
const micromatch_1 = __importDefault(__webpack_require__("../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js"));
|
|
26987
27849
|
const path_1 = __importDefault(__webpack_require__("path"));
|
|
26988
27850
|
const getWorkspaces_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/getWorkspaces.js");
|
|
26989
27851
|
function getPackagesByFiles(workspaceRoot, files, ignoreGlobs = [], returnAllPackagesOnNoMatch = false) {
|