@fanboynz/network-scanner 2.0.59 → 2.0.60
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/CHANGELOG.md +30 -0
- package/lib/adblock.js +215 -179
- package/lib/compare.js +19 -32
- package/lib/domain-cache.js +9 -7
- package/lib/grep.js +9 -13
- package/lib/nettools.js +177 -42
- package/lib/output.js +17 -30
- package/nwss.js +75 -23
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to the Network Scanner (nwss.js) project.
|
|
4
4
|
|
|
5
|
+
## [2.0.60] - 2026-03-16
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- `--dns-cache` flag for persistent dig/whois disk caching between runs (`.digcache`, `.whoiscache`)
|
|
9
|
+
- `--load-extension <path>` flag to load unpacked Chrome extensions (supports multiple)
|
|
10
|
+
- `--block-ads` now supports comma-separated list files (`--block-ads=easylist.txt,easyprivacy.txt`)
|
|
11
|
+
- `disable_ad_tagging` config option to control Chrome AdTagging (default: true)
|
|
12
|
+
- DNS cache hit/miss statistics in scan summary output with fresh domain names listed
|
|
13
|
+
- Concurrent dig/whois deduplication — multiple pages requesting the same domain share one lookup
|
|
14
|
+
- SIGINT/SIGTERM handlers for `--keep-open` to prevent orphaned Chrome processes
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
- Adblock pipe (`|`) character handling — mid-pattern pipes were incorrectly treated as anchors, causing broad false positives on EasyList rules like `/addyn|*|adtech;`
|
|
18
|
+
- Domain Map fast path was skipping resource type checks — `$ping`, `$script` etc. now correctly enforced
|
|
19
|
+
- Domain extraction for `||domain.com/path` rules — path was incorrectly included in domain name
|
|
20
|
+
- `--keep-open` now skips extension-blocking Chrome flags so Chrome Web Store and extensions work
|
|
21
|
+
- Corrupt disk cache files are deleted instead of persisted
|
|
22
|
+
- `getBaseDomain()` now uses `psl` for correct multi-part TLD handling (`.co.uk`, `.com.au`)
|
|
23
|
+
- Merged 7 separate `--disable-features` flags into one — Chrome only reads the last occurrence
|
|
24
|
+
|
|
25
|
+
### Improved
|
|
26
|
+
- `$document` rules treated as full domain blocks (matches all resource types)
|
|
27
|
+
- `adblock.js`: regex cache for compiled patterns, Set for resource type lookups, lazy parentDomains, two-level result cache with LRU eviction (32K), hoisted constants, freed parsed options after rule parsing
|
|
28
|
+
- `output.js`: capped wildcard regex cache at 500, simplified `*.domain.com` suffix matching, hoisted resource type map
|
|
29
|
+
- `compare.js`: pre-compiled and deduplicated 6 normalization regexes
|
|
30
|
+
- `grep.js`: build grep args once outside pattern loop
|
|
31
|
+
- `domain-cache.js`: use Set iterator for eviction instead of full array copy
|
|
32
|
+
- `nettools.js`: hoisted ANSI strip regex, disk cache flushes once on exit instead of per-lookup
|
|
33
|
+
- Dig/whois cache: 14-hour TTL, 1000 entry limit, pretty-printed JSON files
|
|
34
|
+
|
|
5
35
|
## [2.0.59] - 2026-03-15
|
|
6
36
|
|
|
7
37
|
### Added
|