mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
Merge branch 'hotfix/1.4.2' into develop
This commit is contained in:
commit
3cd6a0b812
@ -1,5 +1,11 @@
|
|||||||
# Bowser Changelog
|
# Bowser Changelog
|
||||||
|
|
||||||
|
|
||||||
|
### 1.4.2 (July 26, 2016)
|
||||||
|
|
||||||
|
- [FIX] Fix missing `isUnsupportedBrowser` in typings description
|
||||||
|
- [DOC] Fix `check`'s declaration in README
|
||||||
|
|
||||||
### 1.4.1 (July 7, 2016)
|
### 1.4.1 (July 7, 2016)
|
||||||
|
|
||||||
- [FIX] Fix `strictMode` logic for `isUnsupportedBrowser`
|
- [FIX] Fix `strictMode` logic for `isUnsupportedBrowser`
|
||||||
|
@ -28,7 +28,7 @@ Use it to get object with detected flags of your current browser.
|
|||||||
### bowser._detect(ua `:String`)`:Object`
|
### bowser._detect(ua `:String`)`:Object`
|
||||||
Use it to get object with detected flags from User Agent string.
|
Use it to get object with detected flags from User Agent string.
|
||||||
|
|
||||||
### bowser.check(minVersions`:Object`, strictMode`:Boolean`)`:Boolean`
|
### bowser.check(minVersions`:Object`, strictMode`:Boolean`, [ua]`:String`)`:Boolean`
|
||||||
Use it to check if browser supported.
|
Use it to check if browser supported.
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
"sniff",
|
"sniff",
|
||||||
"detection"
|
"detection"
|
||||||
],
|
],
|
||||||
"version": "1.4.1",
|
"version": "1.4.2",
|
||||||
"homepage": "https://github.com/ded/bowser",
|
"homepage": "https://github.com/ded/bowser",
|
||||||
"author": "Dustin Diaz <dustin@dustindiaz.com> (http://dustindiaz.com)",
|
"author": "Dustin Diaz <dustin@dustindiaz.com> (http://dustindiaz.com)",
|
||||||
"main": "./src/bowser.js",
|
"main": "./src/bowser.js",
|
||||||
|
1
typings.d.ts
vendored
1
typings.d.ts
vendored
@ -40,6 +40,7 @@ export const windows: boolean
|
|||||||
export const windowsphone: boolean
|
export const windowsphone: boolean
|
||||||
|
|
||||||
export function test(browserList: Flag[]): boolean
|
export function test(browserList: Flag[]): boolean
|
||||||
|
export function isUnsupportedBrowser(minVersions:Object, strictMode?:Boolean, ua?:string): boolean
|
||||||
|
|
||||||
export type Flag = "a" | "b" | "c" | "android" | "bada" | "blackberry"
|
export type Flag = "a" | "b" | "c" | "android" | "bada" | "blackberry"
|
||||||
| "chrome" | "firefox" | "gecko" | "ios" | "msie"
|
| "chrome" | "firefox" | "gecko" | "ios" | "msie"
|
||||||
|
Loading…
Reference in New Issue
Block a user