@verdocs/js-sdk 4.2.75 → 4.2.76
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 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1109,9 +1109,7 @@ class VerdocsEndpoint {
|
|
|
1109
1109
|
static getDefault() {
|
|
1110
1110
|
if (!globalThis$1[ENDPOINT_KEY]) {
|
|
1111
1111
|
globalThis$1[ENDPOINT_KEY] = new VerdocsEndpoint();
|
|
1112
|
-
// window.console.debug('[JS_SDK] Created default endpoint', globalThis[ENDPOINT_KEY].baseURL);
|
|
1113
1112
|
}
|
|
1114
|
-
window?.console?.debug('[JS_SDK] Getting default endpoint', globalThis$1[ENDPOINT_KEY].endpointId);
|
|
1115
1113
|
return globalThis$1[ENDPOINT_KEY];
|
|
1116
1114
|
}
|
|
1117
1115
|
/**
|
|
@@ -1368,6 +1366,9 @@ class VerdocsEndpoint {
|
|
|
1368
1366
|
this.nextListenerId++;
|
|
1369
1367
|
const listenerSymbol = Symbol.for('' + this.nextListenerId);
|
|
1370
1368
|
this.sessionListeners.set(listenerSymbol, listener);
|
|
1369
|
+
// Perform an immediate notification in case this listener subscribed after the endpoint's session was
|
|
1370
|
+
// already loaded.
|
|
1371
|
+
listener(this, this.session, this.profile);
|
|
1371
1372
|
return () => {
|
|
1372
1373
|
this.sessionListeners.delete(listenerSymbol);
|
|
1373
1374
|
};
|