Socket
Socket
Sign inDemoInstall

@braintree/browser-detection

Package Overview
Dependencies
0
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.12.1 to 1.13.0

2

dist/is-android.js
"use strict";
module.exports = function isAndroid(ua) {
ua = ua || window.navigator.userAgent;
return /Android/.test(ua);
return /Android/i.test(ua);
};

@@ -11,5 +11,10 @@ "use strict";

}
return /.+AppleWebKit(?!.*Safari)/.test(ua);
return (
// Historically, a webview could be identified by the presence of AppleWebKit and _no_ presence of Safari after.
/.+AppleWebKit(?!.*Safari)/i.test(ua) ||
// A webview can now have 'Safari', but if it does, then we want to check the `safari` window prop as webviews won't have it.
(ua.indexOf("Safari") > -1 &&
(!window.safari || !window.safari.pushNotification)));
}
return false;
};

@@ -23,3 +23,3 @@ "use strict";

function isAndroidWebview(ua) {
var androidWebviewRegExp = /Version\/[\d.]+/;
var androidWebviewRegExp = /Version\/[\d.]+/i;
ua = ua || window.navigator.userAgent;

@@ -26,0 +26,0 @@ if (isAndroid(ua)) {

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

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

],
"dependencies": {},
"devDependencies": {
"@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.2.1",
"prettier": "^2.4.1",
"ts-jest": "^27.0.5",
"typescript": "^4.4.3"
"@types/jest": "^27.4.1",
"@types/node": "^17.0.23",
"@typescript-eslint/eslint-plugin": "^5.19.0",
"eslint": "^8.13.0",
"eslint-config-braintree": "^6.0.0-typescript-prep-rc.2",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^27.5.1",
"prettier": "^2.6.2",
"ts-jest": "^27.1.4",
"typescript": "^4.6.3"
},

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc