@tstdl/base 0.87.5 → 0.87.6

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.
@@ -53,7 +53,7 @@ var __metadata = function(k, v) {
53
53
  };
54
54
  let HttpClient = class HttpClient2 {
55
55
  adapter = (0, import_injector.inject)(import_http_client_adapter.HttpClientAdapter);
56
- middleware = (0, import_injector.inject)(import_tokens.HTTP_CLIENT_MIDDLEWARES);
56
+ middleware = (0, import_injector.injectAll)(import_tokens.HTTP_CLIENT_MIDDLEWARE, void 0, { optional: true });
57
57
  headers = new import_http_headers.HttpHeaders();
58
58
  internalMiddleware;
59
59
  callHandler;
@@ -1,3 +1,2 @@
1
1
  import type { HttpClientMiddleware } from './middleware.js';
2
2
  export declare const HTTP_CLIENT_MIDDLEWARE: import("../../injector/token.js").InjectionToken<HttpClientMiddleware, never>;
3
- export declare const HTTP_CLIENT_MIDDLEWARES: import("../../injector/token.js").InjectionToken<HttpClientMiddleware[], never>;
@@ -18,12 +18,8 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var tokens_exports = {};
20
20
  __export(tokens_exports, {
21
- HTTP_CLIENT_MIDDLEWARE: () => HTTP_CLIENT_MIDDLEWARE,
22
- HTTP_CLIENT_MIDDLEWARES: () => HTTP_CLIENT_MIDDLEWARES
21
+ HTTP_CLIENT_MIDDLEWARE: () => HTTP_CLIENT_MIDDLEWARE
23
22
  });
24
23
  module.exports = __toCommonJS(tokens_exports);
25
- var import_injector = require("../../injector/injector.js");
26
24
  var import_token = require("../../injector/token.js");
27
25
  const HTTP_CLIENT_MIDDLEWARE = (0, import_token.injectionToken)("HttpClientMiddleware");
28
- const HTTP_CLIENT_MIDDLEWARES = (0, import_token.injectionToken)("HttpClientMiddlewares");
29
- import_injector.Injector.register(HTTP_CLIENT_MIDDLEWARES, { useToken: HTTP_CLIENT_MIDDLEWARE, resolveAll: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tstdl/base",
3
- "version": "0.87.5",
3
+ "version": "0.87.6",
4
4
  "author": "Patrick Hein",
5
5
  "publishConfig": {
6
6
  "access": "public"