cryptique-sdk 1.2.7 → 1.2.8
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 +8 -2
- package/lib/esm/index.js +8 -2
- package/lib/umd/index.js +8 -2
- package/package.json +1 -1
package/lib/cjs/index.js
CHANGED
|
@@ -5861,6 +5861,12 @@ 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
|
+
|
|
5864
5870
|
// Send initial session data (non-blocking)
|
|
5865
5871
|
this.sendInitialSessionData().catch(() => {
|
|
5866
5872
|
// Ignore errors, will retry in interval
|
|
@@ -5869,10 +5875,10 @@ if (window.Cryptique && window.Cryptique.initialized) ; else {
|
|
|
5869
5875
|
} catch (error) {
|
|
5870
5876
|
console.error('Error initializing Cryptique SDK:', error);
|
|
5871
5877
|
} finally {
|
|
5872
|
-
//
|
|
5878
|
+
// If init threw before setting isInitialized, resolve anyway so _waitForReady() callers don't hang
|
|
5873
5879
|
if (typeof _readyPromiseResolve === 'function') {
|
|
5874
5880
|
_readyPromiseResolve();
|
|
5875
|
-
_readyPromiseResolve = null;
|
|
5881
|
+
_readyPromiseResolve = null;
|
|
5876
5882
|
}
|
|
5877
5883
|
}
|
|
5878
5884
|
}
|
package/lib/esm/index.js
CHANGED
|
@@ -5859,6 +5859,12 @@ 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
|
+
|
|
5862
5868
|
// Send initial session data (non-blocking)
|
|
5863
5869
|
this.sendInitialSessionData().catch(() => {
|
|
5864
5870
|
// Ignore errors, will retry in interval
|
|
@@ -5867,10 +5873,10 @@ if (window.Cryptique && window.Cryptique.initialized) ; else {
|
|
|
5867
5873
|
} catch (error) {
|
|
5868
5874
|
console.error('Error initializing Cryptique SDK:', error);
|
|
5869
5875
|
} finally {
|
|
5870
|
-
//
|
|
5876
|
+
// If init threw before setting isInitialized, resolve anyway so _waitForReady() callers don't hang
|
|
5871
5877
|
if (typeof _readyPromiseResolve === 'function') {
|
|
5872
5878
|
_readyPromiseResolve();
|
|
5873
|
-
_readyPromiseResolve = null;
|
|
5879
|
+
_readyPromiseResolve = null;
|
|
5874
5880
|
}
|
|
5875
5881
|
}
|
|
5876
5882
|
}
|
package/lib/umd/index.js
CHANGED
|
@@ -5865,6 +5865,12 @@
|
|
|
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
|
+
|
|
5868
5874
|
// Send initial session data (non-blocking)
|
|
5869
5875
|
this.sendInitialSessionData().catch(() => {
|
|
5870
5876
|
// Ignore errors, will retry in interval
|
|
@@ -5873,10 +5879,10 @@
|
|
|
5873
5879
|
} catch (error) {
|
|
5874
5880
|
console.error('Error initializing Cryptique SDK:', error);
|
|
5875
5881
|
} finally {
|
|
5876
|
-
//
|
|
5882
|
+
// If init threw before setting isInitialized, resolve anyway so _waitForReady() callers don't hang
|
|
5877
5883
|
if (typeof _readyPromiseResolve === 'function') {
|
|
5878
5884
|
_readyPromiseResolve();
|
|
5879
|
-
_readyPromiseResolve = null;
|
|
5885
|
+
_readyPromiseResolve = null;
|
|
5880
5886
|
}
|
|
5881
5887
|
}
|
|
5882
5888
|
}
|
package/package.json
CHANGED