@realeyes/environment-detector
Advanced tools
Comparing version 1.8.3 to 1.8.6
@@ -69,2 +69,4 @@ # Environment Checker | ||
And 'detectorResult' is a result object of environment detector (see more [Environment Detector API](README.html#api)) | ||
*NOTE:* if you are using Environment Checker, then there is no need to use Environment Detector separately. | ||
@@ -71,0 +73,0 @@ ## Example usage |
@@ -0,0 +0,0 @@ # Environment Detector |
@@ -32,2 +32,5 @@ /** | ||
SAFARI: 'Safari', | ||
VIVALDI: 'Vivaldi', | ||
UC_BROWSER: 'UC Browser', | ||
SEAMONKEY: 'SeaMonkey', | ||
UNKNOWN: 'Unknown', | ||
@@ -42,5 +45,20 @@ }; | ||
{ | ||
browserName: names.VIVALDI, | ||
testRegex: /vivaldi/i, | ||
versionRegex: /(?:vivaldi)[\s/](\d+(\.\d+)?)/i, | ||
}, | ||
{ | ||
browserName: names.UC_BROWSER, | ||
testRegex: /ucbrowser/i, | ||
versionRegex: /(?:ucbrowser)[\s/](\d+(\.\d+)?)/i, | ||
}, | ||
{ | ||
browserName: names.SEAMONKEY, | ||
testRegex: /seamonkey/i, | ||
versionRegex: /(?:seamonkey)[\s/](\d+(\.\d+)?)/i, | ||
}, | ||
{ | ||
browserName: names.OPERA, | ||
testRegex: /opera|opr|opios/i, | ||
versionRegex: /(?:opera|opr|opios)[\s/](\d+(\.\d+)?)/i, | ||
testRegex: /opera|opios|opr\//i, | ||
versionRegex: /(?:opera |opios\/|opr\/)(\d+(\.\d+)?)/i, | ||
}, | ||
@@ -47,0 +65,0 @@ { |
{ | ||
"name": "@realeyes/environment-detector", | ||
"version": "1.8.3", | ||
"version": "1.8.6", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "test": "babel-node tests/index.js", |
@@ -0,0 +0,0 @@ # Environment Detector |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
999068
14341
51
1