@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.
@@ -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 > 3) {
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 || !window.chrome.runtime.id) {
2241
+ if (!window.chrome.runtime) {
2242
2242
  indicators.push("incomplete-chrome-object");
2243
2243
  confidence = Math.max(confidence, 0.4);
2244
2244
  }