@tramvai/module-http-client 1.94.5 → 1.95.2

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.
@@ -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(`Необходимо передать уникальное поле "name" для экземпляра HTTP клиента!`);
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(`Необходимо передать уникальное поле "name" для экземпляра HTTP клиента!`);
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(`Необходимо передать уникальное поле "name" для экземпляра HTTP клиента!`);
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.94.5",
3
+ "version": "1.95.2",
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.331",
29
- "@tramvai/tokens-http-client": "1.94.5",
30
- "@tramvai/tokens-common": "1.94.5",
31
- "@tramvai/tokens-server": "1.94.5"
28
+ "@tramvai/tinkoff-request-http-client-adapter": "0.8.334",
29
+ "@tramvai/tokens-http-client": "1.95.2",
30
+ "@tramvai/tokens-common": "1.95.2",
31
+ "@tramvai/tokens-server": "1.95.2"
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.94.5",
39
- "@tramvai/module-common": "1.94.5",
40
- "@tramvai/papi": "1.94.5",
41
- "@tramvai/test-helpers": "1.94.5",
42
- "@tramvai/test-mocks": "1.94.5",
38
+ "@tramvai/core": "1.95.2",
39
+ "@tramvai/module-common": "1.95.2",
40
+ "@tramvai/papi": "1.95.2",
41
+ "@tramvai/test-helpers": "1.95.2",
42
+ "@tramvai/test-mocks": "1.95.2",
43
43
  "@tinkoff/dippy": "0.7.39",
44
44
  "node-fetch": "^2.6.1",
45
45
  "tslib": "^2.0.3"