@fat-zebra/sdk 2.1.2 → 2.1.3-beta.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/react/useMessage.js +12 -7
- package/dist/version.js +2 -2
- package/package.json +1 -1
package/dist/react/useMessage.js
CHANGED
|
@@ -117,12 +117,18 @@ const useMessage = ({ paymentIntent, options, handlers, config }) => {
|
|
|
117
117
|
listenersClient.setEventListeners(threeDS.messageHandlers());
|
|
118
118
|
listenersClientRef.current = listenersClient;
|
|
119
119
|
};
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
120
|
+
authReadyRef.current = new Promise((resolve) => {
|
|
121
|
+
if (isExisting) {
|
|
122
|
+
initAuth();
|
|
123
|
+
resolve();
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
el.addEventListener('load', () => {
|
|
127
|
+
initAuth();
|
|
128
|
+
resolve();
|
|
129
|
+
}, { once: true });
|
|
130
|
+
}
|
|
131
|
+
});
|
|
126
132
|
const readyMessage = {
|
|
127
133
|
channel: 'sca',
|
|
128
134
|
subject: BridgeEvent.READY,
|
|
@@ -137,7 +143,6 @@ const useMessage = ({ paymentIntent, options, handlers, config }) => {
|
|
|
137
143
|
}
|
|
138
144
|
return () => {
|
|
139
145
|
var _a;
|
|
140
|
-
el.removeEventListener('load', initAuth);
|
|
141
146
|
(_a = listenersClientRef.current) === null || _a === void 0 ? void 0 : _a.removeEventListeners();
|
|
142
147
|
};
|
|
143
148
|
}, []);
|
package/dist/version.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! fatzebra-sdk-commit:
|
|
1
|
+
/*! fatzebra-sdk-commit: 31dfefc4eb065eb57c041580b21221d368024faf */
|
|
2
2
|
export const version = '1.5.9';
|
|
3
3
|
// Placeholder replaced at build time by .github/scripts/stamp-version.js with the
|
|
4
4
|
// deployed commit hash (`git rev-parse HEAD`). Stays as the placeholder for builds
|
|
5
5
|
// that don't run the stamp step (e.g. local/package builds).
|
|
6
|
-
export const commitHash = '
|
|
6
|
+
export const commitHash = '31dfefc4eb065eb57c041580b21221d368024faf';
|