From 4cf1a9cbf9181983039f96f43d504679568a6470 Mon Sep 17 00:00:00 2001 From: Miguel de Barros Date: Wed, 12 May 2021 12:13:58 +0200 Subject: [PATCH 1/2] fix(#2182): regex validations against swagger interface spec no longer working - Updated central-services-shared dependency - Bump to version --- package-lock.json | 81 +++++++++++++++++++++++++++-------------------- package.json | 6 ++-- 2 files changed, 50 insertions(+), 37 deletions(-) diff --git a/package-lock.json b/package-lock.json index d0b3d6bd..e14a8c6f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "quoting-service", - "version": "12.0.2", + "version": "12.0.3", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -1323,23 +1323,23 @@ } }, "@mojaloop/central-services-shared": { - "version": "11.7.0", - "resolved": "https://registry.npmjs.org/@mojaloop/central-services-shared/-/central-services-shared-11.7.0.tgz", - "integrity": "sha512-43+TOkFmsw3+yQeSOyBxVcsRzZiReSGtrZowBko3h0dDhn8IN5u7LjPQz3npprnseEB6pcBPfwyut3HLRhZhHA==", + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@mojaloop/central-services-shared/-/central-services-shared-12.0.0.tgz", + "integrity": "sha512-Dy/BcQNO0uMxXV0DI04NQUVPYouJOd0dQj3sdZXN7lFw9LCGH55b5a2tkkYFiAxO9Zs11Bc/j1y/826F0yCVhQ==", "requires": { "@hapi/catbox": "11.1.1", "@hapi/catbox-memory": "5.0.1", - "@mojaloop/central-services-error-handling": "11.2.0", + "@mojaloop/central-services-error-handling": "11.3.0", "@mojaloop/central-services-logger": "10.6.0", "@mojaloop/central-services-metrics": "9.5.0", "@mojaloop/event-sdk": "10.6.0", - "ajv": "8.2.0", + "ajv": "8.3.0", "ajv-keywords": "5.0.0", "axios": "0.21.1", "base64url": "3.0.1", "clone": "2.1.2", "data-urls": "2.0.0", - "dotenv": "8.2.0", + "dotenv": "9.0.2", "env-var": "7.0.0", "event-stream": "4.0.1", "immutable": "3.8.2", @@ -1354,21 +1354,26 @@ "yaml": "1.10.2" }, "dependencies": { - "ajv": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.2.0.tgz", - "integrity": "sha512-WSNGFuyWd//XO8n/m/EaOlNLtO0yL8EXT/74LqT4khdhpZjP7lkj/kT5uwRmGitKEVp/Oj7ZUHeGfPtgHhQ5CA==", + "@mojaloop/central-services-error-handling": { + "version": "11.3.0", + "resolved": "https://registry.npmjs.org/@mojaloop/central-services-error-handling/-/central-services-error-handling-11.3.0.tgz", + "integrity": "sha512-Ctl3ad8Uc2kpquIq+nc90s+CdXoHlrWscoBCRe7/VOxLlIi+kRgXWtJ/UWD3dJs8t0f8/69KCN9Qgve4lEyuqA==", "requires": { - "fast-deep-equal": "^3.1.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.2.2" + "@mojaloop/sdk-standard-components": "15.9.0", + "lodash": "4.17.21" } }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" + "@mojaloop/sdk-standard-components": { + "version": "15.9.0", + "resolved": "https://registry.npmjs.org/@mojaloop/sdk-standard-components/-/sdk-standard-components-15.9.0.tgz", + "integrity": "sha512-ORELbkNuzPS2ISZniQcvSDM4/UXQDoGh+9/9AWPkeYbLA1gc9uTfiLOiur0NyzGXKKkLbJbQntstmK3mlfF3RQ==", + "requires": { + "base64url": "3.0.1", + "fast-safe-stringify": "^2.0.7", + "ilp-packet": "2.2.0", + "jsonwebtoken": "8.5.1", + "jws": "4.0.0" + } }, "lodash": { "version": "4.17.21", @@ -1953,9 +1958,9 @@ } }, "ajv": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.2.0.tgz", - "integrity": "sha512-WSNGFuyWd//XO8n/m/EaOlNLtO0yL8EXT/74LqT4khdhpZjP7lkj/kT5uwRmGitKEVp/Oj7ZUHeGfPtgHhQ5CA==", + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.3.0.tgz", + "integrity": "sha512-RYE7B5An83d7eWnDR8kbdaIFqmKCNsP16ay1hDbJEU+sa0e3H9SebskCt0Uufem6cfAVu7Col6ubcn/W+Sm8/Q==", "requires": { "fast-deep-equal": "^3.1.1", "json-schema-traverse": "^1.0.0", @@ -3076,16 +3081,24 @@ "dev": true }, "cheerio": { - "version": "1.0.0-rc.6", - "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.6.tgz", - "integrity": "sha512-hjx1XE1M/D5pAtMgvWwE21QClmAEeGHOIDfycgmndisdNgI6PE1cGRQkMGBcsbUbmEQyWu5PJLUcAOjtQS8DWw==", + "version": "1.0.0-rc.9", + "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.0.0-rc.9.tgz", + "integrity": "sha512-QF6XVdrLONO6DXRF5iaolY+odmhj2CLj+xzNod7INPWMi/x9X4SOylH0S/vaPpX+AUU6t04s34SQNh7DbkuCng==", "requires": { - "cheerio-select": "^1.3.0", + "cheerio-select": "^1.4.0", "dom-serializer": "^1.3.1", - "domhandler": "^4.1.0", + "domhandler": "^4.2.0", "htmlparser2": "^6.1.0", "parse5": "^6.0.1", - "parse5-htmlparser2-tree-adapter": "^6.0.1" + "parse5-htmlparser2-tree-adapter": "^6.0.1", + "tslib": "^2.2.0" + }, + "dependencies": { + "tslib": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.2.0.tgz", + "integrity": "sha512-gS9GVHRU+RGn5KQM2rllAlR3dU6m7AcpJKdtH8gFvQiC4Otgk98XnmMU+nZenHt/+VhnBPWwgrJsyrdcw6i23w==" + } } }, "cheerio-select": { @@ -3508,9 +3521,9 @@ "dev": true }, "core-js": { - "version": "3.11.2", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.11.2.tgz", - "integrity": "sha512-3tfrrO1JpJSYGKnd9LKTBPqgUES/UYiCzMKeqwR1+jF16q4kD1BY2NvqkfuzXwQ6+CIWm55V9cjD7PQd+hijdw==" + "version": "3.12.1", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.12.1.tgz", + "integrity": "sha512-Ne9DKPHTObRuB09Dru5AjwKjY4cJHVGu+y5f7coGn1E9Grkc3p2iBwE9AI/nJzsE29mQF7oq+mhYYRqOMFN1Bw==" }, "core-util-is": { "version": "1.0.2", @@ -3894,9 +3907,9 @@ } }, "dotenv": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz", - "integrity": "sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==" + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-9.0.2.tgz", + "integrity": "sha512-I9OvvrHp4pIARv4+x9iuewrWycX6CcZtoAu1XrzPxc5UygMJXJZYmBsynku8IkrJwgypE5DGNjDPmPRhDCptUg==" }, "drange": { "version": "1.1.1", diff --git a/package.json b/package.json index bf4051c7..a2ea0566 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "quoting-service", "description": "Quoting Service hosted by a scheme", "license": "Apache-2.0", - "version": "12.0.2", + "version": "12.0.3", "author": "ModusBox", "contributors": [ "Georgi Georgiev ", @@ -65,11 +65,11 @@ "@hapi/vision": "6.0.1", "@mojaloop/central-services-error-handling": "11.2.0", "@mojaloop/central-services-logger": "10.6.0", - "@mojaloop/central-services-shared": "11.7.0", + "@mojaloop/central-services-shared": "12.0.0", "@mojaloop/event-sdk": "10.6.0", "@mojaloop/ml-number": "11.0.0", "@mojaloop/sdk-standard-components": "10.3.2", - "ajv": "8.2.0", + "ajv": "8.3.0", "axios": "0.21.1", "blipp": "4.0.2", "eslint-config-standard": "16.0.2", From 56a9c0f609a486e062e59e6cd10d7252154688d5 Mon Sep 17 00:00:00 2001 From: Miguel de Barros Date: Wed, 12 May 2021 12:22:20 +0200 Subject: [PATCH 2/2] Updated dependencies and fixed audit-resolve issues --- audit-resolve.json | 40 ++++++++ package-lock.json | 244 ++++++++++++--------------------------------- package.json | 13 ++- 3 files changed, 108 insertions(+), 189 deletions(-) diff --git a/audit-resolve.json b/audit-resolve.json index 987fdb11..f1ce40f3 100644 --- a/audit-resolve.json +++ b/audit-resolve.json @@ -4,6 +4,46 @@ "decision": "ignore", "madeAt": 1620223161085, "expiresAt": 1620827942685 + }, + "1673|@mojaloop/central-services-shared>openapi-backend>lodash": { + "decision": "ignore", + "madeAt": 1620814904190, + "expiresAt": 1621419688940 + }, + "1673|@mojaloop/central-services-shared>openapi-backend>mock-json-schema>lodash": { + "decision": "ignore", + "madeAt": 1620814904190, + "expiresAt": 1621419688940 + }, + "1673|@mojaloop/central-services-shared>shins>sanitize-html>lodash": { + "decision": "ignore", + "madeAt": 1620814904191, + "expiresAt": 1621419688940 + }, + "1673|@mojaloop/central-services-shared>@mojaloop/event-sdk>lodash": { + "decision": "ignore", + "madeAt": 1620814912544, + "expiresAt": 1621419688940 + }, + "1673|@mojaloop/event-sdk>lodash": { + "decision": "ignore", + "madeAt": 1620814912544, + "expiresAt": 1621419688940 + }, + "1675|@mojaloop/central-services-shared>shins>sanitize-html": { + "decision": "ignore", + "madeAt": 1620814917810, + "expiresAt": 1621419688940 + }, + "1676|@mojaloop/central-services-shared>shins>sanitize-html": { + "decision": "ignore", + "madeAt": 1620814917810, + "expiresAt": 1621419688940 + }, + "1693|@mojaloop/central-services-shared>shins>sanitize-html>postcss": { + "decision": "ignore", + "madeAt": 1620814920118, + "expiresAt": 1621419688940 } }, "rules": {}, diff --git a/package-lock.json b/package-lock.json index e14a8c6f..630903ba 100644 --- a/package-lock.json +++ b/package-lock.json @@ -606,9 +606,9 @@ } }, "@hapi/hapi": { - "version": "20.1.2", - "resolved": "https://registry.npmjs.org/@hapi/hapi/-/hapi-20.1.2.tgz", - "integrity": "sha512-yLppH93as7vw+uaAMVcHEB13eBojuzGhcX948y/CGukNRAlnPV+c1EJGbYPLXVffpH8wCNsI7TrTaeifSFS6Vw==", + "version": "20.1.3", + "resolved": "https://registry.npmjs.org/@hapi/hapi/-/hapi-20.1.3.tgz", + "integrity": "sha512-ImOkrixD1kPUuvmSklwytPQ0sG8AtqydwU0JzvITLE6Z7wPMVf9i9LIMWywKPxHTNhCZ6W3oKP9yRjqM/IkHMQ==", "requires": { "@hapi/accept": "^5.0.1", "@hapi/ammo": "^5.0.1", @@ -619,7 +619,7 @@ "@hapi/catbox-memory": "^5.0.0", "@hapi/heavy": "^7.0.1", "@hapi/hoek": "^9.0.4", - "@hapi/mimos": "^5.0.0", + "@hapi/mimos": "^6.0.0", "@hapi/podium": "^4.1.1", "@hapi/shot": "^5.0.5", "@hapi/somever": "^3.0.0", @@ -671,9 +671,9 @@ } }, "@hapi/mimos": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@hapi/mimos/-/mimos-5.0.0.tgz", - "integrity": "sha512-EVS6wJYeE73InTlPWt+2e3Izn319iIvffDreci3qDNT+t3lA5ylJ0/SoTaID8e0TPNUkHUSsgJZXEmLHvoYzrA==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@hapi/mimos/-/mimos-6.0.0.tgz", + "integrity": "sha512-Op/67tr1I+JafN3R3XN5DucVSxKRT/Tc+tUszDwENoNpolxeXkhrJ2Czt6B6AAqrespHoivhgZBWYSuANN9QXg==", "requires": { "@hapi/hoek": "9.x.x", "mime-db": "1.x.x" @@ -728,9 +728,9 @@ } }, "@hapi/somever": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@hapi/somever/-/somever-3.0.0.tgz", - "integrity": "sha512-Upw/kmKotC9iEmK4y047HMYe4LDKsE5NWfjgX41XNKmFvxsQL7OiaCWVhuyyhU0ShDGBfIAnCH8jZr49z/JzZA==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@hapi/somever/-/somever-3.0.1.tgz", + "integrity": "sha512-4ZTSN3YAHtgpY/M4GOtHUXgi6uZtG9nEZfNI6QrArhK0XN/RDVgijlb9kOmXwCR5VclDSkBul9FBvhSuKXx9+w==", "requires": { "@hapi/bounce": "2.x.x", "@hapi/hoek": "9.x.x" @@ -1277,9 +1277,9 @@ "optional": true }, "@mojaloop/central-services-error-handling": { - "version": "11.2.0", - "resolved": "https://registry.npmjs.org/@mojaloop/central-services-error-handling/-/central-services-error-handling-11.2.0.tgz", - "integrity": "sha512-5k/RGhraToQOeoQjm35EUA0/+b7UWIw0OMykFxbgw61WTZopJCCAFOupQxQqk9hvccdjFSLa4uvM6VMuOj5UJw==", + "version": "11.3.0", + "resolved": "https://registry.npmjs.org/@mojaloop/central-services-error-handling/-/central-services-error-handling-11.3.0.tgz", + "integrity": "sha512-Ctl3ad8Uc2kpquIq+nc90s+CdXoHlrWscoBCRe7/VOxLlIi+kRgXWtJ/UWD3dJs8t0f8/69KCN9Qgve4lEyuqA==", "requires": { "@mojaloop/sdk-standard-components": "15.9.0", "lodash": "4.17.21" @@ -1475,9 +1475,9 @@ } }, "@npmcli/git": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/@npmcli/git/-/git-2.0.8.tgz", - "integrity": "sha512-LPnzyBZ+1p7+JzHVwwKycMF8M3lr1ze3wxGRnxn/QxJtk++Y3prSJQrdBDGCxJyRpFsup6J3lrRBVYBhJVrM8Q==", + "version": "2.0.9", + "resolved": "https://registry.npmjs.org/@npmcli/git/-/git-2.0.9.tgz", + "integrity": "sha512-hTMbMryvOqGLwnmMBKs5usbPsJtyEsMsgXwJbmNrsEuQQh1LAIMDU77IoOrwkCg+NgQWl+ySlarJASwM3SutCA==", "dev": true, "requires": { "@npmcli/promise-spawn": "^1.3.2", @@ -4205,13 +4205,13 @@ } }, "eslint": { - "version": "7.25.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.25.0.tgz", - "integrity": "sha512-TVpSovpvCNpLURIScDRB6g5CYu/ZFq9GfX2hLNIV4dSBKxIWojeDODvYl3t0k0VtMxYeR8OXPCFE5+oHMlGfhw==", + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.26.0.tgz", + "integrity": "sha512-4R1ieRf52/izcZE7AlLy56uIHHDLT74Yzz2Iv2l6kDaYvEu9x+wMB5dZArVL8SYGXSYV2YAg70FcW5Y5nGGNIg==", "dev": true, "requires": { "@babel/code-frame": "7.12.11", - "@eslint/eslintrc": "^0.4.0", + "@eslint/eslintrc": "^0.4.1", "ajv": "^6.10.0", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", @@ -4259,9 +4259,9 @@ } }, "@eslint/eslintrc": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.0.tgz", - "integrity": "sha512-2ZPCc+uNbjV5ERJr+aKSPRwZgKd2z11x0EgLvb1PURmUrn9QNRXFqje0Ldq454PfAVyaJYyrDvvIKSFP4NnBog==", + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.1.tgz", + "integrity": "sha512-5v7TDE9plVhvxQeWLXDTvFvJBdH6pEsdnl2g/dAptmuFEPedQ4Erq5rsDsX+mvAM610IhNaO2W5V1dOOnDKxkQ==", "dev": true, "requires": { "ajv": "^6.12.4", @@ -4296,14 +4296,6 @@ "fast-json-stable-stringify": "^2.0.0", "json-schema-traverse": "^0.4.1", "uri-js": "^4.2.2" - }, - "dependencies": { - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - } } }, "ansi-regex": { @@ -4411,9 +4403,9 @@ "dev": true }, "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", "dev": true }, "lodash": { @@ -4496,14 +4488,13 @@ "dev": true }, "table": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/table/-/table-6.6.0.tgz", - "integrity": "sha512-iZMtp5tUvcnAdtHpZTWLPF0M7AgiQsURR2DwmxnJwSy8I3+cY+ozzVvYha3BOLG2TB+L0CqjIz+91htuj6yCXg==", + "version": "6.7.0", + "resolved": "https://registry.npmjs.org/table/-/table-6.7.0.tgz", + "integrity": "sha512-SAM+5p6V99gYiiy2gT5ArdzgM1dLDed0nkrWmG6Fry/bUS/m9x83BwpJUOf1Qj/x2qJd+thL6IkIx7qPGRxqBw==", "dev": true, "requires": { "ajv": "^8.0.1", "lodash.clonedeep": "^4.5.0", - "lodash.flatten": "^4.4.0", "lodash.truncate": "^4.4.2", "slice-ansi": "^4.0.0", "string-width": "^4.2.0", @@ -4511,9 +4502,9 @@ }, "dependencies": { "ajv": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.2.0.tgz", - "integrity": "sha512-WSNGFuyWd//XO8n/m/EaOlNLtO0yL8EXT/74LqT4khdhpZjP7lkj/kT5uwRmGitKEVp/Oj7ZUHeGfPtgHhQ5CA==", + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.3.0.tgz", + "integrity": "sha512-RYE7B5An83d7eWnDR8kbdaIFqmKCNsP16ay1hDbJEU+sa0e3H9SebskCt0Uufem6cfAVu7Col6ubcn/W+Sm8/Q==", "dev": true, "requires": { "fast-deep-equal": "^3.1.1", @@ -4521,6 +4512,12 @@ "require-from-string": "^2.0.2", "uri-js": "^4.2.2" } + }, + "json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true } } }, @@ -5578,7 +5575,8 @@ "format-util": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/format-util/-/format-util-1.0.5.tgz", - "integrity": "sha512-varLbTj0e0yVyRpqQhuWV+8hlePAgaoFRhNFj50BNjEIrw1/DphHSObtqwskVCPWNgzwPoQrZAbfa/SBiicNeg==" + "integrity": "sha512-varLbTj0e0yVyRpqQhuWV+8hlePAgaoFRhNFj50BNjEIrw1/DphHSObtqwskVCPWNgzwPoQrZAbfa/SBiicNeg==", + "dev": true }, "forwarded": { "version": "0.1.2", @@ -5933,45 +5931,6 @@ } } }, - "handlebars": { - "version": "4.7.7", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.7.tgz", - "integrity": "sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==", - "requires": { - "minimist": "^1.2.5", - "neo-async": "^2.6.0", - "source-map": "^0.6.1", - "uglify-js": "^3.1.4", - "wordwrap": "^1.0.0" - }, - "dependencies": { - "uglify-js": { - "version": "3.13.5", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.13.5.tgz", - "integrity": "sha512-xtB8yEqIkn7zmOyS2zUNBsYCBRhDkvlNxMMY2smuJ/qA8NCHeQvKCF3i9Z4k8FJH4+PJvZRtMrPynfZ75+CSZw==", - "optional": true - }, - "wordwrap": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", - "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=" - } - } - }, - "hapi-swagger": { - "version": "14.1.2", - "resolved": "https://registry.npmjs.org/hapi-swagger/-/hapi-swagger-14.1.2.tgz", - "integrity": "sha512-0mu7z4Qpq+RC3qOBUMpqfNHY25CZAOCozGmXBUvcF3IfQ4weHBK6uRdfIHjRgfbUghLw4D8Kykb5O9uEdK+Vag==", - "requires": { - "@hapi/boom": "^9.1.0", - "@hapi/hoek": "^9.0.2", - "handlebars": "^4.5.3", - "http-status": "^1.0.1", - "json-schema-ref-parser": "^6.1.0", - "swagger-parser": "4.0.2", - "swagger-ui-dist": "^3.47.1" - } - }, "har-schema": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", @@ -6223,11 +6182,6 @@ "sshpk": "^1.7.0" } }, - "http-status": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/http-status/-/http-status-1.5.0.tgz", - "integrity": "sha512-wcGvY31MpFNHIkUcXHHnvrE4IKYlpvitJw5P/1u892gMBAM46muQ+RH7UN1d+Ntnfx5apnOnVY6vcLmrWHOLwg==" - }, "http2-client": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/http2-client/-/http2-client-1.3.3.tgz", @@ -8411,16 +8365,6 @@ "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", "dev": true }, - "json-schema-ref-parser": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/json-schema-ref-parser/-/json-schema-ref-parser-6.1.0.tgz", - "integrity": "sha512-pXe9H1m6IgIpXmE5JSb8epilNTGsmTb2iPohAXpOdhqGFbQjNeHHsZxU+C8w6T81GZxSPFLeUoqDJmzxx5IGuw==", - "requires": { - "call-me-maybe": "^1.0.1", - "js-yaml": "^3.12.1", - "ono": "^4.0.11" - } - }, "json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", @@ -8587,9 +8531,9 @@ "dev": true }, "knex": { - "version": "0.95.4", - "resolved": "https://registry.npmjs.org/knex/-/knex-0.95.4.tgz", - "integrity": "sha512-IwUcHr6AkZPL707mJCOal1P4jlgxKMy17IMjJm5W23yrkM1jO2/APBM1eyw/MhQ61w8T7NpzGD+LEkr8M46mWw==", + "version": "0.95.5", + "resolved": "https://registry.npmjs.org/knex/-/knex-0.95.5.tgz", + "integrity": "sha512-h6cuN78nSCqt5KLb06HnLE2Oj2svMf3l2YUSYpLnJuwXetGysn7KgmFJU1RDdl5dftvLAEEfA8IvqQIalgcnag==", "requires": { "colorette": "1.2.1", "commander": "^7.1.0", @@ -8797,12 +8741,6 @@ "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", "dev": true }, - "lodash.flatten": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz", - "integrity": "sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8=", - "dev": true - }, "lodash.flattendeep": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz", @@ -8827,7 +8765,8 @@ "lodash.isequal": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", - "integrity": "sha1-QVxEePK8wwEgwizhDtMib30+GOA=" + "integrity": "sha1-QVxEePK8wwEgwizhDtMib30+GOA=", + "dev": true }, "lodash.isinteger": { "version": "4.0.4", @@ -9591,11 +9530,6 @@ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==" }, - "neo-async": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==" - }, "nice-try": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", @@ -9862,19 +9796,19 @@ "dev": true }, "npm-audit-resolver": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/npm-audit-resolver/-/npm-audit-resolver-2.2.1.tgz", - "integrity": "sha512-9Jo5EdxREaXRrFm7eiuT1qu7fXKDfO+oiu+EgvJ/JCd2PIAgzVGF+xFoNK9AnyUsMFvSTdJM6+YlgUgF/N86GA==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/npm-audit-resolver/-/npm-audit-resolver-2.3.0.tgz", + "integrity": "sha512-yG7Hnbo6GbmokmsVoQgrK7hVtn0SW6zhkDUldDTNaz+3/q7jWf127tBX2Sd73P/Qml1Wd7MfTuAbEXshyNZxjQ==", "dev": true, "requires": { "audit-resolve-core": "^1.1.8", "chalk": "^2.4.2", - "djv": "^2.1.2", + "djv": "^2.1.4", "jsonlines": "^0.1.1", "read": "^1.0.7", "spawn-shell": "^2.1.0", "yargs-parser": "^18.1.3", - "yargs-unparser": "^1.6.3" + "yargs-unparser": "^1.6.4" }, "dependencies": { "camelcase": { @@ -9904,9 +9838,9 @@ } }, "npm-check-updates": { - "version": "11.5.10", - "resolved": "https://registry.npmjs.org/npm-check-updates/-/npm-check-updates-11.5.10.tgz", - "integrity": "sha512-+nKrlBaDglNQWEV5+bx6ZMJAc6VA/aKbqtKs+fr6ewcedF2hfMxHMZe5b8mW9SUu+bjtt/SrPHxkoAiepZIFpA==", + "version": "11.5.11", + "resolved": "https://registry.npmjs.org/npm-check-updates/-/npm-check-updates-11.5.11.tgz", + "integrity": "sha512-tVd7bH96aBr6FDeUMeQbXkzbSGAq7CP6jQmX/pp1pkfjOHhcYKFqXpe56sRJkjMuZ1zkBC8hetaT7gPu9q776w==", "dev": true, "requires": { "chalk": "^4.1.1", @@ -10741,6 +10675,7 @@ "version": "4.0.11", "resolved": "https://registry.npmjs.org/ono/-/ono-4.0.11.tgz", "integrity": "sha512-jQ31cORBFE6td25deYeD80wxKBMj+zBmHTrVxnc6CKhx8gho6ipmWM5zj/oeoqioZ99yqBls9Z/9Nss7J26G2g==", + "dev": true, "requires": { "format-util": "^1.0.3" } @@ -11038,9 +10973,9 @@ "dev": true }, "npm-packlist": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-2.1.5.tgz", - "integrity": "sha512-KCfK3Vi2F+PH1klYauoQzg81GQ8/GGjQRKYY6tRnpQUPKTs/1gBZSRWtTEd7jGdSn1LZL7gpAmJT+BcS55k2XQ==", + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-2.2.2.tgz", + "integrity": "sha512-Jt01acDvJRhJGthnUJVF/w6gumWOZxO7IkpY/lsX9//zqQgnF7OJaxgQXcerd4uQOLu7W5bkb4mChL9mdfm+Zg==", "dev": true, "requires": { "glob": "^7.1.6", @@ -13389,45 +13324,14 @@ "swagger-methods": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/swagger-methods/-/swagger-methods-1.0.8.tgz", - "integrity": "sha512-G6baCwuHA+C5jf4FNOrosE4XlmGsdjbOjdBK4yuiDDj/ro9uR4Srj3OR84oQMT8F3qKp00tYNv0YN730oTHPZA==" - }, - "swagger-parser": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/swagger-parser/-/swagger-parser-4.0.2.tgz", - "integrity": "sha512-hKslog8LhsXICJ1sMLsA8b8hQ3oUEX0457aLCFJc4zz6m8drmnCtyjbVqS5HycaKFOKVolJc2wFoe8KDPWfp4g==", - "requires": { - "call-me-maybe": "^1.0.1", - "debug": "^3.1.0", - "json-schema-ref-parser": "^4.1.0", - "ono": "^4.0.3", - "swagger-methods": "^1.0.4", - "swagger-schema-official": "2.0.0-bab6bed", - "z-schema": "^3.19.0" - }, - "dependencies": { - "json-schema-ref-parser": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/json-schema-ref-parser/-/json-schema-ref-parser-4.1.1.tgz", - "integrity": "sha512-lByoCHZ6H2zgb6NtsXIqtzQ+6Ji7iVqnrhWxsXLhF+gXmgu6E8+ErpDxCMR439MUG1nfMjWI2HAoM8l0XgSNhw==", - "requires": { - "call-me-maybe": "^1.0.1", - "debug": "^3.1.0", - "js-yaml": "^3.10.0", - "ono": "^4.0.3" - } - } - } + "integrity": "sha512-G6baCwuHA+C5jf4FNOrosE4XlmGsdjbOjdBK4yuiDDj/ro9uR4Srj3OR84oQMT8F3qKp00tYNv0YN730oTHPZA==", + "dev": true }, "swagger-schema-official": { "version": "2.0.0-bab6bed", "resolved": "https://registry.npmjs.org/swagger-schema-official/-/swagger-schema-official-2.0.0-bab6bed.tgz", "integrity": "sha1-cAcEaNbSl3ylI3suUZyn0Gouo/0=" }, - "swagger-ui-dist": { - "version": "3.48.0", - "resolved": "https://registry.npmjs.org/swagger-ui-dist/-/swagger-ui-dist-3.48.0.tgz", - "integrity": "sha512-UgpKIQW5RAb4nYRG8B615blmQzct0DNuvtX4904Fe2aMWAVfWeKHKl4kwzFXuBJgr2WYWTwM1PnhZ+qqkLrpPg==" - }, "swagger2openapi": { "version": "6.2.3", "resolved": "https://registry.npmjs.org/swagger2openapi/-/swagger2openapi-6.2.3.tgz", @@ -14315,11 +14219,6 @@ "builtins": "^1.0.3" } }, - "validator": { - "version": "10.11.0", - "resolved": "https://registry.npmjs.org/validator/-/validator-10.11.0.tgz", - "integrity": "sha512-X/p3UZerAIsbBfN/IwahhYaBbY68EN/UQBWHtsbXGT5bfrH/p4NQzUCG1kF/rtKaNpnJ7jAu6NGTdSNtyNIXMw==" - }, "vary": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", @@ -14906,9 +14805,9 @@ } }, "y18n": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.1.tgz", - "integrity": "sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", "dev": true }, "yargs": { @@ -14947,25 +14846,6 @@ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", "dev": true - }, - "z-schema": { - "version": "3.25.1", - "resolved": "https://registry.npmjs.org/z-schema/-/z-schema-3.25.1.tgz", - "integrity": "sha512-7tDlwhrBG+oYFdXNOjILSurpfQyuVgkRe3hB2q8TEssamDHB7BbLWYkYO98nTn0FibfdFroFKDjndbgufAgS/Q==", - "requires": { - "commander": "^2.7.1", - "core-js": "^2.5.7", - "lodash.get": "^4.0.0", - "lodash.isequal": "^4.0.0", - "validator": "^10.0.0" - }, - "dependencies": { - "core-js": { - "version": "2.6.12", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.12.tgz", - "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==" - } - } } } } diff --git a/package.json b/package.json index a2ea0566..11429e6e 100644 --- a/package.json +++ b/package.json @@ -60,10 +60,10 @@ }, "dependencies": { "@hapi/good": "9.0.1", - "@hapi/hapi": "20.1.2", + "@hapi/hapi": "20.1.3", "@hapi/inert": "6.0.3", "@hapi/vision": "6.0.1", - "@mojaloop/central-services-error-handling": "11.2.0", + "@mojaloop/central-services-error-handling": "11.3.0", "@mojaloop/central-services-logger": "10.6.0", "@mojaloop/central-services-shared": "12.0.0", "@mojaloop/event-sdk": "10.6.0", @@ -76,10 +76,9 @@ "event-stream": "4.0.1", "good-console": "8.0.0", "good-squeeze": "5.1.0", - "hapi-swagger": "14.1.2", "joi": "17.4.0", "json-rules-engine": "5.0.2", - "knex": "0.95.4", + "knex": "0.95.5", "memory-cache": "0.2.0", "minimist": "1.2.5", "mysql": "2.18.1", @@ -88,11 +87,11 @@ "rc": "1.2.8" }, "devDependencies": { - "eslint": "7.25.0", + "eslint": "7.26.0", "jest": "26.6.3", "jest-junit": "12.0.0", - "npm-audit-resolver": "2.2.1", - "npm-check-updates": "11.5.10", + "npm-audit-resolver": "2.3.0", + "npm-check-updates": "11.5.11", "nyc": "15.1.0", "pre-commit": "1.2.2", "proxyquire": "2.1.3",