detect-browser
Advanced tools
Comparing version 2.4.0 to 2.5.0
@@ -58,3 +58,3 @@ function detect() { | ||
} | ||
return detected; | ||
@@ -86,3 +86,4 @@ } | ||
[ 'facebook', /FBAV\/([0-9\.]+)/], | ||
[ 'instagram', /Instagram\ ([0-9\.]+)/] | ||
[ 'instagram', /Instagram\ ([0-9\.]+)/], | ||
[ 'ios-webview', /AppleWebKit\/([0-9\.]+).*Mobile$/] | ||
]); | ||
@@ -89,0 +90,0 @@ } |
{ | ||
"name": "detect-browser", | ||
"version": "2.4.0", | ||
"version": "2.5.0", | ||
"description": "Unpack a browser type and version from the useragent string", | ||
@@ -32,4 +32,3 @@ "main": "index.js", | ||
"devDependencies": { | ||
"embellish-readme": "^1.2.0", | ||
"gendocs": "^2.0.0", | ||
"embellish-readme": "^1.3.1", | ||
"semver": "^5.0.3", | ||
@@ -36,0 +35,0 @@ "tape": "^4.2.2" |
@@ -9,6 +9,4 @@ # detect-browser | ||
[![Build Status](https://api.travis-ci.org/DamonOehlman/detect-browser.svg?branch=master)](https://travis-ci.org/DamonOehlman/detect-browser) | ||
[![stable](https://img.shields.io/badge/stability-stable-green.svg)](https://github.com/dominictarr/stability#stable) [![Build Status](https://api.travis-ci.org/DamonOehlman/detect-browser.svg?branch=master)](https://travis-ci.org/DamonOehlman/detect-browser) | ||
[![bitHound Score](https://www.bithound.io/github/DamonOehlman/detect-browser/badges/score.svg)](https://www.bithound.io/github/DamonOehlman/detect-browser) | ||
## NOTE: Version 2.x release | ||
@@ -69,6 +67,7 @@ | ||
1. A test demonstrating that the regular expression you have defined identifies | ||
your new browser correctly. Examples of this can be found in the | ||
`test/logic.js` file. | ||
1. A test demonstrating that the regular expression you have defined identifies | ||
your new browser correctly. Examples of this can be found in the | ||
`test/logic.js` file. | ||
2) Write the actual regex to the `index.js` file. In most cases adding | ||
@@ -89,3 +88,3 @@ the regex to the list of existing regexes will be suitable (if usage of `detect-brower` | ||
Copyright (c) 2018 Damon Oehlman <mailto:damon.oehlman@gmail.com> | ||
Copyright (c) 2018 Damon Oehlman <damon.oehlman@gmail.com> | ||
@@ -109,1 +108,3 @@ Permission is hereby granted, free of charge, to any person obtaining a copy | ||
SOFTWARE. | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19711
3
6
119
107