@pnpm/exe 11.0.0-beta.7 → 11.0.0-beta.8

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.
@@ -192,14 +192,15 @@ class AST {
192
192
  }
193
193
  // reconstructs the pattern
194
194
  toString() {
195
- return (this.#toString !== undefined ? this.#toString
196
- : !this.type ?
197
- (this.#toString = this.#parts.map(p => String(p)).join(''))
198
- : (this.#toString =
199
- this.type +
200
- '(' +
201
- this.#parts.map(p => String(p)).join('|') +
202
- ')'));
195
+ if (this.#toString !== undefined)
196
+ return this.#toString;
197
+ if (!this.type) {
198
+ return (this.#toString = this.#parts.map(p => String(p)).join(''));
199
+ }
200
+ else {
201
+ return (this.#toString =
202
+ this.type + '(' + this.#parts.map(p => String(p)).join('|') + ')');
203
+ }
203
204
  }
204
205
  #fillNegs() {
205
206
  /* c8 ignore start */
@@ -479,7 +480,7 @@ class AST {
479
480
  }
480
481
  #canUsurpType(c) {
481
482
  const m = usurpMap.get(this.type);
482
- return !!m?.has(c);
483
+ return !!(m?.has(c));
483
484
  }
484
485
  #canUsurp(child) {
485
486
  if (!child ||
@@ -16,7 +16,7 @@ const minimatch = (p, pattern, options = {}) => {
16
16
  };
17
17
  exports.minimatch = minimatch;
18
18
  // Optimized checking for the most common glob patterns.
19
- const starDotExtRE = /^\*+([^+@!?*[(]*)$/;
19
+ const starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
20
20
  const starDotExtTest = (ext) => (f) => !f.startsWith('.') && f.endsWith(ext);
21
21
  const starDotExtTestDot = (ext) => (f) => f.endsWith(ext);
22
22
  const starDotExtTestNocase = (ext) => {
@@ -35,7 +35,7 @@ const dotStarTest = (f) => f !== '.' && f !== '..' && f.startsWith('.');
35
35
  const starRE = /^\*+$/;
36
36
  const starTest = (f) => f.length !== 0 && !f.startsWith('.');
37
37
  const starTestDot = (f) => f.length !== 0 && f !== '.' && f !== '..';
38
- const qmarksRE = /^\?+([^+@!?*[(]*)?$/;
38
+ const qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/;
39
39
  const qmarksTestNocase = ([$0, ext = '']) => {
40
40
  const noext = qmarksTestNoExt([$0]);
41
41
  if (!ext)
@@ -267,7 +267,6 @@ class Minimatch {
267
267
  // step 2: expand braces
268
268
  this.globSet = [...new Set(this.braceExpand())];
269
269
  if (options.debug) {
270
- //oxlint-disable-next-line no-console
271
270
  this.debug = (...args) => console.error(...args);
272
271
  }
273
272
  this.debug(this.pattern, this.globSet);
@@ -330,10 +329,10 @@ class Minimatch {
330
329
  preprocess(globParts) {
331
330
  // if we're not in globstar mode, then turn ** into *
332
331
  if (this.options.noglobstar) {
333
- for (const partset of globParts) {
334
- for (let j = 0; j < partset.length; j++) {
335
- if (partset[j] === '**') {
336
- partset[j] = '*';
332
+ for (let i = 0; i < globParts.length; i++) {
333
+ for (let j = 0; j < globParts[i].length; j++) {
334
+ if (globParts[i][j] === '**') {
335
+ globParts[i][j] = '*';
337
336
  }
338
337
  }
339
338
  }
@@ -421,11 +420,7 @@ class Minimatch {
421
420
  let dd = 0;
422
421
  while (-1 !== (dd = parts.indexOf('..', dd + 1))) {
423
422
  const p = parts[dd - 1];
424
- if (p &&
425
- p !== '.' &&
426
- p !== '..' &&
427
- p !== '**' &&
428
- !(this.isWindows && /^[a-z]:$/i.test(p))) {
423
+ if (p && p !== '.' && p !== '..' && p !== '**') {
429
424
  didSomething = true;
430
425
  parts.splice(dd - 1, 2);
431
426
  dd -= 2;
@@ -674,17 +669,15 @@ class Minimatch {
674
669
  // split the pattern up into globstar-delimited sections
675
670
  // the tail has to be at the end, and the others just have
676
671
  // to be found in order from the head.
677
- const [head, body, tail] = partial ?
678
- [
679
- pattern.slice(patternIndex, firstgs),
680
- pattern.slice(firstgs + 1),
681
- [],
682
- ]
683
- : [
684
- pattern.slice(patternIndex, firstgs),
685
- pattern.slice(firstgs + 1, lastgs),
686
- pattern.slice(lastgs + 1),
687
- ];
672
+ const [head, body, tail] = partial ? [
673
+ pattern.slice(patternIndex, firstgs),
674
+ pattern.slice(firstgs + 1),
675
+ [],
676
+ ] : [
677
+ pattern.slice(patternIndex, firstgs),
678
+ pattern.slice(firstgs + 1, lastgs),
679
+ pattern.slice(lastgs + 1),
680
+ ];
688
681
  // check the head, from the current file/pattern index.
689
682
  if (head.length) {
690
683
  const fileHead = file.slice(fileIndex, fileIndex + head.length);
@@ -1030,7 +1023,7 @@ class Minimatch {
1030
1023
  this.regexp = new RegExp(re, [...flags].join(''));
1031
1024
  /* c8 ignore start */
1032
1025
  }
1033
- catch {
1026
+ catch (ex) {
1034
1027
  // should be impossible
1035
1028
  this.regexp = false;
1036
1029
  }
@@ -1045,7 +1038,7 @@ class Minimatch {
1045
1038
  if (this.preserveMultipleSlashes) {
1046
1039
  return p.split('/');
1047
1040
  }
1048
- else if (this.isWindows && /^\/\/[^/]+/.test(p)) {
1041
+ else if (this.isWindows && /^\/\/[^\/]+/.test(p)) {
1049
1042
  // add an extra '' for the one we lose
1050
1043
  return ['', ...p.split(/\/+/)];
1051
1044
  }
@@ -1087,7 +1080,8 @@ class Minimatch {
1087
1080
  filename = ff[i];
1088
1081
  }
1089
1082
  }
1090
- for (const pattern of set) {
1083
+ for (let i = 0; i < set.length; i++) {
1084
+ const pattern = set[i];
1091
1085
  let file = ff;
1092
1086
  if (options.matchBase && pattern.length === 1) {
1093
1087
  file = [filename];
@@ -23,16 +23,16 @@ exports.unescape = void 0;
23
23
  const unescape = (s, { windowsPathsNoEscape = false, magicalBraces = true, } = {}) => {
24
24
  if (magicalBraces) {
25
25
  return windowsPathsNoEscape ?
26
- s.replace(/\[([^/\\])\]/g, '$1')
26
+ s.replace(/\[([^\/\\])\]/g, '$1')
27
27
  : s
28
- .replace(/((?!\\).|^)\[([^/\\])\]/g, '$1$2')
29
- .replace(/\\([^/])/g, '$1');
28
+ .replace(/((?!\\).|^)\[([^\/\\])\]/g, '$1$2')
29
+ .replace(/\\([^\/])/g, '$1');
30
30
  }
31
31
  return windowsPathsNoEscape ?
32
- s.replace(/\[([^/\\{}])\]/g, '$1')
32
+ s.replace(/\[([^\/\\{}])\]/g, '$1')
33
33
  : s
34
- .replace(/((?!\\).|^)\[([^/\\{}])\]/g, '$1$2')
35
- .replace(/\\([^/{}])/g, '$1');
34
+ .replace(/((?!\\).|^)\[([^\/\\{}])\]/g, '$1$2')
35
+ .replace(/\\([^\/{}])/g, '$1');
36
36
  };
37
37
  exports.unescape = unescape;
38
38
  //# sourceMappingURL=unescape.js.map
@@ -189,14 +189,15 @@ export class AST {
189
189
  }
190
190
  // reconstructs the pattern
191
191
  toString() {
192
- return (this.#toString !== undefined ? this.#toString
193
- : !this.type ?
194
- (this.#toString = this.#parts.map(p => String(p)).join(''))
195
- : (this.#toString =
196
- this.type +
197
- '(' +
198
- this.#parts.map(p => String(p)).join('|') +
199
- ')'));
192
+ if (this.#toString !== undefined)
193
+ return this.#toString;
194
+ if (!this.type) {
195
+ return (this.#toString = this.#parts.map(p => String(p)).join(''));
196
+ }
197
+ else {
198
+ return (this.#toString =
199
+ this.type + '(' + this.#parts.map(p => String(p)).join('|') + ')');
200
+ }
200
201
  }
201
202
  #fillNegs() {
202
203
  /* c8 ignore start */
@@ -476,7 +477,7 @@ export class AST {
476
477
  }
477
478
  #canUsurpType(c) {
478
479
  const m = usurpMap.get(this.type);
479
- return !!m?.has(c);
480
+ return !!(m?.has(c));
480
481
  }
481
482
  #canUsurp(child) {
482
483
  if (!child ||
@@ -12,7 +12,7 @@ export const minimatch = (p, pattern, options = {}) => {
12
12
  return new Minimatch(pattern, options).match(p);
13
13
  };
14
14
  // Optimized checking for the most common glob patterns.
15
- const starDotExtRE = /^\*+([^+@!?*[(]*)$/;
15
+ const starDotExtRE = /^\*+([^+@!?\*\[\(]*)$/;
16
16
  const starDotExtTest = (ext) => (f) => !f.startsWith('.') && f.endsWith(ext);
17
17
  const starDotExtTestDot = (ext) => (f) => f.endsWith(ext);
18
18
  const starDotExtTestNocase = (ext) => {
@@ -31,7 +31,7 @@ const dotStarTest = (f) => f !== '.' && f !== '..' && f.startsWith('.');
31
31
  const starRE = /^\*+$/;
32
32
  const starTest = (f) => f.length !== 0 && !f.startsWith('.');
33
33
  const starTestDot = (f) => f.length !== 0 && f !== '.' && f !== '..';
34
- const qmarksRE = /^\?+([^+@!?*[(]*)?$/;
34
+ const qmarksRE = /^\?+([^+@!?\*\[\(]*)?$/;
35
35
  const qmarksTestNocase = ([$0, ext = '']) => {
36
36
  const noext = qmarksTestNoExt([$0]);
37
37
  if (!ext)
@@ -258,7 +258,6 @@ export class Minimatch {
258
258
  // step 2: expand braces
259
259
  this.globSet = [...new Set(this.braceExpand())];
260
260
  if (options.debug) {
261
- //oxlint-disable-next-line no-console
262
261
  this.debug = (...args) => console.error(...args);
263
262
  }
264
263
  this.debug(this.pattern, this.globSet);
@@ -321,10 +320,10 @@ export class Minimatch {
321
320
  preprocess(globParts) {
322
321
  // if we're not in globstar mode, then turn ** into *
323
322
  if (this.options.noglobstar) {
324
- for (const partset of globParts) {
325
- for (let j = 0; j < partset.length; j++) {
326
- if (partset[j] === '**') {
327
- partset[j] = '*';
323
+ for (let i = 0; i < globParts.length; i++) {
324
+ for (let j = 0; j < globParts[i].length; j++) {
325
+ if (globParts[i][j] === '**') {
326
+ globParts[i][j] = '*';
328
327
  }
329
328
  }
330
329
  }
@@ -412,11 +411,7 @@ export class Minimatch {
412
411
  let dd = 0;
413
412
  while (-1 !== (dd = parts.indexOf('..', dd + 1))) {
414
413
  const p = parts[dd - 1];
415
- if (p &&
416
- p !== '.' &&
417
- p !== '..' &&
418
- p !== '**' &&
419
- !(this.isWindows && /^[a-z]:$/i.test(p))) {
414
+ if (p && p !== '.' && p !== '..' && p !== '**') {
420
415
  didSomething = true;
421
416
  parts.splice(dd - 1, 2);
422
417
  dd -= 2;
@@ -665,17 +660,15 @@ export class Minimatch {
665
660
  // split the pattern up into globstar-delimited sections
666
661
  // the tail has to be at the end, and the others just have
667
662
  // to be found in order from the head.
668
- const [head, body, tail] = partial ?
669
- [
670
- pattern.slice(patternIndex, firstgs),
671
- pattern.slice(firstgs + 1),
672
- [],
673
- ]
674
- : [
675
- pattern.slice(patternIndex, firstgs),
676
- pattern.slice(firstgs + 1, lastgs),
677
- pattern.slice(lastgs + 1),
678
- ];
663
+ const [head, body, tail] = partial ? [
664
+ pattern.slice(patternIndex, firstgs),
665
+ pattern.slice(firstgs + 1),
666
+ [],
667
+ ] : [
668
+ pattern.slice(patternIndex, firstgs),
669
+ pattern.slice(firstgs + 1, lastgs),
670
+ pattern.slice(lastgs + 1),
671
+ ];
679
672
  // check the head, from the current file/pattern index.
680
673
  if (head.length) {
681
674
  const fileHead = file.slice(fileIndex, fileIndex + head.length);
@@ -1021,7 +1014,7 @@ export class Minimatch {
1021
1014
  this.regexp = new RegExp(re, [...flags].join(''));
1022
1015
  /* c8 ignore start */
1023
1016
  }
1024
- catch {
1017
+ catch (ex) {
1025
1018
  // should be impossible
1026
1019
  this.regexp = false;
1027
1020
  }
@@ -1036,7 +1029,7 @@ export class Minimatch {
1036
1029
  if (this.preserveMultipleSlashes) {
1037
1030
  return p.split('/');
1038
1031
  }
1039
- else if (this.isWindows && /^\/\/[^/]+/.test(p)) {
1032
+ else if (this.isWindows && /^\/\/[^\/]+/.test(p)) {
1040
1033
  // add an extra '' for the one we lose
1041
1034
  return ['', ...p.split(/\/+/)];
1042
1035
  }
@@ -1078,7 +1071,8 @@ export class Minimatch {
1078
1071
  filename = ff[i];
1079
1072
  }
1080
1073
  }
1081
- for (const pattern of set) {
1074
+ for (let i = 0; i < set.length; i++) {
1075
+ const pattern = set[i];
1082
1076
  let file = ff;
1083
1077
  if (options.matchBase && pattern.length === 1) {
1084
1078
  file = [filename];
@@ -20,15 +20,15 @@
20
20
  export const unescape = (s, { windowsPathsNoEscape = false, magicalBraces = true, } = {}) => {
21
21
  if (magicalBraces) {
22
22
  return windowsPathsNoEscape ?
23
- s.replace(/\[([^/\\])\]/g, '$1')
23
+ s.replace(/\[([^\/\\])\]/g, '$1')
24
24
  : s
25
- .replace(/((?!\\).|^)\[([^/\\])\]/g, '$1$2')
26
- .replace(/\\([^/])/g, '$1');
25
+ .replace(/((?!\\).|^)\[([^\/\\])\]/g, '$1$2')
26
+ .replace(/\\([^\/])/g, '$1');
27
27
  }
28
28
  return windowsPathsNoEscape ?
29
- s.replace(/\[([^/\\{}])\]/g, '$1')
29
+ s.replace(/\[([^\/\\{}])\]/g, '$1')
30
30
  : s
31
- .replace(/((?!\\).|^)\[([^/\\{}])\]/g, '$1$2')
32
- .replace(/\\([^/{}])/g, '$1');
31
+ .replace(/((?!\\).|^)\[([^\/\\{}])\]/g, '$1$2')
32
+ .replace(/\\([^\/{}])/g, '$1');
33
33
  };
34
34
  //# sourceMappingURL=unescape.js.map
@@ -2,7 +2,7 @@
2
2
  "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)",
3
3
  "name": "minimatch",
4
4
  "description": "a glob matcher in javascript",
5
- "version": "10.2.5",
5
+ "version": "10.2.4",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git@github.com:isaacs/minimatch"
@@ -36,23 +36,18 @@
36
36
  "snap": "tap",
37
37
  "format": "prettier --write .",
38
38
  "benchmark": "node benchmark/index.js",
39
- "typedoc": "typedoc --tsconfig .tshy/esm.json ./src/*.ts",
40
- "lint": "oxlint --fix src test",
41
- "postsnap": "npm run lint",
42
- "postlint": "npm run format"
39
+ "typedoc": "typedoc --tsconfig .tshy/esm.json ./src/*.ts"
43
40
  },
44
41
  "engines": {
45
42
  "node": "18 || 20 || >=22"
46
43
  },
47
44
  "devDependencies": {
48
- "@types/node": "^25.5.0",
45
+ "@types/node": "^25.3.0",
49
46
  "mkdirp": "^3.0.1",
50
- "oxlint": "^1.57.0",
51
- "oxlint-tsgolint": "^0.18.1",
52
- "prettier": "^3.8.1",
47
+ "prettier": "^3.6.2",
53
48
  "tap": "^21.6.2",
54
- "tshy": "^4.0.0",
55
- "typedoc": "^0.28.18"
49
+ "tshy": "^3.0.2",
50
+ "typedoc": "^0.28.5"
56
51
  },
57
52
  "funding": {
58
53
  "url": "https://github.com/sponsors/isaacs"
@@ -62,12 +57,11 @@
62
57
  "exports": {
63
58
  "./package.json": "./package.json",
64
59
  ".": "./src/index.ts"
65
- },
66
- "selfLink": false
60
+ }
67
61
  },
68
62
  "type": "module",
69
63
  "module": "./dist/esm/index.js",
70
64
  "dependencies": {
71
- "brace-expansion": "^5.0.5"
65
+ "brace-expansion": "^5.0.2"
72
66
  }
73
67
  }
@@ -0,0 +1,15 @@
1
+ The ISC License
2
+
3
+ Copyright (c) Isaac Z. Schlueter and Contributors
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15
+ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -1,12 +1,9 @@
1
1
  {
2
2
  "name": "minipass-flush",
3
- "version": "1.0.7",
4
- "publishConfig": {
5
- "tag": "v1-legacy"
6
- },
3
+ "version": "1.0.5",
7
4
  "description": "A Minipass stream that calls a flush function before emitting 'end'",
8
5
  "author": "Isaac Z. Schlueter <i@izs.me> (https://izs.me)",
9
- "license": "BlueOak-1.0.0",
6
+ "license": "ISC",
10
7
  "scripts": {
11
8
  "test": "tap",
12
9
  "snap": "tap",
@@ -18,7 +15,7 @@
18
15
  "check-coverage": true
19
16
  },
20
17
  "devDependencies": {
21
- "tap": "^15.1.6"
18
+ "tap": "^14.6.9"
22
19
  },
23
20
  "dependencies": {
24
21
  "minipass": "^3.0.0"