@tramvai/module-http-client 1.95.0 → 1.96.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.browser.js +1 -1
- package/lib/index.es.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +10 -10
package/lib/index.browser.js
CHANGED
|
@@ -58,7 +58,7 @@ const environmentDependentOptions = typeof window === 'undefined'
|
|
|
58
58
|
const httpClientFactory = ({ logger, envManager, appInfo, requestManager, headersList, createCache, makeRequestRegistry, agent, disableCircuitBreaker = false, }) => {
|
|
59
59
|
return (options) => {
|
|
60
60
|
if (!options.name) {
|
|
61
|
-
throw Error(
|
|
61
|
+
throw Error(`You need to pass a unique field "name" for the HTTP client instance`);
|
|
62
62
|
}
|
|
63
63
|
const forceDisableCache = envManager.get('HTTP_CLIENT_CACHE_DISABLED');
|
|
64
64
|
const forceDisabledCircuitBreaker = envManager.get('HTTP_CLIENT_CIRCUIT_BREAKER_DISABLED');
|
package/lib/index.es.js
CHANGED
|
@@ -88,7 +88,7 @@ const environmentDependentOptions = typeof window === 'undefined'
|
|
|
88
88
|
const httpClientFactory = ({ logger, envManager, appInfo, requestManager, headersList, createCache, makeRequestRegistry, agent, disableCircuitBreaker = false, }) => {
|
|
89
89
|
return (options) => {
|
|
90
90
|
if (!options.name) {
|
|
91
|
-
throw Error(
|
|
91
|
+
throw Error(`You need to pass a unique field "name" for the HTTP client instance`);
|
|
92
92
|
}
|
|
93
93
|
const forceDisableCache = envManager.get('HTTP_CLIENT_CACHE_DISABLED');
|
|
94
94
|
const forceDisabledCircuitBreaker = envManager.get('HTTP_CLIENT_CIRCUIT_BREAKER_DISABLED');
|
package/lib/index.js
CHANGED
|
@@ -99,7 +99,7 @@ const environmentDependentOptions = typeof window === 'undefined'
|
|
|
99
99
|
const httpClientFactory = ({ logger, envManager, appInfo, requestManager, headersList, createCache, makeRequestRegistry, agent, disableCircuitBreaker = false, }) => {
|
|
100
100
|
return (options) => {
|
|
101
101
|
if (!options.name) {
|
|
102
|
-
throw Error(
|
|
102
|
+
throw Error(`You need to pass a unique field "name" for the HTTP client instance`);
|
|
103
103
|
}
|
|
104
104
|
const forceDisableCache = envManager.get('HTTP_CLIENT_CACHE_DISABLED');
|
|
105
105
|
const forceDisabledCircuitBreaker = envManager.get('HTTP_CLIENT_CIRCUIT_BREAKER_DISABLED');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-http-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.96.0",
|
|
4
4
|
"initialVersion": "0.58.99",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -25,21 +25,21 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@tramvai/http-client": "0.1.25",
|
|
28
|
-
"@tramvai/tinkoff-request-http-client-adapter": "0.8.
|
|
29
|
-
"@tramvai/tokens-http-client": "1.
|
|
30
|
-
"@tramvai/tokens-common": "1.
|
|
31
|
-
"@tramvai/tokens-server": "1.
|
|
28
|
+
"@tramvai/tinkoff-request-http-client-adapter": "0.8.335",
|
|
29
|
+
"@tramvai/tokens-http-client": "1.96.0",
|
|
30
|
+
"@tramvai/tokens-common": "1.96.0",
|
|
31
|
+
"@tramvai/tokens-server": "1.96.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@tinkoff/request-core": "^0.8.9"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@tinkoff/utils": "^2.1.2",
|
|
38
|
-
"@tramvai/core": "1.
|
|
39
|
-
"@tramvai/module-common": "1.
|
|
40
|
-
"@tramvai/papi": "1.
|
|
41
|
-
"@tramvai/test-helpers": "1.
|
|
42
|
-
"@tramvai/test-mocks": "1.
|
|
38
|
+
"@tramvai/core": "1.96.0",
|
|
39
|
+
"@tramvai/module-common": "1.96.0",
|
|
40
|
+
"@tramvai/papi": "1.96.0",
|
|
41
|
+
"@tramvai/test-helpers": "1.96.0",
|
|
42
|
+
"@tramvai/test-mocks": "1.96.0",
|
|
43
43
|
"@tinkoff/dippy": "0.7.39",
|
|
44
44
|
"node-fetch": "^2.6.1",
|
|
45
45
|
"tslib": "^2.0.3"
|