@tramvai/module-http-client 1.31.0 → 1.35.1

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/README.md +4 -7
  2. package/package.json +10 -10
package/README.md CHANGED
@@ -198,19 +198,16 @@ describe('testApi', () => {
198
198
 
199
199
  ### Logging
200
200
 
201
- By default, `@tinkoff/request` will log every failed requests with status `error`.
202
- You can disable logging by pass `{ silent: true }` parameter to request parameters.
203
- Useful meta information about request will be available in `error.__meta` property.
201
+ By default, `@tinkoff/request` will log every failed requests with status `error`. You can disable logging by pass `{ silent: true }` parameter to request parameters. Useful meta information about request will be available in `error.__meta` property.
204
202
 
205
203
  Example:
206
204
 
207
205
  ```ts
208
206
  const log = logger('request:test');
209
207
 
210
- httpClient.request({ path: 'test', silent: true })
211
- .catch((error) => {
212
- log.info(error);
213
- });
208
+ httpClient.request({ path: 'test', silent: true }).catch((error) => {
209
+ log.info(error);
210
+ });
214
211
  ```
215
212
 
216
213
  ## Exported tokens
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/module-http-client",
3
- "version": "1.31.0",
3
+ "version": "1.35.1",
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.23",
28
- "@tramvai/tinkoff-request-http-client-adapter": "0.8.161",
29
- "@tramvai/tokens-http-client": "1.31.0",
30
- "@tramvai/tokens-common": "1.31.0",
31
- "@tramvai/tokens-server": "1.31.0"
28
+ "@tramvai/tinkoff-request-http-client-adapter": "0.8.169",
29
+ "@tramvai/tokens-http-client": "1.35.1",
30
+ "@tramvai/tokens-common": "1.35.1",
31
+ "@tramvai/tokens-server": "1.35.1"
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.31.0",
39
- "@tramvai/module-common": "1.31.0",
40
- "@tramvai/papi": "1.31.0",
41
- "@tramvai/test-helpers": "1.31.0",
42
- "@tramvai/test-mocks": "1.31.0",
38
+ "@tramvai/core": "1.35.1",
39
+ "@tramvai/module-common": "1.35.1",
40
+ "@tramvai/papi": "1.35.1",
41
+ "@tramvai/test-helpers": "1.35.1",
42
+ "@tramvai/test-mocks": "1.35.1",
43
43
  "@tinkoff/dippy": "0.7.35",
44
44
  "node-fetch": "^2.6.1",
45
45
  "tslib": "^2.0.3"