@stripe/stripe-js
Advanced tools
Comparing version 3.2.0 to 3.3.0
@@ -45,3 +45,3 @@ 'use strict'; | ||
name: 'stripe-js', | ||
version: "3.2.0", | ||
version: "3.3.0", | ||
startTime: startTime | ||
@@ -48,0 +48,0 @@ }); |
@@ -61,3 +61,3 @@ 'use strict'; | ||
name: 'stripe-js', | ||
version: "3.2.0", | ||
version: "3.3.0", | ||
startTime: startTime | ||
@@ -64,0 +64,0 @@ }); |
@@ -30,4 +30,2 @@ import { | ||
StripeCardElementOptions, | ||
StripeCartElement, | ||
StripeCartElementOptions, | ||
StripeAuBankAccountElement, | ||
@@ -239,25 +237,2 @@ StripeAfterpayClearpayMessageElementOptions, | ||
///////////////////////////// | ||
/// cart | ||
///////////////////////////// | ||
/** | ||
* Requires beta access: | ||
* Contact [Stripe support](https://support.stripe.com/) for more information. | ||
* | ||
* Creates a `CartElement`. | ||
*/ | ||
create( | ||
elementType: 'cart', | ||
options: StripeCartElementOptions | ||
): StripeCartElement; | ||
/** | ||
* Requires beta access: | ||
* Contact [Stripe support](https://support.stripe.com/) for more information. | ||
* | ||
* Looks up a previously created `Element` by its type. | ||
*/ | ||
getElement(elementType: 'cart'): StripeCartElement | null; | ||
///////////////////////////// | ||
/// fpxBank | ||
@@ -526,3 +501,2 @@ ///////////////////////////// | ||
| 'cardCvc' | ||
| 'cart' | ||
| 'epsBank' | ||
@@ -554,3 +528,2 @@ | 'expressCheckout' | ||
| StripeCardCvcElement | ||
| StripeCartElement | ||
| StripeEpsBankElement | ||
@@ -557,0 +530,0 @@ | StripeFpxBankElement |
@@ -53,2 +53,3 @@ export type ApplePayRecurringPaymentRequestIntervalUnit = | ||
regularBilling: ApplePayRegularBilling; | ||
trialBilling?: ApplePayRegularBilling; | ||
@@ -55,0 +56,0 @@ /** |
@@ -7,2 +7,3 @@ import { | ||
} from './base'; | ||
import {StripeError} from '../stripe'; | ||
import {CardNetworkBrand} from '../elements-group'; | ||
@@ -108,2 +109,18 @@ | ||
/** | ||
* Triggered when the element fails to load. | ||
*/ | ||
on( | ||
eventType: 'loaderror', | ||
handler: (event: {elementType: 'cardNumber'; error: StripeError}) => any | ||
): StripeCardNumberElement; | ||
once( | ||
eventType: 'loaderror', | ||
handler: (event: {elementType: 'cardNumber'; error: StripeError}) => any | ||
): StripeCardNumberElement; | ||
off( | ||
eventType: 'loaderror', | ||
handler?: (event: {elementType: 'cardNumber'; error: StripeError}) => any | ||
): StripeCardNumberElement; | ||
/** | ||
* Updates the options the `CardNumberElement` was initialized with. | ||
@@ -110,0 +127,0 @@ * Updates are merged into the existing configuration. |
@@ -7,2 +7,3 @@ import { | ||
} from './base'; | ||
import {StripeError} from '../stripe'; | ||
import {CardNetworkBrand} from '../elements-group'; | ||
@@ -108,2 +109,18 @@ | ||
/** | ||
* Triggered when the element fails to load. | ||
*/ | ||
on( | ||
eventType: 'loaderror', | ||
handler: (event: {elementType: 'card'; error: StripeError}) => any | ||
): StripeCardElement; | ||
once( | ||
eventType: 'loaderror', | ||
handler: (event: {elementType: 'card'; error: StripeError}) => any | ||
): StripeCardElement; | ||
off( | ||
eventType: 'loaderror', | ||
handler?: (event: {elementType: 'card'; error: StripeError}) => any | ||
): StripeCardElement; | ||
/** | ||
* Updates the options the `CardElement` was initialized with. | ||
@@ -110,0 +127,0 @@ * Updates are merged into the existing configuration. |
@@ -11,3 +11,2 @@ export * from './address'; | ||
export * from './card'; | ||
export * from './cart'; | ||
export * from './eps-bank'; | ||
@@ -14,0 +13,0 @@ export * from './express-checkout'; |
@@ -241,2 +241,7 @@ import {Token, PaymentMethod, Source} from '../api'; | ||
/** | ||
* The Stripe account ID which is the business of record. | ||
*/ | ||
onBehalfOf?: string; | ||
/** | ||
* @deprecated | ||
@@ -243,0 +248,0 @@ * Use disableWallets instead. |
{ | ||
"name": "@stripe/stripe-js", | ||
"version": "3.2.0", | ||
"version": "3.3.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
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
875812
139
12474