Skip to content

Commit fea2973

Browse files
authored
Fix security vulnerability and cleanup deps (#11)
* Fix security venerability During install, npm warned against the following venerability GHSA-67mh-4wv8-2f99 . This commit bumps the effected esbuild version and vitest, which depends on it. * Bump and Remove Unused Dependencies, add Formatting This commit updates prettier, so it now respects and therefore ignores files in the folder dist. Furthermore, arg, npm-run-all and globby are not used and only pull in unused code and therefore cause a wider attack surface on developer machines * Format Code, and Fix Spacing and Name in bench.js The spacing in scripts/bench.js was off, leading to an unconsitent visual output when running the benchmark. Furthermore, the benchmark was still named ultraflags. Prettier was used to format the rest of the code * Revert "Format Code, and Fix Spacing and Name in bench.js" This reverts commit 4f460e5. * Fix Spacing and Library Name in bench.js The spacing in scripts/bench.js was off, leading to an unconsitent visual output when running the benchmark. Furthermore, the benchmark was still named ultraflags.
1 parent 23f5ccf commit fea2973

File tree

3 files changed

+722
-1742
lines changed

3 files changed

+722
-1742
lines changed

package.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@
1717
"homepage": "https://github.com/bombshell-dev/args#README",
1818
"scripts": {
1919
"build": "node scripts/build.js && tsc -p .",
20-
"lint": "prettier \"**/*.{js,ts,md}\"",
2120
"bench": "node scripts/bench.js",
2221
"dev": "vitest",
22+
"fmt": "prettier --write \"**/*.{js,ts,md}\"",
23+
"fmt:check": "prettier --list-different \"**/*.{js,ts,md}\"",
2324
"test": "vitest run"
2425
},
2526
"files": [
@@ -51,19 +52,16 @@
5152
"packageManager": "[email protected]",
5253
"devDependencies": {
5354
"@changesets/cli": "^2.18.1",
54-
"arg": "^5.0.2",
5555
"benchmark": "^2.1.4",
56-
"chalk": "^5.1.2",
57-
"esbuild": "^0.14.51",
58-
"globby": "^13.1.2",
56+
"chalk": "^5.4.1",
57+
"esbuild": "^0.25.1",
5958
"gzip-size": "^7.0.0",
6059
"minimist": "^1.2.7",
6160
"mri": "^1.2.0",
62-
"npm-run-all": "^4.1.5",
63-
"prettier": "^2.5.1",
61+
"prettier": "^3.5.3",
6462
"pretty-bytes": "^6.0.0",
6563
"typescript": "^4.7.4",
66-
"vitest": "^0.20.2",
64+
"vitest": "^3.0.9",
6765
"yargs-parser": "^21.1.1"
6866
}
6967
}

0 commit comments

Comments
 (0)