testplane 8.35.0 → 8.35.2

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.
Files changed (49) hide show
  1. package/build/package.json +3 -1
  2. package/build/src/browser/cdp/selectivity/debug.d.ts +2 -0
  3. package/build/src/browser/cdp/selectivity/debug.js +9 -0
  4. package/build/src/browser/cdp/selectivity/debug.js.map +1 -0
  5. package/build/src/browser/cdp/selectivity/hash-provider.d.ts +6 -0
  6. package/build/src/browser/cdp/selectivity/hash-provider.js +81 -0
  7. package/build/src/browser/cdp/selectivity/hash-provider.js.map +1 -0
  8. package/build/src/browser/cdp/selectivity/hash-reader.d.ts +17 -0
  9. package/build/src/browser/cdp/selectivity/hash-reader.js +70 -0
  10. package/build/src/browser/cdp/selectivity/hash-reader.js.map +1 -0
  11. package/build/src/browser/cdp/selectivity/{file-hash-writer.d.ts → hash-writer.d.ts} +7 -6
  12. package/build/src/browser/cdp/selectivity/hash-writer.js +141 -0
  13. package/build/src/browser/cdp/selectivity/hash-writer.js.map +1 -0
  14. package/build/src/browser/cdp/selectivity/index.d.ts +11 -0
  15. package/build/src/browser/cdp/selectivity/index.js +100 -4
  16. package/build/src/browser/cdp/selectivity/index.js.map +1 -1
  17. package/build/src/browser/cdp/selectivity/test-dependencies-reader.d.ts +10 -0
  18. package/build/src/browser/cdp/selectivity/test-dependencies-reader.js +41 -0
  19. package/build/src/browser/cdp/selectivity/test-dependencies-reader.js.map +1 -0
  20. package/build/src/browser/cdp/selectivity/test-dependencies-writer.js +22 -11
  21. package/build/src/browser/cdp/selectivity/test-dependencies-writer.js.map +1 -1
  22. package/build/src/browser/cdp/selectivity/testplane-selectivity.d.ts +1 -0
  23. package/build/src/browser/cdp/selectivity/testplane-selectivity.js +29 -9
  24. package/build/src/browser/cdp/selectivity/testplane-selectivity.js.map +1 -1
  25. package/build/src/browser/cdp/selectivity/types.d.ts +5 -0
  26. package/build/src/browser/cdp/selectivity/utils.d.ts +8 -1
  27. package/build/src/browser/cdp/selectivity/utils.js +66 -3
  28. package/build/src/browser/cdp/selectivity/utils.js.map +1 -1
  29. package/build/src/browser/stacktrace/utils.js +13 -3
  30. package/build/src/browser/stacktrace/utils.js.map +1 -1
  31. package/build/src/bundle/cjs/index.js +207 -108
  32. package/build/src/config/defaults.d.ts +1 -0
  33. package/build/src/config/defaults.js +1 -0
  34. package/build/src/config/defaults.js.map +1 -1
  35. package/build/src/config/types.d.ts +1 -0
  36. package/build/src/runner/index.js +24 -1
  37. package/build/src/runner/index.js.map +1 -1
  38. package/build/src/testplane.js +4 -0
  39. package/build/src/testplane.js.map +1 -1
  40. package/build/src/utils/typescript.js +3 -0
  41. package/build/src/utils/typescript.js.map +1 -1
  42. package/build/src/worker/runner/index.js +7 -5
  43. package/build/src/worker/runner/index.js.map +1 -1
  44. package/package.json +3 -1
  45. package/build/src/browser/cdp/selectivity/file-hash-provider.d.ts +0 -4
  46. package/build/src/browser/cdp/selectivity/file-hash-provider.js +0 -28
  47. package/build/src/browser/cdp/selectivity/file-hash-provider.js.map +0 -1
  48. package/build/src/browser/cdp/selectivity/file-hash-writer.js +0 -123
  49. package/build/src/browser/cdp/selectivity/file-hash-writer.js.map +0 -1
