mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-11-18 15:50:36 +03:00
[submodule:extensions] Restore Bots as an umbrella term for any kind of automated browsers: CLIs, Crawlers, Fetchers, and Modules
This commit is contained in:
1
src/extensions/ua-parser-extensions.d.ts
vendored
1
src/extensions/ua-parser-extensions.d.ts
vendored
@@ -4,6 +4,7 @@
|
||||
|
||||
import type { UAParserExt } from "../main/ua-parser";
|
||||
|
||||
export const Bots: UAParserExt;
|
||||
export const CLIs: UAParserExt;
|
||||
export const Crawlers: UAParserExt;
|
||||
export const ExtraDevices: UAParserExt;
|
||||
|
||||
@@ -342,7 +342,21 @@ const Modules = Object.freeze({
|
||||
]
|
||||
});
|
||||
|
||||
//////////
|
||||
// BOTS
|
||||
/////////
|
||||
|
||||
const Bots = Object.freeze({
|
||||
browser : [
|
||||
...CLIs.browser,
|
||||
...Crawlers.browser,
|
||||
...Fetchers.browser,
|
||||
...Modules.browser
|
||||
]
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
Bots,
|
||||
CLIs,
|
||||
Crawlers,
|
||||
ExtraDevices,
|
||||
|
||||
Reference in New Issue
Block a user