Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

detect-browser

Package Overview
Dependencies
Maintainers
3
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detect-browser - npm Package Compare versions

Comparing version 2.4.0 to 2.5.0

yarn.lock

5

index.js

@@ -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"

15

README.md

@@ -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.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc