@naturalcycles/js-lib
Version:
Standard library for universal (browser + Node.js) javascript
16 lines (15 loc) • 595 B
JavaScript
export var BotReason;
(function (BotReason) {
BotReason[BotReason["NoNavigator"] = 1] = "NoNavigator";
BotReason[BotReason["NoUserAgent"] = 2] = "NoUserAgent";
BotReason[BotReason["UserAgent"] = 3] = "UserAgent";
BotReason[BotReason["WebDriver"] = 4] = "WebDriver";
// ZeroPlugins = 5,
BotReason[BotReason["EmptyLanguages"] = 6] = "EmptyLanguages";
// ChromeWithoutChrome = 7,
/**
* This is when CDP is considered to be a reason to be a Bot.
* By default it's not.
*/
BotReason[BotReason["CDP"] = 8] = "CDP";
})(BotReason || (BotReason = {}));