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