@niksbanna/bot-detector 1.0.0 → 1.0.2
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/README.md +37 -2
- package/dist/bot-detector.cjs.js +3 -3
- package/dist/bot-detector.cjs.js.map +2 -2
- package/dist/bot-detector.esm.js +3 -3
- package/dist/bot-detector.esm.js.map +2 -2
- package/dist/bot-detector.iife.js +3 -3
- package/dist/bot-detector.iife.js.map +2 -2
- package/dist/bot-detector.iife.min.js +1 -1
- package/package.json +5 -4
- package/src/signals/automation/PuppeteerSignal.js +8 -3
|
@@ -2231,14 +2231,14 @@ var BotDetectorLib = (() => {
|
|
|
2231
2231
|
confidence = Math.max(confidence, 0.9);
|
|
2232
2232
|
}
|
|
2233
2233
|
const suspiciousBindings = Object.keys(window).filter((key) => {
|
|
2234
|
-
return key.startsWith("__") && typeof window[key] === "function";
|
|
2234
|
+
return key.startsWith("__") && !key.startsWith("__zone_symbol__") && typeof window[key] === "function";
|
|
2235
2235
|
});
|
|
2236
|
-
if (suspiciousBindings.length >
|
|
2236
|
+
if (suspiciousBindings.length > 5) {
|
|
2237
2237
|
indicators.push("suspicious-bindings");
|
|
2238
2238
|
confidence = Math.max(confidence, 0.5);
|
|
2239
2239
|
}
|
|
2240
2240
|
if (typeof window.chrome !== "undefined") {
|
|
2241
|
-
if (!window.chrome.runtime
|
|
2241
|
+
if (!window.chrome.runtime) {
|
|
2242
2242
|
indicators.push("incomplete-chrome-object");
|
|
2243
2243
|
confidence = Math.max(confidence, 0.4);
|
|
2244
2244
|
}
|