Socket
Socket
Sign inDemoInstall

@stripe/stripe-js

Package Overview
Dependencies
Maintainers
18
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stripe/stripe-js - npm Package Compare versions

Comparing version 3.5.0 to 4.0.0

2

dist/index.js

@@ -45,3 +45,3 @@ 'use strict';

name: 'stripe-js',
version: "3.4.1",
version: "3.5.0",
startTime: startTime

@@ -48,0 +48,0 @@ });

@@ -61,3 +61,3 @@ 'use strict';

name: 'stripe-js',
version: "3.4.1",
version: "3.5.0",
startTime: startTime

@@ -64,0 +64,0 @@ });

@@ -248,7 +248,18 @@ import {StripeElementBase} from './base';

export type ExpressCheckoutWalletOption = 'always' | 'auto' | 'never';
export type ExpressCheckoutPaymentMethodOptionWithAlways =
| 'always'
| ExpressCheckoutPaymentMethodOption;
export type ExpressCheckoutPaymentMethodOption = 'auto' | 'never';
export type ExpressCheckoutPaymentMethodsOption = {
amazonPay?: ExpressCheckoutPaymentMethodOption;
applePay?: ExpressCheckoutPaymentMethodOptionWithAlways;
googlePay?: ExpressCheckoutPaymentMethodOptionWithAlways;
link?: ExpressCheckoutPaymentMethodOption;
paypal?: ExpressCheckoutPaymentMethodOption;
};
export type ExpressCheckoutWalletsOption = {
applePay?: ExpressCheckoutWalletOption;
googlePay?: ExpressCheckoutWalletOption;
applePay?: ExpressCheckoutPaymentMethodOptionWithAlways;
googlePay?: ExpressCheckoutPaymentMethodOptionWithAlways;
};

@@ -260,5 +271,8 @@

export type PayPalButtonTheme = 'gold' | 'blue' | 'silver' | 'white' | 'black';
export type ButtonThemeOption = {
applePay?: ApplePayButtonTheme;
googlePay?: GooglePayButtonTheme;
paypal?: PayPalButtonTheme;
};

@@ -325,2 +339,10 @@

/**
* Control payment method display in the Express Checkout Element.
*/
paymentMethods?: ExpressCheckoutPaymentMethodsOption;
/**
* @deprecated
* Use `paymentMethods` instead.
*
* Control wallets display in the Express Checkout Element.

@@ -327,0 +349,0 @@ */

{
"name": "@stripe/stripe-js",
"version": "3.5.0",
"version": "4.0.0",
"description": "Stripe.js loading utility",

@@ -5,0 +5,0 @@ "repository": "github:stripe/stripe-js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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