@paypal/sdk-client
Advanced tools
Comparing version
{ | ||
"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 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
79499
0.67%34
3.03%1575
0.9%0
-100%