@fanboynz/network-scanner 1.0.99 → 2.0.1
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/lib/output.js +2 -2
- package/nwss.js +2 -2
- package/package.json +2 -2
package/lib/output.js
CHANGED
|
@@ -80,7 +80,7 @@ function extractDomainFromRule(rule) {
|
|
|
80
80
|
} else if (rule.startsWith('{ +block } .')) {
|
|
81
81
|
// Privoxy format: { +block } .domain.com
|
|
82
82
|
return rule.substring(12);
|
|
83
|
-
} else if (rule.match(/^\(
|
|
83
|
+
} else if (rule.match(/^\(\^\|\\\.\)/)) {
|
|
84
84
|
// Pi-hole regex format: (^|\.)domain\.com$
|
|
85
85
|
return rule.replace(/^\(\^\|\\?\.\)/, '').replace(/\\\./g, '.').replace(/\$$/, '');
|
|
86
86
|
}
|
|
@@ -660,4 +660,4 @@ module.exports = {
|
|
|
660
660
|
mapResourceTypeToAdblockModifier,
|
|
661
661
|
matchesIgnoreDomain,
|
|
662
662
|
extractDomainFromRule
|
|
663
|
-
};
|
|
663
|
+
};
|
package/nwss.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// === Network scanner script (nwss.js)
|
|
1
|
+
// === Network scanner script (nwss.js) v2.0.0 ===
|
|
2
2
|
|
|
3
3
|
// puppeteer for browser automation, fs for file system operations, psl for domain parsing.
|
|
4
4
|
// const pLimit = require('p-limit'); // Will be dynamically imported
|
|
@@ -127,7 +127,7 @@ const { navigateWithRedirectHandling, handleRedirectTimeout } = require('./lib/r
|
|
|
127
127
|
const { monitorBrowserHealth, isBrowserHealthy, isQuicklyResponsive, performGroupWindowCleanup, performRealtimeWindowCleanup, trackPageForRealtime, updatePageUsage } = require('./lib/browserhealth');
|
|
128
128
|
|
|
129
129
|
// --- Script Configuration & Constants ---
|
|
130
|
-
const VERSION = '
|
|
130
|
+
const VERSION = '2.0.0'; // Script version
|
|
131
131
|
|
|
132
132
|
// get startTime
|
|
133
133
|
const startTime = Date.now();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fanboynz/network-scanner",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "A Puppeteer-based network scanner for analyzing web traffic, generating adblock filter rules, and identifying third-party requests. Features include fingerprint spoofing, Cloudflare bypass, content analysis with curl/grep, and multiple output formats.",
|
|
5
5
|
"main": "nwss.js",
|
|
6
6
|
"scripts": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"lru-cache": "^10.4.3",
|
|
14
14
|
"p-limit": "^4.0.0",
|
|
15
15
|
"psl": "^1.15.0",
|
|
16
|
-
"puppeteer": ">=20.0.0
|
|
16
|
+
"puppeteer": ">=20.0.0"
|
|
17
17
|
},
|
|
18
18
|
"overrides": {
|
|
19
19
|
"tar-fs": "3.1.0",
|