pruny 1.26.0 → 1.27.0

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 (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9693,10 +9693,10 @@ async function scanHttpUsage(config) {
9693
9693
  let fetchCount = 0;
9694
9694
  let gotCount = 0;
9695
9695
  let kyCount = 0;
9696
- const axiosRegex = /\baxios(\.|[\s]*\()/g;
9697
- const fetchRegex = /\bfetch[\s]*\(/g;
9698
- const gotRegex = /\bgot(\.|[\s]*\()/g;
9699
- const kyRegex = /\bky(\.|[\s]*\()/g;
9696
+ const axiosRegex = /\baxios(\.|(\s*<[^>]+>)?\s*\()/g;
9697
+ const fetchRegex = /\bfetch(\s*<[^>]+>)?\s*\(/g;
9698
+ const gotRegex = /\bgot(\.|(\s*<[^>]+>)?\s*\()/g;
9699
+ const kyRegex = /\bky(\.|(\s*<[^>]+>)?\s*\()/g;
9700
9700
  for (const file of files) {
9701
9701
  try {
9702
9702
  const content = readFileSync4(file, "utf-8");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pruny",
3
- "version": "1.26.0",
3
+ "version": "1.27.0",
4
4
  "description": "Find and remove unused Next.js API routes & Nest.js Controllers",
5
5
  "type": "module",
6
6
  "files": [