@tramvai/tokens-http-client 1.78.2 → 1.81.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.
package/lib/index.d.ts CHANGED
@@ -33,3 +33,8 @@ export declare const API_CLIENT_PASS_HEADERS: string[];
33
33
  * Uses the value of `APP_INFO_TOKEN` from di for constructing the request address
34
34
  */
35
35
  export declare const PAPI_SERVICE: ApiService<import("@tramvai/http-client").HttpClientRequest>;
36
+ /**
37
+ * @description
38
+ * Enable or disable circuit breaker
39
+ */
40
+ export declare const DISABLE_CIRCUIT_BREAKER: boolean;
package/lib/index.es.js CHANGED
@@ -29,5 +29,10 @@ const API_CLIENT_PASS_HEADERS = createToken('apiClientPassHeaders', {
29
29
  * Uses the value of `APP_INFO_TOKEN` from di for constructing the request address
30
30
  */
31
31
  const PAPI_SERVICE = createToken('papi service');
32
+ /**
33
+ * @description
34
+ * Enable or disable circuit breaker
35
+ */
36
+ const DISABLE_CIRCUIT_BREAKER = createToken('disable circuit breaker');
32
37
 
33
- export { API_CLIENT_PASS_HEADERS, HTTP_CLIENT, HTTP_CLIENT_AGENT, HTTP_CLIENT_FACTORY, PAPI_SERVICE };
38
+ export { API_CLIENT_PASS_HEADERS, DISABLE_CIRCUIT_BREAKER, HTTP_CLIENT, HTTP_CLIENT_AGENT, HTTP_CLIENT_FACTORY, PAPI_SERVICE };
package/lib/index.js CHANGED
@@ -33,8 +33,14 @@ const API_CLIENT_PASS_HEADERS = dippy.createToken('apiClientPassHeaders', {
33
33
  * Uses the value of `APP_INFO_TOKEN` from di for constructing the request address
34
34
  */
35
35
  const PAPI_SERVICE = dippy.createToken('papi service');
36
+ /**
37
+ * @description
38
+ * Enable or disable circuit breaker
39
+ */
40
+ const DISABLE_CIRCUIT_BREAKER = dippy.createToken('disable circuit breaker');
36
41
 
37
42
  exports.API_CLIENT_PASS_HEADERS = API_CLIENT_PASS_HEADERS;
43
+ exports.DISABLE_CIRCUIT_BREAKER = DISABLE_CIRCUIT_BREAKER;
38
44
  exports.HTTP_CLIENT = HTTP_CLIENT;
39
45
  exports.HTTP_CLIENT_AGENT = HTTP_CLIENT_AGENT;
40
46
  exports.HTTP_CLIENT_FACTORY = HTTP_CLIENT_FACTORY;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/tokens-http-client",
3
- "version": "1.78.2",
3
+ "version": "1.81.0",
4
4
  "initialVersion": "0.58.99",
5
5
  "description": "Tramvai tokens for @tramvai/module-http-client",
6
6
  "main": "lib/index.js",
@@ -21,10 +21,10 @@
21
21
  },
22
22
  "devDependencies": {
23
23
  "@tramvai/http-client": "0.1.25",
24
- "@tramvai/tinkoff-request-http-client-adapter": "0.8.285"
24
+ "@tramvai/tinkoff-request-http-client-adapter": "0.8.289"
25
25
  },
26
26
  "peerDependencies": {
27
- "@tinkoff/dippy": "0.7.38",
27
+ "@tinkoff/dippy": "0.7.39",
28
28
  "tslib": "^2.0.3"
29
29
  },
30
30
  "license": "Apache-2.0"