Skip to content

Commit

Permalink
Merge branch 'release/1.1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
lancedikson committed May 7, 2016
2 parents 32c86b8 + fe9e51b commit f98d32b
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"sniff",
"detection"
],
"version": "1.1.0",
"version": "1.1.1",
"homepage": "https://github.com/ded/bowser",
"scripts": [
"src/bowser.js"
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
"sniff",
"detection"
],
"version": "1.1.0",
"version": "1.1.1",
"homepage": "https://github.com/ded/bowser",
"author": "Dustin Diaz <[email protected]> (http://dustindiaz.com)",
"main": "./src/bowser.js",
"typings": "./typings.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/ded/bowser.git"
Expand Down
9 changes: 9 additions & 0 deletions src/useragents.js
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,15 @@ module.exports.useragents = {
, webkit: true
, x: true
}
, 'Mozilla/5.0 (iPhone; CPU iPhone OS 9_0 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13A344 Safari/601.1': {
ios: true
, osversion: '9.0'
, version: '9.0'
, iphone: true
, mobile: true
, webkit: true
, a: true
}
}
, iPad: {
'Mozilla/5.0 (iPad; CPU OS 7_0_4 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11B554a Safari/9537.53': {
Expand Down
51 changes: 51 additions & 0 deletions typings.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
export const name: string
export const osversion: string
export const version: string

// grades
export const a: boolean
export const b: boolean
export const c: boolean

// engines
export const android: boolean
export const bada: boolean
export const blackberry: boolean
export const chrome: boolean
export const firefox: boolean
export const gecko: boolean
export const ios: boolean
export const msie: boolean
export const msedge: boolean
export const opera: boolean
export const phantom: boolean
export const safari: boolean
export const sailfish: boolean
export const seamonkey: boolean
export const silk: boolean
export const tizen: boolean
export const webkit: boolean
export const webos: boolean

// operating systems
export const chromeos: boolean
export const iphone: boolean
export const ipad: boolean
export const ipod: boolean
export const firefoxos: boolean
export const linux: boolean
export const mac: boolean
export const touchpad: boolean
export const windows: boolean
export const windowsphone: boolean

export function test(browserList: Flag[]): boolean

export type Flag = "a" | "b" | "c" | "android" | "bada" | "blackberry"
| "chrome" | "firefox" | "gecko" | "ios" | "msie"
| "msedge" | "opera" | "phantom" | "safari"
| "sailfish" | "seamonkey" | "silk" | "tizen"
| "webkit" | "webos" | "chromeos" | "iphone"
| "ipad" | "ipod" | "firefoxos" | "linux" | "mac"
| "touchpad" | "windows" | "windowsphone"

0 comments on commit f98d32b

Please sign in to comment.