From 082bd1b5467df3628f00561af218e20a42f19dae Mon Sep 17 00:00:00 2001 From: Kevin Leyow Date: Mon, 27 May 2024 11:25:19 -0500 Subject: [PATCH 1/2] dep, audit --- package-lock.json | 16 ++++++++-------- package.json | 4 ++-- src/domain/timeout/index.js | 1 - test/unit/handlers/timeouts/handler.test.js | 1 - 4 files changed, 10 insertions(+), 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index 86c61a5ee..f46eaadaf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,7 +26,7 @@ "@mojaloop/ml-number": "11.2.4", "@mojaloop/object-store-lib": "12.0.3", "@now-ims/hapi-now-auth": "2.1.0", - "ajv": "8.13.0", + "ajv": "8.14.0", "ajv-keywords": "5.1.0", "base64url": "3.0.1", "blipp": "4.0.2", @@ -53,7 +53,7 @@ "get-port": "5.1.1", "jsdoc": "4.0.3", "jsonpath": "1.1.1", - "nodemon": "3.1.0", + "nodemon": "3.1.1", "npm-check-updates": "16.14.20", "nyc": "15.1.0", "pre-commit": "1.2.2", @@ -2624,9 +2624,9 @@ } }, "node_modules/ajv": { - "version": "8.13.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.13.0.tgz", - "integrity": "sha512-PRA911Blj99jR5RMeTunVbNXMF6Lp4vZXnk5GQjcnUWUTsrXtekg/pnmFFI2u/I36Y/2bITGS30GZCXei6uNkA==", + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.14.0.tgz", + "integrity": "sha512-oYs1UUtO97ZO2lJ4bwnWeQW8/zvOIQLGKcvPTsWmvc2SYgBb+upuNS5NxoLaMU4h8Ju3Nbj6Cq8mD2LQoqVKFA==", "dependencies": { "fast-deep-equal": "^3.1.3", "json-schema-traverse": "^1.0.0", @@ -11132,9 +11132,9 @@ "dev": true }, "node_modules/nodemon": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-3.1.0.tgz", - "integrity": "sha512-xqlktYlDMCepBJd43ZQhjWwMw2obW/JRvkrLxq5RCNcuDDX1DbcPT+qT1IlIIdf+DhnWs90JpTMe+Y5KxOchvA==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-3.1.1.tgz", + "integrity": "sha512-k43xGaDtaDIcufn0Fc6fTtsdKSkV/hQzoQFigNH//GaKta28yoKVYXCnV+KXRqfT/YzsFaQU9VdeEG+HEyxr6A==", "dev": true, "dependencies": { "chokidar": "^3.5.2", diff --git a/package.json b/package.json index d983a9762..06162a981 100644 --- a/package.json +++ b/package.json @@ -98,7 +98,7 @@ "@mojaloop/ml-number": "11.2.4", "@mojaloop/object-store-lib": "12.0.3", "@now-ims/hapi-now-auth": "2.1.0", - "ajv": "8.13.0", + "ajv": "8.14.0", "ajv-keywords": "5.1.0", "base64url": "3.0.1", "blipp": "4.0.2", @@ -128,7 +128,7 @@ "get-port": "5.1.1", "jsdoc": "4.0.3", "jsonpath": "1.1.1", - "nodemon": "3.1.0", + "nodemon": "3.1.1", "npm-check-updates": "16.14.20", "nyc": "15.1.0", "pre-commit": "1.2.2", diff --git a/src/domain/timeout/index.js b/src/domain/timeout/index.js index 4f214668d..e2eb7484a 100644 --- a/src/domain/timeout/index.js +++ b/src/domain/timeout/index.js @@ -79,7 +79,6 @@ const timeoutExpireReserved = async (segmentId, intervalMin, intervalMax, fxSegm return TransferFacade.timeoutExpireReserved(segmentId, intervalMin, intervalMax, fxSegmentId, fxIntervalMin, fxIntervalMax) } - module.exports = { getTimeoutSegment, getFxTimeoutSegment, diff --git a/test/unit/handlers/timeouts/handler.test.js b/test/unit/handlers/timeouts/handler.test.js index 30a16bd06..8b803478a 100644 --- a/test/unit/handlers/timeouts/handler.test.js +++ b/test/unit/handlers/timeouts/handler.test.js @@ -273,7 +273,6 @@ Test('Timeout handler', TimeoutHandlerTest => { }) timeoutTest.test('handle fx message errors', async (test) => { - const resultMock1 = { transferTimeoutList: [], fxTransferTimeoutList: fxTransferTimeoutListMock[0] From aa5e5cce3d80e3845e29fa52722cd821c0ebea82 Mon Sep 17 00:00:00 2001 From: Kevin Leyow Date: Mon, 27 May 2024 13:27:50 -0500 Subject: [PATCH 2/2] fix test --- test/integration-override/handlers/transfers/fxFulfil.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration-override/handlers/transfers/fxFulfil.test.js b/test/integration-override/handlers/transfers/fxFulfil.test.js index 4a5cafcbf..83ad327c5 100644 --- a/test/integration-override/handlers/transfers/fxFulfil.test.js +++ b/test/integration-override/handlers/transfers/fxFulfil.test.js @@ -108,7 +108,7 @@ Test('FxFulfil flow Integration Tests -->', async fxFulfilTest => { const [payer, fxp] = await Promise.all([ ParticipantHelper.prepareData(dfspNamePrefix, sourceAmount.currency), - ParticipantHelper.prepareData(fxpNamePrefix, sourceAmount.currency) + ParticipantHelper.prepareData(fxpNamePrefix, sourceAmount.currency, targetAmount.currency) ]) const DFSP_1 = payer.participant.name const FXP = fxp.participant.name