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

@braintree/browser-detection

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@braintree/browser-detection - npm Package Compare versions

Comparing version 1.12.0 to 1.12.1

4

CHANGELOG.md
# Browser Detection - Release Notes
# 1.12.1 (2021-09-28)
- Correct `is-ios-safari` to return `false` for the Facebook browser
# 1.12.0 (2021-06-08)

@@ -4,0 +8,0 @@

@@ -8,5 +8,15 @@ "use strict";

}
function isIosChrome(ua) {
return ua.indexOf("CriOS") > -1;
}
function isFacebook(ua) {
return ua.indexOf("FBAN") > -1;
}
module.exports = function isIosSafari(ua) {
ua = ua || window.navigator.userAgent;
return (isIos(ua) && isWebkit(ua) && ua.indexOf("CriOS") === -1 && !isIosFirefox(ua));
return (isIos(ua) &&
isWebkit(ua) &&
!isIosChrome(ua) &&
!isIosFirefox(ua) &&
!isFacebook(ua));
};

16

package.json
{
"name": "@braintree/browser-detection",
"version": "1.12.0",
"version": "1.12.1",
"description": "A small lib to detect browser compatibility for braintree products",

@@ -13,10 +13,10 @@ "main": "dist/browser-detection.js",

"devDependencies": {
"@types/jest": "^26.0.23",
"@types/node": "^15.6.1",
"eslint": "^7.27.0",
"@types/jest": "^27.0.2",
"@types/node": "^16.9.6",
"eslint": "^7.32.0",
"eslint-config-braintree": "^5.0.0-typescript-prep-rc.18",
"jest": "^27.0.3",
"prettier": "^2.3.0",
"ts-jest": "^27.0.2",
"typescript": "^4.3.2"
"jest": "^27.2.1",
"prettier": "^2.4.1",
"ts-jest": "^27.0.5",
"typescript": "^4.4.3"
},

@@ -23,0 +23,0 @@ "scripts": {

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