{"_id":"@amplication/plugin-broker-redis","_rev":"23-13263092f6ca85e36426c6d186a50796","name":"@amplication/plugin-broker-redis","dist-tags":{"beta":"2.0.7-beta.pr-354.1e83d71","latest":"2.0.7"},"versions":{"0.0.1":{"name":"@amplication/plugin-broker-redis","version":"0.0.1","author":{"name":"Demilade Sonuga"},"license":"Apache-2.0","_id":"@amplication/plugin-broker-redis@0.0.1","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"daniele.iasella@gmail.com"},{"name":"barshimi","email":"barshimi@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"dist":{"shasum":"f6807cb8234c34b6745fd7764d300b9e84bbe54e","tarball":"https://registry.npmjs.org/@amplication/plugin-broker-redis/-/plugin-broker-redis-0.0.1.tgz","fileCount":34,"integrity":"sha512-RylFxx43sEPSV2HAM4yNes0THpVRbpVlmOcf8j6idkSiIecLRt3Ks6aqjKSE7TSBpHFeegI06pWLw0suwyB8mQ==","signatures":[{"sig":"MEYCIQCFtwSVqXxu6N6LVhZU20RDY5BdDiO2yRe7u1elmx7tJAIhALri9USwekno6tTBi3YCbcGA7fHlwtiDpvx7ETiMsACv","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":124022},"jest":{"rootDir":"src/tests","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"testEnvironment":"node","collectCoverageFrom":["**/*.(t|j)s"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","gitHead":"32f8258095dba8ab0deb845d3e2cd8d6de3b707e","scripts":{"dev":"webpack --watch","test":"jest","build":"webpack","prebuild":"rimraf dist","format:write":"prettier --write \"**/*.{js,ts}\"","prepublishOnly":"npm run build"},"_npmUser":{"name":"amplication-bot","email":"engineering@amplication.com"},"_npmVersion":"9.6.7","description":"Use a Redis message broker in the service generated by Amplication.","directories":{},"_nodeVersion":"18.17.1","dependencies":{"pascal-case":"^3.1.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.6.3","eslint":"^8.21.0","lodash":"^4.17.21","recast":"^0.20.5","rimraf":"^4.4.1","ts-jest":"^29.1.1","webpack":"^5.76.0","prettier":"^2.8.7","ts-loader":"^9.4.2","typescript":"^4.9.3","@types/jest":"^29.5.4","webpack-cli":"^5.0.1","@babel/types":"^7.20.7","@babel/parser":"^7.20.7","@jest/globals":"^29.6.3","@types/lodash":"^4.14.197","jest-mock-extended":"^3.0.1","copy-webpack-plugin":"^11.0.0","webpack-node-externals":"^3.0.0","@typescript-eslint/parser":"^5.33.0","@amplication/code-gen-types":"^2.0.5","@amplication/code-gen-utils":"^0.0.5","@typescript-eslint/eslint-plugin":"^5.33.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-broker-redis_0.0.1_1694509921041_0.6278336270190983","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@amplication/plugin-broker-redis","version":"2.0.0","author":{"name":"Demilade Sonuga"},"license":"Apache-2.0","_id":"@amplication/plugin-broker-redis@2.0.0","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"daniele.iasella@gmail.com"},{"name":"barshimi","email":"barshimi@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"dist":{"shasum":"42bdb291483b8e4a11807de4a9035f094c9e38e9","tarball":"https://registry.npmjs.org/@amplication/plugin-broker-redis/-/plugin-broker-redis-2.0.0.tgz","fileCount":35,"integrity":"sha512-qbgRCQALQXyhNsirvuaF8Yq5D/q71p5AMD8MHTSOzn7T3SzafpfjP80Se1SHOKeoAdf7oPHvoITBp/qO5hx0tQ==","signatures":[{"sig":"MEUCIQDEWbPfwjjVNZryH2SIt4ncOAqHAqIPqxXxHwgX1kWYJQIgO/Pz73MTgVXIdpv+xcg5z7bloEFawA6cN5YllcwXOAk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3055707},"jest":{"rootDir":"src/tests","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"testEnvironment":"node","collectCoverageFrom":["**/*.(t|j)s"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","gitHead":"bfbac4ad3f206317849721d13a80fd45723ff28f","scripts":{"dev":"webpack --watch","test":"jest","build":"webpack","prebuild":"rimraf dist","format:write":"prettier --write \"**/*.{js,ts}\"","prepublishOnly":"npm run build"},"_npmUser":{"name":"amplication-bot","email":"engineering@amplication.com"},"_npmVersion":"9.8.1","description":"Use a Redis message broker in the service generated by Amplication.","directories":{},"_nodeVersion":"18.18.2","dependencies":{"lodash":"^4.17.21","pascal-case":"^3.1.2","@amplication/code-gen-types":"^2.0.15","@amplication/code-gen-utils":"^0.0.7"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.52.0","rimraf":"^5.0.5","ts-jest":"^29.1.1","webpack":"^5.89.0","prettier":"^3.0.3","ts-loader":"^9.5.0","typescript":"^5.2.2","@types/jest":"^29.5.6","webpack-cli":"^5.1.4","@babel/types":"^7.23.0","@babel/parser":"^7.23.0","@types/lodash":"^4.14.200","jest-mock-extended":"^3.0.5","copy-webpack-plugin":"^11.0.0","@typescript-eslint/parser":"^6.9.0","@typescript-eslint/eslint-plugin":"^6.9.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-broker-redis_2.0.0_1698753203255_0.08290750159670979","host":"s3://npm-registry-packages"}},"2.0.0-beta.pr-289.0d3954c":{"name":"@amplication/plugin-broker-redis","version":"2.0.0-beta.pr-289.0d3954c","author":{"name":"Demilade Sonuga"},"license":"Apache-2.0","_id":"@amplication/plugin-broker-redis@2.0.0-beta.pr-289.0d3954c","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"daniele.iasella@gmail.com"},{"name":"barshimi","email":"barshimi@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"nx":{},"dist":{"shasum":"e53b1e82891dab1d6eb5f1d77df820eff63da1c5","tarball":"https://registry.npmjs.org/@amplication/plugin-broker-redis/-/plugin-broker-redis-2.0.0-beta.pr-289.0d3954c.tgz","fileCount":37,"integrity":"sha512-NIRsM2CUauyDgpOZnd54XINOgSKEaaWgURpk76nXG+kWaVtvb1t2gTAShVnWnabSkgSPZ3+Mw+W+2OzjQUqXTw==","signatures":[{"sig":"MEUCIQC6/xmhSK+FPPr6+dIwukNMb/glRWq3pVdhfBsdq0umtgIgVnfum7Al+3EWStHjrcH2+12y0Ug4Um7VhBqMJXoCICc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3062717},"jest":{"rootDir":"src/tests","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"testEnvironment":"node","collectCoverageFrom":["**/*.(t|j)s"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","readme":"# @amplication/plugin-broker-redis\n\n[![NPM Downloads](https://img.shields.io/npm/dt/@amplication/plugin-auth-basic)](https://www.npmjs.com/package/@amplication/plugin-auth-basic)\n\nUse a Redis message broker in the service generated by Amplication.\n\n## Purpose\n\nThis plugin adds the required code to use Redis as a message broker in the service generated by Amplication.\n\nIt updates the following parts:\n\n- Adds the required dependencies to `package.json`.\n- Adds the required environment variables to `.env`.\n- Adds a module `RedisModule` with a service `RedisProducerService` that can be used to emit messages\n  and a controller to respond to topic events.\n- Adds the `RedisModule` configured to use Redis to the `app.module.ts` module imports list.\n- Adds the required redis service to the `docker-compose.yml` as `docker-compose.dev.yml` files.\n\n## Configuration\n\nThe `port` setting is the port that will be used for the url of the redis server.\n\nThe `host` setting is the host that will be used for the url of the redis server.\n\nThe `retryAttempts` setting is the number of times to retry a message.\n\nThe `retryDelay` setting is the delay between each message retry attempt.\n\nThe `enableTls` setting is set to true when TLS should be used.\n\nIf no configuration is provided the .amplicationrc.json file will use be used as the default values.\n\n```json\n{\n  \"host\": \"localhost\",\n  \"port\": 6379,\n  \"retryAttempts\": 3,\n  \"retryDelay\": 3,\n  \"enableTls\": false\n}\n```\n\n> For more information about TLS configuration, check the ioredis docs https://github.com/redis/ioredis#tls-options\n\n## Scripts\n\n### `build`\n\nRunning `npm run build` will bundle your plugin with Webpack for production.\n\n### `dev`\n\nRunning `npm run dev` will watch your plugin's source code and automatically bundle it with every change.\n\n### `test`\n\nRunning `npm run test` will run the plugin's test suite.\n\n## Usage\n\nThis plugin provides you with a Redis broker module that you can use in your service.\nTo configure, set the following environment variables:\n\nREDIS_BROKER_HOST - the host that will be used in the url of the Redis server.\n\nREDIS_BROKER_PORT - the port that will be used in the url of the Redis server.\n\nREDIS_BROKER_RETRY_ATTEMPTS - The number of times to retry a message.\n\nREDIS_BROKER_RETRY_DELAY - The delay between each message retry attempt.\n\nREDIS_BROKER_ENABLE_TLS - Set to \"true\" when TLS should be used.\n\nAn example of how to use the Redis module:\n\nIn a controller:\n\n```js\nexport class ModelController extends ModelControllerBase {\n    constructor(protected readonly service: ModelService,\n    private redisService: RedisProducerService) {\n        super(service);\n    }\n\n    @Get()\n    async respondToUser(): Promise<void> {\n        await this.redisService.emit(MessageBrokerTopics.FirstTopic, { message: \"hello, world!\" });\n        return \"Done\";\n    }\n}\n```\n\nCustomization of the Redis controller to perform desired tasks:\n\n```js\n@Controller(\"redis-controller\")\nexport class RedisController {\n  @EventPattern(\"firstTopic\")\n  async onFirstTopic(\n    @Payload()\n    message: RedisMessage\n  ): Promise<void> {\n    console.log(\"Received message:\", message);\n  }\n}\n```\n","gitHead":"607d22a1059663ecf5a89c669e84d0f6f4e1eece","scripts":{"dev":"webpack --watch","test":"jest","build":"webpack","prebuild":"rimraf dist","format:write":"prettier --write \"**/*.{js,ts}\"","prepublishOnly":"npm run build"},"_npmUser":{"name":"amplication-bot","email":"engineering@amplication.com"},"_npmVersion":"9.8.1","description":"Use a Redis message broker in the service generated by Amplication.","directories":{},"_nodeVersion":"18.18.2","dependencies":{"lodash":"^4.17.21","pascal-case":"^3.1.2","@amplication/code-gen-types":"^2.0.17","@amplication/code-gen-utils":"^0.0.7"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^8.52.0","rimraf":"^5.0.5","ts-jest":"^29.1.1","webpack":"^5.89.0","prettier":"^3.0.3","ts-loader":"^9.5.0","typescript":"^5.2.2","@types/jest":"^29.5.6","webpack-cli":"^5.1.4","@babel/types":"^7.23.0","@babel/parser":"^7.23.0","@types/lodash":"^4.14.200","jest-mock-extended":"^3.0.5","copy-webpack-plugin":"^11.0.0","@typescript-eslint/parser":"^6.9.0","@typescript-eslint/eslint-plugin":"^6.9.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-broker-redis_2.0.0-beta.pr-289.0d3954c_1700659886696_0.7821036012756819","host":"s3://npm-registry-packages"}},"2.0.0-beta.pr-295.e09faa7":{"name":"@amplication/plugin-broker-redis","version":"2.0.0-beta.pr-295.e09faa7","author":{"name":"Demilade Sonuga"},"license":"Apache-2.0","_id":"@amplication/plugin-broker-redis@2.0.0-beta.pr-295.e09faa7","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"daniele.iasella@gmail.com"},{"name":"barshimi","email":"barshimi@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"nx":{},"dist":{"shasum":"40de802670e1f39d8e78d67cff6e3442d382fb9d","tarball":"https://registry.npmjs.org/@amplication/plugin-broker-redis/-/plugin-broker-redis-2.0.0-beta.pr-295.e09faa7.tgz","fileCount":37,"integrity":"sha512-w7mv4DNx4vs4aGO4HoAzVQspm6OptykU75a9Vy4DMIYtLhW2wlbaolpfUgDV4QQx80j5ndNdbssqgYbRwPO/EQ==","signatures":[{"sig":"MEUCIQDqPKwBBCdxDCDA/qb9eecwdFtYY0m0TuKw82CNZDKUAQIgaOP80g2pFx6vqimQ3iiQnEy+fHF+o51lc/0qEl+mJQQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3062740},"jest":{"rootDir":"src/tests","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"testEnvironment":"node","collectCoverageFrom":["**/*.(t|j)s"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","readme":"# @amplication/plugin-broker-redis\n\n[![NPM Downloads](https://img.shields.io/npm/dt/@amplication/plugin-auth-basic)](https://www.npmjs.com/package/@amplication/plugin-auth-basic)\n\nUse a Redis message broker in the service generated by Amplication.\n\n## Purpose\n\nThis plugin adds the required code to use Redis as a message broker in the service generated by Amplication.\n\nIt updates the following parts:\n\n- Adds the required dependencies to `package.json`.\n- Adds the required environment variables to `.env`.\n- Adds a module `RedisModule` with a service `RedisProducerService` that can be used to emit messages\n  and a controller to respond to topic events.\n- Adds the `RedisModule` configured to use Redis to the `app.module.ts` module imports list.\n- Adds the required redis service to the `docker-compose.yml` as `docker-compose.dev.yml` files.\n\n## Configuration\n\nThe `port` setting is the port that will be used for the url of the redis server.\n\nThe `host` setting is the host that will be used for the url of the redis server.\n\nThe `retryAttempts` setting is the number of times to retry a message.\n\nThe `retryDelay` setting is the delay between each message retry attempt.\n\nThe `enableTls` setting is set to true when TLS should be used.\n\nIf no configuration is provided the .amplicationrc.json file will use be used as the default values.\n\n```json\n{\n  \"host\": \"localhost\",\n  \"port\": 6379,\n  \"retryAttempts\": 3,\n  \"retryDelay\": 3,\n  \"enableTls\": false\n}\n```\n\n> For more information about TLS configuration, check the ioredis docs https://github.com/redis/ioredis#tls-options\n\n## Scripts\n\n### `build`\n\nRunning `npm run build` will bundle your plugin with Webpack for production.\n\n### `dev`\n\nRunning `npm run dev` will watch your plugin's source code and automatically bundle it with every change.\n\n### `test`\n\nRunning `npm run test` will run the plugin's test suite.\n\n## Usage\n\nThis plugin provides you with a Redis broker module that you can use in your service.\nTo configure, set the following environment variables:\n\nREDIS_BROKER_HOST - the host that will be used in the url of the Redis server.\n\nREDIS_BROKER_PORT - the port that will be used in the url of the Redis server.\n\nREDIS_BROKER_RETRY_ATTEMPTS - The number of times to retry a message.\n\nREDIS_BROKER_RETRY_DELAY - The delay between each message retry attempt.\n\nREDIS_BROKER_ENABLE_TLS - Set to \"true\" when TLS should be used.\n\nAn example of how to use the Redis module:\n\nIn a controller:\n\n```js\nexport class ModelController extends ModelControllerBase {\n    constructor(protected readonly service: ModelService,\n    private redisService: RedisProducerService) {\n        super(service);\n    }\n\n    @Get()\n    async respondToUser(): Promise<void> {\n        await this.redisService.emit(MessageBrokerTopics.FirstTopic, { message: \"hello, world!\" });\n        return \"Done\";\n    }\n}\n```\n\nCustomization of the Redis controller to perform desired tasks:\n\n```js\n@Controller(\"redis-controller\")\nexport class RedisController {\n  @EventPattern(\"firstTopic\")\n  async onFirstTopic(\n    @Payload()\n    message: RedisMessage\n  ): Promise<void> {\n    console.log(\"Received message:\", message);\n  }\n}\n```\n","gitHead":"40155e1db719f85a5b8d4be19e317980ab63c633","scripts":{"dev":"webpack --watch","test":"jest","build":"webpack","prebuild":"rimraf dist","format:write":"prettier --write \"**/*.{js,ts}\"","prepublishOnly":"npm run build"},"_npmUser":{"name":"amplication-bot","email":"engineering@amplication.com"},"_npmVersion":"9.8.1","description":"Use a Redis message broker in the service generated by Amplication.","directories":{},"_nodeVersion":"18.18.2","dependencies":{"lodash":"^4.17.21","pascal-case":"^3.1.2","@amplication/code-gen-types":"^2.0.17","@amplication/code-gen-utils":"^0.0.7"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^8.52.0","rimraf":"^5.0.5","ts-jest":"^29.1.1","webpack":"^5.89.0","prettier":"^3.0.3","ts-loader":"^9.5.0","typescript":"^5.2.2","@types/jest":"^29.5.6","webpack-cli":"^5.1.4","@babel/types":"^7.23.0","@babel/parser":"^7.23.0","@types/lodash":"^4.14.200","jest-mock-extended":"^3.0.5","copy-webpack-plugin":"^11.0.0","@typescript-eslint/parser":"^6.9.0","@typescript-eslint/eslint-plugin":"^6.9.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-broker-redis_2.0.0-beta.pr-295.e09faa7_1701091169603_0.9507540954694131","host":"s3://npm-registry-packages"}},"2.0.1-beta.pr-297.80f0b66":{"name":"@amplication/plugin-broker-redis","version":"2.0.1-beta.pr-297.80f0b66","author":{"name":"Demilade Sonuga"},"license":"Apache-2.0","_id":"@amplication/plugin-broker-redis@2.0.1-beta.pr-297.80f0b66","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"daniele.iasella@gmail.com"},{"name":"barshimi","email":"barshimi@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"nx":{},"dist":{"shasum":"18c728b120463ba53935d321d053ba42207d3a36","tarball":"https://registry.npmjs.org/@amplication/plugin-broker-redis/-/plugin-broker-redis-2.0.1-beta.pr-297.80f0b66.tgz","fileCount":37,"integrity":"sha512-Vi2j7jCRKJFqBsNfnA8vPresWPJqy0CJU50SkFDxZ5zsttfOJ0+HePCCazllMY4Tibk9+MUmVFRyLug1ftu7Jw==","signatures":[{"sig":"MEYCIQCflBQfFRUknMMLNLC0Had0TkrU5CmdLal/LtYEGwZ1wwIhAPIgejfrzDV9Fgy6ZLkRuFlfrjNsqETw8TYS/bgfdpaP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3062746},"jest":{"rootDir":"src/tests","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"testEnvironment":"node","collectCoverageFrom":["**/*.(t|j)s"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","readme":"# @amplication/plugin-broker-redis\n\n[![NPM Downloads](https://img.shields.io/npm/dt/@amplication/plugin-auth-basic)](https://www.npmjs.com/package/@amplication/plugin-auth-basic)\n\nUse a Redis message broker in the service generated by Amplication.\n\n## Purpose\n\nThis plugin adds the required code to use Redis as a message broker in the service generated by Amplication.\n\nIt updates the following parts:\n\n- Adds the required dependencies to `package.json`.\n- Adds the required environment variables to `.env`.\n- Adds a module `RedisModule` with a service `RedisProducerService` that can be used to emit messages\n  and a controller to respond to topic events.\n- Adds the `RedisModule` configured to use Redis to the `app.module.ts` module imports list.\n- Adds the required redis service to the `docker-compose.yml` as `docker-compose.dev.yml` files.\n\n## Configuration\n\nThe `port` setting is the port that will be used for the url of the redis server.\n\nThe `host` setting is the host that will be used for the url of the redis server.\n\nThe `retryAttempts` setting is the number of times to retry a message.\n\nThe `retryDelay` setting is the delay between each message retry attempt.\n\nThe `enableTls` setting is set to true when TLS should be used.\n\nIf no configuration is provided the .amplicationrc.json file will use be used as the default values.\n\n```json\n{\n  \"host\": \"localhost\",\n  \"port\": 6379,\n  \"retryAttempts\": 3,\n  \"retryDelay\": 3,\n  \"enableTls\": false\n}\n```\n\n> For more information about TLS configuration, check the ioredis docs https://github.com/redis/ioredis#tls-options\n\n## Scripts\n\n### `build`\n\nRunning `npm run build` will bundle your plugin with Webpack for production.\n\n### `dev`\n\nRunning `npm run dev` will watch your plugin's source code and automatically bundle it with every change.\n\n### `test`\n\nRunning `npm run test` will run the plugin's test suite.\n\n## Usage\n\nThis plugin provides you with a Redis broker module that you can use in your service.\nTo configure, set the following environment variables:\n\nREDIS_BROKER_HOST - the host that will be used in the url of the Redis server.\n\nREDIS_BROKER_PORT - the port that will be used in the url of the Redis server.\n\nREDIS_BROKER_RETRY_ATTEMPTS - The number of times to retry a message.\n\nREDIS_BROKER_RETRY_DELAY - The delay between each message retry attempt.\n\nREDIS_BROKER_ENABLE_TLS - Set to \"true\" when TLS should be used.\n\nAn example of how to use the Redis module:\n\nIn a controller:\n\n```js\nexport class ModelController extends ModelControllerBase {\n    constructor(protected readonly service: ModelService,\n    private redisService: RedisProducerService) {\n        super(service);\n    }\n\n    @Get()\n    async respondToUser(): Promise<void> {\n        await this.redisService.emit(MessageBrokerTopics.FirstTopic, { message: \"hello, world!\" });\n        return \"Done\";\n    }\n}\n```\n\nCustomization of the Redis controller to perform desired tasks:\n\n```js\n@Controller(\"redis-controller\")\nexport class RedisController {\n  @EventPattern(\"firstTopic\")\n  async onFirstTopic(\n    @Payload()\n    message: RedisMessage\n  ): Promise<void> {\n    console.log(\"Received message:\", message);\n  }\n}\n```\n","gitHead":"c7bc8663c51755347539711cfa02f9eda15f1941","scripts":{"dev":"webpack --watch","test":"jest","build":"webpack","prebuild":"rimraf dist","format:write":"prettier --write \"**/*.{js,ts}\"","prepublishOnly":"npm run build"},"_npmUser":{"name":"amplication-bot","email":"engineering@amplication.com"},"_npmVersion":"9.8.1","description":"Use a Redis message broker in the service generated by Amplication.","directories":{},"_nodeVersion":"18.18.2","dependencies":{"lodash":"^4.17.21","pascal-case":"^3.1.2","@amplication/code-gen-types":"^2.0.17","@amplication/code-gen-utils":"^0.0.7"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^8.52.0","rimraf":"^5.0.5","ts-jest":"^29.1.1","webpack":"^5.89.0","prettier":"^3.0.3","ts-loader":"^9.5.0","typescript":"^5.2.2","@types/jest":"^29.5.6","webpack-cli":"^5.1.4","@babel/types":"^7.23.0","@babel/parser":"^7.23.0","@types/lodash":"^4.14.200","jest-mock-extended":"^3.0.5","copy-webpack-plugin":"^11.0.0","@typescript-eslint/parser":"^6.9.0","@typescript-eslint/eslint-plugin":"^6.9.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-broker-redis_2.0.1-beta.pr-297.80f0b66_1701193114126_0.4642993591214122","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"@amplication/plugin-broker-redis","version":"2.0.1","author":{"name":"Demilade Sonuga"},"license":"Apache-2.0","_id":"@amplication/plugin-broker-redis@2.0.1","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"daniele.iasella@gmail.com"},{"name":"barshimi","email":"barshimi@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"nx":{},"dist":{"shasum":"d620ccdb3eb7071d3710c1f52fc1870ee5d7a062","tarball":"https://registry.npmjs.org/@amplication/plugin-broker-redis/-/plugin-broker-redis-2.0.1.tgz","fileCount":37,"integrity":"sha512-KdbLEU+7UNc2qc3XRBsFtp9gQi12xnUHAOS75Tr7hp7oN2O5VPm6kux4sudcypIG69JLDdAaHsAUSVr/a5tn1A==","signatures":[{"sig":"MEQCIEVXVVZMlTIimVQarBovHFCcbB9PerHoduCnycuIg/YMAiBTv8r1Im78xAz5YcxI8k3Rk3SJWqJtEcV/TPHr+edHuA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3062706},"jest":{"rootDir":"src/tests","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"testEnvironment":"node","collectCoverageFrom":["**/*.(t|j)s"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","gitHead":"cc05b0f0c9675cdae28fd7216ad4a04ac5169e99","scripts":{"dev":"webpack --watch","test":"jest","build":"webpack","prebuild":"rimraf dist","format:write":"prettier --write \"**/*.{js,ts}\"","prepublishOnly":"npm run build"},"_npmUser":{"name":"amplication-bot","email":"engineering@amplication.com"},"_npmVersion":"9.8.1","description":"Use a Redis message broker in the service generated by Amplication.","directories":{},"_nodeVersion":"18.18.2","dependencies":{"lodash":"^4.17.21","pascal-case":"^3.1.2","@amplication/code-gen-types":"^2.0.17","@amplication/code-gen-utils":"^0.0.7"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.52.0","rimraf":"^5.0.5","ts-jest":"^29.1.1","webpack":"^5.89.0","prettier":"^3.0.3","ts-loader":"^9.5.0","typescript":"^5.2.2","@types/jest":"^29.5.6","webpack-cli":"^5.1.4","@babel/types":"^7.23.0","@babel/parser":"^7.23.0","@types/lodash":"^4.14.200","jest-mock-extended":"^3.0.5","copy-webpack-plugin":"^11.0.0","@typescript-eslint/parser":"^6.9.0","@typescript-eslint/eslint-plugin":"^6.9.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-broker-redis_2.0.1_1701193699528_0.44392815095109794","host":"s3://npm-registry-packages"}},"2.0.2":{"name":"@amplication/plugin-broker-redis","version":"2.0.2","author":{"name":"Demilade Sonuga"},"license":"Apache-2.0","_id":"@amplication/plugin-broker-redis@2.0.2","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"daniele.iasella@gmail.com"},{"name":"barshimi","email":"barshimi@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"nx":{},"dist":{"shasum":"5d531b4cead65a6eda7affb3511a7a70f5bd1d82","tarball":"https://registry.npmjs.org/@amplication/plugin-broker-redis/-/plugin-broker-redis-2.0.2.tgz","fileCount":37,"integrity":"sha512-Ws/fQIsvhdIw0ewzqhbeksxvsEqd3/NEin0IXlEVukXs6ymMjKKvUGUAyI3sJF1HfgV/cfnbcQJuxzeLcnufAA==","signatures":[{"sig":"MEYCIQC+qNWcu5m4piwEfnLVFjx7ysCSll/FxqX34dgZzcGCngIhALv008AvEZ6Xao1Djsgl55mafkh9WbFj7PEmAaF/d8qf","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3062765},"jest":{"rootDir":"src/tests","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"passWithNoTests":true,"testEnvironment":"node","collectCoverageFrom":["**/*.(t|j)s"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","gitHead":"2430524073c1ab3ba27de8174e4a5322d3481aa0","scripts":{"dev":"webpack --watch","test":"jest","build":"webpack","prebuild":"rimraf dist","prepublishOnly":"npm run build"},"_npmUser":{"name":"amplication-bot","email":"engineering@amplication.com"},"_npmVersion":"10.2.3","description":"Use a Redis message broker in the service generated by Amplication.","directories":{},"_nodeVersion":"18.19.0","dependencies":{"lodash":"^4.17.21","pascal-case":"^3.1.2","@amplication/code-gen-types":"^2.0.17","@amplication/code-gen-utils":"^0.0.7"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.52.0","rimraf":"^5.0.5","ts-jest":"^29.1.1","webpack":"^5.89.0","prettier":"^3.0.3","ts-loader":"^9.5.0","typescript":"^5.2.2","@types/jest":"^29.5.6","webpack-cli":"^5.1.4","@babel/types":"^7.23.0","@babel/parser":"^7.23.0","@types/lodash":"^4.14.200","jest-mock-extended":"^3.0.5","copy-webpack-plugin":"^11.0.0","@typescript-eslint/parser":"^6.9.0","@typescript-eslint/eslint-plugin":"^6.9.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-broker-redis_2.0.2_1703752169666_0.8313221265875674","host":"s3://npm-registry-packages"}},"2.0.3":{"name":"@amplication/plugin-broker-redis","version":"2.0.3","author":{"name":"Demilade Sonuga"},"license":"Apache-2.0","_id":"@amplication/plugin-broker-redis@2.0.3","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"daniele.iasella@gmail.com"},{"name":"barshimi","email":"barshimi@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"nx":{},"dist":{"shasum":"7db1415171313a1f609b48d80e322eb73128b4c0","tarball":"https://registry.npmjs.org/@amplication/plugin-broker-redis/-/plugin-broker-redis-2.0.3.tgz","fileCount":37,"integrity":"sha512-Sbt913OSerZeNS02EZuIY26VTBk/xNeTRaWAdeSpJdRs11ZpEF1N0z0X+GPrsWPRWcf/+xIlubirjBXpNu9/Mg==","signatures":[{"sig":"MEUCIQCCp6w1eUkTHkSU8t914JvxDeDh6P0JUv4NlWWt/qQnqQIgXIMJpyR1FjJMfH46vz6svA68KQkm9AVmZpbIyh2mEv4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3062765},"jest":{"rootDir":"src/tests","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"passWithNoTests":true,"testEnvironment":"node","collectCoverageFrom":["**/*.(t|j)s"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","gitHead":"a3013af17c40f329488598221d037d0d30e3a96c","scripts":{"dev":"webpack --watch","test":"jest","build":"webpack","prebuild":"rimraf dist","prepublishOnly":"npm run build"},"_npmUser":{"name":"amplication-bot","email":"engineering@amplication.com"},"_npmVersion":"10.2.3","description":"Use a Redis message broker in the service generated by Amplication.","directories":{},"_nodeVersion":"18.19.0","dependencies":{"lodash":"^4.17.21","pascal-case":"^3.1.2","@amplication/code-gen-types":"^2.0.17","@amplication/code-gen-utils":"^0.0.7"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.52.0","rimraf":"^5.0.5","ts-jest":"^29.1.1","webpack":"^5.89.0","prettier":"^3.0.3","ts-loader":"^9.5.0","typescript":"^5.2.2","@types/jest":"^29.5.6","webpack-cli":"^5.1.4","@babel/types":"^7.23.0","@babel/parser":"^7.23.0","@types/lodash":"^4.14.200","jest-mock-extended":"^3.0.5","copy-webpack-plugin":"^11.0.0","@typescript-eslint/parser":"^6.9.0","@typescript-eslint/eslint-plugin":"^6.9.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-broker-redis_2.0.3_1703760968109_0.997814940644375","host":"s3://npm-registry-packages"}},"2.0.4":{"name":"@amplication/plugin-broker-redis","version":"2.0.4","author":{"name":"Demilade Sonuga"},"license":"Apache-2.0","_id":"@amplication/plugin-broker-redis@2.0.4","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"daniele.iasella@gmail.com"},{"name":"barshimi","email":"barshimi@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"nx":{},"dist":{"shasum":"1854a0efc71c1d1db026cd4d4ce5cad68729bdf0","tarball":"https://registry.npmjs.org/@amplication/plugin-broker-redis/-/plugin-broker-redis-2.0.4.tgz","fileCount":37,"integrity":"sha512-6IXH+97sdV8lb0DPWE0uriPTtyCrPmicFJMmcNqZu8YGC50SFIKxHHH/qQWGUL8rgeO9Hn/ZHcQZb2KWfHt9ug==","signatures":[{"sig":"MEUCIAWEe8pOrW65fA01JeulgYz4ww4SeYv74YkeiCIHo1C3AiEA1olwEuIrPxnPMZbHQyE5A0aY40RxGi0+7a/X2HZg3UY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3063249},"jest":{"rootDir":"src/tests","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"passWithNoTests":true,"testEnvironment":"node","collectCoverageFrom":["**/*.(t|j)s"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","gitHead":"b691b143f55c108c744eb526b016d08f3ee027b0","scripts":{"dev":"webpack --watch","test":"jest","build":"webpack","prebuild":"rimraf dist","prepublishOnly":"npm run build"},"_npmUser":{"name":"amplication-bot","email":"engineering@amplication.com"},"deprecated":"This version is deprecated due to bugged release.","_npmVersion":"10.2.4","description":"Use a Redis message broker in the service generated by Amplication.","directories":{},"_nodeVersion":"18.19.1","dependencies":{"lodash":"^4.17.21","pascal-case":"^3.1.2","@amplication/code-gen-types":"^2.0.23","@amplication/code-gen-utils":"^0.0.9"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.52.0","rimraf":"^5.0.5","ts-jest":"^29.1.1","webpack":"^5.89.0","prettier":"^2.6.2","ts-loader":"^9.5.0","typescript":"^5.2.2","@types/jest":"^29.5.6","webpack-cli":"^5.1.4","@babel/types":"^7.23.0","@babel/parser":"^7.23.0","@types/lodash":"^4.14.200","jest-mock-extended":"^3.0.5","copy-webpack-plugin":"^12.0.2","@typescript-eslint/parser":"^6.9.0","@typescript-eslint/eslint-plugin":"^6.9.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-broker-redis_2.0.4_1709917732249_0.4983927183272374","host":"s3://npm-registry-packages"}},"2.0.5":{"name":"@amplication/plugin-broker-redis","version":"2.0.5","author":{"name":"Demilade Sonuga"},"license":"Apache-2.0","_id":"@amplication/plugin-broker-redis@2.0.5","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"daniele.iasella@gmail.com"},{"name":"barshimi","email":"barshimi@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"nx":{},"dist":{"shasum":"e6b04ac370ef149ac08076965e381b75b8df55c6","tarball":"https://registry.npmjs.org/@amplication/plugin-broker-redis/-/plugin-broker-redis-2.0.5.tgz","fileCount":37,"integrity":"sha512-W/10XEGKKrzU2AKQRJrx/S/VpT4hugFNTR3hcvhL8eqMrAVeQgIA2aOZxbeeHIs3MbUnMPPzR66adjuHaEXD3A==","signatures":[{"sig":"MEQCIBpwzlNjkPvny+Ib6jZiVf5NBFMNsMgdaxDI6wp/+MwAAiBdfyZFzQEOVQUtXvEi/bbGeD9Xu1VEIxt3SvHZDP+1kg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3063249},"jest":{"rootDir":"src/tests","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"passWithNoTests":true,"testEnvironment":"node","collectCoverageFrom":["**/*.(t|j)s"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","gitHead":"3bcbdd3404d2d13b3033284d1504c30ac01fd037","scripts":{"dev":"webpack --watch","test":"jest","build":"webpack","prebuild":"rimraf dist","prepublishOnly":"npm run build"},"_npmUser":{"name":"amplication-bot","email":"engineering@amplication.com"},"deprecated":"This version is deprecated due to bugged release.","_npmVersion":"10.2.4","description":"Use a Redis message broker in the service generated by Amplication.","directories":{},"_nodeVersion":"18.19.1","dependencies":{"lodash":"^4.17.21","pascal-case":"^3.1.2","@amplication/code-gen-types":"^2.0.23","@amplication/code-gen-utils":"^0.0.9"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.52.0","rimraf":"^5.0.5","ts-jest":"^29.1.1","webpack":"^5.89.0","prettier":"^2.6.2","ts-loader":"^9.5.0","typescript":"^5.2.2","@types/jest":"^29.5.6","webpack-cli":"^5.1.4","@babel/types":"^7.23.0","@babel/parser":"^7.23.0","@types/lodash":"^4.14.200","jest-mock-extended":"^3.0.5","copy-webpack-plugin":"^12.0.2","@typescript-eslint/parser":"^6.9.0","@typescript-eslint/eslint-plugin":"^6.9.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-broker-redis_2.0.5_1709920852538_0.4589790731757277","host":"s3://npm-registry-packages"}},"2.0.6":{"name":"@amplication/plugin-broker-redis","version":"2.0.6","author":{"name":"Demilade Sonuga"},"license":"Apache-2.0","_id":"@amplication/plugin-broker-redis@2.0.6","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"daniele.iasella@gmail.com"},{"name":"barshimi","email":"barshimi@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"nx":{},"dist":{"shasum":"52801675e0a514c45201aef9f75c4dc18f78575c","tarball":"https://registry.npmjs.org/@amplication/plugin-broker-redis/-/plugin-broker-redis-2.0.6.tgz","fileCount":37,"integrity":"sha512-wU90l/xADwrg8c8a+nVdjnGPQdo2KeZNPaVOeW2fxB6ku+ZsFR+TxRqpVur0wW9KngUKv84yhCXeWjKGGpZeVA==","signatures":[{"sig":"MEUCIDqX76lD9Fab+faFjzzY7j6rmyK5AMnUXPis2WovobFEAiEA/oGT5dV+hCEtcNtVXbgEosAyr+plD41OpXAV81/9nL8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3063580},"jest":{"rootDir":"src/tests","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"passWithNoTests":true,"testEnvironment":"node","collectCoverageFrom":["**/*.(t|j)s"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","gitHead":"49226a8071d190a42ca1f7c947123a7e70eb178a","scripts":{"dev":"webpack --watch","test":"jest","build":"webpack","prebuild":"rimraf dist","prepublishOnly":"npm run build"},"_npmUser":{"name":"amplication-bot","email":"engineering@amplication.com"},"deprecated":"This version is deprecated due to bugged release.","_npmVersion":"10.2.4","description":"Use a Redis message broker in the service generated by Amplication.","directories":{},"_nodeVersion":"18.19.1","dependencies":{"lodash":"^4.17.21","pascal-case":"^3.1.2","@amplication/code-gen-types":"^2.0.23","@amplication/code-gen-utils":"^0.0.9"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.52.0","rimraf":"^5.0.5","ts-jest":"^29.1.1","webpack":"^5.89.0","prettier":"^2.6.2","ts-loader":"^9.5.0","typescript":"^5.2.2","@types/jest":"^29.5.6","webpack-cli":"^5.1.4","@babel/types":"^7.23.0","@babel/parser":"^7.23.0","@types/lodash":"^4.14.200","jest-mock-extended":"^3.0.5","copy-webpack-plugin":"^12.0.2","@typescript-eslint/parser":"^6.9.0","@typescript-eslint/eslint-plugin":"^6.9.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-broker-redis_2.0.6_1710174879419_0.039039126010985914","host":"s3://npm-registry-packages"}},"2.0.7-beta.pr-354.31d30ce":{"name":"@amplication/plugin-broker-redis","version":"2.0.7-beta.pr-354.31d30ce","author":{"name":"Demilade Sonuga"},"license":"Apache-2.0","_id":"@amplication/plugin-broker-redis@2.0.7-beta.pr-354.31d30ce","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"daniele.iasella@gmail.com"},{"name":"barshimi","email":"barshimi@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"nx":{},"dist":{"shasum":"886a7ef40dbd2a9872fd8f8eb9aa82cc40706ad4","tarball":"https://registry.npmjs.org/@amplication/plugin-broker-redis/-/plugin-broker-redis-2.0.7-beta.pr-354.31d30ce.tgz","fileCount":12,"integrity":"sha512-0xrMF1O7yuoCB7yyUWeHb1lzdpjdFjOiA1cIqO2safpBKp2r7z1ERpkoBmrWFWrhQSr4qT7Zm1gAsdb5E4FnPg==","signatures":[{"sig":"MEYCIQCoYpLpxsMQXxXIqCaV/PQom9emF8jKWVLQyXq0aQfIlgIhAPmBfsRy+RpRNLDzHSb9Tv8ReZS+gzq1szG2Lh8VYJLL","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3009815},"jest":{"rootDir":"src/tests","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"passWithNoTests":true,"testEnvironment":"node","collectCoverageFrom":["**/*.(t|j)s"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","readme":"# @amplication/plugin-broker-redis\n\n[![NPM Downloads](https://img.shields.io/npm/dt/@amplication/plugin-auth-basic)](https://www.npmjs.com/package/@amplication/plugin-auth-basic)\n\nUse a Redis message broker in the service generated by Amplication.\n\n## Purpose\n\nThis plugin adds the required code to use Redis as a message broker in the service generated by Amplication.\n\nIt updates the following parts:\n\n- Adds the required dependencies to `package.json`.\n- Adds the required environment variables to `.env`.\n- Adds a module `RedisModule` with a service `RedisProducerService` that can be used to emit messages\n  and a controller to respond to topic events.\n- Adds the `RedisModule` configured to use Redis to the `app.module.ts` module imports list.\n- Adds the required redis service to the `docker-compose.yml` as `docker-compose.dev.yml` files.\n\n## Configuration\n\nThe `port` setting is the port that will be used for the url of the redis server.\n\nThe `host` setting is the host that will be used for the url of the redis server.\n\nThe `retryAttempts` setting is the number of times to retry a message.\n\nThe `retryDelay` setting is the delay between each message retry attempt.\n\nThe `enableTls` setting is set to true when TLS should be used.\n\nIf no configuration is provided the .amplicationrc.json file will use be used as the default values.\n\n```json\n{\n  \"host\": \"localhost\",\n  \"port\": 6379,\n  \"retryAttempts\": 3,\n  \"retryDelay\": 3,\n  \"enableTls\": false\n}\n```\n\n> For more information about TLS configuration, check the ioredis docs https://github.com/redis/ioredis#tls-options\n\n## Scripts\n\n### `build`\n\nRunning `npm run build` will bundle your plugin with Webpack for production.\n\n### `dev`\n\nRunning `npm run dev` will watch your plugin's source code and automatically bundle it with every change.\n\n### `test`\n\nRunning `npm run test` will run the plugin's test suite.\n\n## Usage\n\nThis plugin provides you with a Redis broker module that you can use in your service.\nTo configure, set the following environment variables:\n\nREDIS_BROKER_HOST - the host that will be used in the url of the Redis server.\n\nREDIS_BROKER_PORT - the port that will be used in the url of the Redis server.\n\nREDIS_BROKER_RETRY_ATTEMPTS - The number of times to retry a message.\n\nREDIS_BROKER_RETRY_DELAY - The delay between each message retry attempt.\n\nREDIS_BROKER_ENABLE_TLS - Set to \"true\" when TLS should be used.\n\nAn example of how to use the Redis module:\n\nIn a controller:\n\n```js\nexport class ModelController extends ModelControllerBase {\n    constructor(protected readonly service: ModelService,\n    private redisService: RedisProducerService) {\n        super(service);\n    }\n\n    @Get()\n    async respondToUser(): Promise<void> {\n        await this.redisService.emit(MessageBrokerTopics.FirstTopic, { message: \"hello, world!\" });\n        return \"Done\";\n    }\n}\n```\n\nCustomization of the Redis controller to perform desired tasks:\n\n```js\n@Controller(\"redis-controller\")\nexport class RedisController {\n  @EventPattern(\"firstTopic\")\n  async onFirstTopic(\n    @Payload()\n    message: RedisMessage\n  ): Promise<void> {\n    console.log(\"Received message:\", message);\n  }\n}\n```\n","gitHead":"31d30ceddcfeef89aba68f985ee37516408aada3","scripts":{"dev":"webpack --watch","test":"jest","build":"webpack","prebuild":"rimraf dist","prepublishOnly":"npm run build"},"_npmUser":{"name":"amplication-bot","email":"engineering@amplication.com"},"deprecated":"This version is deprecated due to bugged release.","_npmVersion":"10.2.4","description":"Use a Redis message broker in the service generated by Amplication.","directories":{},"_nodeVersion":"18.19.1","dependencies":{"lodash":"^4.17.21","pascal-case":"^3.1.2","@amplication/code-gen-types":"^2.0.23","@amplication/code-gen-utils":"^0.0.9"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^8.52.0","rimraf":"^5.0.5","ts-jest":"^29.1.1","webpack":"^5.89.0","prettier":"^2.6.2","ts-loader":"^9.5.0","typescript":"^5.2.2","@types/jest":"^29.5.6","webpack-cli":"^5.1.4","@babel/types":"^7.23.0","@babel/parser":"^7.23.0","@types/lodash":"^4.14.200","jest-mock-extended":"^3.0.5","copy-webpack-plugin":"^12.0.2","@typescript-eslint/parser":"^6.9.0","@typescript-eslint/eslint-plugin":"^6.9.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-broker-redis_2.0.7-beta.pr-354.31d30ce_1710262239111_0.3970491862312939","host":"s3://npm-registry-packages"}},"2.0.7-beta.pr-354.1e83d71":{"name":"@amplication/plugin-broker-redis","version":"2.0.7-beta.pr-354.1e83d71","author":{"name":"Demilade Sonuga"},"license":"Apache-2.0","_id":"@amplication/plugin-broker-redis@2.0.7-beta.pr-354.1e83d71","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"daniele.iasella@gmail.com"},{"name":"barshimi","email":"barshimi@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"nx":{},"dist":{"shasum":"843afa6db98fc12fd63d935ddd1c57781de23dfb","tarball":"https://registry.npmjs.org/@amplication/plugin-broker-redis/-/plugin-broker-redis-2.0.7-beta.pr-354.1e83d71.tgz","fileCount":12,"integrity":"sha512-WNWIg+KC69RlsiqrpsJBH83h0yCSrsYXVThw8lFSeiXHeM0BL85EPEc0/cZOfIjXMyJ/tY6ioORleVsHjde/jA==","signatures":[{"sig":"MEYCIQD4xu7lL2QJ/uEJ0DmK1HjLH2B2lfMxlzcjkfkrpCj35QIhAMf1Nkq1kAw++l8HCDaax/jESJzPV1Cos82wkr3IZkid","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":419758},"jest":{"rootDir":"src/tests","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"passWithNoTests":true,"testEnvironment":"node","collectCoverageFrom":["**/*.(t|j)s"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","readme":"# @amplication/plugin-broker-redis\n\n[![NPM Downloads](https://img.shields.io/npm/dt/@amplication/plugin-auth-basic)](https://www.npmjs.com/package/@amplication/plugin-auth-basic)\n\nUse a Redis message broker in the service generated by Amplication.\n\n## Purpose\n\nThis plugin adds the required code to use Redis as a message broker in the service generated by Amplication.\n\nIt updates the following parts:\n\n- Adds the required dependencies to `package.json`.\n- Adds the required environment variables to `.env`.\n- Adds a module `RedisModule` with a service `RedisProducerService` that can be used to emit messages\n  and a controller to respond to topic events.\n- Adds the `RedisModule` configured to use Redis to the `app.module.ts` module imports list.\n- Adds the required redis service to the `docker-compose.yml` as `docker-compose.dev.yml` files.\n\n## Configuration\n\nThe `port` setting is the port that will be used for the url of the redis server.\n\nThe `host` setting is the host that will be used for the url of the redis server.\n\nThe `retryAttempts` setting is the number of times to retry a message.\n\nThe `retryDelay` setting is the delay between each message retry attempt.\n\nThe `enableTls` setting is set to true when TLS should be used.\n\nIf no configuration is provided the .amplicationrc.json file will use be used as the default values.\n\n```json\n{\n  \"host\": \"localhost\",\n  \"port\": 6379,\n  \"retryAttempts\": 3,\n  \"retryDelay\": 3,\n  \"enableTls\": false\n}\n```\n\n> For more information about TLS configuration, check the ioredis docs https://github.com/redis/ioredis#tls-options\n\n## Scripts\n\n### `build`\n\nRunning `npm run build` will bundle your plugin with Webpack for production.\n\n### `dev`\n\nRunning `npm run dev` will watch your plugin's source code and automatically bundle it with every change.\n\n### `test`\n\nRunning `npm run test` will run the plugin's test suite.\n\n## Usage\n\nThis plugin provides you with a Redis broker module that you can use in your service.\nTo configure, set the following environment variables:\n\nREDIS_BROKER_HOST - the host that will be used in the url of the Redis server.\n\nREDIS_BROKER_PORT - the port that will be used in the url of the Redis server.\n\nREDIS_BROKER_RETRY_ATTEMPTS - The number of times to retry a message.\n\nREDIS_BROKER_RETRY_DELAY - The delay between each message retry attempt.\n\nREDIS_BROKER_ENABLE_TLS - Set to \"true\" when TLS should be used.\n\nAn example of how to use the Redis module:\n\nIn a controller:\n\n```js\nexport class ModelController extends ModelControllerBase {\n    constructor(protected readonly service: ModelService,\n    private redisService: RedisProducerService) {\n        super(service);\n    }\n\n    @Get()\n    async respondToUser(): Promise<void> {\n        await this.redisService.emit(MessageBrokerTopics.FirstTopic, { message: \"hello, world!\" });\n        return \"Done\";\n    }\n}\n```\n\nCustomization of the Redis controller to perform desired tasks:\n\n```js\n@Controller(\"redis-controller\")\nexport class RedisController {\n  @EventPattern(\"firstTopic\")\n  async onFirstTopic(\n    @Payload()\n    message: RedisMessage\n  ): Promise<void> {\n    console.log(\"Received message:\", message);\n  }\n}\n```\n","gitHead":"1e83d71a2b825d341f058cf3221885d6628f0e23","scripts":{"dev":"webpack --watch","test":"jest","build":"webpack","prebuild":"rimraf dist","prepublishOnly":"npm run build"},"_npmUser":{"name":"amplication-bot","email":"engineering@amplication.com"},"deprecated":"This version is deprecated due to bugged release.","_npmVersion":"10.2.4","description":"Use a Redis message broker in the service generated by Amplication.","directories":{},"_nodeVersion":"18.19.1","dependencies":{"lodash":"^4.17.21","pascal-case":"^3.1.2","@amplication/code-gen-types":"^2.0.23","@amplication/code-gen-utils":"^0.0.9"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^8.52.0","rimraf":"^5.0.5","ts-jest":"^29.1.1","webpack":"^5.89.0","prettier":"^2.6.2","ts-loader":"^9.5.0","typescript":"^5.2.2","@types/jest":"^29.5.6","webpack-cli":"^5.1.4","@babel/types":"^7.23.0","@babel/parser":"^7.23.0","@types/lodash":"^4.14.200","jest-mock-extended":"^3.0.5","copy-webpack-plugin":"^12.0.2","@typescript-eslint/parser":"^6.9.0","@typescript-eslint/eslint-plugin":"^6.9.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-broker-redis_2.0.7-beta.pr-354.1e83d71_1710262985507_0.19805182801268928","host":"s3://npm-registry-packages"}},"2.0.7":{"name":"@amplication/plugin-broker-redis","version":"2.0.7","author":{"name":"Demilade Sonuga"},"license":"Apache-2.0","_id":"@amplication/plugin-broker-redis@2.0.7","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"daniele.iasella@gmail.com"},{"name":"barshimi","email":"barshimi@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"nx":{},"dist":{"shasum":"f9888898c9735617126498973c20216762d20e51","tarball":"https://registry.npmjs.org/@amplication/plugin-broker-redis/-/plugin-broker-redis-2.0.7.tgz","fileCount":37,"integrity":"sha512-Rxa/sr7VwIL+vmCRMh7hjgKSwxqllBnEgTeAbz2sb+W0F8ENieaFo0kzUQV87BAthqMHDRQApC/OrfCK1gKiRw==","signatures":[{"sig":"MEQCIDM/IpWh3oINsA/ggzd0ekwG6GklLIo5K5MwWkiBWGiMAiAB194tfITc+/Mjf/0w1nf8zTM2j3krIGvkW6WmOyMHdQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3063580},"jest":{"rootDir":"src/tests","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"passWithNoTests":true,"testEnvironment":"node","collectCoverageFrom":["**/*.(t|j)s"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","gitHead":"bbe78ccc1ddfa13fb24cc11e53174dbab67d13c3","scripts":{"dev":"webpack --watch","test":"jest","build":"webpack","prebuild":"rimraf dist","prepublishOnly":"npm run build"},"_npmUser":{"name":"amplication-bot","email":"engineering@amplication.com"},"_npmVersion":"10.2.4","description":"Use a Redis message broker in the service generated by Amplication.","directories":{},"_nodeVersion":"18.19.1","dependencies":{"lodash":"^4.17.21","pascal-case":"^3.1.2","@amplication/code-gen-types":"^2.0.23","@amplication/code-gen-utils":"^0.0.9"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.52.0","rimraf":"^5.0.5","ts-jest":"^29.1.1","webpack":"^5.89.0","prettier":"^2.6.2","ts-loader":"^9.5.0","typescript":"^5.2.2","@types/jest":"^29.5.6","webpack-cli":"^5.1.4","@babel/types":"^7.23.0","@babel/parser":"^7.23.0","@types/lodash":"^4.14.200","jest-mock-extended":"^3.0.5","copy-webpack-plugin":"^12.0.2","@typescript-eslint/parser":"^6.9.0","@typescript-eslint/eslint-plugin":"^6.9.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-broker-redis_2.0.7_1710433784232_0.0591633644354812","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-09-12T09:12:00.936Z","modified":"2024-09-09T13:32:35.205Z","0.0.1":"2023-09-12T09:12:01.276Z","2.0.0":"2023-10-31T11:53:23.513Z","2.0.0-beta.pr-289.0d3954c":"2023-11-22T13:31:26.856Z","2.0.0-beta.pr-295.e09faa7":"2023-11-27T13:19:29.792Z","2.0.1-beta.pr-297.80f0b66":"2023-11-28T17:38:34.395Z","2.0.1":"2023-11-28T17:48:19.790Z","2.0.2":"2023-12-28T08:29:29.923Z","2.0.3":"2023-12-28T10:56:08.346Z","2.0.4":"2024-03-08T17:08:52.453Z","2.0.5":"2024-03-08T18:00:52.761Z","2.0.6":"2024-03-11T16:34:39.704Z","2.0.7-beta.pr-354.31d30ce":"2024-03-12T16:50:39.326Z","2.0.7-beta.pr-354.1e83d71":"2024-03-12T17:03:05.668Z","2.0.7":"2024-03-14T16:29:44.429Z"},"author":{"name":"Demilade Sonuga"},"license":"Apache-2.0","description":"Use a Redis message broker in the service generated by Amplication.","maintainers":[{"email":"engineering@amplication.com","name":"amplication-bot"},{"email":"muly@amplication.com","name":"mulygottlieb"},{"email":"vanNoort.levi@protonmail.com","name":"levivannoort"},{"email":"mor@amplication.com","name":"morhag"},{"email":"hazaz.yuval@gmail.com","name":"yuvalhazaz"}],"readme":"# @amplication/plugin-broker-redis\n\n[![NPM Downloads](https://img.shields.io/npm/dt/@amplication/plugin-auth-basic)](https://www.npmjs.com/package/@amplication/plugin-auth-basic)\n\nUse a Redis message broker in the service generated by Amplication.\n\n## Purpose\n\nThis plugin adds the required code to use Redis as a message broker in the service generated by Amplication.\n\nIt updates the following parts:\n\n- Adds the required dependencies to `package.json`.\n- Adds the required environment variables to `.env`.\n- Adds a module `RedisModule` with a service `RedisProducerService` that can be used to emit messages\n  and a controller to respond to topic events.\n- Adds the `RedisModule` configured to use Redis to the `app.module.ts` module imports list.\n- Adds the required redis service to the `docker-compose.yml` as `docker-compose.dev.yml` files.\n\n## Configuration\n\nThe `port` setting is the port that will be used for the url of the redis server.\n\nThe `host` setting is the host that will be used for the url of the redis server.\n\nThe `retryAttempts` setting is the number of times to retry a message.\n\nThe `retryDelay` setting is the delay between each message retry attempt.\n\nThe `enableTls` setting is set to true when TLS should be used.\n\nIf no configuration is provided the .amplicationrc.json file will use be used as the default values.\n\n```json\n{\n  \"host\": \"localhost\",\n  \"port\": 6379,\n  \"retryAttempts\": 3,\n  \"retryDelay\": 3,\n  \"enableTls\": false\n}\n```\n\n> For more information about TLS configuration, check the ioredis docs https://github.com/redis/ioredis#tls-options\n\n## Scripts\n\n### `build`\n\nRunning `npm run build` will bundle your plugin with Webpack for production.\n\n### `dev`\n\nRunning `npm run dev` will watch your plugin's source code and automatically bundle it with every change.\n\n### `test`\n\nRunning `npm run test` will run the plugin's test suite.\n\n## Usage\n\nThis plugin provides you with a Redis broker module that you can use in your service.\nTo configure, set the following environment variables:\n\nREDIS_BROKER_HOST - the host that will be used in the url of the Redis server.\n\nREDIS_BROKER_PORT - the port that will be used in the url of the Redis server.\n\nREDIS_BROKER_RETRY_ATTEMPTS - The number of times to retry a message.\n\nREDIS_BROKER_RETRY_DELAY - The delay between each message retry attempt.\n\nREDIS_BROKER_ENABLE_TLS - Set to \"true\" when TLS should be used.\n\nAn example of how to use the Redis module:\n\nIn a controller:\n\n```js\nexport class ModelController extends ModelControllerBase {\n    constructor(protected readonly service: ModelService,\n    private redisService: RedisProducerService) {\n        super(service);\n    }\n\n    @Get()\n    async respondToUser(): Promise<void> {\n        await this.redisService.emit(MessageBrokerTopics.FirstTopic, { message: \"hello, world!\" });\n        return \"Done\";\n    }\n}\n```\n\nCustomization of the Redis controller to perform desired tasks:\n\n```js\n@Controller(\"redis-controller\")\nexport class RedisController {\n  @EventPattern(\"firstTopic\")\n  async onFirstTopic(\n    @Payload()\n    message: RedisMessage\n  ): Promise<void> {\n    console.log(\"Received message:\", message);\n  }\n}\n```\n","readmeFilename":"README.md"}