mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
Merge branch 'hotfix/1.9.3' into production
This commit is contained in:
commit
55f3736414
@ -1,5 +1,8 @@
|
|||||||
# Bowser Changelog
|
# Bowser Changelog
|
||||||
|
|
||||||
|
### 1.9.3 (March 12, 2018)
|
||||||
|
- [FIX] Fix `typings.d.ts` — add `ipad`, `iphone`, `ipod` flags to the interface
|
||||||
|
|
||||||
### 1.9.2 (February 5, 2018)
|
### 1.9.2 (February 5, 2018)
|
||||||
- [FIX] Fix `typings.d.ts` — add `osname` flag to the interface
|
- [FIX] Fix `typings.d.ts` — add `osname` flag to the interface
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
"ender",
|
"ender",
|
||||||
"sniff"
|
"sniff"
|
||||||
],
|
],
|
||||||
"version": "1.9.2",
|
"version": "1.9.3",
|
||||||
"homepage": "https://github.com/lancedikson/bowser",
|
"homepage": "https://github.com/lancedikson/bowser",
|
||||||
"scripts": [
|
"scripts": [
|
||||||
"src/bowser.js"
|
"src/bowser.js"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "bowser",
|
"name": "bowser",
|
||||||
"version": "1.9.2",
|
"version": "1.9.3",
|
||||||
"description": "Lightweight browser detector",
|
"description": "Lightweight browser detector",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"browser",
|
"browser",
|
||||||
|
17
typings.d.ts
vendored
17
typings.d.ts
vendored
@ -8,6 +8,15 @@ export = bowser;
|
|||||||
export as namespace bowser;
|
export as namespace bowser;
|
||||||
|
|
||||||
declare namespace bowser {
|
declare namespace bowser {
|
||||||
|
export interface IBowserPlatform {
|
||||||
|
ipad: boolean;
|
||||||
|
ipod: boolean;
|
||||||
|
iphone: boolean;
|
||||||
|
/** If a tablet device is detected, the flag tablet is set instead of mobile. */
|
||||||
|
tablet: boolean;
|
||||||
|
/** All detected mobile OSes are additionally flagged mobile, unless it's a tablet */
|
||||||
|
mobile: boolean;
|
||||||
|
}
|
||||||
|
|
||||||
export interface IBowserOS {
|
export interface IBowserOS {
|
||||||
mac: boolean;
|
mac: boolean;
|
||||||
@ -39,6 +48,7 @@ declare namespace bowser {
|
|||||||
android: boolean;
|
android: boolean;
|
||||||
ios: boolean;
|
ios: boolean;
|
||||||
opera: boolean;
|
opera: boolean;
|
||||||
|
samsungBrowser: boolean;
|
||||||
phantom: boolean;
|
phantom: boolean;
|
||||||
blackberry: boolean;
|
blackberry: boolean;
|
||||||
webos: boolean;
|
webos: boolean;
|
||||||
@ -65,11 +75,6 @@ declare namespace bowser {
|
|||||||
gecko: boolean;
|
gecko: boolean;
|
||||||
/** IE > 11 */
|
/** IE > 11 */
|
||||||
msedge: boolean;
|
msedge: boolean;
|
||||||
/** If a tablet device is detected, the flag tablet is set instead of mobile. */
|
|
||||||
tablet: boolean;
|
|
||||||
/** All detected mobile OSes are additionally flagged mobile, unless it's a tablet */
|
|
||||||
mobile: boolean;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IBowserGrade {
|
export interface IBowserGrade {
|
||||||
@ -89,7 +94,7 @@ declare namespace bowser {
|
|||||||
osversion: string|number;
|
osversion: string|number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IBowserDetection extends IBowserGrade, IBowserEngines, IBowserOS, IBowserVersions { }
|
export interface IBowserDetection extends IBowserGrade, IBowserEngines, IBowserOS, IBowserVersions, IBowserPlatform { }
|
||||||
|
|
||||||
export interface IBowserMinVersions {
|
export interface IBowserMinVersions {
|
||||||
// { msie: "11", "firefox": "4" }
|
// { msie: "11", "firefox": "4" }
|
||||||
|
Loading…
Reference in New Issue
Block a user