@tramvai/module-http-client 1.32.1 → 1.35.6
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/README.md +4 -7
- 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
|
-
.
|
|
212
|
-
|
|
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.
|
|
3
|
+
"version": "1.35.6",
|
|
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.
|
|
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.174",
|
|
29
|
+
"@tramvai/tokens-http-client": "1.35.6",
|
|
30
|
+
"@tramvai/tokens-common": "1.35.6",
|
|
31
|
+
"@tramvai/tokens-server": "1.35.6"
|
|
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.35.6",
|
|
39
|
+
"@tramvai/module-common": "1.35.6",
|
|
40
|
+
"@tramvai/papi": "1.35.6",
|
|
41
|
+
"@tramvai/test-helpers": "1.35.6",
|
|
42
|
+
"@tramvai/test-mocks": "1.35.6",
|
|
43
43
|
"@tinkoff/dippy": "0.7.35",
|
|
44
44
|
"node-fetch": "^2.6.1",
|
|
45
45
|
"tslib": "^2.0.3"
|