diff --git a/package-lock.json b/package-lock.json index e0e9674..53d50e4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,18 +11,18 @@ "dependencies": { "@restorecommerce/chassis-srv": "^1.1.2", "@restorecommerce/cluster-service": "^1.0.1", - "@restorecommerce/grpc-client": "^1.0.3", - "@restorecommerce/kafka-client": "^1.0.4", + "@restorecommerce/grpc-client": "^2.0.1", + "@restorecommerce/kafka-client": "^1.0.8", "@restorecommerce/logger": "^1.2.1", "@restorecommerce/mailer": "^1.0.1", - "@restorecommerce/rc-grpc-clients": "^2.0.1", + "@restorecommerce/rc-grpc-clients": "^3.1.0", "@restorecommerce/service-config": "^1.0.3", "lodash": "^4.17.21", "retry": "^0.13.1" }, "devDependencies": { "@types/mocha": "^10.0.0", - "@types/node": "^18.11.6", + "@types/node": "^20.2.5", "@typescript-eslint/eslint-plugin": "^5.41.0", "@typescript-eslint/eslint-plugin-tslint": "^5.41.0", "@typescript-eslint/parser": "^5.41.0", @@ -34,10 +34,10 @@ "nodemon": "^2.0.20", "npm-run-all": "^4.1.5", "nyc": "^15.1.0", - "rimraf": "^3.0.2", + "rimraf": "^5.0.1", "should": "^13.2.3", "ts-node": "^10.9.1", - "typescript": "^4.8.4" + "typescript": "^5.1.3" }, "engines": { "node": ">= 18.0.0" @@ -698,6 +698,102 @@ "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", "dev": true }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@isaacs/cliui/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/@isaacs/cliui/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "node_modules/@isaacs/cliui/node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@isaacs/cliui/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/@isaacs/cliui/node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, "node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", @@ -939,6 +1035,16 @@ "node": ">=14" } }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, + "optional": true, + "engines": { + "node": ">=14" + } + }, "node_modules/@protobufjs/aspromise": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", @@ -1078,46 +1184,6 @@ "node": ">= 16.0.0" } }, - "node_modules/@restorecommerce/chassis-srv/node_modules/@restorecommerce/grpc-client": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@restorecommerce/grpc-client/-/grpc-client-2.0.1.tgz", - "integrity": "sha512-pd+nRyPxL/2zVPa4lMyQXefUYApiZrN+iYp1MqNAS73Azpy5+UHmJHaPpRi0TDFQE9FlCuh6eybSzQ3HAanp1w==", - "dependencies": { - "@grpc/grpc-js": "^1.8.14", - "@grpc/proto-loader": "^0.7.7", - "@restorecommerce/logger": "^1.2.3", - "cls-rtracer": "^2.6.3", - "lodash": "^4.17.21", - "nice-grpc": "^2.1.4", - "nice-grpc-client-middleware-deadline": "^2.0.6", - "protobufjs": "^7.2.3", - "retry": "^0.13.1", - "rxjs": "^7.8.1", - "uuid": "^9.0.0", - "winston": "^3.9.0" - }, - "engines": { - "node": ">= 12.18.0" - } - }, - "node_modules/@restorecommerce/chassis-srv/node_modules/@restorecommerce/rc-grpc-clients": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@restorecommerce/rc-grpc-clients/-/rc-grpc-clients-3.0.1.tgz", - "integrity": "sha512-qbXLyus9YEi+ulzFjEPaj+lPXknvwW1MFi8jIgbf2+3XVxSuUI89iJunQzo4JVB8wrBYIVjIbebzt51ptffJIw==", - "dependencies": { - "@restorecommerce/grpc-client": "^2.0.1", - "@types/google-protobuf": "^3.15.6", - "google-protobuf": "^3.21.2", - "nice-grpc": "^2.1.4", - "nice-grpc-common": "^2.0.2", - "protobufjs": "^7.2.3", - "rxjs": "^7.8.1", - "ts-proto-descriptors": "^1.9.0" - }, - "engines": { - "node": ">= 12.18.0" - } - }, "node_modules/@restorecommerce/cluster-service": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@restorecommerce/cluster-service/-/cluster-service-1.0.2.tgz", @@ -1131,48 +1197,6 @@ } }, "node_modules/@restorecommerce/grpc-client": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@restorecommerce/grpc-client/-/grpc-client-1.0.3.tgz", - "integrity": "sha512-CRyoWRu0asrnZ4K1UMrisS8Y1wT6wMJG+zLvXTbBxJgzpbUL1ERi8R/hi5gD2F96EkXvvMWkRa3nWDgnrwG1jQ==", - "dependencies": { - "@grpc/grpc-js": "^1.7.1", - "@grpc/proto-loader": "^0.7.3", - "@restorecommerce/logger": "^1.2.1", - "cls-rtracer": "^2.6.2", - "lodash": "^4.17.21", - "nice-grpc": "^2.0.0", - "nice-grpc-client-middleware-deadline": "^2.0.0", - "protobufjs": "^7.1.2", - "retry": "^0.13.1", - "rxjs": "^7.5.7", - "uuid": "^9.0.0", - "winston": "^3.8.2" - }, - "engines": { - "node": ">= 12.18.0" - } - }, - "node_modules/@restorecommerce/kafka-client": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/@restorecommerce/kafka-client/-/kafka-client-1.0.7.tgz", - "integrity": "sha512-HuqYyia/ku1zBE+8EV8jPUFZEY3AwZgnVlKFf0f6hAqritfCwiY6JcbJQtE5lrp5XCCM1WR8ZXxjQtrWmhV8vg==", - "dependencies": { - "@restorecommerce/logger": "^1.2.3", - "@restorecommerce/rc-grpc-clients": "^3.0.1", - "async": "^3.2.4", - "cls-rtracer": "^2.6.3", - "events": "^3.3.0", - "kafkajs": "^2.2.4", - "lodash": "^4.17.21", - "protobufjs": "^7.2.3", - "retry": "^0.13.1", - "winston": "^3.9.0" - }, - "engines": { - "node": ">= 12.0.0" - } - }, - "node_modules/@restorecommerce/kafka-client/node_modules/@restorecommerce/grpc-client": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/@restorecommerce/grpc-client/-/grpc-client-2.0.1.tgz", "integrity": "sha512-pd+nRyPxL/2zVPa4lMyQXefUYApiZrN+iYp1MqNAS73Azpy5+UHmJHaPpRi0TDFQE9FlCuh6eybSzQ3HAanp1w==", @@ -1194,22 +1218,24 @@ "node": ">= 12.18.0" } }, - "node_modules/@restorecommerce/kafka-client/node_modules/@restorecommerce/rc-grpc-clients": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@restorecommerce/rc-grpc-clients/-/rc-grpc-clients-3.0.1.tgz", - "integrity": "sha512-qbXLyus9YEi+ulzFjEPaj+lPXknvwW1MFi8jIgbf2+3XVxSuUI89iJunQzo4JVB8wrBYIVjIbebzt51ptffJIw==", + "node_modules/@restorecommerce/kafka-client": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@restorecommerce/kafka-client/-/kafka-client-1.0.8.tgz", + "integrity": "sha512-JtHGI3c7Om4W24ddDxK4THNkvEf+9p9NCapYn3iiwNz9e56E1WocitiOtESQmHj2sbALh3WfAQzj0fryfuh39g==", "dependencies": { - "@restorecommerce/grpc-client": "^2.0.1", - "@types/google-protobuf": "^3.15.6", - "google-protobuf": "^3.21.2", - "nice-grpc": "^2.1.4", - "nice-grpc-common": "^2.0.2", + "@restorecommerce/logger": "^1.2.3", + "@restorecommerce/rc-grpc-clients": "^3.1.0", + "async": "^3.2.4", + "cls-rtracer": "^2.6.3", + "events": "^3.3.0", + "kafkajs": "^2.2.4", + "lodash": "^4.17.21", "protobufjs": "^7.2.3", - "rxjs": "^7.8.1", - "ts-proto-descriptors": "^1.9.0" + "retry": "^0.13.1", + "winston": "^3.9.0" }, "engines": { - "node": ">= 12.18.0" + "node": ">= 12.0.0" } }, "node_modules/@restorecommerce/logger": { @@ -1250,16 +1276,18 @@ "integrity": "sha512-+WgAkoyiMM7l1k/HFhIE5PlhVslggxFxgSN3Nr3TDFVEYXamf7ogO5Axwz+waZL9LeZgIGUvNUFlmU5eENspPg==" }, "node_modules/@restorecommerce/rc-grpc-clients": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@restorecommerce/rc-grpc-clients/-/rc-grpc-clients-2.0.2.tgz", - "integrity": "sha512-3XWQjtMbIq2UTsXQtgttsKYjkCoVoRq6SCRHk3coYb34xSsAx5SftlfskpZT2Te1vrzuZNBoIdXryvIlyARLcQ==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@restorecommerce/rc-grpc-clients/-/rc-grpc-clients-3.1.0.tgz", + "integrity": "sha512-RJTDhGenLciOdxz6RSRSGhx0/6/BduDKpIYUoDQlC1HIMRAsAEMdeIofxgU0htdWLOlfMceEkhdi9p55eOTtUQ==", "dependencies": { - "@restorecommerce/grpc-client": "^1.0.3", - "nice-grpc": "^2.0.0", - "nice-grpc-common": "^2.0.0", - "protobufjs": "^7.1.2", - "rxjs": "^7.5.7", - "ts-proto-descriptors": "^1.7.1" + "@restorecommerce/grpc-client": "^2.0.1", + "@types/google-protobuf": "^3.15.6", + "google-protobuf": "^3.21.2", + "nice-grpc": "^2.1.4", + "nice-grpc-common": "^2.0.2", + "protobufjs": "^7.2.3", + "rxjs": "^7.8.1", + "ts-proto-descriptors": "^1.9.0" }, "engines": { "node": ">= 12.18.0" @@ -1329,9 +1357,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "18.16.16", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.16.16.tgz", - "integrity": "sha512-NpaM49IGQQAUlBhHMF82QH80J08os4ZmyF9MkpCzWAGuOHqE4gTEbhzd7L3l5LmWuZ6E0OiC1FweQ4tsiW35+g==" + "version": "20.2.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.2.5.tgz", + "integrity": "sha512-JJulVEQXmiY9Px5axXHeYGLSjhkZEnD+MDPDGbCbIAbMslkKwmygtZFy1X6s/075Yo94sf8GuSlFfPzysQrWZQ==" }, "node_modules/@types/semver": { "version": "7.5.0", @@ -2857,6 +2885,12 @@ "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==" }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true + }, "node_modules/ecc-jsbn": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", @@ -3795,6 +3829,21 @@ "node": "^10.12.0 || >=12.0.0" } }, + "node_modules/flat-cache/node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/flatstr": { "version": "1.0.12", "resolved": "https://registry.npmjs.org/flatstr/-/flatstr-1.0.12.tgz", @@ -5081,6 +5130,21 @@ "node": ">=8" } }, + "node_modules/istanbul-lib-processinfo/node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/istanbul-lib-processinfo/node_modules/uuid": { "version": "8.3.2", "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", @@ -5131,6 +5195,24 @@ "node": ">=8" } }, + "node_modules/jackspeak": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.2.1.tgz", + "integrity": "sha512-MXbxovZ/Pm42f6cDIDkl3xpwv1AGwObKwfmjs2nQePiy85tP3fatofl3FC1aBsOtP/6fq5SbtgHwWcMsLP+bDw==", + "dev": true, + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -5647,6 +5729,15 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/minipass": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-6.0.2.tgz", + "integrity": "sha512-MzWSV5nYVT7mVyWCwn2o7JH13w2TBRmmSqSRCKzTw+lmft9X4z+3wjvs06Tzijo5z4W/kahUCDpRXTF+ZrmF/w==", + "dev": true, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, "node_modules/mixin-deep": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", @@ -6768,6 +6859,21 @@ "node": ">=8" } }, + "node_modules/nyc/node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/nyc/node_modules/wrap-ansi": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", @@ -7181,6 +7287,31 @@ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "devOptional": true }, + "node_modules/path-scurry": { + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.9.2.tgz", + "integrity": "sha512-qSDLy2aGFPm8i4rsbHd4MNyTcrzHFsLQykrtbuGRknZZCBBVXSv2tSCDN2Cg6Rt/GFRw8GoW9y9Ecw5rIPG1sg==", + "dev": true, + "dependencies": { + "lru-cache": "^9.1.1", + "minipass": "^5.0.0 || ^6.0.2" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-scurry/node_modules/lru-cache": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-9.1.2.tgz", + "integrity": "sha512-ERJq3FOzJTxBbFjZ7iDs+NiK4VI9Wz+RdrrAB8dio1oV+YvdPzUEE4QNiT2VD51DkIbCYRUUzCRkssXCHqSnKQ==", + "dev": true, + "engines": { + "node": "14 || >=16.14" + } + }, "node_modules/path-type": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", @@ -7838,22 +7969,99 @@ "node": ">=0.10.0" } }, - "node_modules/rfdc": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.3.0.tgz", - "integrity": "sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==", - "optional": true - }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "node_modules/rfdc": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.3.0.tgz", + "integrity": "sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==", + "optional": true + }, + "node_modules/rimraf": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.1.tgz", + "integrity": "sha512-OfFZdwtd3lZ+XZzYP/6gTACubwFcHdLRqS9UX3UwpU2dnGQYkPFISRwvM3w9IiB2w7bW5qGo/uAwE4SmXXSKvg==", + "dev": true, + "dependencies": { + "glob": "^10.2.5" + }, + "bin": { + "rimraf": "dist/cjs/src/bin.js" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rimraf/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/rimraf/node_modules/foreground-child": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", + "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rimraf/node_modules/glob": { + "version": "10.2.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.2.6.tgz", + "integrity": "sha512-U/rnDpXJGF414QQQZv5uVsabTVxMSwzS5CH0p3DRCIV6ownl4f7PzGnkGmvlum2wB+9RlJWJZ6ACU1INnBqiPA==", + "dev": true, + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^2.0.3", + "minimatch": "^9.0.1", + "minipass": "^5.0.0 || ^6.0.2", + "path-scurry": "^1.7.0" + }, + "bin": { + "glob": "dist/cjs/src/bin.js" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rimraf/node_modules/minimatch": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.1.tgz", + "integrity": "sha512-0jWhJpD/MdhPXwPuiRkCbfYfSKp2qnn2eOc279qI7f+osl/l+prKSrvhg157zSYvx/1nmgn2NqdT6k2Z7zSH9w==", "dev": true, "dependencies": { - "glob": "^7.1.3" + "brace-expansion": "^2.0.1" }, - "bin": { - "rimraf": "bin.js" + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/rimraf/node_modules/signal-exit": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.0.2.tgz", + "integrity": "sha512-MY2/qGx4enyjprQnFaZsHib3Yadh3IXyV2C321GY0pjGfVBu4un0uDJkwgdxqO+Rdx8JMT8IfJIRwbYVz3Ob3Q==", + "dev": true, + "engines": { + "node": ">=14" }, "funding": { "url": "https://github.com/sponsors/isaacs" @@ -8360,6 +8568,21 @@ "node": ">=8" } }, + "node_modules/spawn-wrap/node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/spdx-correct": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.2.0.tgz", @@ -8612,6 +8835,21 @@ "node": ">=8" } }, + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/string.prototype.padend": { "version": "3.1.4", "resolved": "https://registry.npmjs.org/string.prototype.padend/-/string.prototype.padend-3.1.4.tgz", @@ -8685,6 +8923,19 @@ "node": ">=8" } }, + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/strip-bom": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", @@ -9256,16 +9507,16 @@ } }, "node_modules/typescript": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.3.tgz", + "integrity": "sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==", "dev": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=4.2.0" + "node": ">=14.17" } }, "node_modules/unbox-primitive": { @@ -9645,6 +9896,24 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", @@ -10311,6 +10580,71 @@ "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", "dev": true }, + "@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, + "requires": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "dependencies": { + "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 + }, + "ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true + }, + "emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "requires": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + } + }, + "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, + "requires": { + "ansi-regex": "^6.0.1" + } + }, + "wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, + "requires": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + } + } + } + }, "@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", @@ -10490,6 +10824,13 @@ "integrity": "sha512-LMGqfSZkaMQXqewO0o1wvWr/2fQdCh4a3Sqlxka/UsJCe0cfLulh6x2aqnKLnsrSGiCq5rSCwvINd152i0nCqw==", "optional": true }, + "@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, + "optional": true + }, "@protobufjs/aspromise": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", @@ -10611,42 +10952,6 @@ "nice-grpc-server-reflection": "^2.0.6", "protobufjs": "^7.2.3", "redis": "^4.6.6" - }, - "dependencies": { - "@restorecommerce/grpc-client": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@restorecommerce/grpc-client/-/grpc-client-2.0.1.tgz", - "integrity": "sha512-pd+nRyPxL/2zVPa4lMyQXefUYApiZrN+iYp1MqNAS73Azpy5+UHmJHaPpRi0TDFQE9FlCuh6eybSzQ3HAanp1w==", - "requires": { - "@grpc/grpc-js": "^1.8.14", - "@grpc/proto-loader": "^0.7.7", - "@restorecommerce/logger": "^1.2.3", - "cls-rtracer": "^2.6.3", - "lodash": "^4.17.21", - "nice-grpc": "^2.1.4", - "nice-grpc-client-middleware-deadline": "^2.0.6", - "protobufjs": "^7.2.3", - "retry": "^0.13.1", - "rxjs": "^7.8.1", - "uuid": "^9.0.0", - "winston": "^3.9.0" - } - }, - "@restorecommerce/rc-grpc-clients": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@restorecommerce/rc-grpc-clients/-/rc-grpc-clients-3.0.1.tgz", - "integrity": "sha512-qbXLyus9YEi+ulzFjEPaj+lPXknvwW1MFi8jIgbf2+3XVxSuUI89iJunQzo4JVB8wrBYIVjIbebzt51ptffJIw==", - "requires": { - "@restorecommerce/grpc-client": "^2.0.1", - "@types/google-protobuf": "^3.15.6", - "google-protobuf": "^3.21.2", - "nice-grpc": "^2.1.4", - "nice-grpc-common": "^2.0.2", - "protobufjs": "^7.2.3", - "rxjs": "^7.8.1", - "ts-proto-descriptors": "^1.9.0" - } - } } }, "@restorecommerce/cluster-service": { @@ -10659,31 +10964,31 @@ } }, "@restorecommerce/grpc-client": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@restorecommerce/grpc-client/-/grpc-client-1.0.3.tgz", - "integrity": "sha512-CRyoWRu0asrnZ4K1UMrisS8Y1wT6wMJG+zLvXTbBxJgzpbUL1ERi8R/hi5gD2F96EkXvvMWkRa3nWDgnrwG1jQ==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@restorecommerce/grpc-client/-/grpc-client-2.0.1.tgz", + "integrity": "sha512-pd+nRyPxL/2zVPa4lMyQXefUYApiZrN+iYp1MqNAS73Azpy5+UHmJHaPpRi0TDFQE9FlCuh6eybSzQ3HAanp1w==", "requires": { - "@grpc/grpc-js": "^1.7.1", - "@grpc/proto-loader": "^0.7.3", - "@restorecommerce/logger": "^1.2.1", - "cls-rtracer": "^2.6.2", + "@grpc/grpc-js": "^1.8.14", + "@grpc/proto-loader": "^0.7.7", + "@restorecommerce/logger": "^1.2.3", + "cls-rtracer": "^2.6.3", "lodash": "^4.17.21", - "nice-grpc": "^2.0.0", - "nice-grpc-client-middleware-deadline": "^2.0.0", - "protobufjs": "^7.1.2", + "nice-grpc": "^2.1.4", + "nice-grpc-client-middleware-deadline": "^2.0.6", + "protobufjs": "^7.2.3", "retry": "^0.13.1", - "rxjs": "^7.5.7", + "rxjs": "^7.8.1", "uuid": "^9.0.0", - "winston": "^3.8.2" + "winston": "^3.9.0" } }, "@restorecommerce/kafka-client": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/@restorecommerce/kafka-client/-/kafka-client-1.0.7.tgz", - "integrity": "sha512-HuqYyia/ku1zBE+8EV8jPUFZEY3AwZgnVlKFf0f6hAqritfCwiY6JcbJQtE5lrp5XCCM1WR8ZXxjQtrWmhV8vg==", + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@restorecommerce/kafka-client/-/kafka-client-1.0.8.tgz", + "integrity": "sha512-JtHGI3c7Om4W24ddDxK4THNkvEf+9p9NCapYn3iiwNz9e56E1WocitiOtESQmHj2sbALh3WfAQzj0fryfuh39g==", "requires": { "@restorecommerce/logger": "^1.2.3", - "@restorecommerce/rc-grpc-clients": "^3.0.1", + "@restorecommerce/rc-grpc-clients": "^3.1.0", "async": "^3.2.4", "cls-rtracer": "^2.6.3", "events": "^3.3.0", @@ -10692,42 +10997,6 @@ "protobufjs": "^7.2.3", "retry": "^0.13.1", "winston": "^3.9.0" - }, - "dependencies": { - "@restorecommerce/grpc-client": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@restorecommerce/grpc-client/-/grpc-client-2.0.1.tgz", - "integrity": "sha512-pd+nRyPxL/2zVPa4lMyQXefUYApiZrN+iYp1MqNAS73Azpy5+UHmJHaPpRi0TDFQE9FlCuh6eybSzQ3HAanp1w==", - "requires": { - "@grpc/grpc-js": "^1.8.14", - "@grpc/proto-loader": "^0.7.7", - "@restorecommerce/logger": "^1.2.3", - "cls-rtracer": "^2.6.3", - "lodash": "^4.17.21", - "nice-grpc": "^2.1.4", - "nice-grpc-client-middleware-deadline": "^2.0.6", - "protobufjs": "^7.2.3", - "retry": "^0.13.1", - "rxjs": "^7.8.1", - "uuid": "^9.0.0", - "winston": "^3.9.0" - } - }, - "@restorecommerce/rc-grpc-clients": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@restorecommerce/rc-grpc-clients/-/rc-grpc-clients-3.0.1.tgz", - "integrity": "sha512-qbXLyus9YEi+ulzFjEPaj+lPXknvwW1MFi8jIgbf2+3XVxSuUI89iJunQzo4JVB8wrBYIVjIbebzt51ptffJIw==", - "requires": { - "@restorecommerce/grpc-client": "^2.0.1", - "@types/google-protobuf": "^3.15.6", - "google-protobuf": "^3.21.2", - "nice-grpc": "^2.1.4", - "nice-grpc-common": "^2.0.2", - "protobufjs": "^7.2.3", - "rxjs": "^7.8.1", - "ts-proto-descriptors": "^1.9.0" - } - } } }, "@restorecommerce/logger": { @@ -10762,16 +11031,18 @@ "integrity": "sha512-+WgAkoyiMM7l1k/HFhIE5PlhVslggxFxgSN3Nr3TDFVEYXamf7ogO5Axwz+waZL9LeZgIGUvNUFlmU5eENspPg==" }, "@restorecommerce/rc-grpc-clients": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@restorecommerce/rc-grpc-clients/-/rc-grpc-clients-2.0.2.tgz", - "integrity": "sha512-3XWQjtMbIq2UTsXQtgttsKYjkCoVoRq6SCRHk3coYb34xSsAx5SftlfskpZT2Te1vrzuZNBoIdXryvIlyARLcQ==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@restorecommerce/rc-grpc-clients/-/rc-grpc-clients-3.1.0.tgz", + "integrity": "sha512-RJTDhGenLciOdxz6RSRSGhx0/6/BduDKpIYUoDQlC1HIMRAsAEMdeIofxgU0htdWLOlfMceEkhdi9p55eOTtUQ==", "requires": { - "@restorecommerce/grpc-client": "^1.0.3", - "nice-grpc": "^2.0.0", - "nice-grpc-common": "^2.0.0", - "protobufjs": "^7.1.2", - "rxjs": "^7.5.7", - "ts-proto-descriptors": "^1.7.1" + "@restorecommerce/grpc-client": "^2.0.1", + "@types/google-protobuf": "^3.15.6", + "google-protobuf": "^3.21.2", + "nice-grpc": "^2.1.4", + "nice-grpc-common": "^2.0.2", + "protobufjs": "^7.2.3", + "rxjs": "^7.8.1", + "ts-proto-descriptors": "^1.9.0" } }, "@restorecommerce/service-config": { @@ -10835,9 +11106,9 @@ "dev": true }, "@types/node": { - "version": "18.16.16", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.16.16.tgz", - "integrity": "sha512-NpaM49IGQQAUlBhHMF82QH80J08os4ZmyF9MkpCzWAGuOHqE4gTEbhzd7L3l5LmWuZ6E0OiC1FweQ4tsiW35+g==" + "version": "20.2.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.2.5.tgz", + "integrity": "sha512-JJulVEQXmiY9Px5axXHeYGLSjhkZEnD+MDPDGbCbIAbMslkKwmygtZFy1X6s/075Yo94sf8GuSlFfPzysQrWZQ==" }, "@types/semver": { "version": "7.5.0", @@ -11975,6 +12246,12 @@ "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==" }, + "eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true + }, "ecc-jsbn": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", @@ -12728,6 +13005,17 @@ "requires": { "flatted": "^3.1.0", "rimraf": "^3.0.2" + }, + "dependencies": { + "rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + } } }, "flatstr": { @@ -13661,6 +13949,15 @@ "uuid": "^8.3.2" }, "dependencies": { + "rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + }, "uuid": { "version": "8.3.2", "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", @@ -13701,6 +13998,16 @@ "istanbul-lib-report": "^3.0.0" } }, + "jackspeak": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.2.1.tgz", + "integrity": "sha512-MXbxovZ/Pm42f6cDIDkl3xpwv1AGwObKwfmjs2nQePiy85tP3fatofl3FC1aBsOtP/6fq5SbtgHwWcMsLP+bDw==", + "dev": true, + "requires": { + "@isaacs/cliui": "^8.0.2", + "@pkgjs/parseargs": "^0.11.0" + } + }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -14111,6 +14418,12 @@ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==" }, + "minipass": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-6.0.2.tgz", + "integrity": "sha512-MzWSV5nYVT7mVyWCwn2o7JH13w2TBRmmSqSRCKzTw+lmft9X4z+3wjvs06Tzijo5z4W/kahUCDpRXTF+ZrmF/w==", + "dev": true + }, "mixin-deep": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", @@ -14988,6 +15301,15 @@ "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", "dev": true }, + "rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + }, "wrap-ansi": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", @@ -15314,6 +15636,24 @@ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "devOptional": true }, + "path-scurry": { + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.9.2.tgz", + "integrity": "sha512-qSDLy2aGFPm8i4rsbHd4MNyTcrzHFsLQykrtbuGRknZZCBBVXSv2tSCDN2Cg6Rt/GFRw8GoW9y9Ecw5rIPG1sg==", + "dev": true, + "requires": { + "lru-cache": "^9.1.1", + "minipass": "^5.0.0 || ^6.0.2" + }, + "dependencies": { + "lru-cache": { + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-9.1.2.tgz", + "integrity": "sha512-ERJq3FOzJTxBbFjZ7iDs+NiK4VI9Wz+RdrrAB8dio1oV+YvdPzUEE4QNiT2VD51DkIbCYRUUzCRkssXCHqSnKQ==", + "dev": true + } + } + }, "path-type": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", @@ -15823,12 +16163,61 @@ "optional": true }, "rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.1.tgz", + "integrity": "sha512-OfFZdwtd3lZ+XZzYP/6gTACubwFcHdLRqS9UX3UwpU2dnGQYkPFISRwvM3w9IiB2w7bW5qGo/uAwE4SmXXSKvg==", "dev": true, "requires": { - "glob": "^7.1.3" + "glob": "^10.2.5" + }, + "dependencies": { + "brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0" + } + }, + "foreground-child": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", + "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==", + "dev": true, + "requires": { + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" + } + }, + "glob": { + "version": "10.2.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.2.6.tgz", + "integrity": "sha512-U/rnDpXJGF414QQQZv5uVsabTVxMSwzS5CH0p3DRCIV6ownl4f7PzGnkGmvlum2wB+9RlJWJZ6ACU1INnBqiPA==", + "dev": true, + "requires": { + "foreground-child": "^3.1.0", + "jackspeak": "^2.0.3", + "minimatch": "^9.0.1", + "minipass": "^5.0.0 || ^6.0.2", + "path-scurry": "^1.7.0" + } + }, + "minimatch": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.1.tgz", + "integrity": "sha512-0jWhJpD/MdhPXwPuiRkCbfYfSKp2qnn2eOc279qI7f+osl/l+prKSrvhg157zSYvx/1nmgn2NqdT6k2Z7zSH9w==", + "dev": true, + "requires": { + "brace-expansion": "^2.0.1" + } + }, + "signal-exit": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.0.2.tgz", + "integrity": "sha512-MY2/qGx4enyjprQnFaZsHib3Yadh3IXyV2C321GY0pjGfVBu4un0uDJkwgdxqO+Rdx8JMT8IfJIRwbYVz3Ob3Q==", + "dev": true + } } }, "run-parallel": { @@ -16237,6 +16626,17 @@ "rimraf": "^3.0.0", "signal-exit": "^3.0.2", "which": "^2.0.1" + }, + "dependencies": { + "rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + } } }, "spdx-correct": { @@ -16449,6 +16849,17 @@ "strip-ansi": "^6.0.1" } }, + "string-width-cjs": { + "version": "npm:string-width@4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } + }, "string.prototype.padend": { "version": "3.1.4", "resolved": "https://registry.npmjs.org/string.prototype.padend/-/string.prototype.padend-3.1.4.tgz", @@ -16501,6 +16912,15 @@ "ansi-regex": "^5.0.1" } }, + "strip-ansi-cjs": { + "version": "npm:strip-ansi@6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.1" + } + }, "strip-bom": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", @@ -16935,9 +17355,9 @@ } }, "typescript": { - "version": "4.9.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", - "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", + "version": "5.1.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.3.tgz", + "integrity": "sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==", "dev": true }, "unbox-primitive": { @@ -17231,6 +17651,17 @@ "strip-ansi": "^6.0.0" } }, + "wrap-ansi-cjs": { + "version": "npm:wrap-ansi@7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } + }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", diff --git a/package.json b/package.json index 6772dea..9fdd23b 100644 --- a/package.json +++ b/package.json @@ -18,18 +18,18 @@ "dependencies": { "@restorecommerce/chassis-srv": "^1.1.2", "@restorecommerce/cluster-service": "^1.0.1", - "@restorecommerce/grpc-client": "^1.0.3", - "@restorecommerce/kafka-client": "^1.0.4", + "@restorecommerce/grpc-client": "^2.0.1", + "@restorecommerce/kafka-client": "^1.0.8", "@restorecommerce/logger": "^1.2.1", "@restorecommerce/mailer": "^1.0.1", - "@restorecommerce/rc-grpc-clients": "^2.0.1", + "@restorecommerce/rc-grpc-clients": "^3.1.0", "@restorecommerce/service-config": "^1.0.3", "lodash": "^4.17.21", "retry": "^0.13.1" }, "devDependencies": { "@types/mocha": "^10.0.0", - "@types/node": "^18.11.6", + "@types/node": "^20.2.5", "@typescript-eslint/eslint-plugin": "^5.41.0", "@typescript-eslint/eslint-plugin-tslint": "^5.41.0", "@typescript-eslint/parser": "^5.41.0", @@ -41,10 +41,10 @@ "nodemon": "^2.0.20", "npm-run-all": "^4.1.5", "nyc": "^15.1.0", - "rimraf": "^3.0.2", + "rimraf": "^5.0.1", "should": "^13.2.3", "ts-node": "^10.9.1", - "typescript": "^4.8.4" + "typescript": "^5.1.3" }, "scripts": { "start": "node lib/start.js", diff --git a/src/service.ts b/src/service.ts index 8d3c1ff..a19bf24 100644 --- a/src/service.ts +++ b/src/service.ts @@ -10,12 +10,12 @@ import { createClient, RedisClientType } from 'redis'; import { Logger } from 'winston'; import * as retry from 'retry'; import { - ServiceDefinition as NotificationReqServiceDefinition, + NotificationReqServiceDefinition, protoMetadata as NotificationReqMeta, NotificationReq } from '@restorecommerce/rc-grpc-clients/dist/generated-server/io/restorecommerce/notification_req'; import { OperationStatusObj } from '@restorecommerce/rc-grpc-clients/dist/generated-server/io/restorecommerce/status'; import { - ServiceDefinition as CommandInterfaceServiceDefinition, + CommandInterfaceServiceDefinition, protoMetadata as CommandInterfaceMeta } from '@restorecommerce/rc-grpc-clients/dist/generated-server/io/restorecommerce/commandinterface'; import { @@ -25,8 +25,8 @@ import { ServerReflectionService } from 'nice-grpc-server-reflection'; import { BindConfig } from '@restorecommerce/chassis-srv/lib/microservice/transport/provider/grpc'; import { HealthDefinition } from '@restorecommerce/rc-grpc-clients/dist/generated-server/grpc/health/v1/health'; import { - ServiceDefinition as CredentialServiceDefinition, - ServiceClient as CredentialServiceClient + CredentialServiceDefinition, + CredentialServiceClient } from '@restorecommerce/rc-grpc-clients/dist/generated/io/restorecommerce/credential'; import { ReadRequest diff --git a/test/notification.spec.ts b/test/notification.spec.ts index 92c39d5..39a1bfb 100644 --- a/test/notification.spec.ts +++ b/test/notification.spec.ts @@ -6,8 +6,8 @@ import { createClient, createChannel } from '@restorecommerce/grpc-client'; import { Notification } from '../lib/notification'; import { NotificationService, start, stop } from '../lib/service'; import { - ServiceDefinition as NotificationReqServiceDefinition, - ServiceClient as NotificationReqServiceClient + NotificationReqServiceDefinition, + NotificationReqServiceClient } from '@restorecommerce/rc-grpc-clients/dist/generated/io/restorecommerce/notification_req'; // NOTE: A running instance of Kafka and redis is needed to execute below test.