@tramvai/tokens-http-client 2.7.1 → 2.20.0

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +7 -7
  2. package/package.json +4 -4
package/lib/index.d.ts CHANGED
@@ -7,23 +7,23 @@ export declare type HttpClientFactoryOptions = TinkoffRequestOptions & {
7
7
  * @description
8
8
  * Factory of HTTP clients with minimal base settings
9
9
  */
10
- export declare const HTTP_CLIENT_FACTORY: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<(options: HttpClientFactoryOptions) => HttpClient>;
10
+ export declare const HTTP_CLIENT_FACTORY: import("@tinkoff/dippy").BaseTokenInterface<(options: HttpClientFactoryOptions) => HttpClient>;
11
11
  /**
12
12
  * @description
13
13
  * Default options for factory of HTTP clients
14
14
  */
15
- export declare const DEFAULT_HTTP_CLIENT_FACTORY_OPTIONS: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<Partial<HttpClientFactoryOptions>>;
15
+ export declare const DEFAULT_HTTP_CLIENT_FACTORY_OPTIONS: import("@tinkoff/dippy").BaseTokenInterface<Partial<HttpClientFactoryOptions>>;
16
16
  /**
17
17
  * @description
18
18
  * Universal HTTP client for arbitrary requests
19
19
  */
20
- export declare const HTTP_CLIENT: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<HttpClient>;
20
+ export declare const HTTP_CLIENT: import("@tinkoff/dippy").BaseTokenInterface<HttpClient>;
21
21
  /**
22
22
  * @description
23
23
  * Global HTTP and HTTPS agents for all clients
24
24
  * https://nodejs.org/dist/latest-v16.x/docs/api/http.html#class-httpagent
25
25
  */
26
- export declare const HTTP_CLIENT_AGENT: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<{
26
+ export declare const HTTP_CLIENT_AGENT: import("@tinkoff/dippy").BaseTokenInterface<{
27
27
  http: Agent;
28
28
  https: Agent;
29
29
  }>;
@@ -31,15 +31,15 @@ export declare const HTTP_CLIENT_AGENT: import("@tinkoff/dippy/lib/createToken/c
31
31
  * @description
32
32
  * List of HTTP headers that are proxied from app request to all of the backend API
33
33
  */
34
- export declare const API_CLIENT_PASS_HEADERS: import("@tinkoff/dippy/lib/createToken/createToken").MultiTokenInterface<string | string[]>;
34
+ export declare const API_CLIENT_PASS_HEADERS: import("@tinkoff/dippy").MultiTokenInterface<string | string[]>;
35
35
  /**
36
36
  * @description
37
37
  * Internal api for app server.
38
38
  * Uses the value of `APP_INFO_TOKEN` from di for constructing the request address
39
39
  */
40
- export declare const PAPI_SERVICE: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<BaseHttpClient<import("@tramvai/http-client").HttpClientRequest>>;
40
+ export declare const PAPI_SERVICE: import("@tinkoff/dippy").BaseTokenInterface<BaseHttpClient<import("@tramvai/http-client").HttpClientRequest>>;
41
41
  /**
42
42
  * @description
43
43
  * Enable or disable circuit breaker
44
44
  */
45
- export declare const DISABLE_CIRCUIT_BREAKER: import("@tinkoff/dippy/lib/createToken/createToken").BaseTokenInterface<boolean>;
45
+ export declare const DISABLE_CIRCUIT_BREAKER: import("@tinkoff/dippy").BaseTokenInterface<boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/tokens-http-client",
3
- "version": "2.7.1",
3
+ "version": "2.20.0",
4
4
  "initialVersion": "0.58.99",
5
5
  "description": "Tramvai tokens for @tramvai/module-http-client",
6
6
  "main": "lib/index.js",
@@ -20,11 +20,11 @@
20
20
  "build-for-publish": "true"
21
21
  },
22
22
  "devDependencies": {
23
- "@tramvai/http-client": "0.1.28",
24
- "@tramvai/tinkoff-request-http-client-adapter": "0.9.24"
23
+ "@tramvai/http-client": "0.2.2",
24
+ "@tramvai/tinkoff-request-http-client-adapter": "0.9.51"
25
25
  },
26
26
  "peerDependencies": {
27
- "@tinkoff/dippy": "0.7.44",
27
+ "@tinkoff/dippy": "0.8.2",
28
28
  "tslib": "^2.0.3"
29
29
  },
30
30
  "license": "Apache-2.0"