@tstdl/base 0.90.51 → 0.90.53

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.
@@ -2,7 +2,7 @@ import type { HttpClientOptions } from '../../http/client/index.js';
2
2
  import { HttpClient } from '../../http/client/index.js';
3
3
  import type { Resolvable } from '../../injector/interfaces.js';
4
4
  import type { ApiClientImplementation, ApiDefinition, ApiEndpointDefinition } from '../types.js';
5
- export type ApiClient<T extends ApiDefinition> = new (httpClient: HttpClient) => ApiClientImplementation<T> & Resolvable<HttpClientOptions>;
5
+ export type ApiClient<T extends ApiDefinition> = new (httpClientOrOptions?: HttpClient | HttpClientOptions) => ApiClientImplementation<T> & Resolvable<HttpClient | HttpClientOptions>;
6
6
  export type ClientOptions = {
7
7
  /**
8
8
  * url prefix
@@ -4,11 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
- var __metadata = (this && this.__metadata) || function (k, v) {
8
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
- };
10
7
  import { compileClient } from '../../api/client/index.js';
11
- import { HttpClient } from '../../http/client/http-client.js';
12
8
  import { ReplaceClass, Singleton } from '../../injector/index.js';
13
9
  import { emptyObjectSchema } from '../../schema/schemas/object.js';
14
10
  import { unknown } from '../../schema/schemas/unknown.js';
@@ -16,13 +12,9 @@ import { getAuthenticationApiDefinition } from '../authentication.api.js';
16
12
  export function getAuthenticationApiClient(additionalTokenPayloadSchema, authenticationDataSchema, additionalInitSecretResetData) {
17
13
  const definition = getAuthenticationApiDefinition(additionalTokenPayloadSchema, authenticationDataSchema, additionalInitSecretResetData);
18
14
  let AuthenticationApiClient = class AuthenticationApiClient extends compileClient(definition) {
19
- constructor(httpClient) {
20
- super(httpClient);
21
- }
22
15
  };
23
16
  AuthenticationApiClient = __decorate([
24
- Singleton(),
25
- __metadata("design:paramtypes", [HttpClient])
17
+ Singleton()
26
18
  ], AuthenticationApiClient);
27
19
  return AuthenticationApiClient;
28
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tstdl/base",
3
- "version": "0.90.51",
3
+ "version": "0.90.53",
4
4
  "author": "Patrick Hein",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -150,7 +150,7 @@
150
150
  "playwright": "^1.41",
151
151
  "preact": "^10.19",
152
152
  "preact-render-to-string": "^6.3",
153
- "undici": "^6.4",
153
+ "undici": "^6.5",
154
154
  "urlpattern-polyfill": "^10.0"
155
155
  },
156
156
  "peerDependenciesMeta": {