detect-browser
Advanced tools
Comparing version 5.2.1 to 5.3.0
@@ -89,2 +89,5 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
['opera', /OPR\/([0-9\.]+)(:?\s|$)/], | ||
['pie', /^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/], | ||
['pie', /^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/], | ||
['netfront', /^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/], | ||
['ie', /Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/], | ||
@@ -122,2 +125,3 @@ ['ie', /MSIE\s([0-9\.]+);.*Trident\/[4-7].0/], | ||
['Windows ME', /Windows ME/], | ||
['Windows CE', /Windows CE|WinCE|Microsoft Pocket Internet Explorer/], | ||
['Open BSD', /OpenBSD/], | ||
@@ -124,0 +128,0 @@ ['Sun OS', /SunOS/], |
@@ -44,4 +44,4 @@ /// <reference types="node" /> | ||
} | ||
export declare type Browser = 'aol' | 'edge' | 'edge-ios' | 'yandexbrowser' | 'kakaotalk' | 'samsung' | 'silk' | 'miui' | 'beaker' | 'edge-chromium' | 'chrome' | 'chromium-webview' | 'phantomjs' | 'crios' | 'firefox' | 'fxios' | 'opera-mini' | 'opera' | 'ie' | 'bb10' | 'android' | 'ios' | 'safari' | 'facebook' | 'instagram' | 'ios-webview' | 'curl' | 'searchbot'; | ||
export declare type OperatingSystem = 'iOS' | 'Android OS' | 'BlackBerry OS' | 'Windows Mobile' | 'Amazon OS' | 'Windows 3.11' | 'Windows 95' | 'Windows 98' | 'Windows 2000' | 'Windows XP' | 'Windows Server 2003' | 'Windows Vista' | 'Windows 7' | 'Windows 8' | 'Windows 8.1' | 'Windows 10' | 'Windows ME' | 'Open BSD' | 'Sun OS' | 'Linux' | 'Mac OS' | 'QNX' | 'BeOS' | 'OS/2' | 'Chrome OS'; | ||
export declare type Browser = 'aol' | 'edge' | 'edge-ios' | 'yandexbrowser' | 'kakaotalk' | 'samsung' | 'silk' | 'miui' | 'beaker' | 'edge-chromium' | 'chrome' | 'chromium-webview' | 'phantomjs' | 'crios' | 'firefox' | 'fxios' | 'opera-mini' | 'opera' | 'pie' | 'netfront' | 'ie' | 'bb10' | 'android' | 'ios' | 'safari' | 'facebook' | 'instagram' | 'ios-webview' | 'curl' | 'searchbot'; | ||
export declare type OperatingSystem = 'iOS' | 'Android OS' | 'BlackBerry OS' | 'Windows Mobile' | 'Amazon OS' | 'Windows 3.11' | 'Windows 95' | 'Windows 98' | 'Windows 2000' | 'Windows XP' | 'Windows Server 2003' | 'Windows Vista' | 'Windows 7' | 'Windows 8' | 'Windows 8.1' | 'Windows 10' | 'Windows ME' | 'Windows CE' | 'Open BSD' | 'Sun OS' | 'Linux' | 'Mac OS' | 'QNX' | 'BeOS' | 'OS/2' | 'Chrome OS'; | ||
export declare function detect(userAgent?: string): BrowserInfo | SearchBotDeviceInfo | BotInfo | NodeInfo | ReactNativeInfo | null; | ||
@@ -48,0 +48,0 @@ export declare function browserName(ua: string): Browser | null; |
@@ -92,2 +92,5 @@ "use strict"; | ||
['opera', /OPR\/([0-9\.]+)(:?\s|$)/], | ||
['pie', /^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/], | ||
['pie', /^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/], | ||
['netfront', /^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/], | ||
['ie', /Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/], | ||
@@ -125,2 +128,3 @@ ['ie', /MSIE\s([0-9\.]+);.*Trident\/[4-7].0/], | ||
['Windows ME', /Windows ME/], | ||
['Windows CE', /Windows CE|WinCE|Microsoft Pocket Internet Explorer/], | ||
['Open BSD', /OpenBSD/], | ||
@@ -127,0 +131,0 @@ ['Sun OS', /SunOS/], |
{ | ||
"name": "detect-browser", | ||
"version": "5.2.1", | ||
"version": "5.3.0", | ||
"description": "Unpack a browser type and version from the useragent string", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26975
489