Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@paypal/checkout-components

Package Overview
Dependencies
Maintainers
20
Versions
502
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paypal/checkout-components - npm Package Compare versions

Comparing version 5.0.321-alpha-3dbd422.0 to 5.0.321

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc