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
39
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.161

2

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

@@ -5,0 +5,0 @@ "main": "index.js",

/* @flow */
import type { LocaleType } from '@paypal/sdk-constants/src/';
import { COUNTRY_LANGS, LANG, COUNTRY } from '@paypal/sdk-constants/src';
import { COUNTRY_LANGS, LANG, COUNTRY, type LocaleType } from '@paypal/sdk-constants/src';
export function getComputedLocales(locale : string) : LocaleType {

@@ -12,3 +12,3 @@ let [ lang, country ] = locale.split('_');

if (countryLangs.includes(LANG.ZH_HANT)) {
if (countryLangs && countryLangs.includes(LANG.ZH_HANT) && lang === LANG.ZH) {
lang = LANG.ZH_HANT;

@@ -15,0 +15,0 @@ }