mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
Merge branch 'hotfix/2.0.0-beta.3'
This commit is contained in:
commit
6bde5e128f
@ -4,4 +4,5 @@ node_js:
|
|||||||
- "8.4.0"
|
- "8.4.0"
|
||||||
script:
|
script:
|
||||||
- npm run lint
|
- npm run lint
|
||||||
|
- npm build
|
||||||
- npm test
|
- npm test
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
# Bowser Changelog
|
# Bowser Changelog
|
||||||
|
|
||||||
|
### 2.0.0-beta.3 (September 15, 2018)
|
||||||
|
- [FIX] Fix Chrome Mobile detection (#253)
|
||||||
|
- [FIX] Use built bowser for CI (#252)
|
||||||
|
- [FIX] Update babel-plugin-add-module-exports (#251)
|
||||||
|
|
||||||
### 2.0.0-beta.2 (September 9, 2018)
|
### 2.0.0-beta.2 (September 9, 2018)
|
||||||
- [FIX] Fix failing comparing version through `Parser.satisfies` (#243)
|
- [FIX] Fix failing comparing version through `Parser.satisfies` (#243)
|
||||||
- [FIX] Fix travis testing, include eslint into CI testing
|
- [FIX] Fix travis testing, include eslint into CI testing
|
||||||
|
991
package-lock.json
generated
991
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "bowser",
|
"name": "bowser",
|
||||||
"version": "2.0.0-beta.2",
|
"version": "2.0.0-beta.3",
|
||||||
"description": "Lightweight browser detector",
|
"description": "Lightweight browser detector",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"browser",
|
"browser",
|
||||||
|
@ -2,6 +2,7 @@ import test from 'ava';
|
|||||||
import yaml from 'yamljs';
|
import yaml from 'yamljs';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import Bowser from '../../src/bowser';
|
import Bowser from '../../src/bowser';
|
||||||
|
import BowserBuild from '../../es5';
|
||||||
|
|
||||||
const listOfUA = yaml.load(path.join(__dirname, 'useragentstrings.yml'));
|
const listOfUA = yaml.load(path.join(__dirname, 'useragentstrings.yml'));
|
||||||
|
|
||||||
@ -11,7 +12,9 @@ browserNames.forEach((browserName) => {
|
|||||||
listOfUA[browserName].forEach((browser) => {
|
listOfUA[browserName].forEach((browser) => {
|
||||||
test('Check all the test browsers', (t) => {
|
test('Check all the test browsers', (t) => {
|
||||||
const parsed = Bowser.parse(browser.ua);
|
const parsed = Bowser.parse(browser.ua);
|
||||||
|
const parsedBuild = BowserBuild.parse(browser.ua);
|
||||||
t.deepEqual(parsed, browser.spec, `${browser.ua}`);
|
t.deepEqual(parsed, browser.spec, `${browser.ua}`);
|
||||||
|
t.deepEqual(parsedBuild, browser.spec, `${browser.ua}`);
|
||||||
t.is(parsed.browser.name, browserName, `${browser.ua}`);
|
t.is(parsed.browser.name, browserName, `${browser.ua}`);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user