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

@stripe/stripe-js

Package Overview
Dependencies
Maintainers
16
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.13.0 to 1.13.1

2

dist/pure.esm.js

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

name: 'stripe-js',
version: "1.13.0",
version: "1.13.1",
startTime: startTime

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

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

name: 'stripe-js',
version: "1.13.0",
version: "1.13.1",
startTime: startTime

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

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

name: 'stripe-js',
version: "1.13.0",
version: "1.13.1",
startTime: startTime

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

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

name: 'stripe-js',
version: "1.13.0",
version: "1.13.1",
startTime: startTime

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

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

@@ -14,3 +14,3 @@ "main": "dist/stripe.js",

"test:versions": "./tests/versions/scripts/test.sh",
"test:types": "tsc -p ./tests/types && jest --roots '<rootDir>/tests/types'",
"test:types": "tsc -p ./tests/types",
"lint": "eslint '{src,types}/**/*.{ts,js}' && yarn prettier-list-different",

@@ -44,4 +44,4 @@ "typecheck": "tsc",

"@types/jest": "^24.0.25",
"@typescript-eslint/eslint-plugin": "^2.15.0",
"@typescript-eslint/parser": "^2.15.0",
"@typescript-eslint/eslint-plugin": "^4.15.2",
"@typescript-eslint/parser": "^4.15.2",
"babel-eslint": "^10.0.3",

@@ -62,4 +62,4 @@ "babel-jest": "^24.9.0",

"ts-jest": "^24.3.0",
"typescript": "^3.7.4"
"typescript": "^4.1.2"
}
}

@@ -140,3 +140,3 @@ declare module '@stripe/stripe-js' {

*/
fontWeight?: string;
fontWeight?: string | number;

@@ -143,0 +143,0 @@ /**

@@ -58,3 +58,3 @@ ///<reference path='./checkout.d.ts' />

options?: ConfirmAlipayPaymentOptions
): Promise<{paymentIntent?: PaymentIntent; error?: StripeError}>;
): Promise<PaymentIntentResult>;

@@ -79,3 +79,3 @@ /**

data?: ConfirmAuBecsDebitPaymentData
): Promise<{paymentIntent?: PaymentIntent; error?: StripeError}>;
): Promise<PaymentIntentResult>;

@@ -97,3 +97,3 @@ /**

options?: ConfirmBancontactPaymentOptions
): Promise<{paymentIntent?: PaymentIntent; error?: StripeError}>;
): Promise<PaymentIntentResult>;

@@ -116,3 +116,3 @@ /**

options?: ConfirmCardPaymentOptions
): Promise<{paymentIntent?: PaymentIntent; error?: StripeError}>;
): Promise<PaymentIntentResult>;

@@ -134,3 +134,3 @@ /**

options?: ConfirmEpsPaymentOptions
): Promise<{paymentIntent?: PaymentIntent; error?: StripeError}>;
): Promise<PaymentIntentResult>;

@@ -152,3 +152,3 @@ /**

options?: ConfirmFpxPaymentOptions
): Promise<{paymentIntent?: PaymentIntent; error?: StripeError}>;
): Promise<PaymentIntentResult>;

@@ -170,3 +170,3 @@ /**

options?: ConfirmGiropayPaymentOptions
): Promise<{paymentIntent?: PaymentIntent; error?: StripeError}>;
): Promise<PaymentIntentResult>;

@@ -185,3 +185,3 @@ /**

options?: ConfirmGrabPayPaymentOptions
): Promise<{paymentIntent?: PaymentIntent; error?: StripeError}>;
): Promise<PaymentIntentResult>;

@@ -203,3 +203,3 @@ /**

options?: ConfirmIdealPaymentOptions
): Promise<{paymentIntent?: PaymentIntent; error?: StripeError}>;
): Promise<PaymentIntentResult>;

@@ -222,3 +222,3 @@ /**

options?: ConfirmOxxoPaymentOptions
): Promise<{paymentIntent?: PaymentIntent; error?: StripeError}>;
): Promise<PaymentIntentResult>;

@@ -240,3 +240,3 @@ /**

options?: ConfirmP24PaymentOptions
): Promise<{paymentIntent?: PaymentIntent; error?: StripeError}>;
): Promise<PaymentIntentResult>;

@@ -258,3 +258,3 @@ /**

data?: ConfirmSepaDebitPaymentData
): Promise<{paymentIntent?: PaymentIntent; error?: StripeError}>;
): Promise<PaymentIntentResult>;

@@ -275,3 +275,3 @@ /**

data?: ConfirmSofortPaymentData
): Promise<{paymentIntent?: PaymentIntent; error?: StripeError}>;
): Promise<PaymentIntentResult>;

@@ -292,5 +292,3 @@ /**

*/
handleCardAction(
clientSecret: string
): Promise<{paymentIntent?: PaymentIntent; error?: StripeError}>;
handleCardAction(clientSecret: string): Promise<PaymentIntentResult>;

@@ -304,3 +302,3 @@ /**

paymentMethodData: CreatePaymentMethodData
): Promise<{paymentMethod?: PaymentMethod; error?: StripeError}>;
): Promise<PaymentMethodResult>;

@@ -312,5 +310,3 @@ /**

*/
retrievePaymentIntent(
clientSecret: string
): Promise<{paymentIntent?: PaymentIntent; error?: StripeError}>;
retrievePaymentIntent(clientSecret: string): Promise<PaymentIntentResult>;

@@ -341,3 +337,3 @@ /////////////////////////////

data?: ConfirmAuBecsDebitSetupData
): Promise<{setupIntent?: SetupIntent; error?: StripeError}>;
): Promise<SetupIntentResult>;

