@stripe/stripe-js 9.17.0 → 10.0.0-rc.1
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/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/dist/pure.js +3 -3
- package/dist/pure.mjs +3 -3
- package/dist/shared.d.mts +1 -1
- package/dist/shared.d.ts +1 -1
- package/dist/stripe-js/elements-group.d.mts +4 -32
- package/dist/stripe-js/elements-group.d.ts +4 -32
- package/package.json +2 -2
- package/src/shared.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ function _typeof(obj) {
|
|
|
18
18
|
return _typeof(obj);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
var RELEASE_TRAIN = '
|
|
21
|
+
var RELEASE_TRAIN = 'endive';
|
|
22
22
|
|
|
23
23
|
var runtimeVersionToUrlVersion = function runtimeVersionToUrlVersion(version) {
|
|
24
24
|
return version === 3 ? 'v3' : version;
|
|
@@ -71,7 +71,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
|
|
|
71
71
|
|
|
72
72
|
stripe._registerWrapper({
|
|
73
73
|
name: 'stripe-js',
|
|
74
|
-
version: "
|
|
74
|
+
version: "10.0.0-rc.1",
|
|
75
75
|
startTime: startTime
|
|
76
76
|
});
|
|
77
77
|
};
|
|
@@ -172,7 +172,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
|
|
|
172
172
|
var expectedVersion = RELEASE_TRAIN;
|
|
173
173
|
|
|
174
174
|
if (isTestKey && version !== expectedVersion) {
|
|
175
|
-
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("
|
|
175
|
+
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("10.0.0-rc.1", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
var stripe = maybeStripe.apply(undefined, args);
|
package/dist/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ function _typeof(obj) {
|
|
|
14
14
|
return _typeof(obj);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
var RELEASE_TRAIN = '
|
|
17
|
+
var RELEASE_TRAIN = 'endive';
|
|
18
18
|
|
|
19
19
|
var runtimeVersionToUrlVersion = function runtimeVersionToUrlVersion(version) {
|
|
20
20
|
return version === 3 ? 'v3' : version;
|
|
@@ -67,7 +67,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
|
|
|
67
67
|
|
|
68
68
|
stripe._registerWrapper({
|
|
69
69
|
name: 'stripe-js',
|
|
70
|
-
version: "
|
|
70
|
+
version: "10.0.0-rc.1",
|
|
71
71
|
startTime: startTime
|
|
72
72
|
});
|
|
73
73
|
};
|
|
@@ -168,7 +168,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
|
|
|
168
168
|
var expectedVersion = RELEASE_TRAIN;
|
|
169
169
|
|
|
170
170
|
if (isTestKey && version !== expectedVersion) {
|
|
171
|
-
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("
|
|
171
|
+
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("10.0.0-rc.1", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
var stripe = maybeStripe.apply(undefined, args);
|
package/dist/pure.js
CHANGED
|
@@ -18,7 +18,7 @@ function _typeof(obj) {
|
|
|
18
18
|
return _typeof(obj);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
var RELEASE_TRAIN = '
|
|
21
|
+
var RELEASE_TRAIN = 'endive';
|
|
22
22
|
|
|
23
23
|
var runtimeVersionToUrlVersion = function runtimeVersionToUrlVersion(version) {
|
|
24
24
|
return version === 3 ? 'v3' : version;
|
|
@@ -71,7 +71,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
|
|
|
71
71
|
|
|
72
72
|
stripe._registerWrapper({
|
|
73
73
|
name: 'stripe-js',
|
|
74
|
-
version: "
|
|
74
|
+
version: "10.0.0-rc.1",
|
|
75
75
|
startTime: startTime
|
|
76
76
|
});
|
|
77
77
|
};
|
|
@@ -172,7 +172,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
|
|
|
172
172
|
var expectedVersion = RELEASE_TRAIN;
|
|
173
173
|
|
|
174
174
|
if (isTestKey && version !== expectedVersion) {
|
|
175
|
-
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("
|
|
175
|
+
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("10.0.0-rc.1", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
var stripe = maybeStripe.apply(undefined, args);
|
package/dist/pure.mjs
CHANGED
|
@@ -14,7 +14,7 @@ function _typeof(obj) {
|
|
|
14
14
|
return _typeof(obj);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
var RELEASE_TRAIN = '
|
|
17
|
+
var RELEASE_TRAIN = 'endive';
|
|
18
18
|
|
|
19
19
|
var runtimeVersionToUrlVersion = function runtimeVersionToUrlVersion(version) {
|
|
20
20
|
return version === 3 ? 'v3' : version;
|
|
@@ -67,7 +67,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
|
|
|
67
67
|
|
|
68
68
|
stripe._registerWrapper({
|
|
69
69
|
name: 'stripe-js',
|
|
70
|
-
version: "
|
|
70
|
+
version: "10.0.0-rc.1",
|
|
71
71
|
startTime: startTime
|
|
72
72
|
});
|
|
73
73
|
};
|
|
@@ -168,7 +168,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
|
|
|
168
168
|
var expectedVersion = RELEASE_TRAIN;
|
|
169
169
|
|
|
170
170
|
if (isTestKey && version !== expectedVersion) {
|
|
171
|
-
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("
|
|
171
|
+
console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("10.0.0-rc.1", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
var stripe = maybeStripe.apply(undefined, args);
|
package/dist/shared.d.mts
CHANGED
package/dist/shared.d.ts
CHANGED
|
@@ -895,20 +895,6 @@ interface StripeElementsOptionsModeBase extends BaseStripeElementsOptions {
|
|
|
895
895
|
*/
|
|
896
896
|
on_behalf_of?: string;
|
|
897
897
|
|
|
898
|
-
/**
|
|
899
|
-
* Instead of using automatic payment methods, declare specific payment methods to enable.
|
|
900
|
-
*
|
|
901
|
-
* @docs https://stripe.com/docs/payments/payment-methods/overview
|
|
902
|
-
*/
|
|
903
|
-
paymentMethodTypes?: string[];
|
|
904
|
-
|
|
905
|
-
/**
|
|
906
|
-
* Instead of using automatic payment methods, declare specific payment methods to enable.
|
|
907
|
-
*
|
|
908
|
-
* @docs https://stripe.com/docs/payments/payment-methods/overview
|
|
909
|
-
*/
|
|
910
|
-
payment_method_types?: string[];
|
|
911
|
-
|
|
912
898
|
/**
|
|
913
899
|
* The list of payment method types to exclude from use with this payment.
|
|
914
900
|
*
|
|
@@ -924,7 +910,7 @@ interface StripeElementsOptionsModeBase extends BaseStripeElementsOptions {
|
|
|
924
910
|
allowedPaymentMethodTypes?: string[];
|
|
925
911
|
|
|
926
912
|
/**
|
|
927
|
-
* When using automatic payment methods
|
|
913
|
+
* When using automatic payment methods, provide a
|
|
928
914
|
* payment method configuration ID for deriving payment methods.
|
|
929
915
|
*
|
|
930
916
|
* @docs https://stripe.com/docs/connect/payment-method-configurations
|
|
@@ -932,7 +918,7 @@ interface StripeElementsOptionsModeBase extends BaseStripeElementsOptions {
|
|
|
932
918
|
paymentMethodConfiguration?: string;
|
|
933
919
|
|
|
934
920
|
/**
|
|
935
|
-
* When using automatic payment methods
|
|
921
|
+
* When using automatic payment methods, provide a
|
|
936
922
|
* payment method configuration ID for deriving payment methods.
|
|
937
923
|
*
|
|
938
924
|
* @docs https://stripe.com/docs/connect/payment-method-configurations
|
|
@@ -1085,20 +1071,6 @@ export interface StripeElementsUpdateOptions {
|
|
|
1085
1071
|
*/
|
|
1086
1072
|
capture_method?: 'manual' | 'automatic' | 'automatic_async';
|
|
1087
1073
|
|
|
1088
|
-
/**
|
|
1089
|
-
* Instead of using automatic payment methods, declare specific payment methods to enable.
|
|
1090
|
-
*
|
|
1091
|
-
* @docs https://stripe.com/docs/payments/payment-methods/overview
|
|
1092
|
-
*/
|
|
1093
|
-
payment_method_types?: string[];
|
|
1094
|
-
|
|
1095
|
-
/**
|
|
1096
|
-
* Instead of using automatic payment methods, declare specific payment methods to enable.
|
|
1097
|
-
*
|
|
1098
|
-
* @docs https://stripe.com/docs/payments/payment-methods/overview
|
|
1099
|
-
*/
|
|
1100
|
-
paymentMethodTypes?: string[];
|
|
1101
|
-
|
|
1102
1074
|
/**
|
|
1103
1075
|
* The list of payment method types to exclude from use with this payment.
|
|
1104
1076
|
*
|
|
@@ -1114,7 +1086,7 @@ export interface StripeElementsUpdateOptions {
|
|
|
1114
1086
|
allowedPaymentMethodTypes?: string[];
|
|
1115
1087
|
|
|
1116
1088
|
/**
|
|
1117
|
-
* When using automatic payment methods
|
|
1089
|
+
* When using automatic payment methods, provide a
|
|
1118
1090
|
* payment method configuration ID for deriving payment methods.
|
|
1119
1091
|
*
|
|
1120
1092
|
* @docs https://stripe.com/docs/connect/payment-method-configurations
|
|
@@ -1122,7 +1094,7 @@ export interface StripeElementsUpdateOptions {
|
|
|
1122
1094
|
paymentMethodConfiguration?: string;
|
|
1123
1095
|
|
|
1124
1096
|
/**
|
|
1125
|
-
* When using automatic payment methods
|
|
1097
|
+
* When using automatic payment methods, provide a
|
|
1126
1098
|
* payment method configuration ID for deriving payment methods.
|
|
1127
1099
|
*
|
|
1128
1100
|
* @docs https://stripe.com/docs/connect/payment-method-configurations
|
|
@@ -895,20 +895,6 @@ interface StripeElementsOptionsModeBase extends BaseStripeElementsOptions {
|
|
|
895
895
|
*/
|
|
896
896
|
on_behalf_of?: string;
|
|
897
897
|
|
|
898
|
-
/**
|
|
899
|
-
* Instead of using automatic payment methods, declare specific payment methods to enable.
|
|
900
|
-
*
|
|
901
|
-
* @docs https://stripe.com/docs/payments/payment-methods/overview
|
|
902
|
-
*/
|
|
903
|
-
paymentMethodTypes?: string[];
|
|
904
|
-
|
|
905
|
-
/**
|
|
906
|
-
* Instead of using automatic payment methods, declare specific payment methods to enable.
|
|
907
|
-
*
|
|
908
|
-
* @docs https://stripe.com/docs/payments/payment-methods/overview
|
|
909
|
-
*/
|
|
910
|
-
payment_method_types?: string[];
|
|
911
|
-
|
|
912
898
|
/**
|
|
913
899
|
* The list of payment method types to exclude from use with this payment.
|
|
914
900
|
*
|
|
@@ -924,7 +910,7 @@ interface StripeElementsOptionsModeBase extends BaseStripeElementsOptions {
|
|
|
924
910
|
allowedPaymentMethodTypes?: string[];
|
|
925
911
|
|
|
926
912
|
/**
|
|
927
|
-
* When using automatic payment methods
|
|
913
|
+
* When using automatic payment methods, provide a
|
|
928
914
|
* payment method configuration ID for deriving payment methods.
|
|
929
915
|
*
|
|
930
916
|
* @docs https://stripe.com/docs/connect/payment-method-configurations
|
|
@@ -932,7 +918,7 @@ interface StripeElementsOptionsModeBase extends BaseStripeElementsOptions {
|
|
|
932
918
|
paymentMethodConfiguration?: string;
|
|
933
919
|
|
|
934
920
|
/**
|
|
935
|
-
* When using automatic payment methods
|
|
921
|
+
* When using automatic payment methods, provide a
|
|
936
922
|
* payment method configuration ID for deriving payment methods.
|
|
937
923
|
*
|
|
938
924
|
* @docs https://stripe.com/docs/connect/payment-method-configurations
|
|
@@ -1085,20 +1071,6 @@ export interface StripeElementsUpdateOptions {
|
|
|
1085
1071
|
*/
|
|
1086
1072
|
capture_method?: 'manual' | 'automatic' | 'automatic_async';
|
|
1087
1073
|
|
|
1088
|
-
/**
|
|
1089
|
-
* Instead of using automatic payment methods, declare specific payment methods to enable.
|
|
1090
|
-
*
|
|
1091
|
-
* @docs https://stripe.com/docs/payments/payment-methods/overview
|
|
1092
|
-
*/
|
|
1093
|
-
payment_method_types?: string[];
|
|
1094
|
-
|
|
1095
|
-
/**
|
|
1096
|
-
* Instead of using automatic payment methods, declare specific payment methods to enable.
|
|
1097
|
-
*
|
|
1098
|
-
* @docs https://stripe.com/docs/payments/payment-methods/overview
|
|
1099
|
-
*/
|
|
1100
|
-
paymentMethodTypes?: string[];
|
|
1101
|
-
|
|
1102
1074
|
/**
|
|
1103
1075
|
* The list of payment method types to exclude from use with this payment.
|
|
1104
1076
|
*
|
|
@@ -1114,7 +1086,7 @@ export interface StripeElementsUpdateOptions {
|
|
|
1114
1086
|
allowedPaymentMethodTypes?: string[];
|
|
1115
1087
|
|
|
1116
1088
|
/**
|
|
1117
|
-
* When using automatic payment methods
|
|
1089
|
+
* When using automatic payment methods, provide a
|
|
1118
1090
|
* payment method configuration ID for deriving payment methods.
|
|
1119
1091
|
*
|
|
1120
1092
|
* @docs https://stripe.com/docs/connect/payment-method-configurations
|
|
@@ -1122,7 +1094,7 @@ export interface StripeElementsUpdateOptions {
|
|
|
1122
1094
|
paymentMethodConfiguration?: string;
|
|
1123
1095
|
|
|
1124
1096
|
/**
|
|
1125
|
-
* When using automatic payment methods
|
|
1097
|
+
* When using automatic payment methods, provide a
|
|
1126
1098
|
* payment method configuration ID for deriving payment methods.
|
|
1127
1099
|
*
|
|
1128
1100
|
* @docs https://stripe.com/docs/connect/payment-method-configurations
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stripe/stripe-js",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0-rc.1",
|
|
4
4
|
"description": "Stripe.js loading utility",
|
|
5
5
|
"repository": "github:stripe/stripe-js",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"jsnext:main": "lib/index.mjs",
|
|
9
9
|
"types": "lib/index.d.ts",
|
|
10
10
|
"typings": "lib/index.d.ts",
|
|
11
|
-
"releaseCandidate":
|
|
11
|
+
"releaseCandidate": true,
|
|
12
12
|
"scripts": {
|
|
13
13
|
"test": "yarn lint && yarn test:unit && yarn test:package-types && yarn test:types && yarn typecheck",
|
|
14
14
|
"test:unit": "jest",
|
package/src/shared.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface LoadParams {
|
|
|
12
12
|
// containing the package.json version
|
|
13
13
|
declare const _VERSION: string;
|
|
14
14
|
|
|
15
|
-
export const RELEASE_TRAIN: ReleaseTrain = '
|
|
15
|
+
export const RELEASE_TRAIN: ReleaseTrain = 'endive';
|
|
16
16
|
|
|
17
17
|
const runtimeVersionToUrlVersion = (version: string | number) =>
|
|
18
18
|
version === 3 ? 'v3' : version;
|