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.5.0 to 1.6.0

2

dist/pure.js

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

name: 'stripe-js',
version: "1.5.0"
version: "1.6.0"
});

@@ -82,0 +82,0 @@ };

@@ -61,3 +61,3 @@ function _toConsumableArray(arr) {

name: 'stripe-js',
version: "1.5.0"
version: "1.6.0"
});

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

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

name: 'stripe-js',
version: "1.5.0"
version: "1.6.0"
});

@@ -68,0 +68,0 @@ };

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

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

@@ -132,6 +132,1 @@ # Stripe.js ES Module

- [React Stripe.js Docs](https://stripe.com/docs/stripe-js/react)
### Contributing
If you would like to contribute to React Stripe.js, please make sure to read our
[contributor guidelines](CONTRIBUTING.md).

@@ -25,2 +25,20 @@ declare module '@stripe/stripe-js' {

*/
lineItems?: Array<{
/**
* The ID of the price that the customer would like to purchase. SKU or plan IDs may also be used.
*/
price?: string;
/**
* The quantity of units for the item.
*/
quantity?: number;
}>;
/**
* An array of objects representing the items that your customer would like to purchase.
* These items are shown as line items in the Checkout interface and make up the total amount to be collected by Checkout.
*
* @deprecated
*/
items?: Array<{

@@ -44,2 +62,7 @@ /**

/**
* The mode of the Checkout Session. Required if using lineItems.
*/
mode?: 'payment' | 'subscription';
/**
* A unique string to reference the Checkout session.

@@ -82,11 +105,19 @@ * This can be a customer ID, a cart ID, or similar.

| 'auto'
| 'bg'
| 'cs'
| 'da'
| 'de'
| 'el'
| 'en'
| 'es'
| 'et'
| 'fi'
| 'fr'
| 'hu'
| 'it'
| 'ja'
| 'lt'
| 'lv'
| 'ms'
| 'mt'
| 'nb'

@@ -97,3 +128,8 @@ | 'nl'

| 'pt-BR'
| 'ro'
| 'ru'
| 'sk'
| 'sl'
| 'sv'
| 'tr'
| 'zh';

@@ -100,0 +136,0 @@

@@ -218,9 +218,14 @@ ///<reference path='./elements/card.d.ts' />

| 'ar'
| 'bg'
| 'cs'
| 'da'
| 'de'
| 'el'
| 'en'
| 'es'
| 'et'
| 'fi'
| 'fr'
| 'he'
| 'id'
| 'it'

@@ -238,2 +243,4 @@ | 'ja'

| 'ru'
| 'sk'
| 'sl'
| 'sv'

@@ -240,0 +247,0 @@ | 'zh';

@@ -404,9 +404,14 @@ ///<reference path='./checkout.d.ts' />

| 'ar'
| 'bg'
| 'cs'
| 'da'
| 'de'
| 'el'
| 'en'
| 'es'
| 'et'
| 'fi'
| 'fr'
| 'he'
| 'id'
| 'it'

@@ -424,2 +429,4 @@ | 'ja'

| 'ru'
| 'sk'
| 'sl'
| 'sv'

@@ -426,0 +433,0 @@ | 'zh';

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