@appsemble/node-utils 0.20.33 → 0.20.34
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 -4
- package/interceptors.d.ts +3 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
#  Appsemble Node Utilities
|
|
2
2
|
|
|
3
3
|
> NodeJS utilities used by Appsemble internally.
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@appsemble/node-utils)
|
|
6
|
-
[](https://gitlab.com/appsemble/appsemble/-/releases/0.20.34)
|
|
7
|
+
[](https://codecov.io/gl/appsemble/appsemble)
|
|
8
8
|
[](https://prettier.io)
|
|
9
9
|
|
|
10
10
|
## Installation
|
|
@@ -21,5 +21,5 @@ compatibility is not guaranteed.
|
|
|
21
21
|
|
|
22
22
|
## License
|
|
23
23
|
|
|
24
|
-
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.20.
|
|
24
|
+
[LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.20.34/LICENSE.md) ©
|
|
25
25
|
[Appsemble](https://appsemble.com)
|
package/interceptors.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AxiosResponse, InternalAxiosRequestConfig } from 'axios';
|
|
2
2
|
/**
|
|
3
3
|
* This is used to set a request id, so the request and response can be matched in the logs.
|
|
4
4
|
*/
|
|
@@ -14,14 +14,14 @@ declare module 'axios' {
|
|
|
14
14
|
* @param config The axios request configuration.
|
|
15
15
|
* @returns The config with additional `multipart/form-data` headers if appropriate.
|
|
16
16
|
*/
|
|
17
|
-
export declare function formData(config:
|
|
17
|
+
export declare function formData(config: InternalAxiosRequestConfig): InternalAxiosRequestConfig;
|
|
18
18
|
/**
|
|
19
19
|
* An {@link axios} request interceptor to log requests.
|
|
20
20
|
*
|
|
21
21
|
* @param config The axios request configuration.
|
|
22
22
|
* @returns The original config.
|
|
23
23
|
*/
|
|
24
|
-
export declare function requestLogger(config:
|
|
24
|
+
export declare function requestLogger(config: InternalAxiosRequestConfig): InternalAxiosRequestConfig;
|
|
25
25
|
/**
|
|
26
26
|
* An {@link axios} response interceptor to log responses.
|
|
27
27
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appsemble/node-utils",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.34",
|
|
4
4
|
"description": "NodeJS utilities used by Appsemble internally.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"app",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"test": "NODE_OPTIONS=--experimental-vm-modules jest"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@appsemble/utils": "0.20.
|
|
34
|
+
"@appsemble/utils": "0.20.34",
|
|
35
35
|
"@types/koa": "^2.0.0",
|
|
36
36
|
"axios": "^1.0.0",
|
|
37
37
|
"chalk": "^4.0.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"yargs": "^17.0.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@sinonjs/fake-timers": "^
|
|
52
|
+
"@sinonjs/fake-timers": "^10.0.0",
|
|
53
53
|
"@types/parse-json": "^4.0.0",
|
|
54
54
|
"@types/sinonjs__fake-timers": "^8.0.0",
|
|
55
55
|
"axios-mock-adapter": "^1.0.0",
|