From 69928b992f81605f5414e9f4684d8ca85f450d11 Mon Sep 17 00:00:00 2001 From: Lucio Martinez Date: Mon, 27 Nov 2023 15:19:06 +0100 Subject: [PATCH] feat(constants): add bot as a platform (#540) --- README.md | 2 +- src/constants.js | 1 + src/parser-platforms.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8f5f915..242d63b 100644 --- a/README.md +++ b/README.md @@ -149,7 +149,7 @@ list of aliases can be found in [the file](src/constants.js). ### Code Contributors -This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)]. +This project exists thanks to all the people who contribute. [[Contribute](.github/CONTRIBUTING.md)]. ### Financial Contributors diff --git a/src/constants.js b/src/constants.js index f335032..bd1b73b 100644 --- a/src/constants.js +++ b/src/constants.js @@ -88,6 +88,7 @@ export const PLATFORMS_MAP = { mobile: 'mobile', desktop: 'desktop', tv: 'tv', + bot: 'bot', }; export const OS_MAP = { diff --git a/src/parser-platforms.js b/src/parser-platforms.js index 48b1eb1..f973698 100644 --- a/src/parser-platforms.js +++ b/src/parser-platforms.js @@ -12,7 +12,7 @@ export default [ test: [/googlebot/i], describe() { return { - type: 'bot', + type: PLATFORMS_MAP.bot, vendor: 'Google', }; },