UNPKG

ua-parser-js

Version:

Detect Browser, Engine, OS, CPU, and Device type/model from User-Agent & Client Hints data. Supports browser & node.js environment

72 lines (60 loc) 1.93 kB
// Generated ESM version of ua-parser-js/helpers // DO NOT EDIT THIS FILE! // Source: /src/helpers/ua-parser-helpers.js /////////////////////////////////////////////// /* Helpers for UAParser.js v2.0.7 https://github.com/faisalman/ua-parser-js Author: Faisal Salman <f@faisalman.com> AGPLv3 License */ ////////////////////////////////////////////// /*jshint esversion: 6 */ import { UAParser } from '../main/ua-parser.mjs'; import { EngineName } from '../enums/ua-parser-enums.mjs'; import { getDeviceVendor: _getDeviceVendor, isAppleSilicon: _isAppleSilicon } from '../device-detection/device-detection.mjs'; import { isBot: _isBot, isAICrawler } from '../bot-detection/bot-detection.mjs'; import { isChromeFamily: _isChromeFamily, isElectron: _isElectron, isStandalonePWA: _isStandalonePWA } from '../browser-detection/browser-detection.mjs'; import { isFromEU: _isFromEU } from '../browser-detection/browser-detection.mjs'; import { isFrozenUA } from 'ua-is-frozen'; /** * @deprecated Moved to `device-detection` submodule */ const getDeviceVendor = _getDeviceVendor; /** * @deprecated Moved to `device-detection` submodule */ const isAppleSilicon = _isAppleSilicon; /** * @deprecated Moved to `bot-detection` submodule */ const isAIBot = isAICrawler; /** * @deprecated Moved to `bot-detection` submodule */ const isBot = _isBot; /** * @deprecated Moved to `browser-detection` submodule */ const isChromeFamily = _isChromeFamily; /** * @deprecated Moved to `browser-detection` submodule */ const isElectron = () => _isElectron; /** * @deprecated Moved to `browser-detection` submodule */ const isFromEU = _isFromEU; /** * @deprecated Moved to `browser-detection` submodule */ const isStandalonePWA = _isStandalonePWA; export { getDeviceVendor, isAppleSilicon, isAIBot, isBot, isChromeFamily, isElectron, isFromEU, isFrozenUA, isStandalonePWA }