@stripe/stripe-js 3.0.0 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pure.js +1 -1
- package/dist/pure.mjs +1 -1
- package/dist/stripe.js +1 -1
- package/dist/stripe.mjs +1 -1
- package/package.json +17 -5
- package/types/index.d.mts +17 -0
- package/types/pure.d.mts +5 -0
- package/types/pure.d.ts +1 -1
package/dist/pure.js
CHANGED
package/dist/pure.mjs
CHANGED
package/dist/stripe.js
CHANGED
package/dist/stripe.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,18 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stripe/stripe-js",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "Stripe.js loading utility",
|
|
5
5
|
"repository": "github:stripe/stripe-js",
|
|
6
6
|
"main": "dist/stripe.js",
|
|
7
7
|
"module": "dist/stripe.mjs",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
-
"import":
|
|
11
|
-
|
|
10
|
+
"import": {
|
|
11
|
+
"types": "./types/index.d.mts",
|
|
12
|
+
"default": "./dist/stripe.mjs"
|
|
13
|
+
},
|
|
14
|
+
"require": {
|
|
15
|
+
"types": "./types/index.d.ts",
|
|
16
|
+
"default": "./dist/stripe.js"
|
|
17
|
+
}
|
|
12
18
|
},
|
|
13
19
|
"./pure": {
|
|
14
|
-
"import":
|
|
15
|
-
|
|
20
|
+
"import": {
|
|
21
|
+
"types": "./types/pure.d.mts",
|
|
22
|
+
"default": "./dist/pure.mjs"
|
|
23
|
+
},
|
|
24
|
+
"require": {
|
|
25
|
+
"types": "./types/pure.d.ts",
|
|
26
|
+
"default": "./dist/pure.js"
|
|
27
|
+
}
|
|
16
28
|
}
|
|
17
29
|
},
|
|
18
30
|
"jsnext:main": "dist/stripe.mjs",
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from './api';
|
|
2
|
+
export * from './stripe-js';
|
|
3
|
+
|
|
4
|
+
import {StripeConstructor, StripeConstructorOptions, Stripe} from './stripe-js';
|
|
5
|
+
|
|
6
|
+
export const loadStripe: (
|
|
7
|
+
publishableKey: string,
|
|
8
|
+
options?: StripeConstructorOptions | undefined
|
|
9
|
+
) => Promise<Stripe | null>;
|
|
10
|
+
|
|
11
|
+
declare global {
|
|
12
|
+
interface Window {
|
|
13
|
+
// Stripe.js must be loaded directly from https://js.stripe.com/v3, which
|
|
14
|
+
// places a `Stripe` object on the window
|
|
15
|
+
Stripe?: StripeConstructor;
|
|
16
|
+
}
|
|
17
|
+
}
|
package/types/pure.d.mts
ADDED
package/types/pure.d.ts
CHANGED