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 2.1.4 to 2.1.5

2

dist/pure.esm.js

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

name: 'stripe-js',
version: "2.1.4",
version: "2.1.5",
startTime: startTime

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

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

name: 'stripe-js',
version: "2.1.4",
version: "2.1.5",
startTime: startTime

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

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

name: 'stripe-js',
version: "2.1.4",
version: "2.1.5",
startTime: startTime

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

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

name: 'stripe-js',
version: "2.1.4",
version: "2.1.5",
startTime: startTime

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

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

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

@@ -39,11 +39,11 @@ import {

export type StripeCustomCheckoutAddress = {
country: string | null;
line1: string | null;
country: string;
line1?: string | null;
line2?: string | null;
city: string | null;
postal_code: string | null;
state: string | null;
city?: string | null;
postal_code?: string | null;
state?: string | null;
};
export type StripeCustomCheckoutShippingAddress = {
export type StripeCustomCheckoutContact = {
name?: string | null;

@@ -53,3 +53,2 @@ address: StripeCustomCheckoutAddress;

export type StripeCustomCheckoutBillingAddress = StripeCustomCheckoutShippingAddress;
export type StripeCustomCheckoutResult =

@@ -65,6 +64,6 @@ | {session: StripeCustomCheckoutSession; error?: undefined}

updateShippingAddress: (
shippingAddress: StripeCustomCheckoutShippingAddress
shippingAddress: StripeCustomCheckoutContact
) => Promise<StripeCustomCheckoutResult>;
updateBillingAddress: (
billingAddress: StripeCustomCheckoutBillingAddress
billingAddress: StripeCustomCheckoutContact
) => Promise<StripeCustomCheckoutResult>;

@@ -98,3 +97,3 @@ updatePhoneNumber: (phoneNumber: string) => void;

displayName: string;
promotionCode?: string | null;
promotionCode: string | null;
};

@@ -104,3 +103,3 @@

shippingOption: StripeCustomCheckoutShippingOption;
taxAmounts?: Array<StripeCustomCheckoutTaxAmount> | null;
taxAmounts: Array<StripeCustomCheckoutTaxAmount> | null;
};

@@ -112,9 +111,9 @@

currency: string;
displayName?: string | null;
deliveryEstimate?: StripeCustomCheckoutDeliveryEstimate | null;
displayName: string | null;
deliveryEstimate: StripeCustomCheckoutDeliveryEstimate | null;
};
export type StripeCustomCheckoutDeliveryEstimate = {
maximum?: StripeCustomCheckoutEstimate | null;
minimum?: StripeCustomCheckoutEstimate | null;
maximum: StripeCustomCheckoutEstimate | null;
minimum: StripeCustomCheckoutEstimate | null;
};

@@ -127,7 +126,2 @@

export type StripeCustomCheckoutLineItemDiscountAmount = {
amount: number;
promotionCode?: string | null;
};
export type StripeCustomCheckoutBillingInterval =

@@ -144,9 +138,10 @@ | 'day'

unitAmount: number;
description?: string | null;
description: string | null;
quantity: number;
discountAmounts?: Array<StripeCustomCheckoutLineItemDiscountAmount> | null;
recurring?: {
discountAmounts: Array<StripeCustomCheckoutDiscountAmount> | null;
taxAmounts: Array<StripeCustomCheckoutTaxAmount> | null;
recurring: {
interval: StripeCustomCheckoutBillingInterval;
interval_count: number;
};
} | null;
};

@@ -172,11 +167,11 @@

lineItems: Array<StripeCustomCheckoutLineItem>;
taxAmounts?: Array<StripeCustomCheckoutTaxAmount> | null;
discountAmounts?: Array<StripeCustomCheckoutDiscountAmount> | null;
taxAmounts: Array<StripeCustomCheckoutTaxAmount> | null;
discountAmounts: Array<StripeCustomCheckoutDiscountAmount> | null;
currency: string;
shipping?: StripeCustomCheckoutShipping | null;
shipping: StripeCustomCheckoutShipping | null;
shippingOptions: Array<StripeCustomCheckoutShippingOption>;
shippingAddress?: StripeCustomCheckoutShippingAddress | null;
billingAddress?: StripeCustomCheckoutBillingAddress | null;
phoneNumber?: string | null;
email?: string | null;
shippingAddress: StripeCustomCheckoutContact | null;
billingAddress: StripeCustomCheckoutContact | null;
phoneNumber: string | null;
email: string | null;
total: StripeCustomCheckoutTotalSummary;

@@ -231,3 +226,2 @@ confirmationRequirements: StripeCustomCheckoutConfirmationRequirement[];

extends StripeCustomCheckoutActions,
StripeCustomCheckoutSession,
StripeCustomCheckoutElementsActions {

@@ -234,0 +228,0 @@ session: () => StripeCustomCheckoutSession;

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