mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
Merge tag '2.0.0-beta.3' into develop
no message
This commit is contained in:
commit
be6a7b2d41
@ -4,4 +4,5 @@ node_js:
|
||||
- "8.4.0"
|
||||
script:
|
||||
- npm run lint
|
||||
- npm build
|
||||
- npm test
|
||||
|
@ -1,5 +1,10 @@
|
||||
# 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)
|
||||
- [FIX] Fix failing comparing version through `Parser.satisfies` (#243)
|
||||
- [FIX] Fix travis testing, include eslint into CI testing
|
||||
|
993
package-lock.json
generated
993
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "bowser",
|
||||
"version": "2.0.0-beta.2",
|
||||
"version": "2.0.0-beta.3",
|
||||
"description": "Lightweight browser detector",
|
||||
"keywords": [
|
||||
"browser",
|
||||
@ -31,7 +31,7 @@
|
||||
"babel-core": "^6.26.3",
|
||||
"babel-eslint": "^9.0.0",
|
||||
"babel-loader": "^7.1.5",
|
||||
"babel-plugin-add-module-exports": "^0.3.1",
|
||||
"babel-plugin-add-module-exports": "^1.0.0",
|
||||
"babel-plugin-istanbul": "^4.1.6",
|
||||
"babel-polyfill": "^6.26.0",
|
||||
"babel-preset-env": "^1.7.0",
|
||||
|
@ -50,7 +50,7 @@ const browsersList = [
|
||||
|
||||
/* Opera > 13.0 */
|
||||
{
|
||||
test: [/opr|opios/i],
|
||||
test: [/opr\/|opios/i],
|
||||
describe(ua) {
|
||||
const browser = {
|
||||
name: 'Opera',
|
||||
|
@ -2,6 +2,7 @@ import test from 'ava';
|
||||
import yaml from 'yamljs';
|
||||
import path from 'path';
|
||||
import Bowser from '../../src/bowser';
|
||||
import BowserBuild from '../../es5';
|
||||
|
||||
const listOfUA = yaml.load(path.join(__dirname, 'useragentstrings.yml'));
|
||||
|
||||
@ -11,7 +12,9 @@ browserNames.forEach((browserName) => {
|
||||
listOfUA[browserName].forEach((browser) => {
|
||||
test('Check all the test browsers', (t) => {
|
||||
const parsed = Bowser.parse(browser.ua);
|
||||
const parsedBuild = BowserBuild.parse(browser.ua);
|
||||
t.deepEqual(parsed, browser.spec, `${browser.ua}`);
|
||||
t.deepEqual(parsedBuild, browser.spec, `${browser.ua}`);
|
||||
t.is(parsed.browser.name, browserName, `${browser.ua}`);
|
||||
});
|
||||
});
|
||||
|
@ -268,6 +268,19 @@
|
||||
vendor: "Nexus"
|
||||
engine:
|
||||
name: "Blink"
|
||||
-
|
||||
ua: "Mozilla/5.0 (Linux; Android 8.0.0; LG-H870 Build/OPR1.170623.032) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.91 Mobile Safari/537.36"
|
||||
spec:
|
||||
browser:
|
||||
name: "Chrome"
|
||||
version: "68.0.3440.91"
|
||||
os:
|
||||
name: "Android"
|
||||
version: "8.0.0"
|
||||
platform:
|
||||
type: "mobile"
|
||||
engine:
|
||||
name: "Blink"
|
||||
Amazon Silk:
|
||||
-
|
||||
ua: "Mozilla/5.0 (Linux; U; Android 4.0.3; en-us; KFTT Build/IML74K) AppleWebKit/535.19 (KHTML, like Gecko) Silk/3.4 Mobile Safari/535.19 Silk-Accelerated=true"
|
||||
|
Loading…
Reference in New Issue
Block a user