@tramvai/module-http-client 1.35.1 → 1.35.10

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 +18 -1
  2. package/package.json +10 -10
package/README.md CHANGED
@@ -198,7 +198,9 @@ describe('testApi', () => {
198
198
 
199
199
  ### Logging
200
200
 
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.
201
+ By default, `@tinkoff/request` will log every failed requests with level `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.
202
204
 
203
205
  Example:
204
206
 
@@ -210,6 +212,21 @@ httpClient.request({ path: 'test', silent: true }).catch((error) => {
210
212
  });
211
213
  ```
212
214
 
215
+ ### Debug
216
+
217
+ You can show all the default logs of http clients by providing these env variables:
218
+
219
+ ```bash
220
+ LOG_ENABLE=request*
221
+ LOG_LEVEL=trace
222
+ ```
223
+
224
+ If the built-in http clients logs are not enough, you can enable NodeJS debugging of the `request` module this way:
225
+
226
+ ```bash
227
+ NODE_DEBUG=request tramvai start<appName>
228
+ ```
229
+
213
230
  ## Exported tokens
214
231
 
215
232
  [link](references/tokens/http-client-tokens.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/module-http-client",
3
- "version": "1.35.1",
3
+ "version": "1.35.10",
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.169",
29
- "@tramvai/tokens-http-client": "1.35.1",
30
- "@tramvai/tokens-common": "1.35.1",
31
- "@tramvai/tokens-server": "1.35.1"
28
+ "@tramvai/tinkoff-request-http-client-adapter": "0.8.178",
29
+ "@tramvai/tokens-http-client": "1.35.10",
30
+ "@tramvai/tokens-common": "1.35.10",
31
+ "@tramvai/tokens-server": "1.35.10"
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.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",
38
+ "@tramvai/core": "1.35.10",
39
+ "@tramvai/module-common": "1.35.10",
40
+ "@tramvai/papi": "1.35.10",
41
+ "@tramvai/test-helpers": "1.35.10",
42
+ "@tramvai/test-mocks": "1.35.10",
43
43
  "@tinkoff/dippy": "0.7.35",
44
44
  "node-fetch": "^2.6.1",
45
45
  "tslib": "^2.0.3"