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

@paypal/checkout-components

Package Overview
Dependencies
Maintainers
4
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 4.1.43 to 4.1.44

src/buttons/.DS_Store

2

package.json
{
"name": "@paypal/checkout-components",
"version": "4.1.43",
"version": "4.1.44",
"description": "PayPal Checkout components, for integrating checkout products.",

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

@@ -191,2 +191,33 @@ /* @flow */

createBillingAgreement: {
type: 'function',
required: false,
validate: ({ props }) => {
if (props.createOrder) {
throw new Error(`Do not pass both createOrder and createBillingAgreement`);
}
},
decorate({ value }) : Function {
return function decoratedCreateBillingAgreement() : ZalgoPromise<string> {
return ZalgoPromise.try(() => {
// $FlowFixMe
return value();
}).then(billingToken => {
const logger = getLogger();
if (!billingToken || typeof billingToken !== 'string') {
logger.error(`no_billing_token_passed_to_createbillingagreement`);
throw new Error(`Expected a promise for a string billing token to be passed to createBillingAgreement`);
}
logger.flush();
return billingToken;
});
};
}
},
onApprove: {

@@ -193,0 +224,0 @@ type: 'function',

@@ -35,2 +35,4 @@ /* @flow */

export type CreateBillingAgreement = () => ZalgoPromise<string> | string;
export type OnApproveActions = {|

@@ -115,2 +117,3 @@ redirect : (string, CrossDomainWindowType) => ZalgoPromise<void>,

createOrder : CreateOrder,
createBillingAgreement : CreateBillingAgreement,
oncancel : OnCancel,

@@ -117,0 +120,0 @@ onApprove : OnApprove,

Sorry, the diff of this file is not supported yet

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