@vcd/sdk 15.0.0 → 15.0.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/fesm2020/vcd-sdk.mjs
CHANGED
|
@@ -995,13 +995,13 @@ class VcdApiClient {
|
|
|
995
995
|
else {
|
|
996
996
|
negotiatedVersion = this.http.get(`${this._baseUrl}/api/versions`).pipe(map(versions => this.negotiateVersion(versions)), tap(version => this.setVersion(version)));
|
|
997
997
|
}
|
|
998
|
-
this._negotiateVersion = negotiatedVersion.pipe(share({ connector: () => new ReplaySubject(1) }));
|
|
998
|
+
this._negotiateVersion = negotiatedVersion.pipe(share({ connector: () => new ReplaySubject(1), resetOnError: false, resetOnComplete: false, resetOnRefCountZero: false }));
|
|
999
999
|
const tokenHolder = this.injector.get(AuthTokenHolderService$1, { token: '' });
|
|
1000
1000
|
const token = tokenHolder.jwt ? `Bearer ${tokenHolder.jwt}` : tokenHolder.token;
|
|
1001
1001
|
this._getSession = this.setAuthentication(token)
|
|
1002
|
-
.pipe(share({ connector: () => new ReplaySubject(1) }));
|
|
1002
|
+
.pipe(share({ connector: () => new ReplaySubject(1), resetOnError: false, resetOnComplete: false, resetOnRefCountZero: false }));
|
|
1003
1003
|
this._getCloudApiSession = this.setCloudApiAuthentication(token)
|
|
1004
|
-
.pipe(share({ connector: () => new ReplaySubject(1) }));
|
|
1004
|
+
.pipe(share({ connector: () => new ReplaySubject(1), resetOnError: false, resetOnComplete: false, resetOnRefCountZero: false }));
|
|
1005
1005
|
// This is not an explicit cloud api login
|
|
1006
1006
|
this._isCloudApiLogin = false;
|
|
1007
1007
|
}
|
|
@@ -1420,7 +1420,7 @@ class VcdApiClient {
|
|
|
1420
1420
|
switchMap((link) => link ? this.http.get(link.href) : of(null)),
|
|
1421
1421
|
// Get the array with all locations (what if there are many pages)
|
|
1422
1422
|
map((accessibleLocations) => accessibleLocations && accessibleLocations.values))
|
|
1423
|
-
.pipe(share({ connector: () => new ReplaySubject(1) }));
|
|
1423
|
+
.pipe(share({ connector: () => new ReplaySubject(1), resetOnError: false, resetOnComplete: false, resetOnRefCountZero: false }));
|
|
1424
1424
|
}
|
|
1425
1425
|
return this._cloudApiAccessibleLocations;
|
|
1426
1426
|
}),
|