@naturalcycles/js-lib 14.265.0 → 14.265.1

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/dist/bot.js CHANGED
@@ -64,7 +64,7 @@ class BotDetectionService {
64
64
  // if (userAgent.includes('Chrome') && !(globalThis as any).chrome) {
65
65
  // return BotReason.ChromeWithoutChrome // Headless Chrome
66
66
  // }
67
- if (this.cfg.treatCDPAsBotReason && this.detectCDP()) {
67
+ if (this.cfg.treatCDPAsBotReason && this.isCDP()) {
68
68
  return BotReason.CDP;
69
69
  }
70
70
  return null;
package/dist-esm/bot.js CHANGED
@@ -61,7 +61,7 @@ export class BotDetectionService {
61
61
  // if (userAgent.includes('Chrome') && !(globalThis as any).chrome) {
62
62
  // return BotReason.ChromeWithoutChrome // Headless Chrome
63
63
  // }
64
- if (this.cfg.treatCDPAsBotReason && this.detectCDP()) {
64
+ if (this.cfg.treatCDPAsBotReason && this.isCDP()) {
65
65
  return BotReason.CDP;
66
66
  }
67
67
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/js-lib",
3
- "version": "14.265.0",
3
+ "version": "14.265.1",
4
4
  "scripts": {
5
5
  "prepare": "husky",
6
6
  "build": "dev-lib build-esm-cjs",
package/src/bot.ts CHANGED
@@ -96,7 +96,7 @@ export class BotDetectionService {
96
96
  // return BotReason.ChromeWithoutChrome // Headless Chrome
97
97
  // }
98
98
 
99
- if (this.cfg.treatCDPAsBotReason && this.detectCDP()) {
99
+ if (this.cfg.treatCDPAsBotReason && this.isCDP()) {
100
100
  return BotReason.CDP
101
101
  }
102
102