diff --git a/cfg/config.json b/cfg/config.json index b45062f..e06626a 100644 --- a/cfg/config.json +++ b/cfg/config.json @@ -18,7 +18,6 @@ "client": { "address": "127.0.0.1:50053" }, - "namespace": "resource", "root": false }, "identity": { diff --git a/cfg/config_production.json b/cfg/config_production.json index 44f926b..2019646 100644 --- a/cfg/config_production.json +++ b/cfg/config_production.json @@ -10,7 +10,7 @@ }, "console": { "handleExceptions": false, - "level": "debug", + "level": "info", "colorize": true, "prettyPrint": true } diff --git a/package-lock.json b/package-lock.json index d7b998e..c180544 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,16 +12,9 @@ "dependencies": { "@apollo/federation": "^0.38.1", "@apollo/gateway": "2.3.6", - "@restorecommerce/facade": "^2.2.2", + "@restorecommerce/facade": "^2.2.5", "@restorecommerce/logger": "^1.3.2", - "@restorecommerce/service-config": "^1.0.15", - "array.prototype.flat": "^1.3.2", - "bcryptjs": "^2.4.3", - "cross-env": "^7.0.3", - "ts-node": "^10.9.2", - "ts-proto-descriptors": "^1.15.0", - "uuid": "^10.0.0", - "winston": "^3.13.0", + "@restorecommerce/service-config": "^1.0.16", "yamlparser": "^0.0.2" }, "devDependencies": { @@ -1512,7 +1505,10 @@ "version": "0.8.1", "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "dev": true, "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "@jridgewell/trace-mapping": "0.3.9" }, @@ -1524,7 +1520,10 @@ "version": "0.3.9", "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "@jridgewell/resolve-uri": "^3.0.3", "@jridgewell/sourcemap-codec": "^1.4.10" @@ -2809,6 +2808,7 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, "license": "MIT", "engines": { "node": ">=6.0.0" @@ -2828,6 +2828,7 @@ "version": "1.4.15", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true, "license": "MIT" }, "node_modules/@jridgewell/trace-mapping": { @@ -3350,9 +3351,9 @@ } }, "node_modules/@restorecommerce/facade": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/@restorecommerce/facade/-/facade-2.2.2.tgz", - "integrity": "sha512-qQJ6403rBKvK1JD+9PGMhcq/72WwlGPSo3xnNOPr0RUT+LfuY9Xsk6wVLHk3uWtqninoKli0cXQ4Xn2RCOJHxQ==", + "version": "2.2.5", + "resolved": "https://registry.npmjs.org/@restorecommerce/facade/-/facade-2.2.5.tgz", + "integrity": "sha512-Mr7DRqQlxTtl/iXcJ38vBYKr5eG5FlUPqLrC9a6vB0K+y7mGG2R80SogfM3S1W2jk5KgwihgAuIrHdtVSQNe+A==", "hasInstallScript": true, "license": "MIT", "dependencies": { @@ -3366,9 +3367,9 @@ "@grpc/proto-loader": "^0.7.12", "@koa/cors": "^5.0.0", "@restorecommerce/grpc-client": "^2.2.5", - "@restorecommerce/kafka-client": "^1.2.17", + "@restorecommerce/kafka-client": "^1.2.18", "@restorecommerce/logger": "^1.3.2", - "@restorecommerce/rc-grpc-clients": "^5.1.39", + "@restorecommerce/rc-grpc-clients": "^5.1.40", "@restorecommerce/service-config": "^1.0.16", "array.prototype.flat": "^1.3.1", "co": "^4.6.0", @@ -3512,28 +3513,6 @@ "node": "20 || >=22" } }, - "node_modules/@restorecommerce/facade/node_modules/ts-proto-descriptors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ts-proto-descriptors/-/ts-proto-descriptors-2.0.0.tgz", - "integrity": "sha512-wHcTH3xIv11jxgkX5OyCSFfw27agpInAd6yh89hKG6zqIXnjW9SYqSER2CVQxdPj4czeOhGagNvZBEbJPy7qkw==", - "license": "ISC", - "dependencies": { - "@bufbuild/protobuf": "^2.0.0" - } - }, - "node_modules/@restorecommerce/facade/node_modules/uuid": { - "version": "11.0.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.0.2.tgz", - "integrity": "sha512-14FfcOJmqdjbBPdDjFQyk/SdT4NySW4eM0zcG+HqbHP5jzuH56xO3J1DGhgs/cEMCfwYi3HQI1gnTO62iaG+tQ==", - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], - "license": "MIT", - "bin": { - "uuid": "dist/esm/bin/uuid" - } - }, "node_modules/@restorecommerce/grpc-client": { "version": "2.2.5", "resolved": "https://registry.npmjs.org/@restorecommerce/grpc-client/-/grpc-client-2.2.5.tgz", @@ -3558,27 +3537,14 @@ "node": ">= 20.0.0" } }, - "node_modules/@restorecommerce/grpc-client/node_modules/uuid": { - "version": "11.0.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.0.2.tgz", - "integrity": "sha512-14FfcOJmqdjbBPdDjFQyk/SdT4NySW4eM0zcG+HqbHP5jzuH56xO3J1DGhgs/cEMCfwYi3HQI1gnTO62iaG+tQ==", - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], - "license": "MIT", - "bin": { - "uuid": "dist/esm/bin/uuid" - } - }, "node_modules/@restorecommerce/kafka-client": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/@restorecommerce/kafka-client/-/kafka-client-1.2.17.tgz", - "integrity": "sha512-YuMjIO2Jjt/Z4MCeAN6xbYQTTsJiNxtTuz/MXuTZcwLgkOgj9ngzr5zJOg8N4NmiA7qjfJcjB8Ve8YfSTCSRew==", + "version": "1.2.18", + "resolved": "https://registry.npmjs.org/@restorecommerce/kafka-client/-/kafka-client-1.2.18.tgz", + "integrity": "sha512-EWog2Is1Sborx3FxH48kXdrLGlAg86Bae3j5fYzJzMgqWOz9vfT0iaOYZoHxUp1TZAfCczqMPNkebt2aWPN7Ww==", "license": "MIT", "dependencies": { "@restorecommerce/logger": "^1.3.2", - "@restorecommerce/rc-grpc-clients": "^5.1.39", + "@restorecommerce/rc-grpc-clients": "^5.1.40", "async": "^3.2.6", "cls-rtracer": "^2.6.3", "events": "^3.3.0", @@ -3610,9 +3576,9 @@ } }, "node_modules/@restorecommerce/rc-grpc-clients": { - "version": "5.1.39", - "resolved": "https://registry.npmjs.org/@restorecommerce/rc-grpc-clients/-/rc-grpc-clients-5.1.39.tgz", - "integrity": "sha512-J8Ws3jBJxwAJQe02Ai5yKAyyyq8le+cjknvwr9zt0jM8iCrR9HXO0pHIes4/Y+9yU5pZIG/Au2rCasjqwaeaew==", + "version": "5.1.40", + "resolved": "https://registry.npmjs.org/@restorecommerce/rc-grpc-clients/-/rc-grpc-clients-5.1.40.tgz", + "integrity": "sha512-Q8qXiPGtIqq/GuWwWq8aaZ2fnnKXIuPCUzqBJHLTnTDNbcIffGeqy47+kglo4a9qgZA1BD86YznmPzwU3HIIfw==", "license": "MIT", "dependencies": { "@grpc/grpc-js": "^1.12.2", @@ -3629,15 +3595,6 @@ "node": ">= 12.18.0" } }, - "node_modules/@restorecommerce/rc-grpc-clients/node_modules/ts-proto-descriptors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ts-proto-descriptors/-/ts-proto-descriptors-2.0.0.tgz", - "integrity": "sha512-wHcTH3xIv11jxgkX5OyCSFfw27agpInAd6yh89hKG6zqIXnjW9SYqSER2CVQxdPj4czeOhGagNvZBEbJPy7qkw==", - "license": "ISC", - "dependencies": { - "@bufbuild/protobuf": "^2.0.0" - } - }, "node_modules/@restorecommerce/service-config": { "version": "1.0.16", "resolved": "https://registry.npmjs.org/@restorecommerce/service-config/-/service-config-1.0.16.tgz", @@ -4650,25 +4607,37 @@ "version": "1.0.11", "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz", "integrity": "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==", - "license": "MIT" + "dev": true, + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/@tsconfig/node12": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", - "license": "MIT" + "dev": true, + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/@tsconfig/node14": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", - "license": "MIT" + "dev": true, + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/@tsconfig/node16": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", - "license": "MIT" + "dev": true, + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/@types/accepts": { "version": "1.3.7", @@ -5737,6 +5706,7 @@ "version": "8.11.3", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", + "devOptional": true, "license": "MIT", "bin": { "acorn": "bin/acorn" @@ -5768,7 +5738,10 @@ "version": "8.3.2", "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.2.tgz", "integrity": "sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==", + "dev": true, "license": "MIT", + "optional": true, + "peer": true, "engines": { "node": ">=0.4.0" } @@ -6039,7 +6012,10 @@ "version": "4.1.3", "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", - "license": "MIT" + "dev": true, + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/argparse": { "version": "2.0.1", @@ -6474,12 +6450,6 @@ "tweetnacl": "^0.14.3" } }, - "node_modules/bcryptjs": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/bcryptjs/-/bcryptjs-2.4.3.tgz", - "integrity": "sha512-V/Hy/X9Vt7f3BbPJEi8BdVFMByHi+jNXrYkW3huaybV/kQ0KJg0Y6PkEMbn+zeT+i+SiKZ/HMqJGIIt4LZDqNQ==", - "license": "MIT" - }, "node_modules/before-after-hook": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz", @@ -8069,25 +8039,10 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", - "license": "MIT" - }, - "node_modules/cross-env": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz", - "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==", + "dev": true, "license": "MIT", - "dependencies": { - "cross-spawn": "^7.0.1" - }, - "bin": { - "cross-env": "src/bin/cross-env.js", - "cross-env-shell": "src/bin/cross-env-shell.js" - }, - "engines": { - "node": ">=10.14", - "npm": ">=6", - "yarn": ">=1" - } + "optional": true, + "peer": true }, "node_modules/cross-inspect": { "version": "1.0.1", @@ -8662,6 +8617,7 @@ "version": "4.0.2", "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true, "license": "BSD-3-Clause", "engines": { "node": ">=0.3.1" @@ -14165,6 +14121,7 @@ "version": "1.3.6", "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true, "license": "ISC" }, "node_modules/make-fetch-happen": { @@ -26047,7 +26004,10 @@ "version": "10.9.2", "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", + "dev": true, "license": "MIT", + "optional": true, + "peer": true, "dependencies": { "@cspotcode/source-map-support": "^0.8.0", "@tsconfig/node10": "^1.0.7", @@ -26087,21 +26047,14 @@ } }, "node_modules/ts-proto-descriptors": { - "version": "1.16.0", - "resolved": "https://registry.npmjs.org/ts-proto-descriptors/-/ts-proto-descriptors-1.16.0.tgz", - "integrity": "sha512-3yKuzMLpltdpcyQji1PJZRfoo4OJjNieKTYkQY8pF7xGKsYz/RHe3aEe4KiRxcinoBmnEhmuI+yJTxLb922ULA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ts-proto-descriptors/-/ts-proto-descriptors-2.0.0.tgz", + "integrity": "sha512-wHcTH3xIv11jxgkX5OyCSFfw27agpInAd6yh89hKG6zqIXnjW9SYqSER2CVQxdPj4czeOhGagNvZBEbJPy7qkw==", "license": "ISC", "dependencies": { - "long": "^5.2.3", - "protobufjs": "^7.2.4" + "@bufbuild/protobuf": "^2.0.0" } }, - "node_modules/ts-proto-descriptors/node_modules/long": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", - "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==", - "license": "Apache-2.0" - }, "node_modules/tslib": { "version": "2.6.3", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.3.tgz", @@ -26510,6 +26463,7 @@ "version": "5.5.2", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.5.2.tgz", "integrity": "sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew==", + "dev": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -26878,22 +26832,26 @@ } }, "node_modules/uuid": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz", - "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.0.2.tgz", + "integrity": "sha512-14FfcOJmqdjbBPdDjFQyk/SdT4NySW4eM0zcG+HqbHP5jzuH56xO3J1DGhgs/cEMCfwYi3HQI1gnTO62iaG+tQ==", "funding": [ "https://github.com/sponsors/broofa", "https://github.com/sponsors/ctavan" ], + "license": "MIT", "bin": { - "uuid": "dist/bin/uuid" + "uuid": "dist/esm/bin/uuid" } }, "node_modules/v8-compile-cache-lib": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", - "license": "MIT" + "dev": true, + "license": "MIT", + "optional": true, + "peer": true }, "node_modules/v8-to-istanbul": { "version": "9.2.0", @@ -27336,7 +27294,10 @@ "version": "3.1.1", "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true, "license": "MIT", + "optional": true, + "peer": true, "engines": { "node": ">=6" } diff --git a/package.json b/package.json index ba8acd2..a87d4df 100644 --- a/package.json +++ b/package.json @@ -20,16 +20,9 @@ "dependencies": { "@apollo/federation": "^0.38.1", "@apollo/gateway": "2.3.6", - "@restorecommerce/facade": "^2.2.2", + "@restorecommerce/facade": "^2.2.5", "@restorecommerce/logger": "^1.3.2", - "@restorecommerce/service-config": "^1.0.15", - "array.prototype.flat": "^1.3.2", - "bcryptjs": "^2.4.3", - "cross-env": "^7.0.3", - "ts-node": "^10.9.2", - "ts-proto-descriptors": "^1.15.0", - "uuid": "^10.0.0", - "winston": "^3.13.0", + "@restorecommerce/service-config": "^1.0.16", "yamlparser": "^0.0.2" }, "devDependencies": {