@tramvai/module-http-client 2.24.3 → 2.26.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.
@@ -1,3 +1,3 @@
1
- export declare const HttpClientModule: import("@tramvai/core").ModuleType<{
1
+ export declare const HttpClientModule: import("@tinkoff/dippy").ModuleType<{
2
2
  new (): {};
3
3
  }>;
@@ -59,6 +59,7 @@ const httpClientFactory = ({ logger, envManager, appInfo, requestManager, header
59
59
  failureThreshold: 75,
60
60
  minimumFailureCount: 10,
61
61
  },
62
+ // TODO: remove any after [resolving](https://github.com/southpolesteve/node-abort-controller/issues/31)
62
63
  signal: (_a = commandLineExecutionContext === null || commandLineExecutionContext === void 0 ? void 0 : commandLineExecutionContext()) === null || _a === void 0 ? void 0 : _a.abortSignal,
63
64
  ...environmentDependentOptions,
64
65
  }, defaultOptions !== null && defaultOptions !== void 0 ? defaultOptions : {}), options);
package/lib/index.es.js CHANGED
@@ -90,6 +90,7 @@ const httpClientFactory = ({ logger, envManager, appInfo, requestManager, header
90
90
  failureThreshold: 75,
91
91
  minimumFailureCount: 10,
92
92
  },
93
+ // TODO: remove any after [resolving](https://github.com/southpolesteve/node-abort-controller/issues/31)
93
94
  signal: (_a = commandLineExecutionContext === null || commandLineExecutionContext === void 0 ? void 0 : commandLineExecutionContext()) === null || _a === void 0 ? void 0 : _a.abortSignal,
94
95
  ...environmentDependentOptions,
95
96
  }, defaultOptions !== null && defaultOptions !== void 0 ? defaultOptions : {}), options);
package/lib/index.js CHANGED
@@ -101,6 +101,7 @@ const httpClientFactory = ({ logger, envManager, appInfo, requestManager, header
101
101
  failureThreshold: 75,
102
102
  minimumFailureCount: 10,
103
103
  },
104
+ // TODO: remove any after [resolving](https://github.com/southpolesteve/node-abort-controller/issues/31)
104
105
  signal: (_a = commandLineExecutionContext === null || commandLineExecutionContext === void 0 ? void 0 : commandLineExecutionContext()) === null || _a === void 0 ? void 0 : _a.abortSignal,
105
106
  ...environmentDependentOptions,
106
107
  }, defaultOptions !== null && defaultOptions !== void 0 ? defaultOptions : {}), options);
@@ -1,4 +1,3 @@
1
- /// <reference types="jest" />
2
1
  import { getDiWrapper } from '@tramvai/test-helpers';
3
2
  import { createMockEnvManager } from '@tramvai/test-mocks';
4
3
  declare type Options = Parameters<typeof getDiWrapper>[0] & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/module-http-client",
3
- "version": "2.24.3",
3
+ "version": "2.26.0",
4
4
  "initialVersion": "0.58.99",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
@@ -26,12 +26,12 @@
26
26
  "build-for-publish": "true"
27
27
  },
28
28
  "dependencies": {
29
- "@tramvai/http-client": "0.2.2",
30
- "@tramvai/tinkoff-request-http-client-adapter": "0.9.60",
31
- "@tramvai/tokens-http-client": "2.24.3",
32
- "@tramvai/tokens-common": "2.24.3",
33
- "@tramvai/tokens-server": "2.24.3",
34
- "@tramvai/tokens-server-private": "2.24.3"
29
+ "@tramvai/http-client": "0.2.3",
30
+ "@tramvai/tinkoff-request-http-client-adapter": "0.9.63",
31
+ "@tramvai/tokens-http-client": "2.26.0",
32
+ "@tramvai/tokens-common": "2.26.0",
33
+ "@tramvai/tokens-server": "2.26.0",
34
+ "@tramvai/tokens-server-private": "2.26.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@tinkoff/request-core": "^0.9.2",
@@ -39,14 +39,14 @@
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@tinkoff/utils": "^2.1.2",
42
- "@tramvai/core": "2.24.3",
43
- "@tramvai/module-common": "2.24.3",
44
- "@tramvai/papi": "2.24.3",
45
- "@tramvai/test-helpers": "2.24.3",
46
- "@tramvai/test-mocks": "2.24.3",
47
- "@tinkoff/dippy": "0.8.3",
42
+ "@tramvai/core": "2.26.0",
43
+ "@tramvai/module-common": "2.26.0",
44
+ "@tramvai/papi": "2.26.0",
45
+ "@tramvai/test-helpers": "2.26.0",
46
+ "@tramvai/test-mocks": "2.26.0",
47
+ "@tinkoff/dippy": "0.8.5",
48
48
  "node-fetch": "^2.6.1",
49
- "tslib": "^2.0.3"
49
+ "tslib": "^2.4.0"
50
50
  },
51
51
  "license": "Apache-2.0",
52
52
  "module": "lib/index.es.js"
package/tests.js CHANGED
@@ -105,6 +105,7 @@ const httpClientFactory = ({ logger, envManager, appInfo, requestManager, header
105
105
  failureThreshold: 75,
106
106
  minimumFailureCount: 10,
107
107
  },
108
+ // TODO: remove any after [resolving](https://github.com/southpolesteve/node-abort-controller/issues/31)
108
109
  signal: (_a = commandLineExecutionContext === null || commandLineExecutionContext === void 0 ? void 0 : commandLineExecutionContext()) === null || _a === void 0 ? void 0 : _a.abortSignal,
109
110
  ...environmentDependentOptions,
110
111
  }, defaultOptions !== null && defaultOptions !== void 0 ? defaultOptions : {}), options);