detect-browser
Advanced tools
Comparing version 5.1.1 to 5.2.0
@@ -74,3 +74,3 @@ var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
['beaker', /BeakerBrowser\/([0-9\.]+)/], | ||
['edge-chromium', /Edg\/([0-9\.]+)/], | ||
['edge-chromium', /EdgA?\/([0-9\.]+)/], | ||
[ | ||
@@ -77,0 +77,0 @@ 'chromium-webview', |
@@ -76,3 +76,3 @@ "use strict"; | ||
['beaker', /BeakerBrowser\/([0-9\.]+)/], | ||
['edge-chromium', /Edg\/([0-9\.]+)/], | ||
['edge-chromium', /EdgA?\/([0-9\.]+)/], | ||
[ | ||
@@ -79,0 +79,0 @@ 'chromium-webview', |
{ | ||
"name": "detect-browser", | ||
"version": "5.1.1", | ||
"version": "5.2.0", | ||
"description": "Unpack a browser type and version from the useragent string", | ||
@@ -43,3 +43,3 @@ "main": "index.js", | ||
"@types/node": "^13.9.1", | ||
"embellish-readme": "^1.5.1", | ||
"embellish-readme": "^1.7.2", | ||
"npm-run-all": "^4.1.5", | ||
@@ -50,5 +50,5 @@ "prettier": "^1.18.2", | ||
"tape": "^4.11.0", | ||
"tslint": "^6.1.0", | ||
"tslint": "^6.1.3", | ||
"typescript": "^3.6.2" | ||
} | ||
} |
@@ -17,2 +17,6 @@ # detect-browser | ||
## Release History | ||
Release history can be found in the [github releases list](https://github.com/DamonOehlman/detect-browser/releases). | ||
--- | ||
@@ -94,2 +98,4 @@ | ||
An editable observable workbook is [available here](https://observablehq.com/@rayshan/browser-detection-tester-using-the-detect-browser-package). | ||
## Adding additional browser support | ||
@@ -108,3 +114,3 @@ | ||
2. Write the actual regex to the `index.js` file. In most cases adding | ||
the regex to the list of existing regexes will be suitable (if usage of `detect-brower` | ||
the regex to the list of existing regexes will be suitable (if usage of `detect-browser` | ||
returns `undefined` for instance), but in some cases you might have to add it before | ||
@@ -111,0 +117,0 @@ an existing regex. This would be true for a case where you have a browser that |
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
25501
145