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

@stripe/stripe-js

Package Overview
Dependencies
Maintainers
13
Versions
131
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 1.41.0 to 1.42.0

2

dist/pure.esm.js

@@ -57,3 +57,3 @@ function _typeof(obj) {

name: 'stripe-js',
version: "1.41.0",
version: "1.42.0",
startTime: startTime

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

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

name: 'stripe-js',
version: "1.41.0",
version: "1.42.0",
startTime: startTime

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

@@ -41,3 +41,3 @@ var V3_URL = 'https://js.stripe.com/v3';

name: 'stripe-js',
version: "1.41.0",
version: "1.42.0",
startTime: startTime

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

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

name: 'stripe-js',
version: "1.41.0",
version: "1.42.0",
startTime: startTime

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

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

@@ -5,0 +5,0 @@ "main": "dist/stripe.js",

@@ -89,3 +89,35 @@ import {StripeElementBase} from './base';

*/
update(options: Partial<StripeCartElementOptions>): StripeCartElement;
update(options: StripeCartElementUpdateOptions): StripeCartElement;
/**
* Makes the Cart Element visible
*/
show(): StripeCartElement;
/**
* Makes the Cart Element not visible
*/
hide(): StripeCartElement;
/**
* Cancels the "Check Out" button loader and displays an error message regarding why going to checkout failed
*/
cancelCheckout(errorMessage?: string | null): StripeCartElement;
/**
* Adds a line item to the CartSession
*/
addLineItem(
lineItemData:
| {
product: string;
price?: null;
quantity?: number | null;
}
| {
price: string;
product?: null;
quantity?: number | null;
}
): Promise<{error?: StripeError}>;
};

@@ -114,3 +146,3 @@

header?: {
text?: string;
text?: string | null;
};

@@ -125,2 +157,21 @@

/*
* Updatable options for an `Elements` instance
*/
export interface StripeCartElementUpdateOptions {
/**
* Override the text used in the title of the Element.
* By default the Cart Element will use the title 'Your [descriptor]'.
*/
header?: {
text?: string | null;
};
/**
* Control whether the Element automatically appears when items are added to the cart.
* By default, the Cart Element will use 'auto'.
*/
showOnAdd?: CartShowOnAdd | null;
}
export interface StripeCartElementPayloadEvent {

@@ -127,0 +178,0 @@ /**

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