account-lookup-service 15.6.0-iso.22 → 15.6.0-iso.23
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/audit-ci.jsonc
CHANGED
@@ -29,6 +29,7 @@
|
|
29
29
|
"GHSA-rv95-896h-c2vc", // https://github.com/advisories/GHSA-rv95-896h-c2vc
|
30
30
|
"GHSA-952p-6rrq-rcjv", // https://github.com/advisories/GHSA-952p-6rrq-rcjv
|
31
31
|
"GHSA-3xgq-45jj-v275", // https://github.com/advisories/GHSA-3xgq-45jj-v275
|
32
|
-
"GHSA-rhx6-c78j-4q9w" // https://github.com/advisories/GHSA-rhx6-c78j-4q9w
|
32
|
+
"GHSA-rhx6-c78j-4q9w", // https://github.com/advisories/GHSA-rhx6-c78j-4q9w
|
33
|
+
"GHSA-mwcw-c2x4-8c55" // https://github.com/advisories/GHSA-mwcw-c2x4-8c55
|
33
34
|
]
|
34
35
|
}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "account-lookup-service",
|
3
3
|
"description": "Account Lookup Service is used to validate Party and Participant lookups.",
|
4
|
-
"version": "15.6.0-iso.
|
4
|
+
"version": "15.6.0-iso.23",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"author": "ModusBox",
|
7
7
|
"contributors": [
|
@@ -94,12 +94,12 @@
|
|
94
94
|
"@mojaloop/central-services-health": "15.0.0",
|
95
95
|
"@mojaloop/central-services-logger": "11.5.1",
|
96
96
|
"@mojaloop/central-services-metrics": "12.4.2",
|
97
|
-
"@mojaloop/central-services-shared": "18.14.
|
98
|
-
"@mojaloop/central-services-stream": "11.
|
99
|
-
"@mojaloop/database-lib": "11.0
|
97
|
+
"@mojaloop/central-services-shared": "18.14.2",
|
98
|
+
"@mojaloop/central-services-stream": "11.4.1",
|
99
|
+
"@mojaloop/database-lib": "11.1.0",
|
100
100
|
"@mojaloop/event-sdk": "14.1.1",
|
101
101
|
"@mojaloop/inter-scheme-proxy-cache-lib": "2.3.1",
|
102
|
-
"@mojaloop/ml-schema-transformer-lib": "2.
|
102
|
+
"@mojaloop/ml-schema-transformer-lib": "2.5.0",
|
103
103
|
"@mojaloop/sdk-standard-components": "19.6.2",
|
104
104
|
"@now-ims/hapi-now-auth": "2.1.0",
|
105
105
|
"ajv": "8.17.1",
|
@@ -157,7 +157,7 @@
|
|
157
157
|
"jest": "29.7.0",
|
158
158
|
"jest-junit": "16.0.0",
|
159
159
|
"jsdoc": "4.0.4",
|
160
|
-
"nodemon": "3.1.
|
160
|
+
"nodemon": "3.1.9",
|
161
161
|
"npm-check-updates": "17.1.11",
|
162
162
|
"nyc": "17.1.0",
|
163
163
|
"pre-commit": "1.2.2",
|
@@ -91,12 +91,16 @@ const getPartiesByTypeAndID = async (headers, params, method, query, span, cache
|
|
91
91
|
const proxyEnabled = !!(Config.PROXY_CACHE_CONFIG.enabled && proxyCache)
|
92
92
|
const type = params.Type
|
93
93
|
const partySubId = params.SubId
|
94
|
+
const callbackEndpointType = utils.getPartyCbType(partySubId)
|
94
95
|
const source = headers[Headers.FSPIOP.SOURCE]
|
95
96
|
const proxy = proxyEnabled && headers[Headers.FSPIOP.PROXY]
|
96
|
-
|
97
|
+
let destination = headers[Headers.FSPIOP.DESTINATION]
|
98
|
+
// see https://github.com/mojaloop/design-authority/issues/79
|
99
|
+
// the requester has specified a destination routing header. We should respect that and forward the request directly to the destination
|
100
|
+
// without consulting any oracles.
|
97
101
|
|
98
102
|
const childSpan = span ? span.getChild('getPartiesByTypeAndID') : undefined
|
99
|
-
log.info('parties::getPartiesByTypeAndID::begin', { source, proxy, params })
|
103
|
+
log.info('parties::getPartiesByTypeAndID::begin', { source, destination, proxy, params })
|
100
104
|
|
101
105
|
let requester
|
102
106
|
let fspiopError
|
@@ -110,10 +114,6 @@ const getPartiesByTypeAndID = async (headers, params, method, query, span, cache
|
|
110
114
|
...(partySubId && { partySubIdOrType: partySubId })
|
111
115
|
}
|
112
116
|
|
113
|
-
let destination = headers[Headers.FSPIOP.DESTINATION]
|
114
|
-
// see https://github.com/mojaloop/design-authority/issues/79
|
115
|
-
// the requester has specified a destination routing header. We should respect that and forward the request directly to the destination
|
116
|
-
// without consulting any oracles.
|
117
117
|
if (destination) {
|
118
118
|
step = 'validateParticipant-1'
|
119
119
|
const destParticipantModel = await participant.validateParticipant(destination)
|
@@ -122,6 +122,7 @@ const getPartiesByTypeAndID = async (headers, params, method, query, span, cache
|
|
122
122
|
const proxyId = proxyEnabled && await proxyCache.lookupProxyByDfspId(destination)
|
123
123
|
|
124
124
|
if (!proxyId) {
|
125
|
+
log.warn('no destination participant, and no dfsp-to-proxy mapping', { destination })
|
125
126
|
const errMessage = ERROR_MESSAGES.partyDestinationFspNotFound
|
126
127
|
throw ErrorHandler.Factory.createFSPIOPError(ErrorHandler.Enums.FSPIOPErrorCodes.ID_NOT_FOUND, errMessage)
|
127
128
|
}
|