From 0b11ffc8e29f463038dba17352e45c0eb1e4ec5b Mon Sep 17 00:00:00 2001 From: Steven Oderayi Date: Wed, 11 Oct 2023 17:20:35 +0100 Subject: [PATCH 1/3] chore: update deps. fix test --- package-lock.json | 395 +++++++++++---------------- package.json | 22 +- test/unit/lib/kafka/producer.test.js | 5 +- 3 files changed, 180 insertions(+), 242 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6486222f..a2ab7623 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,14 +16,14 @@ "@hapi/hapi": "21.3.2", "@hapi/inert": "7.1.0", "@hapi/vision": "7.0.3", - "@mojaloop/central-ledger": "v17.2.0", + "@mojaloop/central-ledger": "v17.2.1", "@mojaloop/central-services-database": "10.7.0", "@mojaloop/central-services-error-handling": "12.0.7", "@mojaloop/central-services-health": "14.0.2", "@mojaloop/central-services-logger": "11.2.2", - "@mojaloop/central-services-shared": "18.1.1", - "@mojaloop/central-services-stream": "11.1.1", - "@mojaloop/event-sdk": "12.0.2", + "@mojaloop/central-services-shared": "18.1.2", + "@mojaloop/central-services-stream": "11.2.0", + "@mojaloop/event-sdk": "13.0.0", "@mojaloop/ml-number": "11.2.3", "@now-ims/hapi-now-auth": "2.1.0", "async": "3.2.4", @@ -43,36 +43,36 @@ "devDependencies": { "@hapi/joi": "17.1.1", "@mojaloop/central-services-metrics": "12.0.8", - "@types/lodash": "4.14.198", + "@types/lodash": "4.14.199", "ajv": "8.12.0", "ajv-keywords": "5.1.0", "audit-ci": "^6.6.1", - "axios": "1.5.0", + "axios": "1.5.1", "bluebird": "3.7.2", - "chai": "4.3.8", + "chai": "4.3.10", "chai-exclude": "2.1.0", "chai-subset": "1.6.0", - "eslint": "8.49.0", + "eslint": "8.51.0", "esm": "^3.2.25", "get-port": "7.0.0", "jest": "29.7.0", "jest-junit": "16.0.0", "node-fetch": "3.3.2", "nodemon": "3.0.1", - "npm-check-updates": "16.13.3", + "npm-check-updates": "16.14.5", "nyc": "15.1.0", "pre-commit": "1.2.2", "proxyquire": "2.1.3", "replace": "^1.2.2", "rewire": "7.0.0", - "sinon": "15.2.0", + "sinon": "16.1.0", "standard": "17.1.0", "standard-version": "^9.5.0", "supertest": "6.3.3", "swagmock": "1.0.0", "tap-spec": "^5.0.0", "tap-xunit": "2.4.1", - "tape": "5.6.6", + "tape": "5.7.0", "tapes": "4.1.0" }, "engines": { @@ -933,9 +933,9 @@ "dev": true }, "node_modules/@eslint/js": { - "version": "8.49.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.49.0.tgz", - "integrity": "sha512-1S8uAY/MTJqVx0SC4epBq+N2yhuwtNwLbJYNZyhL2pO1ZVKn5HFXav5T41Ryzy9K9V7ZId2JB2oy/W4aCd9/2w==", + "version": "8.51.0", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.51.0.tgz", + "integrity": "sha512-HxjQ8Qn+4SI3/AFv6sOrDB+g6PpUTDwSJiQqOrnneEk8L71161srI9gjzzZvYVbzHiVg/BvcH95+cK/zfIt4pg==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -2057,9 +2057,9 @@ } }, "node_modules/@mojaloop/central-ledger": { - "version": "17.2.0", - "resolved": "https://registry.npmjs.org/@mojaloop/central-ledger/-/central-ledger-17.2.0.tgz", - "integrity": "sha512-u+ZKLtoNVVx2K9oOlrZeuWEMKK2oDWDO+IRKM+YbUH6ECZcNrtSG63jsCnxynjFeli+7PopQSAmOLtNjzLjFkA==", + "version": "17.2.1", + "resolved": "https://registry.npmjs.org/@mojaloop/central-ledger/-/central-ledger-17.2.1.tgz", + "integrity": "sha512-DINt/sfpjEROtQDPOK2DV0I2vBDjBhCbNtfI7GcSMbli0Kr5Bipk01nBNV5f7mfa/OIV9abjC3Ls7Bd/hJC5LA==", "dependencies": { "@hapi/catbox-memory": "6.0.1", "@hapi/good": "9.0.1", @@ -2071,24 +2071,24 @@ "@mojaloop/central-services-health": "14.0.2", "@mojaloop/central-services-logger": "11.2.2", "@mojaloop/central-services-metrics": "12.0.8", - "@mojaloop/central-services-shared": "18.1.0", - "@mojaloop/central-services-stream": "11.1.1", + "@mojaloop/central-services-shared": "18.1.2", + "@mojaloop/central-services-stream": "11.2.0", "@mojaloop/database-lib": "11.0.3", - "@mojaloop/event-sdk": "12.0.2", + "@mojaloop/event-sdk": "13.0.0", "@mojaloop/ml-number": "11.2.3", - "@mojaloop/object-store-lib": "12.0.1", + "@mojaloop/object-store-lib": "12.0.2", "@now-ims/hapi-now-auth": "2.1.0", "ajv": "8.12.0", "ajv-keywords": "5.1.0", "base64url": "3.0.1", "blipp": "4.0.2", "commander": "11.0.0", - "cron": "2.4.3", + "cron": "2.4.4", "decimal.js": "10.4.3", "docdash": "2.0.2", "event-stream": "4.0.1", "five-bells-condition": "5.0.1", - "glob": "10.3.4", + "glob": "10.3.10", "hapi-auth-basic": "5.0.0", "hapi-auth-bearer-token": "8.0.0", "hapi-swagger": "17.1.0", @@ -2105,17 +2105,6 @@ "mysql": "2.18.1" } }, - "node_modules/@mojaloop/central-ledger/node_modules/@hapi/catbox": { - "version": "12.0.0", - "resolved": "https://registry.npmjs.org/@hapi/catbox/-/catbox-12.0.0.tgz", - "integrity": "sha512-qypug5Xd3VAQVYpF7rolZiA6wuBQuGyKqhXVbKwF3lz4FGHlTiLye31Z9S4zF+2l2bIlJwx1j5yvYGJlUAP/AQ==", - "dependencies": { - "@hapi/boom": "^10.0.0", - "@hapi/hoek": "^10.0.0", - "@hapi/podium": "^5.0.0", - "@hapi/validate": "^2.0.0" - } - }, "node_modules/@mojaloop/central-ledger/node_modules/@hapi/catbox-memory": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/@hapi/catbox-memory/-/catbox-memory-6.0.1.tgz", @@ -2125,94 +2114,6 @@ "@hapi/hoek": "^11.0.2" } }, - "node_modules/@mojaloop/central-ledger/node_modules/@hapi/catbox/node_modules/@hapi/hoek": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-10.0.1.tgz", - "integrity": "sha512-CvlW7jmOhWzuqOqiJQ3rQVLMcREh0eel4IBnxDx2FAcK8g7qoJRQK4L1CPBASoCY6y8e6zuCy3f2g+HWdkzcMw==" - }, - "node_modules/@mojaloop/central-ledger/node_modules/@hapi/validate": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@hapi/validate/-/validate-2.0.1.tgz", - "integrity": "sha512-NZmXRnrSLK8MQ9y/CMqE9WSspgB9xA41/LlYR0k967aSZebWr4yNrpxIbov12ICwKy4APSlWXZga9jN5p6puPA==", - "dependencies": { - "@hapi/hoek": "^11.0.2", - "@hapi/topo": "^6.0.1" - } - }, - "node_modules/@mojaloop/central-ledger/node_modules/@mojaloop/central-services-shared": { - "version": "18.1.0", - "resolved": "https://registry.npmjs.org/@mojaloop/central-services-shared/-/central-services-shared-18.1.0.tgz", - "integrity": "sha512-9RXAxkWdONW/VgfcYrS9ysdu3GJdYgh7S1XtTYSvN89e9nCR+YAYjsWRwEeAjyJcy7QsK7h+Zz5LiByNP9fyzg==", - "dependencies": { - "@hapi/catbox": "12.0.0", - "@hapi/catbox-memory": "5.0.1", - "axios": "1.5.0", - "clone": "2.1.2", - "dotenv": "16.3.1", - "env-var": "7.4.1", - "event-stream": "4.0.1", - "immutable": "4.3.4", - "lodash": "4.17.21", - "mustache": "4.2.0", - "openapi-backend": "5.9.2", - "raw-body": "2.5.2", - "rc": "1.2.8", - "shins": "2.6.0", - "uuid4": "2.0.3", - "widdershins": "^4.0.1", - "yaml": "2.3.2" - }, - "peerDependencies": { - "@mojaloop/central-services-error-handling": ">=12.x.x", - "@mojaloop/central-services-logger": ">=11.x.x", - "@mojaloop/central-services-metrics": ">=12.x.x", - "@mojaloop/event-sdk": ">=12.x.x", - "ajv": "8.x.x", - "ajv-keywords": "5.x.x" - }, - "peerDependenciesMeta": { - "@mojaloop/central-services-error-handling": { - "optional": false - }, - "@mojaloop/central-services-logger": { - "optional": false - }, - "@mojaloop/central-services-metrics": { - "optional": false - }, - "@mojaloop/event-sdk": { - "optional": false - }, - "ajv": { - "optional": false - }, - "ajv-keyboards": { - "optional": false - } - } - }, - "node_modules/@mojaloop/central-ledger/node_modules/@mojaloop/central-services-shared/node_modules/@hapi/boom": { - "version": "9.1.4", - "resolved": "https://registry.npmjs.org/@hapi/boom/-/boom-9.1.4.tgz", - "integrity": "sha512-Ls1oH8jaN1vNsqcaHVYJrKmgMcKsC1wcp8bujvXrHaAqD2iDYq3HoOwsxwo09Cuda5R5nC0o0IxlrlTuvPuzSw==", - "dependencies": { - "@hapi/hoek": "9.x.x" - } - }, - "node_modules/@mojaloop/central-ledger/node_modules/@mojaloop/central-services-shared/node_modules/@hapi/catbox-memory": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@hapi/catbox-memory/-/catbox-memory-5.0.1.tgz", - "integrity": "sha512-QWw9nOYJq5PlvChLWV8i6hQHJYfvdqiXdvTupJFh0eqLZ64Xir7mKNi96d5/ZMUAqXPursfNDIDxjFgoEDUqeQ==", - "dependencies": { - "@hapi/boom": "9.x.x", - "@hapi/hoek": "9.x.x" - } - }, - "node_modules/@mojaloop/central-ledger/node_modules/@mojaloop/central-services-shared/node_modules/@hapi/hoek": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz", - "integrity": "sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==" - }, "node_modules/@mojaloop/central-services-database": { "version": "10.7.0", "resolved": "https://registry.npmjs.org/@mojaloop/central-services-database/-/central-services-database-10.7.0.tgz", @@ -2382,11 +2283,11 @@ } }, "node_modules/@mojaloop/central-services-shared": { - "version": "18.1.1", - "resolved": "https://registry.npmjs.org/@mojaloop/central-services-shared/-/central-services-shared-18.1.1.tgz", - "integrity": "sha512-KeH3iMJF7QJ4bIEHZfHSr4pDMFpi63t8Yu7aC1z1SvZbI7r/ed1kD0y/otVhuTzG9j4b4lmadr+47zSVOhrIcA==", + "version": "18.1.2", + "resolved": "https://registry.npmjs.org/@mojaloop/central-services-shared/-/central-services-shared-18.1.2.tgz", + "integrity": "sha512-4DaAY+YhBq2o/Wl8Um7q0Y6B5qQPLscipDf7Tkz5vjlPM622YErbycSF41Khf9gzQ8AO8H8KTnd+rhOSXvHHQw==", "dependencies": { - "@hapi/catbox": "12.0.0", + "@hapi/catbox": "12.1.1", "@hapi/catbox-memory": "5.0.1", "axios": "1.5.0", "clone": "2.1.2", @@ -2433,40 +2334,20 @@ } } }, - "node_modules/@mojaloop/central-services-shared/node_modules/@hapi/catbox": { - "version": "12.0.0", - "resolved": "https://registry.npmjs.org/@hapi/catbox/-/catbox-12.0.0.tgz", - "integrity": "sha512-qypug5Xd3VAQVYpF7rolZiA6wuBQuGyKqhXVbKwF3lz4FGHlTiLye31Z9S4zF+2l2bIlJwx1j5yvYGJlUAP/AQ==", - "dependencies": { - "@hapi/boom": "^10.0.0", - "@hapi/hoek": "^10.0.0", - "@hapi/podium": "^5.0.0", - "@hapi/validate": "^2.0.0" - } - }, - "node_modules/@mojaloop/central-services-shared/node_modules/@hapi/hoek": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-10.0.1.tgz", - "integrity": "sha512-CvlW7jmOhWzuqOqiJQ3rQVLMcREh0eel4IBnxDx2FAcK8g7qoJRQK4L1CPBASoCY6y8e6zuCy3f2g+HWdkzcMw==" - }, - "node_modules/@mojaloop/central-services-shared/node_modules/@hapi/validate": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@hapi/validate/-/validate-2.0.1.tgz", - "integrity": "sha512-NZmXRnrSLK8MQ9y/CMqE9WSspgB9xA41/LlYR0k967aSZebWr4yNrpxIbov12ICwKy4APSlWXZga9jN5p6puPA==", + "node_modules/@mojaloop/central-services-shared/node_modules/axios": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.5.0.tgz", + "integrity": "sha512-D4DdjDo5CY50Qms0qGQTTw6Q44jl7zRwY7bthds06pUGfChBCTcQs+N743eFWGEd6pRTMd6A+I87aWyFV5wiZQ==", "dependencies": { - "@hapi/hoek": "^11.0.2", - "@hapi/topo": "^6.0.1" + "follow-redirects": "^1.15.0", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" } }, - "node_modules/@mojaloop/central-services-shared/node_modules/@hapi/validate/node_modules/@hapi/hoek": { - "version": "11.0.2", - "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-11.0.2.tgz", - "integrity": "sha512-aKmlCO57XFZ26wso4rJsW4oTUnrgTFw2jh3io7CAtO9w4UltBNwRXvXIVzzyfkaaLRo3nluP/19msA8vDUUuKw==" - }, "node_modules/@mojaloop/central-services-stream": { - "version": "11.1.1", - "resolved": "https://registry.npmjs.org/@mojaloop/central-services-stream/-/central-services-stream-11.1.1.tgz", - "integrity": "sha512-D9k+E7kEwYHUICCZf/pVaNJHHqz2c33Sozi0JpzUzmhZKOTN05YoADbg4axrpnJ82d/izhfhavTXiwOwHZCI8A==", + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/@mojaloop/central-services-stream/-/central-services-stream-11.2.0.tgz", + "integrity": "sha512-MH/8cMx0AGCpuu/dRy20oeLaQkwUGN/29yzSSYHlMjbMFya3HbvKSkLiCteLE0Jrp+r/5Wl8SiXbvvMShz/dgQ==", "dependencies": { "async": "3.2.4", "events": "3.3.0", @@ -2496,11 +2377,11 @@ } }, "node_modules/@mojaloop/event-sdk": { - "version": "12.0.2", - "resolved": "https://registry.npmjs.org/@mojaloop/event-sdk/-/event-sdk-12.0.2.tgz", - "integrity": "sha512-R5QYOws7Cjr1zEKQZy2SoBEAvknUfeOKlHKkWqk3efRHSGOOsr2jUmcf3DUuQsL/ytzFI2L5M5YVXfygd8z3IA==", + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/@mojaloop/event-sdk/-/event-sdk-13.0.0.tgz", + "integrity": "sha512-77GR2aUnrjQksR3lO/NVyMd/REMbtltN1D/Z3NHwNCqGNem2YE6My0eC9uWoziz5A4X5wz21F9zDgISLfm6xUQ==", "dependencies": { - "@grpc/grpc-js": "^1.9.1", + "@grpc/grpc-js": "^1.9.2", "@grpc/proto-loader": "0.7.9", "brototype": "0.0.6", "error-callsites": "2.0.4", @@ -2533,11 +2414,11 @@ } }, "node_modules/@mojaloop/object-store-lib": { - "version": "12.0.1", - "resolved": "https://registry.npmjs.org/@mojaloop/object-store-lib/-/object-store-lib-12.0.1.tgz", - "integrity": "sha512-E7EjjXjUlL67Z/tvfQQluxPwIDN2k527x85K08SybiDI2v/cVfhG1/NdmUD1A2dVvDu3+9rpHlXeiFY8J9VVMA==", + "version": "12.0.2", + "resolved": "https://registry.npmjs.org/@mojaloop/object-store-lib/-/object-store-lib-12.0.2.tgz", + "integrity": "sha512-lmOQODvOajQooVI+QFzQZPyNDVe5Hkr47bMOp+vVS9lhBDglcNPIkse1AMUuYSKVwqmsqXjrTy2Rb7W+1yDibA==", "dependencies": { - "mongoose": "^7.5.0" + "mongoose": "^7.5.3" }, "peerDependencies": { "@mojaloop/central-services-logger": ">=11.x.x" @@ -3209,9 +3090,9 @@ "dev": true }, "node_modules/@types/lodash": { - "version": "4.14.198", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.198.tgz", - "integrity": "sha512-trNJ/vtMZYMLhfN45uLq4ShQSw0/S7xCTLLVM+WM1rmFpba/VS42jVUgaO3w/NOLiWR/09lnYk0yMaA/atdIsg==" + "version": "4.14.199", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.199.tgz", + "integrity": "sha512-Vrjz5N5Ia4SEzWWgIVwnHNEnb1UE1XMkvY5DGXrAeOGE9imk0hgTHh5GyDjLDJi9OTCn9oo9dXH1uToK1VRfrg==" }, "node_modules/@types/lodash.clonedeep": { "version": "4.5.7", @@ -3255,9 +3136,9 @@ "integrity": "sha512-txGIh+0eDFzKGC25zORnswy+br1Ha7hj5cMVwKIU7+s0U2AxxJru/jZSMU6OC9MJWP6+pc/hc6ZjyZShpsyY2g==" }, "node_modules/@types/webidl-conversions": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-7.0.0.tgz", - "integrity": "sha512-xTE1E+YF4aWPJJeUzaZI5DRntlkY3+BCVJi0axFptnjGmAoWxkyREIh/XMrfxVLejwQxMCfDXdICo0VLxThrog==" + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@types/webidl-conversions/-/webidl-conversions-7.0.1.tgz", + "integrity": "sha512-8hKOnOan+Uu+NgMaCouhg3cT9x5fFZ92Jwf+uDLXLu/MFRbXxlWwGeQY7KVHkeSft6RvY+tdxklUBuyY9eIEKg==" }, "node_modules/@types/whatwg-url": { "version": "8.2.2", @@ -3831,9 +3712,10 @@ } }, "node_modules/axios": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.5.0.tgz", - "integrity": "sha512-D4DdjDo5CY50Qms0qGQTTw6Q44jl7zRwY7bthds06pUGfChBCTcQs+N743eFWGEd6pRTMd6A+I87aWyFV5wiZQ==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.5.1.tgz", + "integrity": "sha512-Q28iYCWzNHjAm+yEAot5QaAMxhMghWLFVf7rRdwhUI+c2jix2DUXjAHXVi+s1ibs3mjPO/cCgbA++3BjD0vP/A==", + "dev": true, "dependencies": { "follow-redirects": "^1.15.0", "form-data": "^4.0.0", @@ -4251,9 +4133,9 @@ } }, "node_modules/bson": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/bson/-/bson-5.4.0.tgz", - "integrity": "sha512-WRZ5SQI5GfUuKnPTNmAYPiKIof3ORXAF4IRU5UcgmivNIon01rWQlw5RUH954dpu8yGL8T59YShVddIPaU/gFA==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/bson/-/bson-5.5.0.tgz", + "integrity": "sha512-B+QB4YmDx9RStKv8LLSl/aVIEV3nYJc3cJNNTK2Cd1TL+7P+cNpw9mAPeCgc5K+j01Dv6sxUzcITXDx7ZU3F0w==", "engines": { "node": ">=14.20.1" } @@ -4482,18 +4364,18 @@ } }, "node_modules/chai": { - "version": "4.3.8", - "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.8.tgz", - "integrity": "sha512-vX4YvVVtxlfSZ2VecZgFUTU5qPCYsobVI2O9FmwEXBhDigYGQA6jRXCycIs1yJnnWbZ6/+a2zNIF5DfVCcJBFQ==", + "version": "4.3.10", + "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.10.tgz", + "integrity": "sha512-0UXG04VuVbruMUYbJ6JctvH0YnC/4q3/AkT18q4NaITo91CUm0liMS9VqzT9vZhVQ/1eqPanMWjBM+Juhfb/9g==", "dev": true, "dependencies": { "assertion-error": "^1.1.0", - "check-error": "^1.0.2", - "deep-eql": "^4.1.2", - "get-func-name": "^2.0.0", - "loupe": "^2.3.1", + "check-error": "^1.0.3", + "deep-eql": "^4.1.3", + "get-func-name": "^2.0.2", + "loupe": "^2.3.6", "pathval": "^1.1.1", - "type-detect": "^4.0.5" + "type-detect": "^4.0.8" }, "engines": { "node": ">=4" @@ -4551,10 +4433,13 @@ } }, "node_modules/check-error": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", - "integrity": "sha512-BrgHpW9NURQgzoNyjfq0Wu6VFO6D7IZEmJNdtgNqpzGG8RuNFHt2jQxWlAs4HMe119chBnv+34syEZtc6IhLtA==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.3.tgz", + "integrity": "sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==", "dev": true, + "dependencies": { + "get-func-name": "^2.0.2" + }, "engines": { "node": "*" } @@ -5486,9 +5371,9 @@ } }, "node_modules/cron": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/cron/-/cron-2.4.3.tgz", - "integrity": "sha512-YBvExkQYF7w0PxyeFLRyr817YVDhGxaCi5/uRRMqa4aWD3IFKRd+uNbpW1VWMdqQy8PZ7CElc+accXJcauPKzQ==", + "version": "2.4.4", + "resolved": "https://registry.npmjs.org/cron/-/cron-2.4.4.tgz", + "integrity": "sha512-MHlPImXJj3K7x7lyUHjtKEOl69CSlTOWxS89jiFgNkzXfvhVjhMz/nc7/EIfN9vgooZp8XTtXJ1FREdmbyXOiQ==", "dependencies": { "@types/luxon": "~3.3.0", "luxon": "~3.3.0" @@ -6511,15 +6396,15 @@ } }, "node_modules/eslint": { - "version": "8.49.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.49.0.tgz", - "integrity": "sha512-jw03ENfm6VJI0jA9U+8H5zfl5b+FvuU3YYvZRdZHOlU2ggJkxrlkJH4HcDrZpj6YwD8kuYqvQM8LyesoazrSOQ==", + "version": "8.51.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.51.0.tgz", + "integrity": "sha512-2WuxRZBrlwnXi+/vFSJyjMqrNjtJqiasMzehF0shoLaW7DzS3/9Yvrmq5JiT66+pNjiX4UBnLDiKHcWAr/OInA==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", "@eslint/eslintrc": "^2.1.2", - "@eslint/js": "8.49.0", + "@eslint/js": "8.51.0", "@humanwhocodes/config-array": "^0.11.11", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", @@ -7808,9 +7693,9 @@ } }, "node_modules/get-func-name": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", - "integrity": "sha512-Hm0ixYtaSZ/V7C8FJrtZIuBBI+iSgL+1Aq82zSu8VQNB4S3Gk8e7Qs3VwBDJAhmRZcFqkl3tQu36g/Foh5I5ig==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", + "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==", "dev": true, "engines": { "node": "*" @@ -8100,18 +7985,18 @@ "dev": true }, "node_modules/glob": { - "version": "10.3.4", - "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.4.tgz", - "integrity": "sha512-6LFElP3A+i/Q8XQKEvZjkEWEOTgAIALR9AO2rwT8bgPhDd1anmqDJDZ6lLddI4ehxxxR1S5RIqKe1uapMQfYaQ==", + "version": "10.3.10", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz", + "integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==", "dependencies": { "foreground-child": "^3.1.0", - "jackspeak": "^2.0.3", + "jackspeak": "^2.3.5", "minimatch": "^9.0.1", "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", "path-scurry": "^1.10.1" }, "bin": { - "glob": "dist/cjs/src/bin.js" + "glob": "dist/esm/bin.mjs" }, "engines": { "node": ">=16 || 14 >=14.17" @@ -10050,9 +9935,9 @@ } }, "node_modules/jackspeak": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.3.tgz", - "integrity": "sha512-R2bUw+kVZFS/h1AZqBKrSgDmdmjApzgY0AlCPumopFiAlbUxE2gf+SCuBzQ0cP5hHmUmFYF5yw55T97Th5Kstg==", + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", + "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==", "dependencies": { "@isaacs/cliui": "^8.0.2" }, @@ -12102,6 +11987,27 @@ "lodash": "^4.17.21" } }, + "node_modules/mock-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/mock-property/-/mock-property-1.0.0.tgz", + "integrity": "sha512-imC60k5A55GPUU43PqczbubOyyxCudIgneACKzL3PKfsBk08dc1HgNNU8siQbEIAPPjVUhc+gb0v0ypZ/iP9pw==", + "dev": true, + "dependencies": { + "functions-have-names": "^1.2.2", + "has": "^1.0.3", + "has-property-descriptors": "^1.0.0", + "isarray": "^2.0.5" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/mock-property/node_modules/isarray": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", + "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", + "dev": true + }, "node_modules/modify-values": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/modify-values/-/modify-values-1.0.1.tgz", @@ -12134,11 +12040,11 @@ } }, "node_modules/mongodb": { - "version": "5.8.1", - "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-5.8.1.tgz", - "integrity": "sha512-wKyh4kZvm6NrCPH8AxyzXm3JBoEf4Xulo0aUWh3hCgwgYJxyQ1KLST86ZZaSWdj6/kxYUA3+YZuyADCE61CMSg==", + "version": "5.9.0", + "resolved": "https://registry.npmjs.org/mongodb/-/mongodb-5.9.0.tgz", + "integrity": "sha512-g+GCMHN1CoRUA+wb1Agv0TI4YTSiWr42B5ulkiAfLLHitGK1R+PkSAf3Lr5rPZwi/3F04LiaZEW0Kxro9Fi2TA==", "dependencies": { - "bson": "^5.4.0", + "bson": "^5.5.0", "mongodb-connection-string-url": "^2.6.0", "socks": "^2.7.1" }, @@ -12183,13 +12089,13 @@ } }, "node_modules/mongoose": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-7.5.0.tgz", - "integrity": "sha512-FpOWOb0AJuaVcplmEyIJ2eCbVGe4gOoniPD+pmft5BrGrNrsFcnYXlERdXtBApGHMHPwD7WbxTyhCbUNr72F3Q==", + "version": "7.6.1", + "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-7.6.1.tgz", + "integrity": "sha512-Iflr60FL7mabBdgAtumLTwEGdZGV6IKHfF7F75En2JWpPitorwQeCFqWPcPHRnBxncKANl3gwI9nh2Yb4y3/sA==", "dependencies": { - "bson": "^5.4.0", + "bson": "^5.5.0", "kareem": "2.5.1", - "mongodb": "5.8.1", + "mongodb": "5.9.0", "mpath": "0.9.0", "mquery": "5.0.0", "ms": "2.1.3", @@ -12604,9 +12510,9 @@ } }, "node_modules/npm-check-updates": { - "version": "16.13.3", - "resolved": "https://registry.npmjs.org/npm-check-updates/-/npm-check-updates-16.13.3.tgz", - "integrity": "sha512-l3FQtm+ZtDwqtK2r27vCuNdtnoDsXzk8D2WczvrAJy2bGPZJvRmuUa/Q9Gv+AbZV0IHSNJD2oHtQqUeqQRhEsw==", + "version": "16.14.5", + "resolved": "https://registry.npmjs.org/npm-check-updates/-/npm-check-updates-16.14.5.tgz", + "integrity": "sha512-f7v3YzPUgadtkB2LAVhiWMjrSejJ0N8OM9JjjVfxBz2neHqmPSWQUAUA+U/p3xeXHl9bghRD6knRqBhm9dkRGg==", "dev": true, "dependencies": { "chalk": "^5.3.0", @@ -12637,6 +12543,7 @@ "semver-utils": "^1.1.4", "source-map-support": "^0.5.21", "spawn-please": "^2.0.1", + "strip-ansi": "^7.1.0", "strip-json-comments": "^5.0.1", "untildify": "^4.0.0", "update-notifier": "^6.0.2" @@ -12649,6 +12556,18 @@ "node": ">=14.14" } }, + "node_modules/npm-check-updates/node_modules/ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, "node_modules/npm-check-updates/node_modules/brace-expansion": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", @@ -12722,6 +12641,21 @@ "source-map": "^0.6.0" } }, + "node_modules/npm-check-updates/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, "node_modules/npm-check-updates/node_modules/strip-json-comments": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-5.0.1.tgz", @@ -16284,9 +16218,9 @@ } }, "node_modules/sinon": { - "version": "15.2.0", - "resolved": "https://registry.npmjs.org/sinon/-/sinon-15.2.0.tgz", - "integrity": "sha512-nPS85arNqwBXaIsFCkolHjGIkFo+Oxu9vbgmBJizLAhqe6P2o3Qmj3KCUoRkfhHtvgDhZdWD3risLHAUJ8npjw==", + "version": "16.1.0", + "resolved": "https://registry.npmjs.org/sinon/-/sinon-16.1.0.tgz", + "integrity": "sha512-ZSgzF0vwmoa8pq0GEynqfdnpEDyP1PkYmEChnkjW0Vyh8IDlyFEJ+fkMhCP0il6d5cJjPl2PUsnUSAuP5sttOQ==", "dev": true, "dependencies": { "@sinonjs/commons": "^3.0.0", @@ -16985,14 +16919,14 @@ } }, "node_modules/string.prototype.trim": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.7.tgz", - "integrity": "sha512-p6TmeT1T3411M8Cgg9wBTMRtY2q9+PNy9EV1i2lIXUN/btt763oIfxwN3RR8VU6wHX8j/1CFy0L+YuThm6bgOg==", + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz", + "integrity": "sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==", "dev": true, "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" + "define-properties": "^1.2.0", + "es-abstract": "^1.22.1" }, "engines": { "node": ">= 0.4" @@ -17848,14 +17782,14 @@ } }, "node_modules/tape": { - "version": "5.6.6", - "resolved": "https://registry.npmjs.org/tape/-/tape-5.6.6.tgz", - "integrity": "sha512-rGp2cZ3rfZ6QfTBm6yvohf8aXmDqPyzMKZwTMV12w4i+b/N2Adwlg8PlW8jLqWzlJUZhglyYaLOSrMt/ZlZkAA==", + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/tape/-/tape-5.7.0.tgz", + "integrity": "sha512-6EZoHjMDUUhet8+k32w/9onULL1U8idXKvBCnZxuZF2iFe+tMYOsKo4bpCtXbTSngZmYBnkU08TMhJwsKaHhaw==", "dev": true, "dependencies": { "@ljharb/resumer": "^0.0.1", "@ljharb/through": "^2.3.9", - "array.prototype.every": "^1.1.4", + "array.prototype.every": "^1.1.5", "call-bind": "^1.0.2", "deep-equal": "^2.2.2", "defined": "^1.0.1", @@ -17868,12 +17802,13 @@ "inherits": "^2.0.4", "is-regex": "^1.1.4", "minimist": "^1.2.8", + "mock-property": "^1.0.0", "object-inspect": "^1.12.3", "object-is": "^1.1.5", "object-keys": "^1.1.1", "object.assign": "^4.1.4", "resolve": "^2.0.0-next.4", - "string.prototype.trim": "^1.2.7" + "string.prototype.trim": "^1.2.8" }, "bin": { "tape": "bin/tape" diff --git a/package.json b/package.json index 9291c4a1..6c902579 100644 --- a/package.json +++ b/package.json @@ -69,14 +69,14 @@ "@hapi/hapi": "21.3.2", "@hapi/inert": "7.1.0", "@hapi/vision": "7.0.3", - "@mojaloop/central-ledger": "v17.2.0", + "@mojaloop/central-ledger": "v17.2.1", "@mojaloop/central-services-database": "10.7.0", "@mojaloop/central-services-error-handling": "12.0.7", "@mojaloop/central-services-health": "14.0.2", "@mojaloop/central-services-logger": "11.2.2", - "@mojaloop/central-services-shared": "18.1.1", - "@mojaloop/central-services-stream": "11.1.1", - "@mojaloop/event-sdk": "12.0.2", + "@mojaloop/central-services-shared": "18.1.2", + "@mojaloop/central-services-stream": "11.2.0", + "@mojaloop/event-sdk": "13.0.0", "@mojaloop/ml-number": "11.2.3", "@now-ims/hapi-now-auth": "2.1.0", "async": "3.2.4", @@ -96,36 +96,36 @@ "devDependencies": { "@hapi/joi": "17.1.1", "@mojaloop/central-services-metrics": "12.0.8", - "@types/lodash": "4.14.198", + "@types/lodash": "4.14.199", "ajv": "8.12.0", "ajv-keywords": "5.1.0", "audit-ci": "^6.6.1", - "axios": "1.5.0", + "axios": "1.5.1", "bluebird": "3.7.2", - "chai": "4.3.8", + "chai": "4.3.10", "chai-exclude": "2.1.0", "chai-subset": "1.6.0", - "eslint": "8.49.0", + "eslint": "8.51.0", "esm": "^3.2.25", "get-port": "7.0.0", "jest": "29.7.0", "jest-junit": "16.0.0", "node-fetch": "3.3.2", "nodemon": "3.0.1", - "npm-check-updates": "16.13.3", + "npm-check-updates": "16.14.5", "nyc": "15.1.0", "pre-commit": "1.2.2", "proxyquire": "2.1.3", "replace": "^1.2.2", "rewire": "7.0.0", - "sinon": "15.2.0", + "sinon": "16.1.0", "standard": "17.1.0", "standard-version": "^9.5.0", "supertest": "6.3.3", "swagmock": "1.0.0", "tap-spec": "^5.0.0", "tap-xunit": "2.4.1", - "tape": "5.6.6", + "tape": "5.7.0", "tapes": "4.1.0" }, "generator-swaggerize": { diff --git a/test/unit/lib/kafka/producer.test.js b/test/unit/lib/kafka/producer.test.js index 622f2901..56bdc34b 100644 --- a/test/unit/lib/kafka/producer.test.js +++ b/test/unit/lib/kafka/producer.test.js @@ -260,7 +260,10 @@ Test('Producer', producerTest => { test.end() } catch (e) { test.ok(e instanceof FSPIOPError) - test.ok(e.message === `The following Producers could not be disconnected: [{"topic":"${topicNameFailure}","error":"No producer found for topic ${topicNameFailure}"}]`) + /** + * TODO: Remove ': Sinon-provided ...' part of the error message once sinon fixes the bug that duplicates stub messages. + */ + test.ok(e.message === `The following Producers could not be disconnected: [{"topic":"${topicNameFailure}","error":"No producer found for topic ${topicNameFailure}: Sinon-provided No producer found for topic ${topicNameFailure}"}]`) test.end() } }) From 5c69d2d446dc30587d3ecd1db8a8d5c5be253831 Mon Sep 17 00:00:00 2001 From: Aaron Reynoza Date: Wed, 11 Oct 2023 10:35:09 -0600 Subject: [PATCH 2/3] add advisory to audit ci --- audit-ci.jsonc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/audit-ci.jsonc b/audit-ci.jsonc index 5ea9abda..94208002 100644 --- a/audit-ci.jsonc +++ b/audit-ci.jsonc @@ -22,6 +22,7 @@ "GHSA-2mvq-xp48-4c77", "GHSA-w5p7-h5w8-2hfq", "GHSA-qgmg-gppg-76g5", - "GHSA-p9pc-299p-vxgp" + "GHSA-p9pc-299p-vxgp", + "GHSA-7fh5-64p2-3v2j" ] } \ No newline at end of file From 41848d622ad0cc79abd26547ae335dfefc652e60 Mon Sep 17 00:00:00 2001 From: Aaron Reynoza Date: Wed, 11 Oct 2023 15:05:14 -0600 Subject: [PATCH 3/3] fix sinon throw error --- test/unit/lib/kafka/producer.test.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/unit/lib/kafka/producer.test.js b/test/unit/lib/kafka/producer.test.js index 56bdc34b..8a6ac58e 100644 --- a/test/unit/lib/kafka/producer.test.js +++ b/test/unit/lib/kafka/producer.test.js @@ -243,7 +243,7 @@ Test('Producer', producerTest => { const getProducerStub = sandbox.stub() try { getProducerStub.returns(new KafkaProducer({})) - getProducerStub.withArgs(topicNameFailure).throws(`No producer found for topic ${topicNameFailure}`) + getProducerStub.withArgs(topicNameFailure).throws(new Error(`No producer found for topic ${topicNameFailure}`)) // lets rewire the producer import const KafkaProducerProxy = rewire('../../../../src/lib/kafka/producer') @@ -260,10 +260,7 @@ Test('Producer', producerTest => { test.end() } catch (e) { test.ok(e instanceof FSPIOPError) - /** - * TODO: Remove ': Sinon-provided ...' part of the error message once sinon fixes the bug that duplicates stub messages. - */ - test.ok(e.message === `The following Producers could not be disconnected: [{"topic":"${topicNameFailure}","error":"No producer found for topic ${topicNameFailure}: Sinon-provided No producer found for topic ${topicNameFailure}"}]`) + test.ok(e.message === `The following Producers could not be disconnected: [{"topic":"${topicNameFailure}","error":"Error: No producer found for topic ${topicNameFailure}"}]`) test.end() } })