New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

paypal-checkout

Package Overview
Dependencies
Maintainers
3
Versions
293
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

paypal-checkout - npm Package Compare versions

Comparing version 4.0.304 to 4.0.305

2

package.json
{
"name": "paypal-checkout",
"version": "4.0.304",
"version": "4.0.305",
"description": "PayPal Checkout components, for integrating checkout products.",

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

@@ -843,3 +843,5 @@ /* @flow */

info('button_click');
info(`pay_flow_${ data && data.flow }`);
if (data && data.flow) {
info(`pay_flow_${ data.flow }`);
}

@@ -846,0 +848,0 @@ track({

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

import { BUTTON_SIZE, BUTTON_BRANDING, BUTTON_NUMBER, BUTTON_LOGO, BUTTON_LOGO_COLOR, BUTTON_LABEL, BUTTON_LAYOUT, ENV, ATTRIBUTE, FUNDING } from '../../constants';
import { BUTTON_SIZE, BUTTON_BRANDING, BUTTON_NUMBER, BUTTON_LOGO_COLOR, BUTTON_LABEL, BUTTON_LAYOUT, ENV, ATTRIBUTE, FUNDING } from '../../constants';
import { getButtonConfig, labelToFunding, fundingToDefaultLabel } from '../config';
import { normalizeProps } from '../props';
import { jsxToHTML, type JsxHTMLNode, type ChildType, jsxRender, JsxHTMLNodeContainer } from '../../lib/jsx';
import { jsxToHTML, type JsxHTMLNode, type ChildType, jsxRender } from '../../lib/jsx';
import { fundingLogos, cardLogos } from '../../resources';

@@ -15,3 +15,3 @@ import { validateButtonProps } from '../validate';

import { Tagline, Beacon, LoadingDots } from './miscComponent';
import { Tagline, Beacon } from './miscComponent';
import { componentStyle, CLASS } from './componentStyle';

@@ -22,3 +22,3 @@ import { getComponentScript } from './componentScript';

const allowedPersonalizationLabels = [ BUTTON_LABEL.CHECKOUT, BUTTON_LABEL.BUYNOW, BUTTON_LABEL.PAY ];
const delay = 0.2;
// const delay = 0.2;

@@ -117,2 +117,3 @@ function getCommonButtonClasses({ layout, shape, branding, multiple, env }) : string {

/*
// this function performs the first button render for eligible population

@@ -163,2 +164,3 @@ function renderPPPayPalLoadingDots({ color, logoColor, branding, label } : { color : string, logoColor : $Values<typeof BUTTON_LOGO_COLOR>, branding : boolean, label : string }) : JsxHTMLNode {

}
*/

@@ -254,3 +256,4 @@ function renderContent(text : string, { label, locale, color, branding, logoColor, funding, env, cards, dynamicContent, layout, size } :

let impression;
const morsText = checkoutCustomization && checkoutCustomization.buttonText && checkoutCustomization.buttonText.text;
// suppressing consumption of mors text
let morsText; // checkoutCustomization && checkoutCustomization.buttonText && checkoutCustomization.buttonText.text;
if (buttonLabel === label) {

@@ -275,3 +278,3 @@ // checks for button label: pay, buynow, checkout, paypal, installment

contentText = (typeof contentText === 'function') ? contentText(dynamicContent) : contentText;
contentText = (__WEB__ && buttonLabel === label && allowedPersonalizationLabels.indexOf(label) !== -1) ? renderPPPayPalLoadingDots({ color, logoColor, branding, label }) : renderContent(contentText, { label, locale, color, branding, logoColor, funding, env, cards, dynamicContent, layout, size });
contentText = renderContent(contentText, { label, locale, color, branding, logoColor, funding, env, cards, dynamicContent, layout, size });

@@ -306,6 +309,9 @@ // Define a list of funding options that will not need a tabindex

if (__WEB__ && layout !== BUTTON_LAYOUT.VERTICAL) {
return LoadingDots(delay);
return;
// return LoadingDots(delay);
}
const tag = multiple

@@ -312,0 +318,0 @@ ? (getButtonConfig(label, 'dualTag') || getButtonConfig(label, 'tag'))

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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