@@ -359,3 +355,3 @@ /**

data?: ConfirmBacsDebitSetupData
): Promise<{setupIntent?: SetupIntent; error?: StripeError}>;
): Promise<SetupIntentResult>;

@@ -378,3 +374,3 @@ /**

data?: ConfirmBancontactSetupData
): Promise<{setupIntent?: SetupIntent; error?: StripeError}>;
): Promise<SetupIntentResult>;

@@ -395,3 +391,3 @@ /**

options?: ConfirmCardSetupOptions
): Promise<{setupIntent?: SetupIntent; error?: StripeError}>;
): Promise<SetupIntentResult>;

@@ -414,3 +410,3 @@ /**

data?: ConfirmIdealSetupData
): Promise<{setupIntent?: SetupIntent; error?: StripeError}>;
): Promise<SetupIntentResult>;

@@ -432,3 +428,3 @@ /**

data?: ConfirmSepaDebitSetupData
): Promise<{setupIntent?: SetupIntent; error?: StripeError}>;
): Promise<SetupIntentResult>;

@@ -449,3 +445,3 @@ /*

data?: ConfirmSofortSetupData
): Promise<{setupIntent?: SetupIntent; error?: StripeError}>;
): Promise<SetupIntentResult>;

@@ -457,5 +453,3 @@ /**

*/
retrieveSetupIntent(
clientSecret: string
): Promise<{setupIntent?: SetupIntent; error?: StripeError}>;
retrieveSetupIntent(clientSecret: string): Promise<SetupIntentResult>;

@@ -490,3 +484,3 @@ /////////////////////////////

data: CreateTokenIbanData
): Promise<{token?: Token; error?: StripeError}>;
): Promise<TokenResult>;

@@ -501,3 +495,3 @@ /**

data?: CreateTokenCardData
): Promise<{token?: Token; error?: StripeError}>;
): Promise<TokenResult>;

@@ -512,3 +506,3 @@ /**

data: CreateTokenPiiData
): Promise<{token?: Token; error?: StripeError}>;
): Promise<TokenResult>;

@@ -523,3 +517,3 @@ /**

data: CreateTokenBankAccountData
): Promise<{token?: Token; error?: StripeError}>;
): Promise<TokenResult>;

@@ -537,3 +531,3 @@ /**

element: StripeCardCvcElement
): Promise<{token?: Token; error?: StripeError}>;
): Promise<TokenResult>;

@@ -548,3 +542,3 @@ /**

data: TokenCreateParams.Account
): Promise<{token?: Token; error?: StripeError}>;
): Promise<TokenResult>;

@@ -559,3 +553,3 @@ /**

data: TokenCreateParams.Person
): Promise<{token?: Token; error?: StripeError}>;
): Promise<TokenResult>;

@@ -569,3 +563,3 @@ /**

sourceData: CreateSourceData
): Promise<{source?: Source; error?: StripeError}>;
): Promise<SourceResult>;

@@ -576,5 +570,3 @@ /**

*/
createSource(
sourceData: CreateSourceData
): Promise<{source?: Source; error?: StripeError}>;
createSource(sourceData: CreateSourceData): Promise<SourceResult>;

@@ -586,7 +578,25 @@ /**

*/
retrieveSource(
source: RetrieveSourceParam
): Promise<{source?: Source; error?: StripeError}>;
retrieveSource(source: RetrieveSourceParam): Promise<SourceResult>;
}
type PaymentIntentResult =
| {paymentIntent: PaymentIntent; error?: undefined}
| {paymentIntent?: undefined; error: StripeError};
type SetupIntentResult =
| {setupIntent: SetupIntent; error?: undefined}
| {setupIntent?: undefined; error: StripeError};
type PaymentMethodResult =
| {paymentMethod: PaymentMethod; error?: undefined}
| {paymentMethod?: undefined; error: StripeError};
type SourceResult =
| {source: Source; error?: undefined}
| {source?: undefined; error: StripeError};
type TokenResult =
| {token: Token; error?: undefined}
| {token?: undefined; error: StripeError};
/**

@@ -593,0 +603,0 @@ * Use `Stripe(publishableKey, options?)` to create an instance of the `Stripe` object.

@@ -100,3 +100,3 @@ declare module '@stripe/stripe-js' {

*/
grabpay?: {};
grabpay?: {}; // eslint-disable-line @typescript-eslint/ban-types
}

@@ -103,0 +103,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