@fanboynz/network-scanner 2.0.61 → 2.0.62
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/smart-cache.js +6 -6
- package/package.json +1 -1
package/lib/smart-cache.js
CHANGED
|
@@ -867,14 +867,14 @@ class SmartCache {
|
|
|
867
867
|
netToolsCacheSize: this.netToolsCache.size,
|
|
868
868
|
similarityCacheSize: this.similarityCache.size,
|
|
869
869
|
regexCacheSize: this.regexCache.size,
|
|
870
|
-
requestHitRate: this._enableRequest ?
|
|
870
|
+
requestHitRate: (this._enableRequest && this.requestCache) ?
|
|
871
871
|
(requestHitRate * 100).toFixed(2) + '%' : '0% (disabled)',
|
|
872
|
-
requestCacheSize: this._enableRequest ? this.requestCache.size : 0,
|
|
873
|
-
requestCacheMemoryMB: this._enableRequest ?
|
|
872
|
+
requestCacheSize: (this._enableRequest && this.requestCache) ? this.requestCache.size : 0,
|
|
873
|
+
requestCacheMemoryMB: (this._enableRequest && this.requestCache) ?
|
|
874
874
|
Math.round((this.requestCache.calculatedSize || 0) / 1048576) : 0,
|
|
875
|
-
totalCacheEntries: this.domainCache.size + this.patternCache.size +
|
|
876
|
-
this.responseCache.size + this.netToolsCache.size +
|
|
877
|
-
this.similarityCache.size + this.regexCache.size + (this._enableRequest ? this.requestCache.size : 0),
|
|
875
|
+
totalCacheEntries: this.domainCache.size + this.patternCache.size +
|
|
876
|
+
this.responseCache.size + this.netToolsCache.size +
|
|
877
|
+
this.similarityCache.size + this.regexCache.size + ((this._enableRequest && this.requestCache) ? this.requestCache.size : 0),
|
|
878
878
|
memoryUsageMB: Math.round(heapUsed / 1048576),
|
|
879
879
|
memoryMaxMB: Math.round(maxHeap / 1048576),
|
|
880
880
|
memoryUsagePercent: ((heapUsed / maxHeap) * 100).toFixed(1) + '%',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fanboynz/network-scanner",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.62",
|
|
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": {
|