account-lookup-service 17.14.0-snapshot.4 → 17.14.0

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/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
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
+ ## [17.14.0](https://github.com/mojaloop/account-lookup-service/compare/v17.13.0...v17.14.0) (2025-09-24)
6
+
7
+
8
+ ### Features
9
+
10
+ * **csi-1817:** improve inter-scheme discovery flow ([#578](https://github.com/mojaloop/account-lookup-service/issues/578)) ([2677440](https://github.com/mojaloop/account-lookup-service/commit/2677440028c6654fd030d88183313a41463dd5f7))
11
+
12
+
13
+ ### Chore
14
+
15
+ * **sbom:** update sbom [skip ci] ([afd493f](https://github.com/mojaloop/account-lookup-service/commit/afd493f8c8d9d64ca87321ed3f3876008a13263c))
16
+
5
17
  ## [17.13.0](https://github.com/mojaloop/account-lookup-service/compare/v17.12.10...v17.13.0) (2025-09-16)
6
18
 
7
19
 
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": "17.14.0-snapshot.4",
4
+ "version": "17.14.0",
5
5
  "license": "Apache-2.0",
6
6
  "author": "ModusBox",
7
7
  "contributors": [
@@ -91,15 +91,15 @@
91
91
  "@hapi/hapi": "21.4.3",
92
92
  "@hapi/inert": "7.1.0",
93
93
  "@hapi/vision": "7.0.3",
94
- "@mojaloop/central-services-error-handling": "13.1.2",
94
+ "@mojaloop/central-services-error-handling": "13.1.3",
95
95
  "@mojaloop/central-services-health": "15.1.0",
96
96
  "@mojaloop/central-services-logger": "11.10.1",
97
- "@mojaloop/central-services-metrics": "12.7.1",
98
- "@mojaloop/central-services-shared": "18.33.3",
99
- "@mojaloop/central-services-stream": "11.8.7",
97
+ "@mojaloop/central-services-metrics": "12.8.0",
98
+ "@mojaloop/central-services-shared": "18.33.4",
99
+ "@mojaloop/central-services-stream": "11.8.8",
100
100
  "@mojaloop/database-lib": "^11.3.2",
101
101
  "@mojaloop/event-sdk": "14.7.0",
102
- "@mojaloop/inter-scheme-proxy-cache-lib": "2.7.0-snapshot.2",
102
+ "@mojaloop/inter-scheme-proxy-cache-lib": "2.7.0",
103
103
  "@mojaloop/ml-schema-transformer-lib": "2.7.8",
104
104
  "@mojaloop/sdk-standard-components": "19.17.0",
105
105
  "@now-ims/hapi-now-auth": "2.1.0",
@@ -35,17 +35,17 @@ class PutPartiesErrorService extends BasePartiesService {
35
35
  this.log.verbose(`isInterSchemeDiscoveryCase: ${isInterSchemeDiscoveryCase}`, this.state)
36
36
 
37
37
  if (isInterSchemeDiscoveryCase) {
38
- const isLast = await this.checkLastProxyCallback(alsReq)
39
- if (!isLast) {
40
- this.log.verbose('proxy error callback was processed (not last)')
38
+ const isLastAndNoSuccess = await this.checkLastProxyCallback(alsReq)
39
+ if (!isLastAndNoSuccess) {
40
+ this.log.verbose('proxy error callback was processed - not last OR has success, skip forwarding')
41
41
  return
42
42
  }
43
43
  } else {
44
- const isExternal = await this.#isPartyFromExternalDfsp() // !!! DO not clear oracle for the error callback for the same inter-scheme discovery flow
44
+ const isExternal = await this.#isPartyFromExternalDfsp()
45
45
  if (isExternal) {
46
46
  this.log.info('need to cleanup oracle coz party is from external DFSP')
47
47
  await this.cleanupOracle()
48
- await this.removeProxyGetPartiesTimeoutCache(alsReq) // todo: think if we need this
48
+ await this.removeProxyGetPartiesTimeoutCache(alsReq)
49
49
  }
50
50
  }
51
51
  }
@@ -58,6 +58,8 @@ class TimeoutPartiesService extends PutPartiesErrorService {
58
58
 
59
59
  async prepareErrorInformation () {
60
60
  const { headers, params } = this.inputs
61
+ headers.date = new Date().toUTCString()
62
+
61
63
  const error = TimeoutPartiesService.createFSPIOPExpiredError()
62
64
  const errorInfo = await this.deps.partiesUtils.makePutPartiesErrorPayload(
63
65
  this.deps.config, error, headers, params
@@ -126,7 +126,7 @@ const determineOracleEndpoint = async ({
126
126
  url = await _getOracleEndpointByType(partyIdType, partyIdentifier, assertPendingAcquire)
127
127
  }
128
128
 
129
- logger.verbose(`Oracle endpoint: ${url}`, { currency, params, partySubIdOrType, url })
129
+ logger.debug(`Oracle endpoint: ${url}`, { currency, params, partySubIdOrType, url })
130
130
  return url
131
131
  }
132
132
 
@@ -43,10 +43,6 @@ describe('Parties Endpoints Tests -->', () => {
43
43
  await proxyCache.connect()
44
44
  })
45
45
 
46
- // beforeEach(async () => {
47
- // await proxyCache.redisClient.flushdb()
48
- // })
49
-
50
46
  afterAll(async () => {
51
47
  await proxyCache.disconnect()
52
48
  })
@@ -50,7 +50,9 @@ describe('TimeoutPartiesService Tests -->', () => {
50
50
 
51
51
  await service.handleExpiredKey()
52
52
  expect(participantMock.sendErrorToParticipant).toHaveBeenCalledTimes(1)
53
- expect(participantMock.sendErrorToParticipant.mock.lastCall[0]).toBe(proxy)
53
+ const [sendTo, , , cbHeaders] = participantMock.sendErrorToParticipant.mock.lastCall
54
+ expect(sendTo).toBe(proxy)
55
+ expect(cbHeaders.date).toBeDefined()
54
56
  })
55
57
 
56
58
  test('should send error callback in ISO20022 format', async () => {