@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
package/dist/bot-detector.esm.js
CHANGED
|
@@ -2177,14 +2177,14 @@ var PuppeteerSignal = class extends Signal {
|
|
|
2177
2177
|
confidence = Math.max(confidence, 0.9);
|
|
2178
2178
|
}
|
|
2179
2179
|
const suspiciousBindings = Object.keys(window).filter((key) => {
|
|
2180
|
-
return key.startsWith("__") && typeof window[key] === "function";
|
|
2180
|
+
return key.startsWith("__") && !key.startsWith("__zone_symbol__") && typeof window[key] === "function";
|
|
2181
2181
|
});
|
|
2182
|
-
if (suspiciousBindings.length >
|
|
2182
|
+
if (suspiciousBindings.length > 5) {
|
|
2183
2183
|
indicators.push("suspicious-bindings");
|
|
2184
2184
|
confidence = Math.max(confidence, 0.5);
|
|
2185
2185
|
}
|
|
2186
2186
|
if (typeof window.chrome !== "undefined") {
|
|
2187
|
-
if (!window.chrome.runtime
|
|
2187
|
+
if (!window.chrome.runtime) {
|
|
2188
2188
|
indicators.push("incomplete-chrome-object");
|
|
2189
2189
|
confidence = Math.max(confidence, 0.4);
|
|
2190
2190
|
}
|