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.318 to 5.0.319-alpha-f7e0651.0

2

package.json
{
"name": "@paypal/checkout-components",
"version": "5.0.318",
"version": "5.0.319-alpha-f7e0651.0",
"description": "PayPal Checkout components, for integrating checkout products.",

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

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

function HostedButtons({
enableDPoP = false,
hostedButtonId,

@@ -39,2 +38,3 @@ }: HostedButtonsComponentProps): HostedButtonsInstance {

buttonContainerId,
enableDPoP,
} = await getHostedButtonDetails({

@@ -41,0 +41,0 @@ hostedButtonId,

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

preferences?: HostedButtonPreferences,
enableDPoP: boolean,
|}>;

@@ -115,0 +116,0 @@

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

},
enableDPoP: getButtonVariable(variables, "enable_dpop") === "true",
version: body.version,

@@ -159,0 +160,0 @@ buttonContainerId: buttonContainerId || "spb-container",

@@ -110,2 +110,6 @@ /* @flow */

},
{
name: "enable_dpop",
value: "true",
},
],

@@ -153,3 +157,3 @@ preferences: {

fundingSources: [],
}).then(({ style, preferences, version }) => {
}).then(({ style, preferences, version, enableDPoP }) => {
expect(style.height).toEqual(50);

@@ -162,4 +166,5 @@ expect(style.tagline).toEqual(true);

expect(version).toEqual("2");
expect(enableDPoP).toEqual(true);
});
expect.assertions(4);
expect.assertions(5);
});

@@ -166,0 +171,0 @@

@@ -754,3 +754,7 @@ /* @flow */

const modalInstance = await getModal(clientID, merchantID);
const modalInstance = await getModal(
clientID,
merchantID,
buttonSessionID
);
return modalInstance?.show({

@@ -773,4 +777,4 @@ amount,

// lazy loads the modal, to be memoized and executed onMessageClick
const { clientID, merchantID } = props;
return getModal(clientID, merchantID);
const { buttonSessionID, clientID, merchantID } = props;
return getModal(clientID, merchantID, buttonSessionID);
};

@@ -777,0 +781,0 @@ },

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

} from "@krakenjs/belter/src";
import { FUNDING } from "@paypal/sdk-constants/src";
import {

@@ -29,2 +28,3 @@ getEnableFunding,

} from "@paypal/sdk-client/src";
import { FUNDING, FPTI_KEY } from "@paypal/sdk-constants/src";
import { getRefinedFundingEligibility } from "@paypal/funding-components/src";

@@ -374,4 +374,5 @@

clientID: string,
merchantID: $ReadOnlyArray<string> | void
) => Object = memoize(async (clientID, merchantID) => {
merchantID: $ReadOnlyArray<string> | void,
buttonSessionID: string
) => Object = memoize(async (clientID, merchantID, buttonSessionID) => {
try {

@@ -397,2 +398,15 @@ const namespace = getNamespace();

return window[namespace].MessagesModal({
buttonSessionId: buttonSessionID,
onApply: () =>
getLogger()
.info("button_message_modal_apply")
.track({
[FPTI_KEY.TRANSITION]: "button_message_modal_apply",
[FPTI_KEY.STATE]: "BUTTON_MESSAGE",
[FPTI_KEY.BUTTON_SESSION_UID]: buttonSessionID,
[FPTI_KEY.CONTEXT_ID]: buttonSessionID,
[FPTI_KEY.CONTEXT_TYPE]: "button_session_id",
[FPTI_KEY.EVENT_NAME]: "modal_apply",
})
.flush(),
account: `client-id:${clientID}`,

@@ -399,0 +413,0 @@ merchantId: merchantID?.join(",") || 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