@stripe/connect-js 2.0.1-beta.1 → 2.0.1-beta.3
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/connect.esm.js +6 -3
- package/dist/connect.js +6 -3
- package/dist/pure.esm.js +6 -3
- package/dist/pure.js +6 -3
- package/package.json +1 -1
package/dist/connect.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var version = "
|
|
1
|
+
var version = "2.0.1-beta.3";
|
|
2
2
|
|
|
3
3
|
const componentNameMapping = {
|
|
4
4
|
payments: "stripe-connect-payments",
|
|
@@ -28,6 +28,10 @@ const loadScript = () => {
|
|
|
28
28
|
return stripePromise;
|
|
29
29
|
}
|
|
30
30
|
stripePromise = new Promise((resolve, reject) => {
|
|
31
|
+
if (typeof window === "undefined") {
|
|
32
|
+
reject("ConnectJS won't load when rendering code in the server - it can only be loaded on a browser. This error is expected when loading ConnectJS in SSR environments, like NextJS. It will have no impact in the UI, however if you wish to avoid it, you can switch to the `pure` version of the connect.js loader: https://github.com/stripe/connect-js#importing-loadconnect-without-side-effects.");
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
31
35
|
if (window.StripeConnect) {
|
|
32
36
|
console.warn(EXISTING_SCRIPT_MESSAGE);
|
|
33
37
|
}
|
|
@@ -78,8 +82,7 @@ const createWrapper = stripeConnect => {
|
|
|
78
82
|
sdkVersion: version
|
|
79
83
|
}
|
|
80
84
|
})
|
|
81
|
-
}))
|
|
82
|
-
console.log(stripeConnectInstance, "lemon");
|
|
85
|
+
}));
|
|
83
86
|
// We wrap create so we can map its different strings to supported components
|
|
84
87
|
const oldCreate = stripeConnectInstance.create.bind(stripeConnectInstance);
|
|
85
88
|
stripeConnectInstance.create = tagName => {
|
package/dist/connect.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var version = "
|
|
5
|
+
var version = "2.0.1-beta.3";
|
|
6
6
|
|
|
7
7
|
const componentNameMapping = {
|
|
8
8
|
payments: "stripe-connect-payments",
|
|
@@ -32,6 +32,10 @@ const loadScript = () => {
|
|
|
32
32
|
return stripePromise;
|
|
33
33
|
}
|
|
34
34
|
stripePromise = new Promise((resolve, reject) => {
|
|
35
|
+
if (typeof window === "undefined") {
|
|
36
|
+
reject("ConnectJS won't load when rendering code in the server - it can only be loaded on a browser. This error is expected when loading ConnectJS in SSR environments, like NextJS. It will have no impact in the UI, however if you wish to avoid it, you can switch to the `pure` version of the connect.js loader: https://github.com/stripe/connect-js#importing-loadconnect-without-side-effects.");
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
35
39
|
if (window.StripeConnect) {
|
|
36
40
|
console.warn(EXISTING_SCRIPT_MESSAGE);
|
|
37
41
|
}
|
|
@@ -82,8 +86,7 @@ const createWrapper = stripeConnect => {
|
|
|
82
86
|
sdkVersion: version
|
|
83
87
|
}
|
|
84
88
|
})
|
|
85
|
-
}))
|
|
86
|
-
console.log(stripeConnectInstance, "lemon");
|
|
89
|
+
}));
|
|
87
90
|
// We wrap create so we can map its different strings to supported components
|
|
88
91
|
const oldCreate = stripeConnectInstance.create.bind(stripeConnectInstance);
|
|
89
92
|
stripeConnectInstance.create = tagName => {
|
package/dist/pure.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var version = "
|
|
1
|
+
var version = "2.0.1-beta.3";
|
|
2
2
|
|
|
3
3
|
const componentNameMapping = {
|
|
4
4
|
payments: "stripe-connect-payments",
|
|
@@ -28,6 +28,10 @@ const loadScript = () => {
|
|
|
28
28
|
return stripePromise;
|
|
29
29
|
}
|
|
30
30
|
stripePromise = new Promise((resolve, reject) => {
|
|
31
|
+
if (typeof window === "undefined") {
|
|
32
|
+
reject("ConnectJS won't load when rendering code in the server - it can only be loaded on a browser. This error is expected when loading ConnectJS in SSR environments, like NextJS. It will have no impact in the UI, however if you wish to avoid it, you can switch to the `pure` version of the connect.js loader: https://github.com/stripe/connect-js#importing-loadconnect-without-side-effects.");
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
31
35
|
if (window.StripeConnect) {
|
|
32
36
|
console.warn(EXISTING_SCRIPT_MESSAGE);
|
|
33
37
|
}
|
|
@@ -78,8 +82,7 @@ const createWrapper = stripeConnect => {
|
|
|
78
82
|
sdkVersion: version
|
|
79
83
|
}
|
|
80
84
|
})
|
|
81
|
-
}))
|
|
82
|
-
console.log(stripeConnectInstance, "lemon");
|
|
85
|
+
}));
|
|
83
86
|
// We wrap create so we can map its different strings to supported components
|
|
84
87
|
const oldCreate = stripeConnectInstance.create.bind(stripeConnectInstance);
|
|
85
88
|
stripeConnectInstance.create = tagName => {
|
package/dist/pure.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var version = "
|
|
5
|
+
var version = "2.0.1-beta.3";
|
|
6
6
|
|
|
7
7
|
const componentNameMapping = {
|
|
8
8
|
payments: "stripe-connect-payments",
|
|
@@ -32,6 +32,10 @@ const loadScript = () => {
|
|
|
32
32
|
return stripePromise;
|
|
33
33
|
}
|
|
34
34
|
stripePromise = new Promise((resolve, reject) => {
|
|
35
|
+
if (typeof window === "undefined") {
|
|
36
|
+
reject("ConnectJS won't load when rendering code in the server - it can only be loaded on a browser. This error is expected when loading ConnectJS in SSR environments, like NextJS. It will have no impact in the UI, however if you wish to avoid it, you can switch to the `pure` version of the connect.js loader: https://github.com/stripe/connect-js#importing-loadconnect-without-side-effects.");
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
35
39
|
if (window.StripeConnect) {
|
|
36
40
|
console.warn(EXISTING_SCRIPT_MESSAGE);
|
|
37
41
|
}
|
|
@@ -82,8 +86,7 @@ const createWrapper = stripeConnect => {
|
|
|
82
86
|
sdkVersion: version
|
|
83
87
|
}
|
|
84
88
|
})
|
|
85
|
-
}))
|
|
86
|
-
console.log(stripeConnectInstance, "lemon");
|
|
89
|
+
}));
|
|
87
90
|
// We wrap create so we can map its different strings to supported components
|
|
88
91
|
const oldCreate = stripeConnectInstance.create.bind(stripeConnectInstance);
|
|
89
92
|
stripeConnectInstance.create = tagName => {
|