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
38
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.160

src/utils.js

2

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

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

@@ -18,1 +18,2 @@ /* @flow */

export * from './tracking';
export * from './utils';

@@ -12,2 +12,3 @@ /* @flow */

import { CLIENT_ID_ALIAS } from './config';
import { getComputedLocales } from './utils';

@@ -213,2 +214,3 @@ type GetSDKScript = () => HTMLScriptElement;

export function getLocale() : LocaleType {

@@ -218,4 +220,3 @@ const locale = getSDKQueryParam(SDK_QUERY_KEYS.LOCALE);

if (locale) {
const [ lang, country ] = locale.split('_');
return { lang, country };
return getComputedLocales(locale);
}

@@ -222,0 +223,0 @@