BREAKING CHANGE - Add new property to browser: type

This commit is contained in:
Faisal Salman
2024-06-02 23:04:25 +07:00
parent 1a22c6951f
commit 39590f112d
8 changed files with 25 additions and 14 deletions

View File

@@ -15,12 +15,6 @@ const VERSION = 'version';
const MOBILE = 'mobile';
const TABLET = 'tablet';
const Apps = Object.freeze({
browser : [
[/chatlyio\/([\d\.]+)/i], [VERSION, 'Slack', [TYPE, 'app']]
]
});
const Bots = Object.freeze({
browser : [
// Googlebot / BingBot / MSNBot / FacebookBot
@@ -124,6 +118,12 @@ const Emails = Object.freeze({
]
});
const InApps = Object.freeze({
browser : [
[/chatlyio\/([\d\.]+)/i], [VERSION, 'Slack', [TYPE, 'inapp']]
]
});
const MediaPlayers = Object.freeze({
browser : [[
@@ -238,11 +238,11 @@ const Modules = Object.freeze({
});
module.exports = {
Apps,
Bots,
CLIs,
ExtraDevices,
Emails,
InApps,
MediaPlayers,
Modules
};