@mojaloop/central-services-shared 18.3.0 → 18.4.0-snapshot.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.
- package/package.json +4 -4
- package/src/util/request.js +1 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mojaloop/central-services-shared",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.4.0-snapshot.1",
|
|
4
4
|
"description": "Shared code for mojaloop central services",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "ModusBox",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@hapi/catbox": "12.1.1",
|
|
56
56
|
"@hapi/catbox-memory": "5.0.1",
|
|
57
|
-
"axios": "1.6.
|
|
57
|
+
"axios": "1.6.8",
|
|
58
58
|
"clone": "2.1.2",
|
|
59
59
|
"dotenv": "16.4.5",
|
|
60
60
|
"env-var": "7.4.1",
|
|
@@ -71,12 +71,12 @@
|
|
|
71
71
|
"yaml": "2.4.1"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@hapi/hapi": "21.3.
|
|
74
|
+
"@hapi/hapi": "21.3.7",
|
|
75
75
|
"@hapi/joi": "17.1.1",
|
|
76
76
|
"audit-ci": "^6.6.1",
|
|
77
77
|
"base64url": "3.0.1",
|
|
78
78
|
"chance": "1.1.11",
|
|
79
|
-
"npm-check-updates": "16.14.
|
|
79
|
+
"npm-check-updates": "16.14.18",
|
|
80
80
|
"nyc": "15.1.0",
|
|
81
81
|
"pre-commit": "1.2.2",
|
|
82
82
|
"proxyquire": "2.1.3",
|
package/src/util/request.js
CHANGED
|
@@ -39,9 +39,6 @@ const MISSING_FUNCTION_PARAMETERS = 'Missing parameters for function'
|
|
|
39
39
|
// By default it would insert `"Accept":"application/json, text/plain, */*"`.
|
|
40
40
|
delete request.defaults.headers.common.Accept
|
|
41
41
|
|
|
42
|
-
// Enable keepalive for http
|
|
43
|
-
request.defaults.httpAgent = new http.Agent({ keepAlive: true })
|
|
44
|
-
|
|
45
42
|
/**
|
|
46
43
|
* @function sendRequest
|
|
47
44
|
*
|
|
@@ -107,6 +104,7 @@ const sendRequest = async (
|
|
|
107
104
|
headers: transformedHeaders,
|
|
108
105
|
data: payload,
|
|
109
106
|
responseType,
|
|
107
|
+
httpAgent: new http.Agent({ keepAlive: true }),
|
|
110
108
|
...axiosRequestOptionsOverride
|
|
111
109
|
}
|
|
112
110
|
// if jwsSigner is passed then sign the request
|