@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.cjs
CHANGED
|
@@ -9529,6 +9529,559 @@ var __webpack_modules__ = {
|
|
|
9529
9529
|
return result;
|
|
9530
9530
|
};
|
|
9531
9531
|
},
|
|
9532
|
+
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
9533
|
+
"use strict";
|
|
9534
|
+
const stringify = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js");
|
|
9535
|
+
const compile = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js");
|
|
9536
|
+
const expand = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js");
|
|
9537
|
+
const parse = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js");
|
|
9538
|
+
const braces = (input, options = {})=>{
|
|
9539
|
+
let output = [];
|
|
9540
|
+
if (Array.isArray(input)) for (const pattern of input){
|
|
9541
|
+
const result = braces.create(pattern, options);
|
|
9542
|
+
if (Array.isArray(result)) output.push(...result);
|
|
9543
|
+
else output.push(result);
|
|
9544
|
+
}
|
|
9545
|
+
else output = [].concat(braces.create(input, options));
|
|
9546
|
+
if (options && true === options.expand && true === options.nodupes) output = [
|
|
9547
|
+
...new Set(output)
|
|
9548
|
+
];
|
|
9549
|
+
return output;
|
|
9550
|
+
};
|
|
9551
|
+
braces.parse = (input, options = {})=>parse(input, options);
|
|
9552
|
+
braces.stringify = (input, options = {})=>{
|
|
9553
|
+
if ('string' == typeof input) return stringify(braces.parse(input, options), options);
|
|
9554
|
+
return stringify(input, options);
|
|
9555
|
+
};
|
|
9556
|
+
braces.compile = (input, options = {})=>{
|
|
9557
|
+
if ('string' == typeof input) input = braces.parse(input, options);
|
|
9558
|
+
return compile(input, options);
|
|
9559
|
+
};
|
|
9560
|
+
braces.expand = (input, options = {})=>{
|
|
9561
|
+
if ('string' == typeof input) input = braces.parse(input, options);
|
|
9562
|
+
let result = expand(input, options);
|
|
9563
|
+
if (true === options.noempty) result = result.filter(Boolean);
|
|
9564
|
+
if (true === options.nodupes) result = [
|
|
9565
|
+
...new Set(result)
|
|
9566
|
+
];
|
|
9567
|
+
return result;
|
|
9568
|
+
};
|
|
9569
|
+
braces.create = (input, options = {})=>{
|
|
9570
|
+
if ('' === input || input.length < 3) return [
|
|
9571
|
+
input
|
|
9572
|
+
];
|
|
9573
|
+
return true !== options.expand ? braces.compile(input, options) : braces.expand(input, options);
|
|
9574
|
+
};
|
|
9575
|
+
module.exports = braces;
|
|
9576
|
+
},
|
|
9577
|
+
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
9578
|
+
"use strict";
|
|
9579
|
+
const fill = __webpack_require__("../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js");
|
|
9580
|
+
const utils = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js");
|
|
9581
|
+
const compile = (ast, options = {})=>{
|
|
9582
|
+
const walk = (node, parent = {})=>{
|
|
9583
|
+
const invalidBlock = utils.isInvalidBrace(parent);
|
|
9584
|
+
const invalidNode = true === node.invalid && true === options.escapeInvalid;
|
|
9585
|
+
const invalid = true === invalidBlock || true === invalidNode;
|
|
9586
|
+
const prefix = true === options.escapeInvalid ? '\\' : '';
|
|
9587
|
+
let output = '';
|
|
9588
|
+
if (true === node.isOpen) return prefix + node.value;
|
|
9589
|
+
if (true === node.isClose) {
|
|
9590
|
+
console.log('node.isClose', prefix, node.value);
|
|
9591
|
+
return prefix + node.value;
|
|
9592
|
+
}
|
|
9593
|
+
if ('open' === node.type) return invalid ? prefix + node.value : '(';
|
|
9594
|
+
if ('close' === node.type) return invalid ? prefix + node.value : ')';
|
|
9595
|
+
if ('comma' === node.type) return 'comma' === node.prev.type ? '' : invalid ? node.value : '|';
|
|
9596
|
+
if (node.value) return node.value;
|
|
9597
|
+
if (node.nodes && node.ranges > 0) {
|
|
9598
|
+
const args = utils.reduce(node.nodes);
|
|
9599
|
+
const range = fill(...args, {
|
|
9600
|
+
...options,
|
|
9601
|
+
wrap: false,
|
|
9602
|
+
toRegex: true,
|
|
9603
|
+
strictZeros: true
|
|
9604
|
+
});
|
|
9605
|
+
if (0 !== range.length) return args.length > 1 && range.length > 1 ? `(${range})` : range;
|
|
9606
|
+
}
|
|
9607
|
+
if (node.nodes) for (const child of node.nodes)output += walk(child, node);
|
|
9608
|
+
return output;
|
|
9609
|
+
};
|
|
9610
|
+
return walk(ast);
|
|
9611
|
+
};
|
|
9612
|
+
module.exports = compile;
|
|
9613
|
+
},
|
|
9614
|
+
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js": function(module) {
|
|
9615
|
+
"use strict";
|
|
9616
|
+
module.exports = {
|
|
9617
|
+
MAX_LENGTH: 10000,
|
|
9618
|
+
CHAR_0: '0',
|
|
9619
|
+
CHAR_9: '9',
|
|
9620
|
+
CHAR_UPPERCASE_A: 'A',
|
|
9621
|
+
CHAR_LOWERCASE_A: 'a',
|
|
9622
|
+
CHAR_UPPERCASE_Z: 'Z',
|
|
9623
|
+
CHAR_LOWERCASE_Z: 'z',
|
|
9624
|
+
CHAR_LEFT_PARENTHESES: '(',
|
|
9625
|
+
CHAR_RIGHT_PARENTHESES: ')',
|
|
9626
|
+
CHAR_ASTERISK: '*',
|
|
9627
|
+
CHAR_AMPERSAND: '&',
|
|
9628
|
+
CHAR_AT: '@',
|
|
9629
|
+
CHAR_BACKSLASH: '\\',
|
|
9630
|
+
CHAR_BACKTICK: '`',
|
|
9631
|
+
CHAR_CARRIAGE_RETURN: '\r',
|
|
9632
|
+
CHAR_CIRCUMFLEX_ACCENT: '^',
|
|
9633
|
+
CHAR_COLON: ':',
|
|
9634
|
+
CHAR_COMMA: ',',
|
|
9635
|
+
CHAR_DOLLAR: '$',
|
|
9636
|
+
CHAR_DOT: '.',
|
|
9637
|
+
CHAR_DOUBLE_QUOTE: '"',
|
|
9638
|
+
CHAR_EQUAL: '=',
|
|
9639
|
+
CHAR_EXCLAMATION_MARK: '!',
|
|
9640
|
+
CHAR_FORM_FEED: '\f',
|
|
9641
|
+
CHAR_FORWARD_SLASH: '/',
|
|
9642
|
+
CHAR_HASH: '#',
|
|
9643
|
+
CHAR_HYPHEN_MINUS: '-',
|
|
9644
|
+
CHAR_LEFT_ANGLE_BRACKET: '<',
|
|
9645
|
+
CHAR_LEFT_CURLY_BRACE: '{',
|
|
9646
|
+
CHAR_LEFT_SQUARE_BRACKET: '[',
|
|
9647
|
+
CHAR_LINE_FEED: '\n',
|
|
9648
|
+
CHAR_NO_BREAK_SPACE: '\u00A0',
|
|
9649
|
+
CHAR_PERCENT: '%',
|
|
9650
|
+
CHAR_PLUS: '+',
|
|
9651
|
+
CHAR_QUESTION_MARK: '?',
|
|
9652
|
+
CHAR_RIGHT_ANGLE_BRACKET: '>',
|
|
9653
|
+
CHAR_RIGHT_CURLY_BRACE: '}',
|
|
9654
|
+
CHAR_RIGHT_SQUARE_BRACKET: ']',
|
|
9655
|
+
CHAR_SEMICOLON: ';',
|
|
9656
|
+
CHAR_SINGLE_QUOTE: '\'',
|
|
9657
|
+
CHAR_SPACE: ' ',
|
|
9658
|
+
CHAR_TAB: '\t',
|
|
9659
|
+
CHAR_UNDERSCORE: '_',
|
|
9660
|
+
CHAR_VERTICAL_LINE: '|',
|
|
9661
|
+
CHAR_ZERO_WIDTH_NOBREAK_SPACE: '\uFEFF'
|
|
9662
|
+
};
|
|
9663
|
+
},
|
|
9664
|
+
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
9665
|
+
"use strict";
|
|
9666
|
+
const fill = __webpack_require__("../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js");
|
|
9667
|
+
const stringify = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js");
|
|
9668
|
+
const utils = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js");
|
|
9669
|
+
const append = (queue = '', stash = '', enclose = false)=>{
|
|
9670
|
+
const result = [];
|
|
9671
|
+
queue = [].concat(queue);
|
|
9672
|
+
stash = [].concat(stash);
|
|
9673
|
+
if (!stash.length) return queue;
|
|
9674
|
+
if (!queue.length) return enclose ? utils.flatten(stash).map((ele)=>`{${ele}}`) : stash;
|
|
9675
|
+
for (const item of queue)if (Array.isArray(item)) for (const value1 of item)result.push(append(value1, stash, enclose));
|
|
9676
|
+
else for (let ele of stash){
|
|
9677
|
+
if (true === enclose && 'string' == typeof ele) ele = `{${ele}}`;
|
|
9678
|
+
result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele);
|
|
9679
|
+
}
|
|
9680
|
+
return utils.flatten(result);
|
|
9681
|
+
};
|
|
9682
|
+
const expand = (ast, options = {})=>{
|
|
9683
|
+
const rangeLimit = void 0 === options.rangeLimit ? 1000 : options.rangeLimit;
|
|
9684
|
+
const walk = (node, parent = {})=>{
|
|
9685
|
+
node.queue = [];
|
|
9686
|
+
let p = parent;
|
|
9687
|
+
let q = parent.queue;
|
|
9688
|
+
while('brace' !== p.type && 'root' !== p.type && p.parent){
|
|
9689
|
+
p = p.parent;
|
|
9690
|
+
q = p.queue;
|
|
9691
|
+
}
|
|
9692
|
+
if (node.invalid || node.dollar) {
|
|
9693
|
+
q.push(append(q.pop(), stringify(node, options)));
|
|
9694
|
+
return;
|
|
9695
|
+
}
|
|
9696
|
+
if ('brace' === node.type && true !== node.invalid && 2 === node.nodes.length) {
|
|
9697
|
+
q.push(append(q.pop(), [
|
|
9698
|
+
'{}'
|
|
9699
|
+
]));
|
|
9700
|
+
return;
|
|
9701
|
+
}
|
|
9702
|
+
if (node.nodes && node.ranges > 0) {
|
|
9703
|
+
const args = utils.reduce(node.nodes);
|
|
9704
|
+
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.');
|
|
9705
|
+
let range = fill(...args, options);
|
|
9706
|
+
if (0 === range.length) range = stringify(node, options);
|
|
9707
|
+
q.push(append(q.pop(), range));
|
|
9708
|
+
node.nodes = [];
|
|
9709
|
+
return;
|
|
9710
|
+
}
|
|
9711
|
+
const enclose = utils.encloseBrace(node);
|
|
9712
|
+
let queue = node.queue;
|
|
9713
|
+
let block = node;
|
|
9714
|
+
while('brace' !== block.type && 'root' !== block.type && block.parent){
|
|
9715
|
+
block = block.parent;
|
|
9716
|
+
queue = block.queue;
|
|
9717
|
+
}
|
|
9718
|
+
for(let i = 0; i < node.nodes.length; i++){
|
|
9719
|
+
const child = node.nodes[i];
|
|
9720
|
+
if ('comma' === child.type && 'brace' === node.type) {
|
|
9721
|
+
if (1 === i) queue.push('');
|
|
9722
|
+
queue.push('');
|
|
9723
|
+
continue;
|
|
9724
|
+
}
|
|
9725
|
+
if ('close' === child.type) {
|
|
9726
|
+
q.push(append(q.pop(), queue, enclose));
|
|
9727
|
+
continue;
|
|
9728
|
+
}
|
|
9729
|
+
if (child.value && 'open' !== child.type) {
|
|
9730
|
+
queue.push(append(queue.pop(), child.value));
|
|
9731
|
+
continue;
|
|
9732
|
+
}
|
|
9733
|
+
if (child.nodes) walk(child, node);
|
|
9734
|
+
}
|
|
9735
|
+
return queue;
|
|
9736
|
+
};
|
|
9737
|
+
return utils.flatten(walk(ast));
|
|
9738
|
+
};
|
|
9739
|
+
module.exports = expand;
|
|
9740
|
+
},
|
|
9741
|
+
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
9742
|
+
"use strict";
|
|
9743
|
+
const stringify = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js");
|
|
9744
|
+
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");
|
|
9745
|
+
const parse = (input, options = {})=>{
|
|
9746
|
+
if ('string' != typeof input) throw new TypeError('Expected a string');
|
|
9747
|
+
const opts = options || {};
|
|
9748
|
+
const max = 'number' == typeof opts.maxLength ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
9749
|
+
if (input.length > max) throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
|
|
9750
|
+
const ast = {
|
|
9751
|
+
type: 'root',
|
|
9752
|
+
input,
|
|
9753
|
+
nodes: []
|
|
9754
|
+
};
|
|
9755
|
+
const stack = [
|
|
9756
|
+
ast
|
|
9757
|
+
];
|
|
9758
|
+
let block = ast;
|
|
9759
|
+
let prev = ast;
|
|
9760
|
+
let brackets = 0;
|
|
9761
|
+
const length = input.length;
|
|
9762
|
+
let index = 0;
|
|
9763
|
+
let depth = 0;
|
|
9764
|
+
let value1;
|
|
9765
|
+
const advance = ()=>input[index++];
|
|
9766
|
+
const push = (node)=>{
|
|
9767
|
+
if ('text' === node.type && 'dot' === prev.type) prev.type = 'text';
|
|
9768
|
+
if (prev && 'text' === prev.type && 'text' === node.type) {
|
|
9769
|
+
prev.value += node.value;
|
|
9770
|
+
return;
|
|
9771
|
+
}
|
|
9772
|
+
block.nodes.push(node);
|
|
9773
|
+
node.parent = block;
|
|
9774
|
+
node.prev = prev;
|
|
9775
|
+
prev = node;
|
|
9776
|
+
return node;
|
|
9777
|
+
};
|
|
9778
|
+
push({
|
|
9779
|
+
type: 'bos'
|
|
9780
|
+
});
|
|
9781
|
+
while(index < length){
|
|
9782
|
+
block = stack[stack.length - 1];
|
|
9783
|
+
value1 = advance();
|
|
9784
|
+
if (value1 === CHAR_ZERO_WIDTH_NOBREAK_SPACE || value1 === CHAR_NO_BREAK_SPACE) continue;
|
|
9785
|
+
if (value1 === CHAR_BACKSLASH) {
|
|
9786
|
+
push({
|
|
9787
|
+
type: 'text',
|
|
9788
|
+
value: (options.keepEscaping ? value1 : '') + advance()
|
|
9789
|
+
});
|
|
9790
|
+
continue;
|
|
9791
|
+
}
|
|
9792
|
+
if (value1 === CHAR_RIGHT_SQUARE_BRACKET) {
|
|
9793
|
+
push({
|
|
9794
|
+
type: 'text',
|
|
9795
|
+
value: '\\' + value1
|
|
9796
|
+
});
|
|
9797
|
+
continue;
|
|
9798
|
+
}
|
|
9799
|
+
if (value1 === CHAR_LEFT_SQUARE_BRACKET) {
|
|
9800
|
+
brackets++;
|
|
9801
|
+
let next;
|
|
9802
|
+
while(index < length && (next = advance())){
|
|
9803
|
+
value1 += next;
|
|
9804
|
+
if (next === CHAR_LEFT_SQUARE_BRACKET) {
|
|
9805
|
+
brackets++;
|
|
9806
|
+
continue;
|
|
9807
|
+
}
|
|
9808
|
+
if (next === CHAR_BACKSLASH) {
|
|
9809
|
+
value1 += advance();
|
|
9810
|
+
continue;
|
|
9811
|
+
}
|
|
9812
|
+
if (next === CHAR_RIGHT_SQUARE_BRACKET) {
|
|
9813
|
+
brackets--;
|
|
9814
|
+
if (0 === brackets) break;
|
|
9815
|
+
}
|
|
9816
|
+
}
|
|
9817
|
+
push({
|
|
9818
|
+
type: 'text',
|
|
9819
|
+
value: value1
|
|
9820
|
+
});
|
|
9821
|
+
continue;
|
|
9822
|
+
}
|
|
9823
|
+
if (value1 === CHAR_LEFT_PARENTHESES) {
|
|
9824
|
+
block = push({
|
|
9825
|
+
type: 'paren',
|
|
9826
|
+
nodes: []
|
|
9827
|
+
});
|
|
9828
|
+
stack.push(block);
|
|
9829
|
+
push({
|
|
9830
|
+
type: 'text',
|
|
9831
|
+
value: value1
|
|
9832
|
+
});
|
|
9833
|
+
continue;
|
|
9834
|
+
}
|
|
9835
|
+
if (value1 === CHAR_RIGHT_PARENTHESES) {
|
|
9836
|
+
if ('paren' !== block.type) {
|
|
9837
|
+
push({
|
|
9838
|
+
type: 'text',
|
|
9839
|
+
value: value1
|
|
9840
|
+
});
|
|
9841
|
+
continue;
|
|
9842
|
+
}
|
|
9843
|
+
block = stack.pop();
|
|
9844
|
+
push({
|
|
9845
|
+
type: 'text',
|
|
9846
|
+
value: value1
|
|
9847
|
+
});
|
|
9848
|
+
block = stack[stack.length - 1];
|
|
9849
|
+
continue;
|
|
9850
|
+
}
|
|
9851
|
+
if (value1 === CHAR_DOUBLE_QUOTE || value1 === CHAR_SINGLE_QUOTE || value1 === CHAR_BACKTICK) {
|
|
9852
|
+
const open = value1;
|
|
9853
|
+
let next;
|
|
9854
|
+
if (true !== options.keepQuotes) value1 = '';
|
|
9855
|
+
while(index < length && (next = advance())){
|
|
9856
|
+
if (next === CHAR_BACKSLASH) {
|
|
9857
|
+
value1 += next + advance();
|
|
9858
|
+
continue;
|
|
9859
|
+
}
|
|
9860
|
+
if (next === open) {
|
|
9861
|
+
if (true === options.keepQuotes) value1 += next;
|
|
9862
|
+
break;
|
|
9863
|
+
}
|
|
9864
|
+
value1 += next;
|
|
9865
|
+
}
|
|
9866
|
+
push({
|
|
9867
|
+
type: 'text',
|
|
9868
|
+
value: value1
|
|
9869
|
+
});
|
|
9870
|
+
continue;
|
|
9871
|
+
}
|
|
9872
|
+
if (value1 === CHAR_LEFT_CURLY_BRACE) {
|
|
9873
|
+
depth++;
|
|
9874
|
+
const dollar = prev.value && '$' === prev.value.slice(-1) || true === block.dollar;
|
|
9875
|
+
const brace = {
|
|
9876
|
+
type: 'brace',
|
|
9877
|
+
open: true,
|
|
9878
|
+
close: false,
|
|
9879
|
+
dollar,
|
|
9880
|
+
depth,
|
|
9881
|
+
commas: 0,
|
|
9882
|
+
ranges: 0,
|
|
9883
|
+
nodes: []
|
|
9884
|
+
};
|
|
9885
|
+
block = push(brace);
|
|
9886
|
+
stack.push(block);
|
|
9887
|
+
push({
|
|
9888
|
+
type: 'open',
|
|
9889
|
+
value: value1
|
|
9890
|
+
});
|
|
9891
|
+
continue;
|
|
9892
|
+
}
|
|
9893
|
+
if (value1 === CHAR_RIGHT_CURLY_BRACE) {
|
|
9894
|
+
if ('brace' !== block.type) {
|
|
9895
|
+
push({
|
|
9896
|
+
type: 'text',
|
|
9897
|
+
value: value1
|
|
9898
|
+
});
|
|
9899
|
+
continue;
|
|
9900
|
+
}
|
|
9901
|
+
const type = 'close';
|
|
9902
|
+
block = stack.pop();
|
|
9903
|
+
block.close = true;
|
|
9904
|
+
push({
|
|
9905
|
+
type,
|
|
9906
|
+
value: value1
|
|
9907
|
+
});
|
|
9908
|
+
depth--;
|
|
9909
|
+
block = stack[stack.length - 1];
|
|
9910
|
+
continue;
|
|
9911
|
+
}
|
|
9912
|
+
if (value1 === CHAR_COMMA && depth > 0) {
|
|
9913
|
+
if (block.ranges > 0) {
|
|
9914
|
+
block.ranges = 0;
|
|
9915
|
+
const open = block.nodes.shift();
|
|
9916
|
+
block.nodes = [
|
|
9917
|
+
open,
|
|
9918
|
+
{
|
|
9919
|
+
type: 'text',
|
|
9920
|
+
value: stringify(block)
|
|
9921
|
+
}
|
|
9922
|
+
];
|
|
9923
|
+
}
|
|
9924
|
+
push({
|
|
9925
|
+
type: 'comma',
|
|
9926
|
+
value: value1
|
|
9927
|
+
});
|
|
9928
|
+
block.commas++;
|
|
9929
|
+
continue;
|
|
9930
|
+
}
|
|
9931
|
+
if (value1 === CHAR_DOT && depth > 0 && 0 === block.commas) {
|
|
9932
|
+
const siblings = block.nodes;
|
|
9933
|
+
if (0 === depth || 0 === siblings.length) {
|
|
9934
|
+
push({
|
|
9935
|
+
type: 'text',
|
|
9936
|
+
value: value1
|
|
9937
|
+
});
|
|
9938
|
+
continue;
|
|
9939
|
+
}
|
|
9940
|
+
if ('dot' === prev.type) {
|
|
9941
|
+
block.range = [];
|
|
9942
|
+
prev.value += value1;
|
|
9943
|
+
prev.type = 'range';
|
|
9944
|
+
if (3 !== block.nodes.length && 5 !== block.nodes.length) {
|
|
9945
|
+
block.invalid = true;
|
|
9946
|
+
block.ranges = 0;
|
|
9947
|
+
prev.type = 'text';
|
|
9948
|
+
continue;
|
|
9949
|
+
}
|
|
9950
|
+
block.ranges++;
|
|
9951
|
+
block.args = [];
|
|
9952
|
+
continue;
|
|
9953
|
+
}
|
|
9954
|
+
if ('range' === prev.type) {
|
|
9955
|
+
siblings.pop();
|
|
9956
|
+
const before = siblings[siblings.length - 1];
|
|
9957
|
+
before.value += prev.value + value1;
|
|
9958
|
+
prev = before;
|
|
9959
|
+
block.ranges--;
|
|
9960
|
+
continue;
|
|
9961
|
+
}
|
|
9962
|
+
push({
|
|
9963
|
+
type: 'dot',
|
|
9964
|
+
value: value1
|
|
9965
|
+
});
|
|
9966
|
+
continue;
|
|
9967
|
+
}
|
|
9968
|
+
push({
|
|
9969
|
+
type: 'text',
|
|
9970
|
+
value: value1
|
|
9971
|
+
});
|
|
9972
|
+
}
|
|
9973
|
+
do {
|
|
9974
|
+
block = stack.pop();
|
|
9975
|
+
if ('root' !== block.type) {
|
|
9976
|
+
block.nodes.forEach((node)=>{
|
|
9977
|
+
if (!node.nodes) {
|
|
9978
|
+
if ('open' === node.type) node.isOpen = true;
|
|
9979
|
+
if ('close' === node.type) node.isClose = true;
|
|
9980
|
+
if (!node.nodes) node.type = 'text';
|
|
9981
|
+
node.invalid = true;
|
|
9982
|
+
}
|
|
9983
|
+
});
|
|
9984
|
+
const parent = stack[stack.length - 1];
|
|
9985
|
+
const index = parent.nodes.indexOf(block);
|
|
9986
|
+
parent.nodes.splice(index, 1, ...block.nodes);
|
|
9987
|
+
}
|
|
9988
|
+
}while (stack.length > 0);
|
|
9989
|
+
push({
|
|
9990
|
+
type: 'eos'
|
|
9991
|
+
});
|
|
9992
|
+
return ast;
|
|
9993
|
+
};
|
|
9994
|
+
module.exports = parse;
|
|
9995
|
+
},
|
|
9996
|
+
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
9997
|
+
"use strict";
|
|
9998
|
+
const utils = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js");
|
|
9999
|
+
module.exports = (ast, options = {})=>{
|
|
10000
|
+
const stringify = (node, parent = {})=>{
|
|
10001
|
+
const invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent);
|
|
10002
|
+
const invalidNode = true === node.invalid && true === options.escapeInvalid;
|
|
10003
|
+
let output = '';
|
|
10004
|
+
if (node.value) {
|
|
10005
|
+
if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) return '\\' + node.value;
|
|
10006
|
+
return node.value;
|
|
10007
|
+
}
|
|
10008
|
+
if (node.value) return node.value;
|
|
10009
|
+
if (node.nodes) for (const child of node.nodes)output += stringify(child);
|
|
10010
|
+
return output;
|
|
10011
|
+
};
|
|
10012
|
+
return stringify(ast);
|
|
10013
|
+
};
|
|
10014
|
+
},
|
|
10015
|
+
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js": function(__unused_webpack_module, exports1) {
|
|
10016
|
+
"use strict";
|
|
10017
|
+
exports1.isInteger = (num)=>{
|
|
10018
|
+
if ('number' == typeof num) return Number.isInteger(num);
|
|
10019
|
+
if ('string' == typeof num && '' !== num.trim()) return Number.isInteger(Number(num));
|
|
10020
|
+
return false;
|
|
10021
|
+
};
|
|
10022
|
+
exports1.find = (node, type)=>node.nodes.find((node)=>node.type === type);
|
|
10023
|
+
exports1.exceedsLimit = (min, max, step = 1, limit)=>{
|
|
10024
|
+
if (false === limit) return false;
|
|
10025
|
+
if (!exports1.isInteger(min) || !exports1.isInteger(max)) return false;
|
|
10026
|
+
return (Number(max) - Number(min)) / Number(step) >= limit;
|
|
10027
|
+
};
|
|
10028
|
+
exports1.escapeNode = (block, n = 0, type)=>{
|
|
10029
|
+
const node = block.nodes[n];
|
|
10030
|
+
if (!node) return;
|
|
10031
|
+
if (type && node.type === type || 'open' === node.type || 'close' === node.type) {
|
|
10032
|
+
if (true !== node.escaped) {
|
|
10033
|
+
node.value = '\\' + node.value;
|
|
10034
|
+
node.escaped = true;
|
|
10035
|
+
}
|
|
10036
|
+
}
|
|
10037
|
+
};
|
|
10038
|
+
exports1.encloseBrace = (node)=>{
|
|
10039
|
+
if ('brace' !== node.type) return false;
|
|
10040
|
+
if (node.commas >> 0 + node.ranges >> 0 === 0) {
|
|
10041
|
+
node.invalid = true;
|
|
10042
|
+
return true;
|
|
10043
|
+
}
|
|
10044
|
+
return false;
|
|
10045
|
+
};
|
|
10046
|
+
exports1.isInvalidBrace = (block)=>{
|
|
10047
|
+
if ('brace' !== block.type) return false;
|
|
10048
|
+
if (true === block.invalid || block.dollar) return true;
|
|
10049
|
+
if (block.commas >> 0 + block.ranges >> 0 === 0) {
|
|
10050
|
+
block.invalid = true;
|
|
10051
|
+
return true;
|
|
10052
|
+
}
|
|
10053
|
+
if (true !== block.open || true !== block.close) {
|
|
10054
|
+
block.invalid = true;
|
|
10055
|
+
return true;
|
|
10056
|
+
}
|
|
10057
|
+
return false;
|
|
10058
|
+
};
|
|
10059
|
+
exports1.isOpenOrClose = (node)=>{
|
|
10060
|
+
if ('open' === node.type || 'close' === node.type) return true;
|
|
10061
|
+
return true === node.open || true === node.close;
|
|
10062
|
+
};
|
|
10063
|
+
exports1.reduce = (nodes)=>nodes.reduce((acc, node)=>{
|
|
10064
|
+
if ('text' === node.type) acc.push(node.value);
|
|
10065
|
+
if ('range' === node.type) node.type = 'text';
|
|
10066
|
+
return acc;
|
|
10067
|
+
}, []);
|
|
10068
|
+
exports1.flatten = (...args)=>{
|
|
10069
|
+
const result = [];
|
|
10070
|
+
const flat = (arr)=>{
|
|
10071
|
+
for(let i = 0; i < arr.length; i++){
|
|
10072
|
+
const ele = arr[i];
|
|
10073
|
+
if (Array.isArray(ele)) {
|
|
10074
|
+
flat(ele);
|
|
10075
|
+
continue;
|
|
10076
|
+
}
|
|
10077
|
+
if (void 0 !== ele) result.push(ele);
|
|
10078
|
+
}
|
|
10079
|
+
return result;
|
|
10080
|
+
};
|
|
10081
|
+
flat(args);
|
|
10082
|
+
return result;
|
|
10083
|
+
};
|
|
10084
|
+
},
|
|
9532
10085
|
"../../node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
9533
10086
|
"use strict";
|
|
9534
10087
|
const cliBoxes = __webpack_require__("../../node_modules/.pnpm/cli-boxes@3.0.0/node_modules/cli-boxes/boxes.json");
|
|
@@ -11272,37 +11825,209 @@ var __webpack_modules__ = {
|
|
|
11272
11825
|
p.catch(noop);
|
|
11273
11826
|
return p;
|
|
11274
11827
|
}
|
|
11275
|
-
function unshift(value1) {
|
|
11276
|
-
var p = new Promise(function(resolve, reject) {
|
|
11277
|
-
unshiftCb(value1, function(err, result) {
|
|
11278
|
-
if (err) {
|
|
11279
|
-
reject(err);
|
|
11280
|
-
return;
|
|
11281
|
-
}
|
|
11282
|
-
resolve(result);
|
|
11283
|
-
});
|
|
11284
|
-
});
|
|
11285
|
-
p.catch(noop);
|
|
11286
|
-
return p;
|
|
11828
|
+
function unshift(value1) {
|
|
11829
|
+
var p = new Promise(function(resolve, reject) {
|
|
11830
|
+
unshiftCb(value1, function(err, result) {
|
|
11831
|
+
if (err) {
|
|
11832
|
+
reject(err);
|
|
11833
|
+
return;
|
|
11834
|
+
}
|
|
11835
|
+
resolve(result);
|
|
11836
|
+
});
|
|
11837
|
+
});
|
|
11838
|
+
p.catch(noop);
|
|
11839
|
+
return p;
|
|
11840
|
+
}
|
|
11841
|
+
function drained() {
|
|
11842
|
+
if (queue.idle()) return new Promise(function(resolve) {
|
|
11843
|
+
resolve();
|
|
11844
|
+
});
|
|
11845
|
+
var previousDrain = queue.drain;
|
|
11846
|
+
var p = new Promise(function(resolve) {
|
|
11847
|
+
queue.drain = function() {
|
|
11848
|
+
previousDrain();
|
|
11849
|
+
resolve();
|
|
11850
|
+
};
|
|
11851
|
+
});
|
|
11852
|
+
return p;
|
|
11853
|
+
}
|
|
11854
|
+
}
|
|
11855
|
+
module.exports = fastqueue;
|
|
11856
|
+
module.exports.promise = queueAsPromised;
|
|
11857
|
+
},
|
|
11858
|
+
"../../node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
11859
|
+
"use strict";
|
|
11860
|
+
/*!
|
|
11861
|
+
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
11862
|
+
*
|
|
11863
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
11864
|
+
* Licensed under the MIT License.
|
|
11865
|
+
*/ const util = __webpack_require__("util");
|
|
11866
|
+
const toRegexRange = __webpack_require__("../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js");
|
|
11867
|
+
const isObject = (val)=>null !== val && 'object' == typeof val && !Array.isArray(val);
|
|
11868
|
+
const transform = (toNumber)=>(value1)=>true === toNumber ? Number(value1) : String(value1);
|
|
11869
|
+
const isValidValue = (value1)=>'number' == typeof value1 || 'string' == typeof value1 && '' !== value1;
|
|
11870
|
+
const isNumber = (num)=>Number.isInteger(+num);
|
|
11871
|
+
const zeros = (input)=>{
|
|
11872
|
+
let value1 = `${input}`;
|
|
11873
|
+
let index = -1;
|
|
11874
|
+
if ('-' === value1[0]) value1 = value1.slice(1);
|
|
11875
|
+
if ('0' === value1) return false;
|
|
11876
|
+
while('0' === value1[++index]);
|
|
11877
|
+
return index > 0;
|
|
11878
|
+
};
|
|
11879
|
+
const stringify = (start, end, options)=>{
|
|
11880
|
+
if ('string' == typeof start || 'string' == typeof end) return true;
|
|
11881
|
+
return true === options.stringify;
|
|
11882
|
+
};
|
|
11883
|
+
const pad = (input, maxLength, toNumber)=>{
|
|
11884
|
+
if (maxLength > 0) {
|
|
11885
|
+
let dash = '-' === input[0] ? '-' : '';
|
|
11886
|
+
if (dash) input = input.slice(1);
|
|
11887
|
+
input = dash + input.padStart(dash ? maxLength - 1 : maxLength, '0');
|
|
11888
|
+
}
|
|
11889
|
+
if (false === toNumber) return String(input);
|
|
11890
|
+
return input;
|
|
11891
|
+
};
|
|
11892
|
+
const toMaxLen = (input, maxLength)=>{
|
|
11893
|
+
let negative = '-' === input[0] ? '-' : '';
|
|
11894
|
+
if (negative) {
|
|
11895
|
+
input = input.slice(1);
|
|
11896
|
+
maxLength--;
|
|
11897
|
+
}
|
|
11898
|
+
while(input.length < maxLength)input = '0' + input;
|
|
11899
|
+
return negative ? '-' + input : input;
|
|
11900
|
+
};
|
|
11901
|
+
const toSequence = (parts, options)=>{
|
|
11902
|
+
parts.negatives.sort((a, b)=>a < b ? -1 : a > b ? 1 : 0);
|
|
11903
|
+
parts.positives.sort((a, b)=>a < b ? -1 : a > b ? 1 : 0);
|
|
11904
|
+
let prefix = options.capture ? '' : '?:';
|
|
11905
|
+
let positives = '';
|
|
11906
|
+
let negatives = '';
|
|
11907
|
+
let result;
|
|
11908
|
+
if (parts.positives.length) positives = parts.positives.join('|');
|
|
11909
|
+
if (parts.negatives.length) negatives = `-(${prefix}${parts.negatives.join('|')})`;
|
|
11910
|
+
result = positives && negatives ? `${positives}|${negatives}` : positives || negatives;
|
|
11911
|
+
if (options.wrap) return `(${prefix}${result})`;
|
|
11912
|
+
return result;
|
|
11913
|
+
};
|
|
11914
|
+
const toRange = (a, b, isNumbers, options)=>{
|
|
11915
|
+
if (isNumbers) return toRegexRange(a, b, {
|
|
11916
|
+
wrap: false,
|
|
11917
|
+
...options
|
|
11918
|
+
});
|
|
11919
|
+
let start = String.fromCharCode(a);
|
|
11920
|
+
if (a === b) return start;
|
|
11921
|
+
let stop = String.fromCharCode(b);
|
|
11922
|
+
return `[${start}-${stop}]`;
|
|
11923
|
+
};
|
|
11924
|
+
const toRegex = (start, end, options)=>{
|
|
11925
|
+
if (Array.isArray(start)) {
|
|
11926
|
+
let wrap = true === options.wrap;
|
|
11927
|
+
let prefix = options.capture ? '' : '?:';
|
|
11928
|
+
return wrap ? `(${prefix}${start.join('|')})` : start.join('|');
|
|
11929
|
+
}
|
|
11930
|
+
return toRegexRange(start, end, options);
|
|
11931
|
+
};
|
|
11932
|
+
const rangeError = (...args)=>new RangeError('Invalid range arguments: ' + util.inspect(...args));
|
|
11933
|
+
const invalidRange = (start, end, options)=>{
|
|
11934
|
+
if (true === options.strictRanges) throw rangeError([
|
|
11935
|
+
start,
|
|
11936
|
+
end
|
|
11937
|
+
]);
|
|
11938
|
+
return [];
|
|
11939
|
+
};
|
|
11940
|
+
const invalidStep = (step, options)=>{
|
|
11941
|
+
if (true === options.strictRanges) throw new TypeError(`Expected step "${step}" to be a number`);
|
|
11942
|
+
return [];
|
|
11943
|
+
};
|
|
11944
|
+
const fillNumbers = (start, end, step = 1, options = {})=>{
|
|
11945
|
+
let a = Number(start);
|
|
11946
|
+
let b = Number(end);
|
|
11947
|
+
if (!Number.isInteger(a) || !Number.isInteger(b)) {
|
|
11948
|
+
if (true === options.strictRanges) throw rangeError([
|
|
11949
|
+
start,
|
|
11950
|
+
end
|
|
11951
|
+
]);
|
|
11952
|
+
return [];
|
|
11953
|
+
}
|
|
11954
|
+
if (0 === a) a = 0;
|
|
11955
|
+
if (0 === b) b = 0;
|
|
11956
|
+
let descending = a > b;
|
|
11957
|
+
let startString = String(start);
|
|
11958
|
+
let endString = String(end);
|
|
11959
|
+
let stepString = String(step);
|
|
11960
|
+
step = Math.max(Math.abs(step), 1);
|
|
11961
|
+
let padded = zeros(startString) || zeros(endString) || zeros(stepString);
|
|
11962
|
+
let maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0;
|
|
11963
|
+
let toNumber = false === padded && false === stringify(start, end, options);
|
|
11964
|
+
let format = options.transform || transform(toNumber);
|
|
11965
|
+
if (options.toRegex && 1 === step) return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), true, options);
|
|
11966
|
+
let parts = {
|
|
11967
|
+
negatives: [],
|
|
11968
|
+
positives: []
|
|
11969
|
+
};
|
|
11970
|
+
let push = (num)=>parts[num < 0 ? 'negatives' : 'positives'].push(Math.abs(num));
|
|
11971
|
+
let range = [];
|
|
11972
|
+
let index = 0;
|
|
11973
|
+
while(descending ? a >= b : a <= b){
|
|
11974
|
+
if (true === options.toRegex && step > 1) push(a);
|
|
11975
|
+
else range.push(pad(format(a, index), maxLen, toNumber));
|
|
11976
|
+
a = descending ? a - step : a + step;
|
|
11977
|
+
index++;
|
|
11287
11978
|
}
|
|
11288
|
-
|
|
11289
|
-
|
|
11290
|
-
|
|
11291
|
-
|
|
11292
|
-
|
|
11293
|
-
|
|
11294
|
-
|
|
11295
|
-
|
|
11296
|
-
|
|
11297
|
-
|
|
11298
|
-
|
|
11299
|
-
|
|
11979
|
+
if (true === options.toRegex) return step > 1 ? toSequence(parts, options) : toRegex(range, null, {
|
|
11980
|
+
wrap: false,
|
|
11981
|
+
...options
|
|
11982
|
+
});
|
|
11983
|
+
return range;
|
|
11984
|
+
};
|
|
11985
|
+
const fillLetters = (start, end, step = 1, options = {})=>{
|
|
11986
|
+
if (!isNumber(start) && start.length > 1 || !isNumber(end) && end.length > 1) return invalidRange(start, end, options);
|
|
11987
|
+
let format = options.transform || ((val)=>String.fromCharCode(val));
|
|
11988
|
+
let a = `${start}`.charCodeAt(0);
|
|
11989
|
+
let b = `${end}`.charCodeAt(0);
|
|
11990
|
+
let descending = a > b;
|
|
11991
|
+
let min = Math.min(a, b);
|
|
11992
|
+
let max = Math.max(a, b);
|
|
11993
|
+
if (options.toRegex && 1 === step) return toRange(min, max, false, options);
|
|
11994
|
+
let range = [];
|
|
11995
|
+
let index = 0;
|
|
11996
|
+
while(descending ? a >= b : a <= b){
|
|
11997
|
+
range.push(format(a, index));
|
|
11998
|
+
a = descending ? a - step : a + step;
|
|
11999
|
+
index++;
|
|
11300
12000
|
}
|
|
11301
|
-
|
|
11302
|
-
|
|
11303
|
-
|
|
12001
|
+
if (true === options.toRegex) return toRegex(range, null, {
|
|
12002
|
+
wrap: false,
|
|
12003
|
+
options
|
|
12004
|
+
});
|
|
12005
|
+
return range;
|
|
12006
|
+
};
|
|
12007
|
+
const fill = (start, end, step, options = {})=>{
|
|
12008
|
+
if (null == end && isValidValue(start)) return [
|
|
12009
|
+
start
|
|
12010
|
+
];
|
|
12011
|
+
if (!isValidValue(start) || !isValidValue(end)) return invalidRange(start, end, options);
|
|
12012
|
+
if ('function' == typeof step) return fill(start, end, 1, {
|
|
12013
|
+
transform: step
|
|
12014
|
+
});
|
|
12015
|
+
if (isObject(step)) return fill(start, end, 0, step);
|
|
12016
|
+
let opts = {
|
|
12017
|
+
...options
|
|
12018
|
+
};
|
|
12019
|
+
if (true === opts.capture) opts.wrap = true;
|
|
12020
|
+
step = step || opts.step || 1;
|
|
12021
|
+
if (!isNumber(step)) {
|
|
12022
|
+
if (null != step && !isObject(step)) return invalidStep(step, opts);
|
|
12023
|
+
return fill(start, end, 1, step);
|
|
12024
|
+
}
|
|
12025
|
+
if (isNumber(start) && isNumber(end)) return fillNumbers(start, end, step, opts);
|
|
12026
|
+
return fillLetters(start, end, Math.max(Math.abs(step), 1), opts);
|
|
12027
|
+
};
|
|
12028
|
+
module.exports = fill;
|
|
11304
12029
|
},
|
|
11305
|
-
"../../node_modules/.pnpm/fill-range@7.
|
|
12030
|
+
"../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
11306
12031
|
"use strict";
|
|
11307
12032
|
/*!
|
|
11308
12033
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
@@ -11345,15 +12070,15 @@ var __webpack_modules__ = {
|
|
|
11345
12070
|
while(input.length < maxLength)input = '0' + input;
|
|
11346
12071
|
return negative ? '-' + input : input;
|
|
11347
12072
|
};
|
|
11348
|
-
const toSequence = (parts, options)=>{
|
|
12073
|
+
const toSequence = (parts, options, maxLen)=>{
|
|
11349
12074
|
parts.negatives.sort((a, b)=>a < b ? -1 : a > b ? 1 : 0);
|
|
11350
12075
|
parts.positives.sort((a, b)=>a < b ? -1 : a > b ? 1 : 0);
|
|
11351
12076
|
let prefix = options.capture ? '' : '?:';
|
|
11352
12077
|
let positives = '';
|
|
11353
12078
|
let negatives = '';
|
|
11354
12079
|
let result;
|
|
11355
|
-
if (parts.positives.length) positives = parts.positives.join('|');
|
|
11356
|
-
if (parts.negatives.length) negatives = `-(${prefix}${parts.negatives.join('|')})`;
|
|
12080
|
+
if (parts.positives.length) positives = parts.positives.map((v)=>toMaxLen(String(v), maxLen)).join('|');
|
|
12081
|
+
if (parts.negatives.length) negatives = `-(${prefix}${parts.negatives.map((v)=>toMaxLen(String(v), maxLen)).join('|')})`;
|
|
11357
12082
|
result = positives && negatives ? `${positives}|${negatives}` : positives || negatives;
|
|
11358
12083
|
if (options.wrap) return `(${prefix}${result})`;
|
|
11359
12084
|
return result;
|
|
@@ -11423,7 +12148,7 @@ var __webpack_modules__ = {
|
|
|
11423
12148
|
a = descending ? a - step : a + step;
|
|
11424
12149
|
index++;
|
|
11425
12150
|
}
|
|
11426
|
-
if (true === options.toRegex) return step > 1 ? toSequence(parts, options) : toRegex(range, null, {
|
|
12151
|
+
if (true === options.toRegex) return step > 1 ? toSequence(parts, options, maxLen) : toRegex(range, null, {
|
|
11427
12152
|
wrap: false,
|
|
11428
12153
|
...options
|
|
11429
12154
|
});
|
|
@@ -11476,7 +12201,7 @@ var __webpack_modules__ = {
|
|
|
11476
12201
|
},
|
|
11477
12202
|
"../../node_modules/.pnpm/git-up@7.0.0/node_modules/git-up/lib/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
11478
12203
|
"use strict";
|
|
11479
|
-
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.
|
|
12204
|
+
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");
|
|
11480
12205
|
function gitUp(input) {
|
|
11481
12206
|
var output = parseUrl(input);
|
|
11482
12207
|
output.token = "";
|
|
@@ -11962,9 +12687,9 @@ var __webpack_modules__ = {
|
|
|
11962
12687
|
return false;
|
|
11963
12688
|
};
|
|
11964
12689
|
},
|
|
11965
|
-
"../../node_modules/.pnpm/is-ssh@1.4.
|
|
12690
|
+
"../../node_modules/.pnpm/is-ssh@1.4.1/node_modules/is-ssh/lib/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
11966
12691
|
"use strict";
|
|
11967
|
-
var protocols = __webpack_require__("../../node_modules/.pnpm/protocols@2.0.
|
|
12692
|
+
var protocols = __webpack_require__("../../node_modules/.pnpm/protocols@2.0.2/node_modules/protocols/lib/index.js");
|
|
11968
12693
|
function isSsh(input) {
|
|
11969
12694
|
if (Array.isArray(input)) return -1 !== input.indexOf("ssh") || -1 !== input.indexOf("rsync");
|
|
11970
12695
|
if ("string" != typeof input) return false;
|
|
@@ -18013,6 +18738,152 @@ var __webpack_modules__ = {
|
|
|
18013
18738
|
};
|
|
18014
18739
|
module.exports = micromatch;
|
|
18015
18740
|
},
|
|
18741
|
+
"../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
18742
|
+
"use strict";
|
|
18743
|
+
const util = __webpack_require__("util");
|
|
18744
|
+
const braces = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js");
|
|
18745
|
+
const picomatch = __webpack_require__("../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.js");
|
|
18746
|
+
const utils = __webpack_require__("../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js");
|
|
18747
|
+
const isEmptyString = (v)=>'' === v || './' === v;
|
|
18748
|
+
const hasBraces = (v)=>{
|
|
18749
|
+
const index = v.indexOf('{');
|
|
18750
|
+
return index > -1 && v.indexOf('}', index) > -1;
|
|
18751
|
+
};
|
|
18752
|
+
const micromatch = (list, patterns, options)=>{
|
|
18753
|
+
patterns = [].concat(patterns);
|
|
18754
|
+
list = [].concat(list);
|
|
18755
|
+
let omit = new Set();
|
|
18756
|
+
let keep = new Set();
|
|
18757
|
+
let items = new Set();
|
|
18758
|
+
let negatives = 0;
|
|
18759
|
+
let onResult = (state)=>{
|
|
18760
|
+
items.add(state.output);
|
|
18761
|
+
if (options && options.onResult) options.onResult(state);
|
|
18762
|
+
};
|
|
18763
|
+
for(let i = 0; i < patterns.length; i++){
|
|
18764
|
+
let isMatch = picomatch(String(patterns[i]), {
|
|
18765
|
+
...options,
|
|
18766
|
+
onResult
|
|
18767
|
+
}, true);
|
|
18768
|
+
let negated = isMatch.state.negated || isMatch.state.negatedExtglob;
|
|
18769
|
+
if (negated) negatives++;
|
|
18770
|
+
for (let item of list){
|
|
18771
|
+
let matched = isMatch(item, true);
|
|
18772
|
+
let match = negated ? !matched.isMatch : matched.isMatch;
|
|
18773
|
+
if (!!match) {
|
|
18774
|
+
if (negated) omit.add(matched.output);
|
|
18775
|
+
else {
|
|
18776
|
+
omit.delete(matched.output);
|
|
18777
|
+
keep.add(matched.output);
|
|
18778
|
+
}
|
|
18779
|
+
}
|
|
18780
|
+
}
|
|
18781
|
+
}
|
|
18782
|
+
let result = negatives === patterns.length ? [
|
|
18783
|
+
...items
|
|
18784
|
+
] : [
|
|
18785
|
+
...keep
|
|
18786
|
+
];
|
|
18787
|
+
let matches = result.filter((item)=>!omit.has(item));
|
|
18788
|
+
if (options && 0 === matches.length) {
|
|
18789
|
+
if (true === options.failglob) throw new Error(`No matches found for "${patterns.join(', ')}"`);
|
|
18790
|
+
if (true === options.nonull || true === options.nullglob) return options.unescape ? patterns.map((p)=>p.replace(/\\/g, '')) : patterns;
|
|
18791
|
+
}
|
|
18792
|
+
return matches;
|
|
18793
|
+
};
|
|
18794
|
+
micromatch.match = micromatch;
|
|
18795
|
+
micromatch.matcher = (pattern, options)=>picomatch(pattern, options);
|
|
18796
|
+
micromatch.isMatch = (str, patterns, options)=>picomatch(patterns, options)(str);
|
|
18797
|
+
micromatch.any = micromatch.isMatch;
|
|
18798
|
+
micromatch.not = (list, patterns, options = {})=>{
|
|
18799
|
+
patterns = [].concat(patterns).map(String);
|
|
18800
|
+
let result = new Set();
|
|
18801
|
+
let items = [];
|
|
18802
|
+
let onResult = (state)=>{
|
|
18803
|
+
if (options.onResult) options.onResult(state);
|
|
18804
|
+
items.push(state.output);
|
|
18805
|
+
};
|
|
18806
|
+
let matches = new Set(micromatch(list, patterns, {
|
|
18807
|
+
...options,
|
|
18808
|
+
onResult
|
|
18809
|
+
}));
|
|
18810
|
+
for (let item of items)if (!matches.has(item)) result.add(item);
|
|
18811
|
+
return [
|
|
18812
|
+
...result
|
|
18813
|
+
];
|
|
18814
|
+
};
|
|
18815
|
+
micromatch.contains = (str, pattern, options)=>{
|
|
18816
|
+
if ('string' != typeof str) throw new TypeError(`Expected a string: "${util.inspect(str)}"`);
|
|
18817
|
+
if (Array.isArray(pattern)) return pattern.some((p)=>micromatch.contains(str, p, options));
|
|
18818
|
+
if ('string' == typeof pattern) {
|
|
18819
|
+
if (isEmptyString(str) || isEmptyString(pattern)) return false;
|
|
18820
|
+
if (str.includes(pattern) || str.startsWith('./') && str.slice(2).includes(pattern)) return true;
|
|
18821
|
+
}
|
|
18822
|
+
return micromatch.isMatch(str, pattern, {
|
|
18823
|
+
...options,
|
|
18824
|
+
contains: true
|
|
18825
|
+
});
|
|
18826
|
+
};
|
|
18827
|
+
micromatch.matchKeys = (obj, patterns, options)=>{
|
|
18828
|
+
if (!utils.isObject(obj)) throw new TypeError('Expected the first argument to be an object');
|
|
18829
|
+
let keys = micromatch(Object.keys(obj), patterns, options);
|
|
18830
|
+
let res = {};
|
|
18831
|
+
for (let key of keys)res[key] = obj[key];
|
|
18832
|
+
return res;
|
|
18833
|
+
};
|
|
18834
|
+
micromatch.some = (list, patterns, options)=>{
|
|
18835
|
+
let items = [].concat(list);
|
|
18836
|
+
for (let pattern of [].concat(patterns)){
|
|
18837
|
+
let isMatch = picomatch(String(pattern), options);
|
|
18838
|
+
if (items.some((item)=>isMatch(item))) return true;
|
|
18839
|
+
}
|
|
18840
|
+
return false;
|
|
18841
|
+
};
|
|
18842
|
+
micromatch.every = (list, patterns, options)=>{
|
|
18843
|
+
let items = [].concat(list);
|
|
18844
|
+
for (let pattern of [].concat(patterns)){
|
|
18845
|
+
let isMatch = picomatch(String(pattern), options);
|
|
18846
|
+
if (!items.every((item)=>isMatch(item))) return false;
|
|
18847
|
+
}
|
|
18848
|
+
return true;
|
|
18849
|
+
};
|
|
18850
|
+
micromatch.all = (str, patterns, options)=>{
|
|
18851
|
+
if ('string' != typeof str) throw new TypeError(`Expected a string: "${util.inspect(str)}"`);
|
|
18852
|
+
return [].concat(patterns).every((p)=>picomatch(p, options)(str));
|
|
18853
|
+
};
|
|
18854
|
+
micromatch.capture = (glob, input, options)=>{
|
|
18855
|
+
let posix = utils.isWindows(options);
|
|
18856
|
+
let regex = picomatch.makeRe(String(glob), {
|
|
18857
|
+
...options,
|
|
18858
|
+
capture: true
|
|
18859
|
+
});
|
|
18860
|
+
let match = regex.exec(posix ? utils.toPosixSlashes(input) : input);
|
|
18861
|
+
if (match) return match.slice(1).map((v)=>void 0 === v ? '' : v);
|
|
18862
|
+
};
|
|
18863
|
+
micromatch.makeRe = (...args)=>picomatch.makeRe(...args);
|
|
18864
|
+
micromatch.scan = (...args)=>picomatch.scan(...args);
|
|
18865
|
+
micromatch.parse = (patterns, options)=>{
|
|
18866
|
+
let res = [];
|
|
18867
|
+
for (let pattern of [].concat(patterns || []))for (let str of braces(String(pattern), options))res.push(picomatch.parse(str, options));
|
|
18868
|
+
return res;
|
|
18869
|
+
};
|
|
18870
|
+
micromatch.braces = (pattern, options)=>{
|
|
18871
|
+
if ('string' != typeof pattern) throw new TypeError('Expected a string');
|
|
18872
|
+
if (options && true === options.nobrace || !hasBraces(pattern)) return [
|
|
18873
|
+
pattern
|
|
18874
|
+
];
|
|
18875
|
+
return braces(pattern, options);
|
|
18876
|
+
};
|
|
18877
|
+
micromatch.braceExpand = (pattern, options)=>{
|
|
18878
|
+
if ('string' != typeof pattern) throw new TypeError('Expected a string');
|
|
18879
|
+
return micromatch.braces(pattern, {
|
|
18880
|
+
...options,
|
|
18881
|
+
expand: true
|
|
18882
|
+
});
|
|
18883
|
+
};
|
|
18884
|
+
micromatch.hasBraces = hasBraces;
|
|
18885
|
+
module.exports = micromatch;
|
|
18886
|
+
},
|
|
18016
18887
|
"../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js": function(module) {
|
|
18017
18888
|
var s = 1000;
|
|
18018
18889
|
var m = 60 * s;
|
|
@@ -21641,9 +22512,9 @@ var __webpack_modules__ = {
|
|
|
21641
22512
|
}
|
|
21642
22513
|
module.exports = ZStream;
|
|
21643
22514
|
},
|
|
21644
|
-
"../../node_modules/.pnpm/parse-path@7.0.
|
|
22515
|
+
"../../node_modules/.pnpm/parse-path@7.0.1/node_modules/parse-path/lib/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
21645
22516
|
"use strict";
|
|
21646
|
-
var protocols = __webpack_require__("../../node_modules/.pnpm/protocols@2.0.
|
|
22517
|
+
var protocols = __webpack_require__("../../node_modules/.pnpm/protocols@2.0.2/node_modules/protocols/lib/index.js");
|
|
21647
22518
|
function parsePath(url) {
|
|
21648
22519
|
var output = {
|
|
21649
22520
|
protocols: [],
|
|
@@ -21695,7 +22566,7 @@ var __webpack_modules__ = {
|
|
|
21695
22566
|
},
|
|
21696
22567
|
"../../node_modules/.pnpm/parse-url@8.1.0/node_modules/parse-url/dist/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
21697
22568
|
"use strict";
|
|
21698
|
-
var parsePath = __webpack_require__("../../node_modules/.pnpm/parse-path@7.0.
|
|
22569
|
+
var parsePath = __webpack_require__("../../node_modules/.pnpm/parse-path@7.0.1/node_modules/parse-path/lib/index.js");
|
|
21699
22570
|
function _interopDefaultLegacy(e) {
|
|
21700
22571
|
return e && 'object' == typeof e && 'default' in e ? e : {
|
|
21701
22572
|
default: e
|
|
@@ -23407,7 +24278,7 @@ var __webpack_modules__ = {
|
|
|
23407
24278
|
}
|
|
23408
24279
|
}
|
|
23409
24280
|
},
|
|
23410
|
-
"../../node_modules/.pnpm/protocols@2.0.
|
|
24281
|
+
"../../node_modules/.pnpm/protocols@2.0.2/node_modules/protocols/lib/index.js": function(module) {
|
|
23411
24282
|
"use strict";
|
|
23412
24283
|
module.exports = function(input, first) {
|
|
23413
24284
|
if (true === first) first = 0;
|
|
@@ -26423,7 +27294,7 @@ var __webpack_modules__ = {
|
|
|
26423
27294
|
});
|
|
26424
27295
|
exports1.createPackageGraph = void 0;
|
|
26425
27296
|
const createDependencyMap_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/graph/createDependencyMap.js");
|
|
26426
|
-
const micromatch_1 = __importDefault(__webpack_require__("../../node_modules/.pnpm/micromatch@4.0.
|
|
27297
|
+
const micromatch_1 = __importDefault(__webpack_require__("../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js"));
|
|
26427
27298
|
function createPackageGraph(packages, filters) {
|
|
26428
27299
|
const packageSet = new Set();
|
|
26429
27300
|
const edges = [];
|
|
@@ -27028,7 +27899,7 @@ var __webpack_modules__ = {
|
|
|
27028
27899
|
value: true
|
|
27029
27900
|
});
|
|
27030
27901
|
exports1.getScopedPackages = void 0;
|
|
27031
|
-
const micromatch_1 = __importDefault(__webpack_require__("../../node_modules/.pnpm/micromatch@4.0.
|
|
27902
|
+
const micromatch_1 = __importDefault(__webpack_require__("../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js"));
|
|
27032
27903
|
function getScopedPackages(search, packages) {
|
|
27033
27904
|
const packageNames = Array.isArray(packages) ? packages : Object.keys(packages);
|
|
27034
27905
|
const results = new Set();
|
|
@@ -27172,7 +28043,7 @@ var __webpack_modules__ = {
|
|
|
27172
28043
|
value: true
|
|
27173
28044
|
});
|
|
27174
28045
|
exports1.getPackagesByFiles = void 0;
|
|
27175
|
-
const micromatch_1 = __importDefault(__webpack_require__("../../node_modules/.pnpm/micromatch@4.0.
|
|
28046
|
+
const micromatch_1 = __importDefault(__webpack_require__("../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js"));
|
|
27176
28047
|
const path_1 = __importDefault(__webpack_require__("path"));
|
|
27177
28048
|
const getWorkspaces_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/getWorkspaces.js");
|
|
27178
28049
|
function getPackagesByFiles(workspaceRoot, files, ignoreGlobs = [], returnAllPackagesOnNoMatch = false) {
|