@@ -10705,10 +10705,15 @@ var require_path = __commonJS({
10705
10705
  "node_modules/fast-glob/out/utils/path.js"(exports2) {
10706
10706
  "use strict";
10707
10707
  Object.defineProperty(exports2, "__esModule", { value: true });
10708
- exports2.removeLeadingDotSegment = exports2.escape = exports2.makeAbsolute = exports2.unixify = void 0;
10708
+ exports2.convertPosixPathToPattern = exports2.convertWindowsPathToPattern = exports2.convertPathToPattern = exports2.escapePosixPath = exports2.escapeWindowsPath = exports2.escape = exports2.removeLeadingDotSegment = exports2.makeAbsolute = exports2.unixify = void 0;
10709
+ var os = require("os");
10709
10710
  var path = require("path");
10711
+ var IS_WINDOWS_PLATFORM = os.platform() === "win32";
10710
10712
  var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
10711
- var UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;
10713
+ var POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;
10714
+ var WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()[\]{}]|^!|[!+@](?=\())/g;
10715
+ var DOS_DEVICE_PATH_RE = /^\\\\([.?])/;
10716
+ var WINDOWS_BACKSLASHES_RE = /\\(?![!()+@[\]{}])/g;
10712
10717
  function unixify(filepath) {
10713
10718
  return filepath.replace(/\\/g, "/");
10714
10719
  }
@@ -10717,10 +10722,6 @@ var require_path = __commonJS({
10717
10722
  return path.resolve(cwd, filepath);
10718
10723
  }
10719
10724
  exports2.makeAbsolute = makeAbsolute;
10720
- function escape(pattern) {
10721
- return pattern.replace(UNESCAPED_GLOB_SYMBOLS_RE, "\\$2");
10722
- }
10723
- exports2.escape = escape;
10724
10725
  function removeLeadingDotSegment(entry) {
10725
10726
  if (entry.charAt(0) === ".") {
10726
10727
  const secondCharactery = entry.charAt(1);
@@ -10731,6 +10732,24 @@ var require_path = __commonJS({
10731
10732
  return entry;
10732
10733
  }
10733
10734
  exports2.removeLeadingDotSegment = removeLeadingDotSegment;
10735
+ exports2.escape = IS_WINDOWS_PLATFORM ? escapeWindowsPath : escapePosixPath;
10736
+ function escapeWindowsPath(pattern) {
10737
+ return pattern.replace(WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE, "\\$2");
10738
+ }
10739
+ exports2.escapeWindowsPath = escapeWindowsPath;
10740
+ function escapePosixPath(pattern) {
10741
+ return pattern.replace(POSIX_UNESCAPED_GLOB_SYMBOLS_RE, "\\$2");
10742
+ }
10743
+ exports2.escapePosixPath = escapePosixPath;
10744
+ exports2.convertPathToPattern = IS_WINDOWS_PLATFORM ? convertWindowsPathToPattern : convertPosixPathToPattern;
10745
+ function convertWindowsPathToPattern(filepath) {
10746
+ return escapeWindowsPath(filepath).replace(DOS_DEVICE_PATH_RE, "//$1").replace(WINDOWS_BACKSLASHES_RE, "/");
10747
+ }
10748
+ exports2.convertWindowsPathToPattern = convertWindowsPathToPattern;
10749
+ function convertPosixPathToPattern(filepath) {
10750
+ return escapePosixPath(filepath);
10751
+ }
10752
+ exports2.convertPosixPathToPattern = convertPosixPathToPattern;
10734
10753
  }
10735
10754
  });
10736
10755
 
@@ -10931,7 +10950,7 @@ var require_utils = __commonJS({
10931
10950
  return (Number(max) - Number(min)) / Number(step) >= limit;
10932
10951
  };
10933
10952
  exports2.escapeNode = (block, n = 0, type) => {
10934
- let node = block.nodes[n];
10953
+ const node = block.nodes[n];
10935
10954
  if (!node) return;
10936
10955
  if (type && node.type === type || node.type === "open" || node.type === "close") {
10937
10956
  if (node.escaped !== true) {
@@ -10976,8 +10995,14 @@ var require_utils = __commonJS({
10976
10995
  const result = [];
10977
10996
  const flat = (arr) => {
10978
10997
  for (let i = 0; i < arr.length; i++) {
10979
- let ele = arr[i];
10980
- Array.isArray(ele) ? flat(ele, result) : ele !== void 0 && result.push(ele);
10998
+ const ele = arr[i];
10999
+ if (Array.isArray(ele)) {
11000
+ flat(ele);
11001
+ continue;
11002
+ }
11003
+ if (ele !== void 0) {
11004
+ result.push(ele);
11005
+ }
10981
11006
  }
10982
11007
  return result;
10983
11008
  };
@@ -10993,9 +11018,9 @@ var require_stringify = __commonJS({
10993
11018
  "use strict";
10994
11019
  var utils = require_utils();
10995
11020
  module2.exports = (ast, options = {}) => {
10996
- let stringify = (node, parent = {}) => {
10997
- let invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent);
10998
- let invalidNode = node.invalid === true && options.escapeInvalid === true;
11021
+ const stringify = (node, parent = {}) => {
11022
+ const invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent);
11023
+ const invalidNode = node.invalid === true && options.escapeInvalid === true;
10999
11024
  let output = "";
11000
11025
  if (node.value) {
11001
11026
  if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) {
@@ -11007,7 +11032,7 @@ var require_stringify = __commonJS({
11007
11032
  return node.value;
11008
11033
  }
11009
11034
  if (node.nodes) {
11010
- for (let child of node.nodes) {
11035
+ for (const child of node.nodes) {
11011
11036
  output += stringify(child);
11012
11037
  }
11013
11038
  }
@@ -11293,7 +11318,7 @@ var require_fill_range = __commonJS({
11293
11318
  while (input.length < maxLength) input = "0" + input;
11294
11319
  return negative ? "-" + input : input;
11295
11320
  };
11296
- var toSequence = (parts, options) => {
11321
+ var toSequence = (parts, options, maxLen) => {
11297
11322
  parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
11298
11323
  parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
11299
11324
  let prefix = options.capture ? "" : "?:";
@@ -11301,10 +11326,10 @@ var require_fill_range = __commonJS({
11301
11326
  let negatives = "";
11302
11327
  let result;
11303
11328
  if (parts.positives.length) {
11304
- positives = parts.positives.join("|");
11329
+ positives = parts.positives.map((v) => toMaxLen(String(v), maxLen)).join("|");
11305
11330
  }
11306
11331
  if (parts.negatives.length) {
11307
- negatives = `-(${prefix}${parts.negatives.join("|")})`;
11332
+ negatives = `-(${prefix}${parts.negatives.map((v) => toMaxLen(String(v), maxLen)).join("|")})`;
11308
11333
  }
11309
11334
  if (positives && negatives) {
11310
11335
  result = `${positives}|${negatives}`;
@@ -11381,7 +11406,7 @@ var require_fill_range = __commonJS({
11381
11406
  index++;
11382
11407
  }
11383
11408
  if (options.toRegex === true) {
11384
- return step > 1 ? toSequence(parts, options) : toRegex(range, null, { wrap: false, ...options });
11409
+ return step > 1 ? toSequence(parts, options, maxLen) : toRegex(range, null, { wrap: false, ...options });
11385
11410
  }
11386
11411
  return range;
11387
11412
  };
@@ -11446,16 +11471,17 @@ var require_compile = __commonJS({
11446
11471
  var fill = require_fill_range();
11447
11472
  var utils = require_utils();
11448
11473
  var compile = (ast, options = {}) => {
11449
- let walk = (node, parent = {}) => {
11450
- let invalidBlock = utils.isInvalidBrace(parent);
11451
- let invalidNode = node.invalid === true && options.escapeInvalid === true;
11452
- let invalid = invalidBlock === true || invalidNode === true;
11453
- let prefix = options.escapeInvalid === true ? "\\" : "";
11474
+ const walk = (node, parent = {}) => {
11475
+ const invalidBlock = utils.isInvalidBrace(parent);
11476
+ const invalidNode = node.invalid === true && options.escapeInvalid === true;
11477
+ const invalid = invalidBlock === true || invalidNode === true;
11478
+ const prefix = options.escapeInvalid === true ? "\\" : "";
11454
11479
  let output = "";
11455
11480
  if (node.isOpen === true) {
11456
11481
  return prefix + node.value;
11457
11482
  }
11458
11483
  if (node.isClose === true) {
11484
+ console.log("node.isClose", prefix, node.value);
11459
11485
  return prefix + node.value;
11460
11486
  }
11461
11487
  if (node.type === "open") {
@@ -11471,14 +11497,14 @@ var require_compile = __commonJS({
11471
11497
  return node.value;
11472
11498
  }
11473
11499
  if (node.nodes && node.ranges > 0) {
11474
- let args = utils.reduce(node.nodes);
11475
- let range = fill(...args, { ...options, wrap: false, toRegex: true });
11500
+ const args = utils.reduce(node.nodes);
11501
+ const range = fill(...args, { ...options, wrap: false, toRegex: true, strictZeros: true });
11476
11502
  if (range.length !== 0) {
11477
11503
  return args.length > 1 && range.length > 1 ? `(${range})` : range;
11478
11504
  }
11479
11505
  }
11480
11506
  if (node.nodes) {
11481
- for (let child of node.nodes) {
11507
+ for (const child of node.nodes) {
11482
11508
  output += walk(child, node);
11483
11509
  }
11484
11510
  }
@@ -11498,16 +11524,16 @@ var require_expand = __commonJS({
11498
11524
  var stringify = require_stringify();
11499
11525
  var utils = require_utils();
11500
11526
  var append = (queue = "", stash = "", enclose = false) => {
11501
- let result = [];
11527
+ const result = [];
11502
11528
  queue = [].concat(queue);
11503
11529
  stash = [].concat(stash);
11504
11530
  if (!stash.length) return queue;
11505
11531
  if (!queue.length) {
11506
11532
  return enclose ? utils.flatten(stash).map((ele) => `{${ele}}`) : stash;
11507
11533
  }
11508
- for (let item of queue) {
11534
+ for (const item of queue) {
11509
11535
  if (Array.isArray(item)) {
11510
- for (let value of item) {
11536
+ for (const value of item) {
11511
11537
  result.push(append(value, stash, enclose));
11512
11538
  }
11513
11539
  } else {
@@ -11520,8 +11546,8 @@ var require_expand = __commonJS({
11520
11546
  return utils.flatten(result);
11521
11547
  };
11522
11548
  var expand = (ast, options = {}) => {
11523
- let rangeLimit = options.rangeLimit === void 0 ? 1e3 : options.rangeLimit;
11524
- let walk = (node, parent = {}) => {
11549
+ const rangeLimit = options.rangeLimit === void 0 ? 1e3 : options.rangeLimit;
11550
+ const walk = (node, parent = {}) => {
11525
11551
  node.queue = [];
11526
11552
  let p = parent;
11527
11553
  let q = parent.queue;
@@ -11538,7 +11564,7 @@ var require_expand = __commonJS({
11538
11564
  return;
11539
11565
  }
11540
11566
  if (node.nodes && node.ranges > 0) {
11541
- let args = utils.reduce(node.nodes);
11567
+ const args = utils.reduce(node.nodes);
11542
11568
  if (utils.exceedsLimit(...args, options.step, rangeLimit)) {
11543
11569
  throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");
11544
11570
  }
@@ -11550,7 +11576,7 @@ var require_expand = __commonJS({
11550
11576
  node.nodes = [];
11551
11577
  return;
11552
11578
  }
11553
- let enclose = utils.encloseBrace(node);
11579
+ const enclose = utils.encloseBrace(node);
11554
11580
  let queue = node.queue;
11555
11581
  let block = node;
11556
11582
  while (block.type !== "brace" && block.type !== "root" && block.parent) {
@@ -11558,7 +11584,7 @@ var require_expand = __commonJS({
11558
11584
  queue = block.queue;
11559
11585
  }
11560
11586
  for (let i = 0; i < node.nodes.length; i++) {
11561
- let child = node.nodes[i];
11587
+ const child = node.nodes[i];
11562
11588
  if (child.type === "comma" && node.type === "brace") {
11563
11589
  if (i === 1) queue.push("");
11564
11590
  queue.push("");
@@ -11589,7 +11615,7 @@ var require_constants = __commonJS({
11589
11615
  "node_modules/braces/lib/constants.js"(exports2, module2) {
11590
11616
  "use strict";
11591
11617
  module2.exports = {
11592
- MAX_LENGTH: 1024 * 64,
11618
+ MAX_LENGTH: 1e4,
11593
11619
  // Digits
11594
11620
  CHAR_0: "0",
11595
11621
  /* 0 */
@@ -11723,21 +11749,20 @@ var require_parse = __commonJS({
11723
11749
  if (typeof input !== "string") {
11724
11750
  throw new TypeError("Expected a string");
11725
11751
  }
11726
- let opts = options || {};
11727
- let max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
11752
+ const opts = options || {};
11753
+ const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
11728
11754
  if (input.length > max) {
11729
11755
  throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
11730
11756
  }
11731
- let ast = { type: "root", input, nodes: [] };
11732
- let stack = [ast];
11757
+ const ast = { type: "root", input, nodes: [] };
11758
+ const stack = [ast];
11733
11759
  let block = ast;
11734
11760
  let prev = ast;
11735
11761
  let brackets = 0;
11736
- let length = input.length;
11762
+ const length = input.length;
11737
11763
  let index = 0;
11738
11764
  let depth = 0;
11739
11765
  let value;
11740
- let memo = {};
11741
11766
  const advance = () => input[index++];
11742
11767
  const push = (node) => {
11743
11768
  if (node.type === "text" && prev.type === "dot") {
@@ -11770,7 +11795,6 @@ var require_parse = __commonJS({
11770
11795
  }
11771
11796
  if (value === CHAR_LEFT_SQUARE_BRACKET) {
11772
11797
  brackets++;
11773
- let closed = true;
11774
11798
  let next;
11775
11799
  while (index < length && (next = advance())) {
11776
11800
  value += next;
@@ -11809,7 +11833,7 @@ var require_parse = __commonJS({
11809
11833
  continue;
11810
11834
  }
11811
11835
  if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) {
11812
- let open = value;
11836
+ const open = value;
11813
11837
  let next;
11814
11838
  if (options.keepQuotes !== true) {
11815
11839
  value = "";
@@ -11830,8 +11854,8 @@ var require_parse = __commonJS({
11830
11854
  }
11831
11855
  if (value === CHAR_LEFT_CURLY_BRACE) {
11832
11856
  depth++;
11833
- let dollar = prev.value && prev.value.slice(-1) === "$" || block.dollar === true;
11834
- let brace = {
11857
+ const dollar = prev.value && prev.value.slice(-1) === "$" || block.dollar === true;
11858
+ const brace = {
11835
11859
  type: "brace",
11836
11860
  open: true,
11837
11861
  close: false,
@@ -11851,7 +11875,7 @@ var require_parse = __commonJS({
11851
11875
  push({ type: "text", value });
11852
11876
  continue;
11853
11877
  }
11854
- let type = "close";
11878
+ const type = "close";
11855
11879
  block = stack.pop();
11856
11880
  block.close = true;
11857
11881
  push({ type, value });
@@ -11862,7 +11886,7 @@ var require_parse = __commonJS({
11862
11886
  if (value === CHAR_COMMA && depth > 0) {
11863
11887
  if (block.ranges > 0) {
11864
11888
  block.ranges = 0;
11865
- let open = block.nodes.shift();
11889
+ const open = block.nodes.shift();
11866
11890
  block.nodes = [open, { type: "text", value: stringify(block) }];
11867
11891
  }
11868
11892
  push({ type: "comma", value });
@@ -11870,7 +11894,7 @@ var require_parse = __commonJS({
11870
11894
  continue;
11871
11895
  }
11872
11896
  if (value === CHAR_DOT && depth > 0 && block.commas === 0) {
11873
- let siblings = block.nodes;
11897
+ const siblings = block.nodes;
11874
11898
  if (depth === 0 || siblings.length === 0) {
11875
11899
  push({ type: "text", value });
11876
11900
  continue;
@@ -11891,7 +11915,7 @@ var require_parse = __commonJS({
11891
11915
  }
11892
11916
  if (prev.type === "range") {
11893
11917
  siblings.pop();
11894
- let before = siblings[siblings.length - 1];
11918
+ const before = siblings[siblings.length - 1];
11895
11919
  before.value += prev.value + value;
11896
11920
  prev = before;
11897
11921
  block.ranges--;
@@ -11913,8 +11937,8 @@ var require_parse = __commonJS({
11913
11937
  node.invalid = true;
11914
11938
  }
11915
11939
  });
11916
- let parent = stack[stack.length - 1];
11917
- let index2 = parent.nodes.indexOf(block);
11940
+ const parent = stack[stack.length - 1];
11941
+ const index2 = parent.nodes.indexOf(block);
11918
11942
  parent.nodes.splice(index2, 1, ...block.nodes);
11919
11943
  }
11920
11944
  } while (stack.length > 0);
@@ -11936,8 +11960,8 @@ var require_braces = __commonJS({
11936
11960
  var braces = (input, options = {}) => {
11937
11961
  let output = [];
11938
11962
  if (Array.isArray(input)) {
11939
- for (let pattern of input) {
11940
- let result = braces.create(pattern, options);
11963
+ for (const pattern of input) {
11964
+ const result = braces.create(pattern, options);
11941
11965
  if (Array.isArray(result)) {
11942
11966
  output.push(...result);
11943
11967
  } else {
@@ -13498,15 +13522,19 @@ var require_picomatch2 = __commonJS({
13498
13522
  }
13499
13523
  });
13500
13524
 
13501
- // node_modules/micromatch/index.js
13525
+ // node_modules/fast-glob/node_modules/micromatch/index.js
13502
13526
  var require_micromatch = __commonJS({
13503
- "node_modules/micromatch/index.js"(exports2, module2) {
13527
+ "node_modules/fast-glob/node_modules/micromatch/index.js"(exports2, module2) {
13504
13528
  "use strict";
13505
13529
  var util = require("util");
13506
13530
  var braces = require_braces();
13507
13531
  var picomatch = require_picomatch2();
13508
13532
  var utils = require_utils2();
13509
- var isEmptyString = (val) => val === "" || val === "./";
13533
+ var isEmptyString = (v) => v === "" || v === "./";
13534
+ var hasBraces = (v) => {
13535
+ const index = v.indexOf("{");
13536
+ return index > -1 && v.indexOf("}", index) > -1;
13537
+ };
13510
13538
  var micromatch = (list, patterns, options) => {
13511
13539
  patterns = [].concat(patterns);
13512
13540
  list = [].concat(list);
@@ -13641,7 +13669,7 @@ var require_micromatch = __commonJS({
13641
13669
  };
13642
13670
  micromatch.braces = (pattern, options) => {
13643
13671
  if (typeof pattern !== "string") throw new TypeError("Expected a string");
13644
- if (options && options.nobrace === true || !/\{.*\}/.test(pattern)) {
13672
+ if (options && options.nobrace === true || !hasBraces(pattern)) {
13645
13673
  return [pattern];
13646
13674
  }
13647
13675
  return braces(pattern, options);
@@ -13650,6 +13678,7 @@ var require_micromatch = __commonJS({
13650
13678
  if (typeof pattern !== "string") throw new TypeError("Expected a string");
13651
13679
  return micromatch.braces(pattern, { ...options, expand: true });
13652
13680
  };
13681
+ micromatch.hasBraces = hasBraces;
13653
13682
  module2.exports = micromatch;
13654
13683
  }
13655
13684
  });
@@ -13659,7 +13688,7 @@ var require_pattern = __commonJS({
13659
13688
  "node_modules/fast-glob/out/utils/pattern.js"(exports2) {
13660
13689
  "use strict";
13661
13690
  Object.defineProperty(exports2, "__esModule", { value: true });
13662
- exports2.matchAny = exports2.convertPatternsToRe = exports2.makeRe = exports2.getPatternParts = exports2.expandBraceExpansion = exports2.expandPatternsWithBraceExpansion = exports2.isAffectDepthOfReadingPattern = exports2.endsWithSlashGlobStar = exports2.hasGlobStar = exports2.getBaseDirectory = exports2.isPatternRelatedToParentDirectory = exports2.getPatternsOutsideCurrentDirectory = exports2.getPatternsInsideCurrentDirectory = exports2.getPositivePatterns = exports2.getNegativePatterns = exports2.isPositivePattern = exports2.isNegativePattern = exports2.convertToNegativePattern = exports2.convertToPositivePattern = exports2.isDynamicPattern = exports2.isStaticPattern = void 0;
13691
+ exports2.isAbsolute = exports2.partitionAbsoluteAndRelative = exports2.removeDuplicateSlashes = exports2.matchAny = exports2.convertPatternsToRe = exports2.makeRe = exports2.getPatternParts = exports2.expandBraceExpansion = exports2.expandPatternsWithBraceExpansion = exports2.isAffectDepthOfReadingPattern = exports2.endsWithSlashGlobStar = exports2.hasGlobStar = exports2.getBaseDirectory = exports2.isPatternRelatedToParentDirectory = exports2.getPatternsOutsideCurrentDirectory = exports2.getPatternsInsideCurrentDirectory = exports2.getPositivePatterns = exports2.getNegativePatterns = exports2.isPositivePattern = exports2.isNegativePattern = exports2.convertToNegativePattern = exports2.convertToPositivePattern = exports2.isDynamicPattern = exports2.isStaticPattern = void 0;
13663
13692
  var path = require("path");
13664
13693
  var globParent = require_glob_parent();
13665
13694
  var micromatch = require_micromatch();
@@ -13670,6 +13699,7 @@ var require_pattern = __commonJS({
13670
13699
  var REGEX_GROUP_SYMBOLS_RE = /(?:^|[^!*+?@])\([^(]*\|[^|]*\)/;
13671
13700
  var GLOB_EXTENSION_SYMBOLS_RE = /[!*+?@]\([^(]*\)/;
13672
13701
  var BRACE_EXPANSION_SEPARATORS_RE = /,|\.\./;
13702
+ var DOUBLE_SLASH_RE = /(?!^)\/{2,}/g;
13673
13703
  function isStaticPattern(pattern, options = {}) {
13674
13704
  return !isDynamicPattern(pattern, options);
13675
13705
  }
@@ -13765,10 +13795,9 @@ var require_pattern = __commonJS({
13765
13795
  }
13766
13796
  exports2.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
13767
13797
  function expandBraceExpansion(pattern) {
13768
- return micromatch.braces(pattern, {
13769
- expand: true,
13770
- nodupes: true
13771
- });
13798
+ const patterns = micromatch.braces(pattern, { expand: true, nodupes: true, keepEscaping: true });
13799
+ patterns.sort((a, b) => a.length - b.length);
13800
+ return patterns.filter((pattern2) => pattern2 !== "");
13772
13801
  }
13773
13802
  exports2.expandBraceExpansion = expandBraceExpansion;
13774
13803
  function getPatternParts(pattern, options) {
@@ -13795,6 +13824,27 @@ var require_pattern = __commonJS({
13795
13824
  return patternsRe.some((patternRe) => patternRe.test(entry));
13796
13825
  }
13797
13826
  exports2.matchAny = matchAny;
13827
+ function removeDuplicateSlashes(pattern) {
13828
+ return pattern.replace(DOUBLE_SLASH_RE, "/");
13829
+ }
13830
+ exports2.removeDuplicateSlashes = removeDuplicateSlashes;
13831
+ function partitionAbsoluteAndRelative(patterns) {
13832
+ const absolute = [];
13833
+ const relative = [];
13834
+ for (const pattern of patterns) {
13835
+ if (isAbsolute(pattern)) {
13836
+ absolute.push(pattern);
13837
+ } else {
13838
+ relative.push(pattern);
13839
+ }
13840
+ }
13841
+ return [absolute, relative];
13842
+ }
13843
+ exports2.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
13844
+ function isAbsolute(pattern) {
13845
+ return path.isAbsolute(pattern);
13846
+ }
13847
+ exports2.isAbsolute = isAbsolute;
13798
13848
  }
13799
13849
  });
13800
13850
 
@@ -13987,9 +14037,11 @@ var require_tasks = __commonJS({
13987
14037
  Object.defineProperty(exports2, "__esModule", { value: true });
13988
14038
  exports2.convertPatternGroupToTask = exports2.convertPatternGroupsToTasks = exports2.groupPatternsByBaseDirectory = exports2.getNegativePatternsAsPositive = exports2.getPositivePatterns = exports2.convertPatternsToTasks = exports2.generate = void 0;
13989
14039
  var utils = require_utils3();
13990
- function generate(patterns, settings) {
14040
+ function generate(input, settings) {
14041
+ const patterns = processPatterns(input, settings);
14042
+ const ignore = processPatterns(settings.ignore, settings);
13991
14043
  const positivePatterns = getPositivePatterns(patterns);
13992
- const negativePatterns = getNegativePatternsAsPositive(patterns, settings.ignore);
14044
+ const negativePatterns = getNegativePatternsAsPositive(patterns, ignore);
13993
14045
  const staticPatterns = positivePatterns.filter((pattern) => utils.pattern.isStaticPattern(pattern, settings));
13994
14046
  const dynamicPatterns = positivePatterns.filter((pattern) => utils.pattern.isDynamicPattern(pattern, settings));
13995
14047
  const staticTasks = convertPatternsToTasks(
@@ -14007,6 +14059,16 @@ var require_tasks = __commonJS({
14007
14059
  return staticTasks.concat(dynamicTasks);
14008
14060
  }
14009
14061
  exports2.generate = generate;
14062
+ function processPatterns(input, settings) {
14063
+ let patterns = input;
14064
+ if (settings.braceExpansion) {
14065
+ patterns = utils.pattern.expandPatternsWithBraceExpansion(patterns);
14066
+ }
14067
+ if (settings.baseNameMatch) {
14068
+ patterns = patterns.map((pattern) => pattern.includes("/") ? pattern : `**/${pattern}`);
14069
+ }
14070
+ return patterns.map((pattern) => utils.pattern.removeDuplicateSlashes(pattern));
14071
+ }
14010
14072
  function convertPatternsToTasks(positive, negative, dynamic) {
14011
14073
  const tasks = [];
14012
14074
  const patternsOutsideCurrentDirectory = utils.pattern.getPatternsOutsideCurrentDirectory(positive);
@@ -14064,24 +14126,6 @@ var require_tasks = __commonJS({
14064
14126
  }
14065
14127
  });
14066
14128
 
14067
- // node_modules/fast-glob/out/managers/patterns.js
14068
- var require_patterns = __commonJS({
14069
- "node_modules/fast-glob/out/managers/patterns.js"(exports2) {
14070
- "use strict";
14071
- Object.defineProperty(exports2, "__esModule", { value: true });
14072
- exports2.removeDuplicateSlashes = exports2.transform = void 0;
14073
- var DOUBLE_SLASH_RE = /(?!^)\/{2,}/g;
14074
- function transform(patterns) {
14075
- return patterns.map((pattern) => removeDuplicateSlashes(pattern));
14076
- }
14077
- exports2.transform = transform;
14078
- function removeDuplicateSlashes(pattern) {
14079
- return pattern.replace(DOUBLE_SLASH_RE, "/");
14080
- }
14081
- exports2.removeDuplicateSlashes = removeDuplicateSlashes;
14082
- }
14083
- });
14084
-
14085
14129
  // node_modules/@nodelib/fs.stat/out/providers/async.js
14086
14130
  var require_async2 = __commonJS({
14087
14131
  "node_modules/@nodelib/fs.stat/out/providers/async.js"(exports2) {
@@ -15420,8 +15464,7 @@ var require_matcher = __commonJS({
15420
15464
  this._fillStorage();
15421
15465
  }
15422
15466
  _fillStorage() {
15423
- const patterns = utils.pattern.expandPatternsWithBraceExpansion(this._patterns);
15424
- for (const pattern of patterns) {
15467
+ for (const pattern of this._patterns) {
15425
15468
  const segments = this._getPatternSegments(pattern);
15426
15469
  const sections = this._splitSegmentsIntoSections(segments);
15427
15470
  this._storage.push({
@@ -15572,33 +15615,37 @@ var require_entry = __commonJS({
15572
15615
  this.index = /* @__PURE__ */ new Map();
15573
15616
  }
15574
15617
  getFilter(positive, negative) {
15575
- const positiveRe = utils.pattern.convertPatternsToRe(positive, this._micromatchOptions);
15576
- const negativeRe = utils.pattern.convertPatternsToRe(negative, this._micromatchOptions);
15577
- return (entry) => this._filter(entry, positiveRe, negativeRe);
15618
+ const [absoluteNegative, relativeNegative] = utils.pattern.partitionAbsoluteAndRelative(negative);
15619
+ const patterns = {
15620
+ positive: {
15621
+ all: utils.pattern.convertPatternsToRe(positive, this._micromatchOptions)
15622
+ },
15623
+ negative: {
15624
+ absolute: utils.pattern.convertPatternsToRe(absoluteNegative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true })),
15625
+ relative: utils.pattern.convertPatternsToRe(relativeNegative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true }))
15626
+ }
15627
+ };
15628
+ return (entry) => this._filter(entry, patterns);
15578
15629
  }
15579
- _filter(entry, positiveRe, negativeRe) {
15580
- if (this._settings.unique && this._isDuplicateEntry(entry)) {
15630
+ _filter(entry, patterns) {
15631
+ const filepath = utils.path.removeLeadingDotSegment(entry.path);
15632
+ if (this._settings.unique && this._isDuplicateEntry(filepath)) {
15581
15633
  return false;
15582
15634
  }
15583
15635
  if (this._onlyFileFilter(entry) || this._onlyDirectoryFilter(entry)) {
15584
15636
  return false;
15585
15637
  }
15586
- if (this._isSkippedByAbsoluteNegativePatterns(entry.path, negativeRe)) {
15587
- return false;
15588
- }
15589
- const filepath = this._settings.baseNameMatch ? entry.name : entry.path;
15590
- const isDirectory = entry.dirent.isDirectory();
15591
- const isMatched = this._isMatchToPatterns(filepath, positiveRe, isDirectory) && !this._isMatchToPatterns(entry.path, negativeRe, isDirectory);
15638
+ const isMatched = this._isMatchToPatternsSet(filepath, patterns, entry.dirent.isDirectory());
15592
15639
  if (this._settings.unique && isMatched) {
15593
- this._createIndexRecord(entry);
15640
+ this._createIndexRecord(filepath);
15594
15641
  }
15595
15642
  return isMatched;
15596
15643
  }
15597
- _isDuplicateEntry(entry) {
15598
- return this.index.has(entry.path);
15644
+ _isDuplicateEntry(filepath) {
15645
+ return this.index.has(filepath);
15599
15646
  }
15600
- _createIndexRecord(entry) {
15601
- this.index.set(entry.path, void 0);
15647
+ _createIndexRecord(filepath) {
15648
+ this.index.set(filepath, void 0);
15602
15649
  }
15603
15650
  _onlyFileFilter(entry) {
15604
15651
  return this._settings.onlyFiles && !entry.dirent.isFile();
@@ -15606,15 +15653,32 @@ var require_entry = __commonJS({
15606
15653
  _onlyDirectoryFilter(entry) {
15607
15654
  return this._settings.onlyDirectories && !entry.dirent.isDirectory();
15608
15655
  }
15609
- _isSkippedByAbsoluteNegativePatterns(entryPath, patternsRe) {
15610
- if (!this._settings.absolute) {
15656
+ _isMatchToPatternsSet(filepath, patterns, isDirectory) {
15657
+ const isMatched = this._isMatchToPatterns(filepath, patterns.positive.all, isDirectory);
15658
+ if (!isMatched) {
15659
+ return false;
15660
+ }
15661
+ const isMatchedByRelativeNegative = this._isMatchToPatterns(filepath, patterns.negative.relative, isDirectory);
15662
+ if (isMatchedByRelativeNegative) {
15663
+ return false;
15664
+ }
15665
+ const isMatchedByAbsoluteNegative = this._isMatchToAbsoluteNegative(filepath, patterns.negative.absolute, isDirectory);
15666
+ if (isMatchedByAbsoluteNegative) {
15667
+ return false;
15668
+ }
15669
+ return true;
15670
+ }
15671
+ _isMatchToAbsoluteNegative(filepath, patternsRe, isDirectory) {
15672
+ if (patternsRe.length === 0) {
15611
15673
  return false;
15612
15674
  }
15613
- const fullpath = utils.path.makeAbsolute(this._settings.cwd, entryPath);
15614
- return utils.pattern.matchAny(fullpath, patternsRe);
15675
+ const fullpath = utils.path.makeAbsolute(this._settings.cwd, filepath);
15676
+ return this._isMatchToPatterns(fullpath, patternsRe, isDirectory);
15615
15677
  }
15616
- _isMatchToPatterns(entryPath, patternsRe, isDirectory) {
15617
- const filepath = utils.path.removeLeadingDotSegment(entryPath);
15678
+ _isMatchToPatterns(filepath, patternsRe, isDirectory) {
15679
+ if (patternsRe.length === 0) {
15680
+ return false;
15681
+ }
15618
15682
  const isMatched = utils.pattern.matchAny(filepath, patternsRe);
15619
15683
  if (!isMatched && isDirectory) {
15620
15684
  return utils.pattern.matchAny(filepath + "/", patternsRe);
@@ -15920,6 +15984,7 @@ var require_settings4 = __commonJS({
15920
15984
  if (this.stats) {
15921
15985
  this.objectMode = true;
15922
15986
  }
15987
+ this.ignore = [].concat(this.ignore);
15923
15988
  }
15924
15989
  _getValue(option, value) {
15925
15990
  return option === void 0 ? value : option;
@@ -15937,7 +16002,6 @@ var require_out4 = __commonJS({
15937
16002
  "node_modules/fast-glob/out/index.js"(exports2, module2) {
15938
16003
  "use strict";
15939
16004
  var taskManager = require_tasks();
15940
- var patternManager = require_patterns();
15941
16005
  var async_1 = require_async7();
15942
16006
  var stream_1 = require_stream4();
15943
16007
  var sync_1 = require_sync6();
@@ -15950,6 +16014,10 @@ var require_out4 = __commonJS({
15950
16014
  return utils.array.flatten(result);
15951
16015
  }
15952
16016
  (function(FastGlob2) {
16017
+ FastGlob2.glob = FastGlob2;
16018
+ FastGlob2.globSync = sync;
16019
+ FastGlob2.globStream = stream;
16020
+ FastGlob2.async = FastGlob2;
15953
16021
  function sync(source, options) {
15954
16022
  assertPatternsInput(source);
15955
16023
  const works = getWorks(source, sync_1.default, options);
@@ -15964,7 +16032,7 @@ var require_out4 = __commonJS({
15964
16032
  FastGlob2.stream = stream;
15965
16033
  function generateTasks(source, options) {
15966
16034
  assertPatternsInput(source);
15967
- const patterns = patternManager.transform([].concat(source));
16035
+ const patterns = [].concat(source);
15968
16036
  const settings = new settings_1.default(options);
15969
16037
  return taskManager.generate(patterns, settings);
15970
16038
  }
@@ -15980,9 +16048,40 @@ var require_out4 = __commonJS({
15980
16048
  return utils.path.escape(source);
15981
16049
  }
15982
16050
  FastGlob2.escapePath = escapePath;
16051
+ function convertPathToPattern(source) {
16052
+ assertPatternsInput(source);
16053
+ return utils.path.convertPathToPattern(source);
16054
+ }
16055
+ FastGlob2.convertPathToPattern = convertPathToPattern;
16056
+ let posix;
16057
+ (function(posix2) {
16058
+ function escapePath2(source) {
16059
+ assertPatternsInput(source);
16060
+ return utils.path.escapePosixPath(source);
16061
+ }
16062
+ posix2.escapePath = escapePath2;
16063
+ function convertPathToPattern2(source) {
16064
+ assertPatternsInput(source);
16065
+ return utils.path.convertPosixPathToPattern(source);
16066
+ }
16067
+ posix2.convertPathToPattern = convertPathToPattern2;
16068
+ })(posix = FastGlob2.posix || (FastGlob2.posix = {}));
16069
+ let win32;
16070
+ (function(win322) {
16071
+ function escapePath2(source) {
16072
+ assertPatternsInput(source);
16073
+ return utils.path.escapeWindowsPath(source);
16074
+ }
16075
+ win322.escapePath = escapePath2;
16076
+ function convertPathToPattern2(source) {
16077
+ assertPatternsInput(source);
16078
+ return utils.path.convertWindowsPathToPattern(source);
16079
+ }
16080
+ win322.convertPathToPattern = convertPathToPattern2;
16081
+ })(win32 = FastGlob2.win32 || (FastGlob2.win32 = {}));
15983
16082
  })(FastGlob || (FastGlob = {}));
15984
16083
  function getWorks(source, _Provider, options) {
15985
- const patterns = patternManager.transform([].concat(source));
16084
+ const patterns = [].concat(source);
15986
16085
  const settings = new settings_1.default(options);
15987
16086
  const tasks = taskManager.generate(patterns, settings);
15988
16087
  const provider = new _Provider(settings);