account-lookup-service 17.4.1 → 17.5.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,13 @@
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.5.0](https://github.com/mojaloop/account-lookup-service/compare/v17.4.1...v17.5.0) (2025-03-18)
6
+
7
+
8
+ ### Features
9
+
10
+ * rethrow with context ([#540](https://github.com/mojaloop/account-lookup-service/issues/540)) ([c1037e9](https://github.com/mojaloop/account-lookup-service/commit/c1037e9ee3d78224074ca2c7ecc24c68a81c7e9e))
11
+
5
12
  ### [17.4.1](https://github.com/mojaloop/account-lookup-service/compare/v17.3.2...v17.4.1) (2025-03-14)
6
13
 
7
14
 
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.4.1",
4
+ "version": "17.5.0",
5
5
  "license": "Apache-2.0",
6
6
  "author": "ModusBox",
7
7
  "contributors": [
@@ -93,9 +93,9 @@
93
93
  "@hapi/vision": "7.0.3",
94
94
  "@mojaloop/central-services-error-handling": "13.0.7",
95
95
  "@mojaloop/central-services-health": "15.0.4",
96
- "@mojaloop/central-services-logger": "11.6.2",
97
- "@mojaloop/central-services-metrics": "12.4.5",
98
- "@mojaloop/central-services-shared": "18.22.4",
96
+ "@mojaloop/central-services-logger": "11.7.0",
97
+ "@mojaloop/central-services-metrics": "12.5.0",
98
+ "@mojaloop/central-services-shared": "18.23.0",
99
99
  "@mojaloop/central-services-stream": "11.5.1",
100
100
  "@mojaloop/database-lib": "11.1.4",
101
101
  "@mojaloop/event-sdk": "14.3.2",
package/src/lib/util.js CHANGED
@@ -29,7 +29,9 @@ const util = require('node:util')
29
29
  const Path = require('node:path')
30
30
  const EventSdk = require('@mojaloop/event-sdk')
31
31
  const Enum = require('@mojaloop/central-services-shared').Enum
32
- const { HeaderValidation, Hapi, rethrow } = require('@mojaloop/central-services-shared').Util
32
+ const { HeaderValidation, Hapi } = require('@mojaloop/central-services-shared').Util
33
+ const rethrow = require('@mojaloop/central-services-shared').Util.rethrow.with('ALS')
34
+
33
35
  const Config = require('../lib/config')
34
36
  const { logger } = require('./index')
35
37
 
@@ -95,7 +95,7 @@ describe('Oracle tests', () => {
95
95
  Metrics.getCounter(
96
96
  'errorCount',
97
97
  'Error count',
98
- ['code', 'system', 'operation', 'step']
98
+ ['code', 'system', 'operation', 'step', 'context', 'expected']
99
99
  )
100
100
 
101
101
  beforeEach(() => {
@@ -54,7 +54,7 @@ describe('participant Tests', () => {
54
54
  Metrics.getCounter(
55
55
  'errorCount',
56
56
  'Error count',
57
- ['code', 'system', 'operation', 'step']
57
+ ['code', 'system', 'operation', 'step', 'context', 'expected']
58
58
  )
59
59
 
60
60
  beforeEach(() => {
@@ -70,7 +70,7 @@ describe('Parties Tests', () => {
70
70
  Metrics.getCounter(
71
71
  'errorCount',
72
72
  'Error count',
73
- ['code', 'system', 'operation', 'step']
73
+ ['code', 'system', 'operation', 'step', 'context', 'expected']
74
74
  )
75
75
 
76
76
  beforeEach(async () => {
@@ -40,7 +40,7 @@ describe('Timeout Domain', () => {
40
40
  Metrics.getCounter(
41
41
  'errorCount',
42
42
  'Error count',
43
- ['code', 'system', 'operation', 'step']
43
+ ['code', 'system', 'operation', 'step', 'context', 'expected']
44
44
  )
45
45
 
46
46
  beforeEach(() => {
@@ -51,6 +51,7 @@ jest.mock('@mojaloop/central-services-shared', () => ({
51
51
  Request: { sendRequest: mockSendRequest },
52
52
  Http: { SwitchDefaultHeaders: jest.fn() },
53
53
  HeaderValidation: { getHubNameRegex: jest.fn().mockReturnValue(new RegExp(mockHubName)) },
54
+ rethrow: jest.requireActual('@mojaloop/central-services-shared').Util.rethrow,
54
55
  Hapi: jest.requireActual('@mojaloop/central-services-shared').Util.Hapi
55
56
  },
56
57
  Enum: mockEnums