@paypal/sdk-client
Advanced tools
Comparing version 4.0.176 to 4.0.177
{ | ||
"name": "@paypal/sdk-client", | ||
"version": "4.0.176", | ||
"version": "4.0.177", | ||
"description": "Shared config between PayPal/Braintree.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -170,3 +170,3 @@ "use strict"; | ||
attrs | ||
} = sdkMeta ? JSON.parse(Buffer.from(sdkMeta, "base64").toString("utf8")) : _constants.DEFAULT_SDK_META; | ||
} = sdkMeta ? JSON.parse(Buffer.from(decodeURIComponent(sdkMeta), "base64").toString("utf8")) : _constants.DEFAULT_SDK_META; | ||
if (url) { | ||
@@ -173,0 +173,0 @@ validateSDKUrl(url); |
@@ -264,3 +264,5 @@ /* @flow */ | ||
const { url, attrs } = sdkMeta | ||
? JSON.parse(Buffer.from(sdkMeta, "base64").toString("utf8")) | ||
? JSON.parse( | ||
Buffer.from(decodeURIComponent(sdkMeta), "base64").toString("utf8") | ||
) | ||
: DEFAULT_SDK_META; | ||
@@ -267,0 +269,0 @@ |
@@ -37,4 +37,6 @@ /* @flow */ | ||
if (treatment.indexOf(name) !== -1) { | ||
// $FlowFixMe | ||
log.info(`${treatment}_${checkpoint}`, payload); | ||
} else { | ||
// $FlowFixMe | ||
log.info(`${name}_${treatment}_${checkpoint}`, payload); | ||
@@ -41,0 +43,0 @@ } |
@@ -116,4 +116,3 @@ /* @flow */ | ||
const isLoadedInFrame = isPayPalDomain() && window.xprops; | ||
const sdkLoadTime = | ||
typeof loadTime === "number" ? loadTime.toString() : undefined; | ||
const sdkLoadTime = typeof loadTime === "number" ? loadTime : undefined; | ||
@@ -120,0 +119,0 @@ logger |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82861
1990