@tstdl/base 0.92.159 → 0.92.160

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.
@@ -84,7 +84,7 @@ export declare class AuthenticationClientService<AdditionalTokenPayload extends
84
84
  get definedSessionId(): string;
85
85
  /** Whether a valid token is available (not undefined and not expired) */
86
86
  get hasValidToken(): boolean;
87
- constructor(initialAuthenticationData: AuthenticationData | undefined);
87
+ constructor();
88
88
  /** @internal */
89
89
  [afterResolve](): void;
90
90
  /**
@@ -7,9 +7,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
- var __param = (this && this.__param) || function (paramIndex, decorator) {
11
- return function (target, key) { decorator(target, key, paramIndex); }
12
- };
13
10
  import { Subject, filter, firstValueFrom, race, timer } from 'rxjs';
14
11
  import { CancellationToken } from '../../cancellation/token.js';
15
12
  import { disposeAsync } from '../../disposable/index.js';
@@ -19,7 +16,7 @@ import { InvalidTokenError } from '../../errors/invalid-token.error.js';
19
16
  import { NotFoundError } from '../../errors/not-found.error.js';
20
17
  import { NotSupportedError } from '../../errors/not-supported.error.js';
21
18
  import { UnauthorizedError } from '../../errors/unauthorized.error.js';
22
- import { Inject, Optional, Singleton, afterResolve, inject } from '../../injector/index.js';
19
+ import { Singleton, afterResolve, inject } from '../../injector/index.js';
23
20
  import { Lock } from '../../lock/index.js';
24
21
  import { Logger } from '../../logger/index.js';
25
22
  import { MessageBus } from '../../message-bus/index.js';
@@ -144,9 +141,9 @@ let AuthenticationClientService = class AuthenticationClientService {
144
141
  get hasValidToken() {
145
142
  return (this.token()?.exp ?? 0) > this.estimatedServerTimestampSeconds();
146
143
  }
147
- constructor(initialAuthenticationData) {
144
+ constructor() {
148
145
  if (isUndefined(this.authenticationData)) {
149
- this.authenticationData = initialAuthenticationData;
146
+ this.authenticationData = inject(INITIAL_AUTHENTICATION_DATA, undefined, { optional: true });
150
147
  }
151
148
  }
152
149
  /** @internal */
@@ -417,8 +414,6 @@ let AuthenticationClientService = class AuthenticationClientService {
417
414
  };
418
415
  AuthenticationClientService = __decorate([
419
416
  Singleton(),
420
- __param(0, Inject(INITIAL_AUTHENTICATION_DATA)),
421
- __param(0, Optional()),
422
- __metadata("design:paramtypes", [Object])
417
+ __metadata("design:paramtypes", [])
423
418
  ], AuthenticationClientService);
424
419
  export { AuthenticationClientService };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tstdl/base",
3
- "version": "0.92.159",
3
+ "version": "0.92.160",
4
4
  "author": "Patrick Hein",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -80,6 +80,7 @@
80
80
  "./jsx": "./jsx/index.js",
81
81
  "./key-value-store": "./key-value-store/index.js",
82
82
  "./key-value-store/mongo": "./key-value-store/mongo/index.js",
83
+ "./key-value-store/postgres": "./key-value-store/postgres/index.js",
83
84
  "./lock": "./lock/index.js",
84
85
  "./lock/mongo": "./lock/mongo/index.js",
85
86
  "./lock/web": "./lock/web/index.js",