From 94ab87ec0e89c632c367618af7254d1694329ac0 Mon Sep 17 00:00:00 2001 From: Naor Peled Date: Mon, 27 Nov 2023 16:21:18 +0200 Subject: [PATCH] feat(constants): add bot as a platform (#540) (#541) Co-authored-by: Lucio Martinez --- 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 db9fda3..9ce0c25 100644 --- a/src/constants.js +++ b/src/constants.js @@ -90,6 +90,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 bb3be8d..15eedac 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', }; },