New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@paypal/sdk-client

Package Overview
Dependencies
Maintainers
22
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paypal/sdk-client - npm Package Compare versions

Comparing version

to
4.0.172

6

package.json
{
"name": "@paypal/sdk-client",
"version": "4.0.171",
"version": "4.0.172",
"description": "Shared config between PayPal/Braintree.",

@@ -78,4 +78,4 @@ "main": "index.js",

"lint-staged": "^13.0.3",
"mocha": "^4.1.0",
"prettier": "2.7.1"
"mocha": "^10.0.0",
"prettier": "2.8.8"
},

@@ -82,0 +82,0 @@ "lint-staged": {

@@ -68,4 +68,19 @@ /* @flow */

export function getVenmoDomainRegex(): RegExp {
if (__ENV__ === ENV.LOCAL) {
return /.*loca.*/;
}
// eslint-disable-next-line security/detect-unsafe-regex
return /^([\w]*\.)*(venmo\.com)(:\d+)?$/;
}
export function isPayPalDomain(): boolean {
return Boolean(getDomain().match(getPayPalDomainRegex()));
}
export function isPayPalTrustedDomain(): boolean {
return (
Boolean(getDomain().match(getPayPalDomainRegex())) ||
Boolean(getDomain().match(getVenmoDomainRegex()))
);
}