mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
Merge tag '2.8.1'
2.8.1 2.8.1
This commit is contained in:
commit
bdc8355216
@ -1,5 +1,8 @@
|
|||||||
# Bowser Changelog
|
# Bowser Changelog
|
||||||
|
|
||||||
|
### 2.8.1 (Dec 26, 2019)
|
||||||
|
- [FIX] Reverted [#382] as it broke build
|
||||||
|
|
||||||
### 2.8.0 (Dec 26, 2019)
|
### 2.8.0 (Dec 26, 2019)
|
||||||
- [ADD] Add polyfills for Array.find & Object.assign [#383]
|
- [ADD] Add polyfills for Array.find & Object.assign [#383]
|
||||||
- [ADD] Export constants with types.d.ts [#382]
|
- [ADD] Export constants with types.d.ts [#382]
|
||||||
|
8
index.d.ts
vendored
8
index.d.ts
vendored
@ -22,14 +22,6 @@ declare namespace Bowser {
|
|||||||
|
|
||||||
function parse(UA: string): Parser.ParsedResult;
|
function parse(UA: string): Parser.ParsedResult;
|
||||||
|
|
||||||
/**
|
|
||||||
* Constants exposed via bowser getters
|
|
||||||
*/
|
|
||||||
const BROWSER_MAP: Record<string, string>;
|
|
||||||
const ENGINE_MAP: Record<string, string>;
|
|
||||||
const OS_MAP: Record<string, string>;
|
|
||||||
const PLATFORMS_MAP: Record<string, string>;
|
|
||||||
|
|
||||||
namespace Parser {
|
namespace Parser {
|
||||||
interface Parser {
|
interface Parser {
|
||||||
constructor(UA: string, skipParsing?: boolean): Parser.Parser;
|
constructor(UA: string, skipParsing?: boolean): Parser.Parser;
|
||||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "bowser",
|
"name": "bowser",
|
||||||
"version": "2.8.0",
|
"version": "2.8.1",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "bowser",
|
"name": "bowser",
|
||||||
"version": "2.8.0",
|
"version": "2.8.1",
|
||||||
"description": "Lightweight browser detector",
|
"description": "Lightweight browser detector",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"browser",
|
"browser",
|
||||||
|
@ -74,10 +74,4 @@ class Bowser {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export {
|
|
||||||
BROWSER_MAP,
|
|
||||||
ENGINE_MAP,
|
|
||||||
OS_MAP,
|
|
||||||
PLATFORMS_MAP,
|
|
||||||
} from './constants.js';
|
|
||||||
export default Bowser;
|
export default Bowser;
|
||||||
|
Loading…
Reference in New Issue
Block a user