@mojaloop/central-services-shared 18.33.0 → 18.33.2
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/.ncurc.yaml +2 -1
- package/CHANGELOG.md +14 -0
- package/package.json +4 -4
- package/src/util/request.js +4 -1
package/.ncurc.yaml
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# Add a TODO comment indicating the reason for each rejected dependency upgrade added to this list, and what should be done to resolve it (i.e. handle it through a story, etc).
|
|
2
2
|
reject: [
|
|
3
3
|
# TODO: Added "@hapi/catbox-memory" to ncurc for dep:check to ignore updates due to breaking changes which should be handled by another story
|
|
4
|
-
"@hapi/catbox-memory"
|
|
4
|
+
"@hapi/catbox-memory",
|
|
5
|
+
"ioredis" # version 5.7.0 caused failures of unit-tests in QS
|
|
5
6
|
]
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [18.33.2](https://github.com/mojaloop/central-services-shared/compare/v18.33.1...v18.33.2) (2025-09-17)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Chore
|
|
9
|
+
|
|
10
|
+
* reverted ioredis ([#481](https://github.com/mojaloop/central-services-shared/issues/481)) ([d5d5098](https://github.com/mojaloop/central-services-shared/commit/d5d509808715741a18293a9a1fc76494e81b63d7))
|
|
11
|
+
|
|
12
|
+
### [18.33.1](https://github.com/mojaloop/central-services-shared/compare/v18.33.0...v18.33.1) (2025-09-17)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Chore
|
|
16
|
+
|
|
17
|
+
* make keepAlive configurable ([#480](https://github.com/mojaloop/central-services-shared/issues/480)) ([91beb9c](https://github.com/mojaloop/central-services-shared/commit/91beb9c0d7078a99a8bc249a9c28ab6670aa08a3))
|
|
18
|
+
|
|
5
19
|
## [18.33.0](https://github.com/mojaloop/central-services-shared/compare/v18.32.1...v18.33.0) (2025-09-15)
|
|
6
20
|
|
|
7
21
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mojaloop/central-services-shared",
|
|
3
|
-
"version": "18.33.
|
|
3
|
+
"version": "18.33.2",
|
|
4
4
|
"description": "Shared code for mojaloop central services",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "ModusBox",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"event-stream": "4.0.1",
|
|
80
80
|
"fast-safe-stringify": "2.1.1",
|
|
81
81
|
"immutable": "5.1.3",
|
|
82
|
-
"ioredis": "5.
|
|
82
|
+
"ioredis": "5.6.1",
|
|
83
83
|
"joi": "18.0.1",
|
|
84
84
|
"lodash": "4.17.21",
|
|
85
85
|
"mustache": "4.2.0",
|
|
@@ -94,11 +94,11 @@
|
|
|
94
94
|
"yaml": "2.8.1"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
|
-
"@mojaloop/central-services-error-handling": "13.1.
|
|
97
|
+
"@mojaloop/central-services-error-handling": "13.1.2",
|
|
98
98
|
"@mojaloop/central-services-logger": "11.9.3",
|
|
99
99
|
"@mojaloop/central-services-metrics": "12.7.1",
|
|
100
100
|
"@mojaloop/event-sdk": "14.7.0",
|
|
101
|
-
"@mojaloop/sdk-standard-components": "19.
|
|
101
|
+
"@mojaloop/sdk-standard-components": "19.17.0",
|
|
102
102
|
"@opentelemetry/auto-instrumentations-node": "^0.64.1",
|
|
103
103
|
"@types/hapi__joi": "17.1.15",
|
|
104
104
|
"ajv": "^8.17.1",
|
package/src/util/request.js
CHANGED
|
@@ -46,8 +46,11 @@ const MISSING_FUNCTION_PARAMETERS = 'Missing parameters for function'
|
|
|
46
46
|
// By default it would insert `"Accept":"application/json, text/plain, */*"`.
|
|
47
47
|
delete request.defaults.headers.common.Accept
|
|
48
48
|
|
|
49
|
+
const keepAlive = process.env.HTTP_AGENT_KEEP_ALIVE === 'true'
|
|
50
|
+
logger.verbose('http keepAlive:', { keepAlive })
|
|
51
|
+
|
|
49
52
|
// Enable keepalive for http
|
|
50
|
-
request.defaults.httpAgent = new http.Agent({ keepAlive
|
|
53
|
+
request.defaults.httpAgent = new http.Agent({ keepAlive })
|
|
51
54
|
request.defaults.httpAgent.toJSON = () => ({})
|
|
52
55
|
|
|
53
56
|
/**
|