Skip to content

Commit 6fd94f2

Browse files
committed
deps: minimatch@9.0.4
1 parent b048592 commit 6fd94f2

19 files changed

+48
-36
lines changed

node_modules/minimatch/dist/cjs/ast.js node_modules/minimatch/dist/commonjs/ast.js

+3
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,9 @@ class AST {
338338
_glob: glob,
339339
});
340340
}
341+
get options() {
342+
return this.#options;
343+
}
341344
// returns the string match, the regexp source, whether there's magic
342345
// in the regexp (so a regular expression is required) and whether or
343346
// not the uflag is needed for the regular expression (for posix classes)

node_modules/minimatch/dist/cjs/index.js node_modules/minimatch/dist/commonjs/index.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ class Minimatch {
344344
globParts = this.levelOneOptimize(globParts);
345345
}
346346
else {
347+
// just collapse multiple ** portions into one
347348
globParts = this.adjascentGlobstarOptimize(globParts);
348349
}
349350
return globParts;
@@ -833,7 +834,11 @@ class Minimatch {
833834
fastTest = dotStarTest;
834835
}
835836
const re = ast_js_1.AST.fromGlob(pattern, this.options).toMMPattern();
836-
return fastTest ? Object.assign(re, { test: fastTest }) : re;
837+
if (fastTest && typeof re === 'object') {
838+
// Avoids overriding in frozen environments
839+
Reflect.defineProperty(re, 'test', { value: fastTest });
840+
}
841+
return re;
837842
}
838843
makeRe() {
839844
if (this.regexp || this.regexp === false)

node_modules/minimatch/dist/mjs/ast.js node_modules/minimatch/dist/esm/ast.js

+3
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,9 @@ export class AST {
335335
_glob: glob,
336336
});
337337
}
338+
get options() {
339+
return this.#options;
340+
}
338341
// returns the string match, the regexp source, whether there's magic
339342
// in the regexp (so a regular expression is required) and whether or
340343
// not the uflag is needed for the regular expression (for posix classes)

node_modules/minimatch/dist/mjs/index.js node_modules/minimatch/dist/esm/index.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ export class Minimatch {
332332
globParts = this.levelOneOptimize(globParts);
333333
}
334334
else {
335+
// just collapse multiple ** portions into one
335336
globParts = this.adjascentGlobstarOptimize(globParts);
336337
}
337338
return globParts;
@@ -821,7 +822,11 @@ export class Minimatch {
821822
fastTest = dotStarTest;
822823
}
823824
const re = AST.fromGlob(pattern, this.options).toMMPattern();
824-
return fastTest ? Object.assign(re, { test: fastTest }) : re;
825+
if (fastTest && typeof re === 'object') {
826+
// Avoids overriding in frozen environments
827+
Reflect.defineProperty(re, 'test', { value: fastTest });
828+
}
829+
return re;
825830
}
826831
makeRe() {
827832
if (this.regexp || this.regexp === false)

node_modules/minimatch/package.json

+21-25
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)",
33
"name": "minimatch",
44
"description": "a glob matcher in javascript",
5-
"version": "9.0.3",
5+
"version": "9.0.4",
66
"repository": {
77
"type": "git",
88
"url": "git://github.com/isaacs/minimatch.git"
99
},
10-
"main": "./dist/cjs/index.js",
11-
"module": "./dist/mjs/index.js",
12-
"types": "./dist/cjs/index.d.ts",
10+
"main": "./dist/commonjs/index.js",
11+
"types": "./dist/commonjs/index.d.ts",
1312
"exports": {
13+
"./package.json": "./package.json",
1414
".": {
1515
"import": {
16-
"types": "./dist/mjs/index.d.ts",
17-
"default": "./dist/mjs/index.js"
16+
"types": "./dist/esm/index.d.ts",
17+
"default": "./dist/esm/index.js"
1818
},
1919
"require": {
20-
"types": "./dist/cjs/index.d.ts",
21-
"default": "./dist/cjs/index.js"
20+
"types": "./dist/commonjs/index.d.ts",
21+
"default": "./dist/commonjs/index.js"
2222
}
2323
}
2424
},
@@ -29,13 +29,11 @@
2929
"preversion": "npm test",
3030
"postversion": "npm publish",
3131
"prepublishOnly": "git push origin --follow-tags",
32-
"preprepare": "rm -rf dist",
33-
"prepare": "tsc -p tsconfig.json && tsc -p tsconfig-esm.json",
34-
"postprepare": "bash fixup.sh",
32+
"prepare": "tshy",
3533
"pretest": "npm run prepare",
3634
"presnap": "npm run prepare",
37-
"test": "c8 tap",
38-
"snap": "c8 tap",
35+
"test": "tap",
36+
"snap": "tap",
3937
"format": "prettier --write . --loglevel warn",
4038
"benchmark": "node benchmark/index.js",
4139
"typedoc": "typedoc --tsconfig tsconfig-esm.json ./src/*.ts"
@@ -61,26 +59,24 @@
6159
"@types/brace-expansion": "^1.1.0",
6260
"@types/node": "^18.15.11",
6361
"@types/tap": "^15.0.8",
64-
"c8": "^7.12.0",
6562
"eslint-config-prettier": "^8.6.0",
6663
"mkdirp": "1",
6764
"prettier": "^2.8.2",
68-
"tap": "^16.3.7",
65+
"tap": "^18.7.2",
6966
"ts-node": "^10.9.1",
67+
"tshy": "^1.12.0",
7068
"typedoc": "^0.23.21",
7169
"typescript": "^4.9.3"
7270
},
73-
"tap": {
74-
"coverage": false,
75-
"node-arg": [
76-
"--no-warnings",
77-
"--loader",
78-
"ts-node/esm"
79-
],
80-
"ts": false
81-
},
8271
"funding": {
8372
"url": "https://github.com/sponsors/isaacs"
8473
},
85-
"license": "ISC"
74+
"license": "ISC",
75+
"tshy": {
76+
"exports": {
77+
"./package.json": "./package.json",
78+
".": "./src/index.ts"
79+
}
80+
},
81+
"type": "module"
8682
}

