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.
- package/dist/index.js +4 -4
- 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(\.|
|
|
9697
|
-
const fetchRegex = /\bfetch
|
|
9698
|
-
const gotRegex = /\bgot(\.|
|
|
9699
|
-
const kyRegex = /\bky(\.|
|
|
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");
|