cryptique-sdk 1.2.8 → 1.2.9
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/lib/cjs/index.js +2 -8
- package/lib/esm/index.js +2 -8
- package/lib/umd/index.js +2 -8
- package/package.json +1 -1
package/lib/cjs/index.js
CHANGED
|
@@ -5861,12 +5861,6 @@ if (window.Cryptique && window.Cryptique.initialized) ; else {
|
|
|
5861
5861
|
// Mark SDK as initialized
|
|
5862
5862
|
runtimeState.isInitialized = true;
|
|
5863
5863
|
|
|
5864
|
-
// Resolve ready promise only after we're initialized (so enableAutoEvents/setup don't see "not initialized")
|
|
5865
|
-
if (typeof _readyPromiseResolve === 'function') {
|
|
5866
|
-
_readyPromiseResolve();
|
|
5867
|
-
_readyPromiseResolve = null;
|
|
5868
|
-
}
|
|
5869
|
-
|
|
5870
5864
|
// Send initial session data (non-blocking)
|
|
5871
5865
|
this.sendInitialSessionData().catch(() => {
|
|
5872
5866
|
// Ignore errors, will retry in interval
|
|
@@ -5875,10 +5869,10 @@ if (window.Cryptique && window.Cryptique.initialized) ; else {
|
|
|
5875
5869
|
} catch (error) {
|
|
5876
5870
|
console.error('Error initializing Cryptique SDK:', error);
|
|
5877
5871
|
} finally {
|
|
5878
|
-
//
|
|
5872
|
+
// Always resolve ready promise so awaiters don't hang (even if init failed)
|
|
5879
5873
|
if (typeof _readyPromiseResolve === 'function') {
|
|
5880
5874
|
_readyPromiseResolve();
|
|
5881
|
-
_readyPromiseResolve = null;
|
|
5875
|
+
_readyPromiseResolve = null; // Prevent multiple resolves
|
|
5882
5876
|
}
|
|
5883
5877
|
}
|
|
5884
5878
|
}
|
package/lib/esm/index.js
CHANGED
|
@@ -5859,12 +5859,6 @@ if (window.Cryptique && window.Cryptique.initialized) ; else {
|
|
|
5859
5859
|
// Mark SDK as initialized
|
|
5860
5860
|
runtimeState.isInitialized = true;
|
|
5861
5861
|
|
|
5862
|
-
// Resolve ready promise only after we're initialized (so enableAutoEvents/setup don't see "not initialized")
|
|
5863
|
-
if (typeof _readyPromiseResolve === 'function') {
|
|
5864
|
-
_readyPromiseResolve();
|
|
5865
|
-
_readyPromiseResolve = null;
|
|
5866
|
-
}
|
|
5867
|
-
|
|
5868
5862
|
// Send initial session data (non-blocking)
|
|
5869
5863
|
this.sendInitialSessionData().catch(() => {
|
|
5870
5864
|
// Ignore errors, will retry in interval
|
|
@@ -5873,10 +5867,10 @@ if (window.Cryptique && window.Cryptique.initialized) ; else {
|
|
|
5873
5867
|
} catch (error) {
|
|
5874
5868
|
console.error('Error initializing Cryptique SDK:', error);
|
|
5875
5869
|
} finally {
|
|
5876
|
-
//
|
|
5870
|
+
// Always resolve ready promise so awaiters don't hang (even if init failed)
|
|
5877
5871
|
if (typeof _readyPromiseResolve === 'function') {
|
|
5878
5872
|
_readyPromiseResolve();
|
|
5879
|
-
_readyPromiseResolve = null;
|
|
5873
|
+
_readyPromiseResolve = null; // Prevent multiple resolves
|
|
5880
5874
|
}
|
|
5881
5875
|
}
|
|
5882
5876
|
}
|
package/lib/umd/index.js
CHANGED
|
@@ -5865,12 +5865,6 @@
|
|
|
5865
5865
|
// Mark SDK as initialized
|
|
5866
5866
|
runtimeState.isInitialized = true;
|
|
5867
5867
|
|
|
5868
|
-
// Resolve ready promise only after we're initialized (so enableAutoEvents/setup don't see "not initialized")
|
|
5869
|
-
if (typeof _readyPromiseResolve === 'function') {
|
|
5870
|
-
_readyPromiseResolve();
|
|
5871
|
-
_readyPromiseResolve = null;
|
|
5872
|
-
}
|
|
5873
|
-
|
|
5874
5868
|
// Send initial session data (non-blocking)
|
|
5875
5869
|
this.sendInitialSessionData().catch(() => {
|
|
5876
5870
|
// Ignore errors, will retry in interval
|
|
@@ -5879,10 +5873,10 @@
|
|
|
5879
5873
|
} catch (error) {
|
|
5880
5874
|
console.error('Error initializing Cryptique SDK:', error);
|
|
5881
5875
|
} finally {
|
|
5882
|
-
//
|
|
5876
|
+
// Always resolve ready promise so awaiters don't hang (even if init failed)
|
|
5883
5877
|
if (typeof _readyPromiseResolve === 'function') {
|
|
5884
5878
|
_readyPromiseResolve();
|
|
5885
|
-
_readyPromiseResolve = null;
|
|
5879
|
+
_readyPromiseResolve = null; // Prevent multiple resolves
|
|
5886
5880
|
}
|
|
5887
5881
|
}
|
|
5888
5882
|
}
|
package/package.json
CHANGED