package-lock.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
"libnpmteam": "^6.0.0",
127127
"libnpmversion": "^5.0.1",
128128
"make-fetch-happen": "^13.0.0",
129-
"minimatch": "^9.0.3",
129+
"minimatch": "^9.0.4",
130130
"minipass": "^7.0.4",
131131
"minipass-pipeline": "^1.2.4",
132132
"ms": "^2.1.2",
@@ -9556,9 +9556,9 @@
95569556
}
95579557
},
95589558
"node_modules/minimatch": {
9559-
"version": "9.0.3",
9560-
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz",
9561-
"integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==",
9559+
"version": "9.0.4",
9560+
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz",
9561+
"integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==",
95629562
"inBundle": true,
95639563
"dependencies": {
95649564
"brace-expansion": "^2.0.1"
@@ -16064,7 +16064,7 @@
1606416064
"hosted-git-info": "^7.0.1",
1606516065
"json-parse-even-better-errors": "^3.0.0",
1606616066
"json-stringify-nice": "^1.1.4",
16067-
"minimatch": "^9.0.0",
16067+
"minimatch": "^9.0.4",
1606816068
"nopt": "^7.0.0",
1606916069
"npm-install-checks": "^6.2.0",
1607016070
"npm-package-arg": "^11.0.1",
@@ -16150,7 +16150,7 @@
1615016150
"@npmcli/installed-package-contents": "^2.0.2",
1615116151
"binary-extensions": "^2.3.0",
1615216152
"diff": "^5.1.0",
16153-
"minimatch": "^9.0.0",
16153+
"minimatch": "^9.0.4",
1615416154
"npm-package-arg": "^11.0.1",
1615516155
"pacote": "^17.0.4",
1615616156
"tar": "^6.2.0"

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
"libnpmteam": "^6.0.0",
9090
"libnpmversion": "^5.0.1",
9191
"make-fetch-happen": "^13.0.0",
92-
"minimatch": "^9.0.3",
92+
"minimatch": "^9.0.4",
9393
"minipass": "^7.0.4",
9494
"minipass-pipeline": "^1.2.4",
9595
"ms": "^2.1.2",

workspaces/arborist/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"hosted-git-info": "^7.0.1",
2020
"json-parse-even-better-errors": "^3.0.0",
2121
"json-stringify-nice": "^1.1.4",
22-
"minimatch": "^9.0.0",
22+
"minimatch": "^9.0.4",
2323
"nopt": "^7.0.0",
2424
"npm-install-checks": "^6.2.0",
2525
"npm-package-arg": "^11.0.1",

workspaces/libnpmdiff/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"@npmcli/installed-package-contents": "^2.0.2",
5252
"binary-extensions": "^2.3.0",
5353
"diff": "^5.1.0",
54-
"minimatch": "^9.0.0",
54+
"minimatch": "^9.0.4",
5555
"npm-package-arg": "^11.0.1",
5656
"pacote": "^17.0.4",
5757
"tar": "^6.2.0"

0 commit comments

Comments
 (0)