New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@stripe/stripe-js

Package Overview
Dependencies
Maintainers
0
Versions
149
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

to
5.8.0

8

dist/index.js

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

name: 'stripe-js',
version: "5.7.0",
version: "5.8.0",
startTime: startTime

@@ -63,4 +63,6 @@ });

var onError = function onError(reject) {
return function () {
reject(new Error('Failed to load Stripe.js'));
return function (cause) {
reject(new Error('Failed to load Stripe.js', {
cause: cause
}));
};

@@ -67,0 +69,0 @@ };

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

name: 'stripe-js',
version: "5.7.0",
version: "5.8.0",
startTime: startTime

@@ -79,4 +79,6 @@ });

var onError = function onError(reject) {
return function () {
reject(new Error('Failed to load Stripe.js'));
return function (cause) {
reject(new Error('Failed to load Stripe.js', {
cause: cause
}));
};

@@ -83,0 +85,0 @@ };

@@ -532,3 +532,9 @@ import {StripeElementBase} from './base';

paymentFailed: (payload?: {
reason?: 'fail' | 'invalid_shipping_address';
reason?:
| 'fail'
| 'invalid_shipping_address'
| 'invalid_billing_address'
| 'invalid_payment_data'
| 'address_unserviceable';
message?: string;
}) => void;

@@ -535,0 +541,0 @@

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

@@ -65,5 +65,5 @@ "repository": "github:stripe/stripe-js",

"ts-jest": "^24.3.0",
"typescript": "^4.1.2",
"typescript": "~4.8.0",
"zx": "^4.2.0"
}
}

@@ -72,7 +72,7 @@ import {Stripe, StripeConstructor} from '../types';

let onErrorListener: (() => void) | null = null;
let onErrorListener: ((cause?: unknown) => void) | null = null;
let onLoadListener: (() => void) | null = null;
const onError = (reject: (reason?: any) => void) => () => {
reject(new Error('Failed to load Stripe.js'));
const onError = (reject: (reason?: any) => void) => (cause?: unknown) => {
reject(new Error('Failed to load Stripe.js', {cause}));
};

@@ -79,0 +79,0 @@

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