@paypal/checkout-components
Advanced tools
Comparing version 5.0.321-alpha-3dbd422.0 to 5.0.321
{ | ||
"name": "@paypal/checkout-components", | ||
"version": "5.0.321-alpha-3dbd422.0", | ||
"version": "5.0.321", | ||
"description": "PayPal Checkout components, for integrating checkout products.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -58,3 +58,2 @@ /* @flow */ | ||
noop, | ||
isLocalStorageEnabled, | ||
} from "@krakenjs/belter/src"; | ||
@@ -128,14 +127,2 @@ import { | ||
if (!isLocalStorageEnabled()) { | ||
getLogger() | ||
.info("localstorage_inaccessible_possible_private_browsing") | ||
.track({ | ||
[FPTI_KEY.BUTTON_SESSION_UID]: buttonSessionID, | ||
[FPTI_KEY.CONTEXT_TYPE]: "button_session_id", | ||
[FPTI_KEY.CONTEXT_ID]: buttonSessionID, | ||
[FPTI_KEY.TRANSITION]: | ||
"localstorage_inaccessible_possible_private_browsing", | ||
}); | ||
} | ||
event.on(EVENT.PRERENDERED, () => { | ||
@@ -156,13 +143,9 @@ // CPL stands for Consumer Perceived Latency | ||
}; | ||
getLogger() | ||
.info("CPL_LATENCY_METRICS_FIRST_RENDER") | ||
.track(cplLatencyMetrics); | ||
getLogger().track(cplLatencyMetrics); | ||
} catch (err) { | ||
getLogger() | ||
.info("button_render_CPL_instrumentation_log_error") | ||
.track({ | ||
err: err.message || "CPL_LOG_PHASE_ERROR", | ||
details: err.details, | ||
stack: JSON.stringify(err.stack || err), | ||
}); | ||
getLogger().track({ | ||
err: err.message || "CPL_LOG_PHASE_ERROR", | ||
details: err.details, | ||
stack: JSON.stringify(err.stack || err), | ||
}); | ||
} | ||
@@ -169,0 +152,0 @@ }); |
@@ -52,3 +52,7 @@ /* @flow */ | ||
getLogger() | ||
.info("button_prerender_click") | ||
.info("paypal_js_sdk_v5_button_prerender_click", { | ||
fundingSource, | ||
card, | ||
buttonsSessionID: props.buttonSessionID, | ||
}) | ||
.track({ | ||
@@ -60,4 +64,3 @@ [FPTI_KEY.BUTTON_SESSION_UID]: props.buttonSessionID, | ||
[FPTI_KEY.CHOSEN_FUNDING]: fundingSource, | ||
}) | ||
.flush(); | ||
}); | ||
@@ -64,0 +67,0 @@ if (fundingSource === FUNDING.VENMO || fundingSource === FUNDING.APPLEPAY) { |
@@ -53,3 +53,3 @@ /* @flow */ | ||
*/ | ||
const logNativeScreenInformation = once((key = "screenInformation") => { | ||
const logNativeScreenInformation = once(() => { | ||
if (window) { | ||
@@ -64,14 +64,12 @@ const height = window.innerHeight; | ||
const screenInformation = { | ||
computedHeight, | ||
height, | ||
ios14, | ||
outerHeight, | ||
scale, | ||
standAlone, | ||
}; | ||
getLogger() | ||
// $FlowFixMe - object is mixed values when this expects all of the same value types | ||
.info(key, screenInformation); | ||
.info("sfvcScreenInformation", { | ||
computedHeight, | ||
height, | ||
ios14, | ||
outerHeight, | ||
scale, | ||
standAlone, | ||
}); | ||
} | ||
@@ -95,3 +93,3 @@ }); | ||
export function isSupportedNativeBrowser(): boolean { | ||
logNativeScreenInformation("sfvcScreenInformation"); | ||
logNativeScreenInformation(); | ||
@@ -98,0 +96,0 @@ if (typeof window === "undefined") { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
1194015
16250