{"_id":"@castore/message-bus-adapter-event-bridge","_rev":"8-4aac9088e714838da7ee7112ee0d9724","name":"@castore/message-bus-adapter-event-bridge","dist-tags":{"latest":"2.4.2"},"versions":{"2.0.0":{"name":"@castore/message-bus-adapter-event-bridge","version":"2.0.0","keywords":["event","source","store","typescript"],"license":"MIT","_id":"@castore/message-bus-adapter-event-bridge@2.0.0","maintainers":[{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},{"name":"valentinbeggi","email":"valentinbe@theodo.fr"},{"name":"charlesgery","email":"charles.gery@gmail.com"},{"name":"julietteff","email":"juliettef@theodo.fr"}],"homepage":"https://github.com/theodo/castore#readme","bugs":{"url":"https://github.com/theodo/castore/issues"},"nx":{"targets":{"package":{"outputs":["packages/message-bus-adapter-event-bridge/dist"]}}},"dist":{"shasum":"8cee16990c59b33e89dabf7aca96e7817aa130be","tarball":"https://registry.npmjs.org/@castore/message-bus-adapter-event-bridge/-/message-bus-adapter-event-bridge-2.0.0.tgz","fileCount":23,"integrity":"sha512-5EHB4NhY5lHwaOA1nKRo+yN8hJ1UXhiCsxAQ8t9YC34AuO/x5E7KahmkICehKqJ/K8bix95qMhN073LECbYcag==","signatures":[{"sig":"MEUCIBwHYUoK0+4lt/B4I36JgjlzofaO1FgimitlMhY6nDV4AiEAgbIK+mnrkMHWBF2ig6p8E+aXjgjdba0fZQ7BRqoaigM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":170662},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","module":"dist/esm/index.js","gitHead":"a00ddf6ae99fbe78737f648da21dc7aad4883733","scripts":{"test":"yarn test-type && yarn test-unit && yarn test-circular && yarn test-linter","watch":"rm -rf dist && concurrently 'yarn:package-* --watch'","package":"rm -rf dist && yarn package-cjs && yarn package-esm && yarn package-types","lint-fix":"yarn linter-base-config --fix","test-type":"tsc --noEmit --emitDeclarationOnly false","test-unit":"yarn vitest run --passWithNoTests","transpile":"babel src --extensions .ts --quiet","package-cjs":"NODE_ENV=cjs yarn transpile --out-dir dist/cjs --source-maps","package-esm":"NODE_ENV=esm yarn transpile --out-dir dist/esm --source-maps","test-linter":"yarn linter-base-config .","lint-fix-all":"yarn lint-fix .","package-types":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","test-circular":"yarn depcruise --validate dependency-cruiser.js .","linter-base-config":"eslint --ext=js,ts"},"_npmUser":{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},"repository":{"url":"git+https://github.com/theodo/castore.git","type":"git"},"_npmVersion":"9.8.1","description":"DRY Castore MessageBus definition using AWS EventBridge","directories":{},"sideEffects":false,"_nodeVersion":"18.18.2","dependencies":{"lodash.chunk":"^4.2.0","@types/aws-lambda":"^8.10.111"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.14.0","vitest":"^0.26.2","ts-node":"^10.7.0","prettier":"^2.6.2","tsc-alias":"^1.8.7","@babel/cli":"^7.17.6","typescript":"^4.6.3","@babel/core":"^7.17.9","@types/node":"^17.0.29","ts-toolbelt":"^9.6.0","concurrently":"^7.1.0","@castore/core":"workspace:","@babel/preset-env":"^7.16.11","dependency-cruiser":"^11.7.0","@types/lodash.chunk":"^4.2.7","aws-sdk-client-mock":"^2.1.0","@babel/preset-typescript":"^7.16.7","@aws-sdk/client-eventbridge":"^3.2.0","babel-plugin-module-resolver":"^4.1.0","@babel/plugin-transform-runtime":"^7.17.0"},"peerDependencies":{"@castore/core":"^2.0.0","@aws-sdk/client-eventbridge":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/message-bus-adapter-event-bridge_2.0.0_1698427514651_0.35320741681109147","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"@castore/message-bus-adapter-event-bridge","version":"2.1.0","keywords":["event","source","store","typescript"],"license":"MIT","_id":"@castore/message-bus-adapter-event-bridge@2.1.0","maintainers":[{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},{"name":"valentinbeggi","email":"valentinbe@theodo.fr"},{"name":"charlesgery","email":"charles.gery@gmail.com"},{"name":"julietteff","email":"juliettef@theodo.fr"}],"homepage":"https://github.com/theodo/castore#readme","bugs":{"url":"https://github.com/theodo/castore/issues"},"nx":{"targets":{"package":{"outputs":["packages/message-bus-adapter-event-bridge/dist"]}}},"dist":{"shasum":"0debc3b8011602d2168bc4f5e9f4c6277c03e68d","tarball":"https://registry.npmjs.org/@castore/message-bus-adapter-event-bridge/-/message-bus-adapter-event-bridge-2.1.0.tgz","fileCount":23,"integrity":"sha512-YyHy4QN5Ui8Omi5U7uocws7IGyJ5R8BWam5hawX/S0eoRXyfBZooURMtLuk3Y1ZYmrxEOKAmZ+6dhcMmzrrcvg==","signatures":[{"sig":"MEUCIBXhUjbP/S4gsY5TWWr9nj7VZgmfrEsbRYZIf5C9WkfhAiEA+ZeuTEffbAEPyIv9lizbbTrN/eSFSvZZ2tXGRMA9zks=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":170662},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","module":"dist/esm/index.js","gitHead":"80c3a1f242e1f30f789312fc5a421789f189beb5","scripts":{"test":"yarn test-type && yarn test-unit && yarn test-circular && yarn test-linter","watch":"rm -rf dist && concurrently 'yarn:package-* --watch'","package":"rm -rf dist && yarn package-cjs && yarn package-esm && yarn package-types","lint-fix":"yarn linter-base-config --fix","test-type":"tsc --noEmit --emitDeclarationOnly false","test-unit":"yarn vitest run --passWithNoTests","transpile":"babel src --extensions .ts --quiet","package-cjs":"NODE_ENV=cjs yarn transpile --out-dir dist/cjs --source-maps","package-esm":"NODE_ENV=esm yarn transpile --out-dir dist/esm --source-maps","test-linter":"yarn linter-base-config .","lint-fix-all":"yarn lint-fix .","package-types":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","test-circular":"yarn depcruise --validate dependency-cruiser.js .","linter-base-config":"eslint --ext=js,ts"},"_npmUser":{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},"repository":{"url":"git+https://github.com/theodo/castore.git","type":"git"},"_npmVersion":"9.8.1","description":"DRY Castore MessageBus definition using AWS EventBridge","directories":{},"sideEffects":false,"_nodeVersion":"18.18.2","dependencies":{"lodash.chunk":"^4.2.0","@types/aws-lambda":"^8.10.111"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.14.0","vitest":"^0.26.2","ts-node":"^10.7.0","prettier":"^2.6.2","tsc-alias":"^1.8.7","@babel/cli":"^7.17.6","typescript":"^4.6.3","@babel/core":"^7.17.9","@types/node":"^17.0.29","ts-toolbelt":"^9.6.0","concurrently":"^7.1.0","@castore/core":"workspace:","@babel/preset-env":"^7.16.11","dependency-cruiser":"^11.7.0","@types/lodash.chunk":"^4.2.7","aws-sdk-client-mock":"^2.1.0","@babel/preset-typescript":"^7.16.7","@aws-sdk/client-eventbridge":"^3.2.0","babel-plugin-module-resolver":"^4.1.0","@babel/plugin-transform-runtime":"^7.17.0"},"peerDependencies":{"@castore/core":"^2.0.0","@aws-sdk/client-eventbridge":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/message-bus-adapter-event-bridge_2.1.0_1699022254863_0.8296730495010458","host":"s3://npm-registry-packages"}},"2.2.0":{"name":"@castore/message-bus-adapter-event-bridge","version":"2.2.0","keywords":["event","source","store","typescript"],"license":"MIT","_id":"@castore/message-bus-adapter-event-bridge@2.2.0","maintainers":[{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},{"name":"valentinbeggi","email":"valentinbe@theodo.fr"},{"name":"charlesgery","email":"charles.gery@gmail.com"},{"name":"julietteff","email":"juliettef@theodo.fr"}],"homepage":"https://github.com/theodo/castore#readme","bugs":{"url":"https://github.com/theodo/castore/issues"},"nx":{"targets":{"package":{"outputs":["packages/message-bus-adapter-event-bridge/dist"]}}},"dist":{"shasum":"cebe0120cf653c78cf1b49f7768fba8f8c435f76","tarball":"https://registry.npmjs.org/@castore/message-bus-adapter-event-bridge/-/message-bus-adapter-event-bridge-2.2.0.tgz","fileCount":23,"integrity":"sha512-AT07w0IL6xfy7X5FolLg2cz64h76wTCvy8qzAGUJeG34jPM+sekoYrvra1f0A7OhzMTxuWvc9XLUQZ56wxtFeg==","signatures":[{"sig":"MEQCIEHNnZ/0WNcOghZ/7di1UFt5aTH3KhbKFubPOxghLR6DAiAhLZhJGRdur/+mAa0XEZfBpiytbmrBCUsqAM6/EoS2Vg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":170827},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","module":"dist/esm/index.js","gitHead":"3cedccd6195f6afd90b6dcb30fd3511bacb4b5e7","scripts":{"test":"yarn test-type && yarn test-unit && yarn test-circular && yarn test-linter","watch":"rm -rf dist && concurrently 'yarn:package-* --watch'","package":"rm -rf dist && yarn package-cjs && yarn package-esm && yarn package-types","lint-fix":"yarn linter-base-config --fix","test-type":"tsc --noEmit --emitDeclarationOnly false","test-unit":"yarn vitest run --passWithNoTests","transpile":"babel src --extensions .ts --quiet","package-cjs":"NODE_ENV=cjs yarn transpile --out-dir dist/cjs --source-maps","package-esm":"NODE_ENV=esm yarn transpile --out-dir dist/esm --source-maps","test-linter":"yarn linter-base-config .","lint-fix-all":"yarn lint-fix .","package-types":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","test-circular":"yarn depcruise --validate dependency-cruiser.js .","linter-base-config":"eslint --ext=js,ts"},"_npmUser":{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},"repository":{"url":"git+https://github.com/theodo/castore.git","type":"git"},"_npmVersion":"10.2.3","description":"DRY Castore MessageBus definition using AWS EventBridge","directories":{},"sideEffects":false,"_nodeVersion":"18.19.0","dependencies":{"lodash.chunk":"^4.2.0","@types/aws-lambda":"^8.10.111"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.14.0","vitest":"^0.26.2","ts-node":"^10.7.0","prettier":"^2.6.2","tsc-alias":"^1.8.7","@babel/cli":"^7.17.6","typescript":"^4.6.3","@babel/core":"^7.17.9","@types/node":"^17.0.29","ts-toolbelt":"^9.6.0","concurrently":"^7.1.0","@castore/core":"workspace:","@babel/preset-env":"^7.16.11","dependency-cruiser":"^11.7.0","@types/lodash.chunk":"^4.2.7","aws-sdk-client-mock":"^2.1.0","@babel/preset-typescript":"^7.16.7","@aws-sdk/client-eventbridge":"^3.2.0","babel-plugin-module-resolver":"^4.1.0","@babel/plugin-transform-runtime":"^7.17.0"},"peerDependencies":{"@castore/core":"^2.0.0","@aws-sdk/client-eventbridge":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/message-bus-adapter-event-bridge_2.2.0_1705427196276_0.9046105390236692","host":"s3://npm-registry-packages"}},"2.3.0":{"name":"@castore/message-bus-adapter-event-bridge","version":"2.3.0","keywords":["event","source","store","typescript"],"license":"MIT","_id":"@castore/message-bus-adapter-event-bridge@2.3.0","maintainers":[{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},{"name":"valentinbeggi","email":"valentinbe@theodo.fr"},{"name":"charlesgery","email":"charles.gery@gmail.com"},{"name":"julietteff","email":"juliettef@theodo.fr"}],"homepage":"https://github.com/theodo/castore#readme","bugs":{"url":"https://github.com/theodo/castore/issues"},"nx":{"targets":{"package":{"outputs":["packages/message-bus-adapter-event-bridge/dist"]}}},"dist":{"shasum":"537ae54d3f6e998227f23597864704fb946fdca0","tarball":"https://registry.npmjs.org/@castore/message-bus-adapter-event-bridge/-/message-bus-adapter-event-bridge-2.3.0.tgz","fileCount":23,"integrity":"sha512-GAAeEszT0U5/VEbbJDN9XRq2AwzH9ZEqPBJ0PiFf6sv0+wXYmNm1Bpa1i08I0Ka8rZLsBizmpze5mp7EMEucLg==","signatures":[{"sig":"MEYCIQC2p9BIsPW2cGHI/Qr+IGi6UsBL9HumivfVHp0yzSOQlQIhAP3VoQG6xtrD8DeOHm8d+fsrJosFKF/NdgEfXa/zbkR2","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":171261},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","module":"dist/esm/index.js","gitHead":"aa8c8f824db8f4e38afd58f7b9f389c7211acd26","scripts":{"test":"yarn test-type && yarn test-unit && yarn test-circular && yarn test-linter","watch":"rm -rf dist && concurrently 'yarn:package-* --watch'","package":"rm -rf dist && yarn package-cjs && yarn package-esm && yarn package-types","lint-fix":"yarn linter-base-config --fix","test-type":"tsc --noEmit --emitDeclarationOnly false","test-unit":"yarn vitest run --passWithNoTests","transpile":"babel src --extensions .ts --quiet","package-cjs":"NODE_ENV=cjs yarn transpile --out-dir dist/cjs --source-maps","package-esm":"NODE_ENV=esm yarn transpile --out-dir dist/esm --source-maps","test-linter":"yarn linter-base-config .","lint-fix-all":"yarn lint-fix .","package-types":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","test-circular":"yarn depcruise --validate dependency-cruiser.js .","linter-base-config":"eslint --ext=js,ts"},"_npmUser":{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},"repository":{"url":"git+https://github.com/theodo/castore.git","type":"git"},"_npmVersion":"10.2.4","description":"DRY Castore MessageBus definition using AWS EventBridge","directories":{},"sideEffects":false,"_nodeVersion":"18.19.1","dependencies":{"lodash.chunk":"^4.2.0","@types/aws-lambda":"^8.10.111"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.14.0","vitest":"^0.26.2","ts-node":"^10.7.0","prettier":"^2.6.2","tsc-alias":"^1.8.7","@babel/cli":"^7.17.6","typescript":"^4.6.3","@babel/core":"^7.17.9","@types/node":"^17.0.29","ts-toolbelt":"^9.6.0","concurrently":"^7.1.0","@castore/core":"workspace:","@babel/preset-env":"^7.16.11","dependency-cruiser":"^11.7.0","@types/lodash.chunk":"^4.2.7","aws-sdk-client-mock":"^2.1.0","@babel/preset-typescript":"^7.16.7","@aws-sdk/client-eventbridge":"^3.2.0","babel-plugin-module-resolver":"^4.1.0","@babel/plugin-transform-runtime":"^7.17.0"},"peerDependencies":{"@castore/core":"^2.0.0","@aws-sdk/client-eventbridge":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/message-bus-adapter-event-bridge_2.3.0_1710957125130_0.58567520639876","host":"s3://npm-registry-packages"}},"2.3.1":{"name":"@castore/message-bus-adapter-event-bridge","version":"2.3.1","keywords":["event","source","store","typescript"],"license":"MIT","_id":"@castore/message-bus-adapter-event-bridge@2.3.1","maintainers":[{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},{"name":"valentinbeggi","email":"valentinbe@theodo.fr"},{"name":"charlesgery","email":"charles.gery@gmail.com"},{"name":"julietteff","email":"juliettef@theodo.fr"}],"homepage":"https://github.com/theodo/castore#readme","bugs":{"url":"https://github.com/theodo/castore/issues"},"nx":{"targets":{"package":{"outputs":["packages/message-bus-adapter-event-bridge/dist"]}}},"dist":{"shasum":"9343e54b9c21919aeed5a7b952f64434f3846c49","tarball":"https://registry.npmjs.org/@castore/message-bus-adapter-event-bridge/-/message-bus-adapter-event-bridge-2.3.1.tgz","fileCount":23,"integrity":"sha512-L0WLbJ372XNTovYUi43K1iqr8jgbWrIN9MosJ/wygtwEuh+LrGcw5ooH7667ghuZ2u7H6AyzRG6Ls4YBCTPeqg==","signatures":[{"sig":"MEQCIAWIvcubzHuAC+cRaGxcH4oWH7hooLLsV515WjCd6WhcAiBkgexZnCbcR5tgGCDluoKaO849gJJcEdGvSVHi0ez8+Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":171261},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","module":"dist/esm/index.js","gitHead":"ec117c540dcadb351b35e349f04dc9f4d7937a38","scripts":{"test":"yarn test-type && yarn test-unit && yarn test-circular && yarn test-linter","watch":"rm -rf dist && concurrently 'yarn:package-* --watch'","package":"rm -rf dist && yarn package-cjs && yarn package-esm && yarn package-types","lint-fix":"yarn linter-base-config --fix","test-type":"tsc --noEmit --emitDeclarationOnly false","test-unit":"yarn vitest run --passWithNoTests","transpile":"babel src --extensions .ts --quiet","package-cjs":"NODE_ENV=cjs yarn transpile --out-dir dist/cjs --source-maps","package-esm":"NODE_ENV=esm yarn transpile --out-dir dist/esm --source-maps","test-linter":"yarn linter-base-config .","lint-fix-all":"yarn lint-fix .","package-types":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","test-circular":"yarn depcruise --validate dependency-cruiser.js .","linter-base-config":"eslint --ext=js,ts"},"_npmUser":{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},"repository":{"url":"git+https://github.com/theodo/castore.git","type":"git"},"_npmVersion":"10.5.0","description":"DRY Castore MessageBus definition using AWS EventBridge","directories":{},"sideEffects":false,"_nodeVersion":"18.20.2","dependencies":{"lodash.chunk":"^4.2.0","@types/aws-lambda":"^8.10.111"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.14.0","vitest":"^0.26.2","ts-node":"^10.7.0","prettier":"^2.6.2","tsc-alias":"^1.8.7","@babel/cli":"^7.17.6","typescript":"^4.6.3","@babel/core":"^7.17.9","@types/node":"^17.0.29","ts-toolbelt":"^9.6.0","concurrently":"^7.1.0","@castore/core":"workspace:","@babel/preset-env":"^7.16.11","dependency-cruiser":"^11.7.0","@types/lodash.chunk":"^4.2.7","aws-sdk-client-mock":"^2.1.0","@babel/preset-typescript":"^7.16.7","@aws-sdk/client-eventbridge":"^3.2.0","babel-plugin-module-resolver":"^4.1.0","@babel/plugin-transform-runtime":"^7.17.0"},"peerDependencies":{"@castore/core":"^2.0.0","@aws-sdk/client-eventbridge":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/message-bus-adapter-event-bridge_2.3.1_1714035444789_0.14555149867465889","host":"s3://npm-registry-packages"}},"2.4.0":{"name":"@castore/message-bus-adapter-event-bridge","version":"2.4.0","keywords":["event","source","store","typescript"],"license":"MIT","_id":"@castore/message-bus-adapter-event-bridge@2.4.0","maintainers":[{"name":"julietteff","email":"juliettef@theodo.fr"},{"name":"charlesgery","email":"charles.gery@gmail.com"},{"name":"valentinbeggi","email":"valentinbe@theodo.fr"},{"name":"thomasaribart","email":"thomas.aribart@gmail.com"}],"homepage":"https://github.com/theodo/castore#readme","bugs":{"url":"https://github.com/theodo/castore/issues"},"nx":{"targets":{"package":{"outputs":["packages/message-bus-adapter-event-bridge/dist"]}}},"dist":{"shasum":"0c6078455ffbd63bd452f4289ca661de3b0864ce","tarball":"https://registry.npmjs.org/@castore/message-bus-adapter-event-bridge/-/message-bus-adapter-event-bridge-2.4.0.tgz","fileCount":23,"integrity":"sha512-gdFLflU47SS7yVZyCQuCLpCQ7jlE+x8VzsTFJqqbu64ZVTnOLvBwmt856HE7VTyNMNMFeg1+LfOX1qN5SJ9ubg==","signatures":[{"sig":"MEUCIC97+BL9FRqE6Y8R6gw5S8jMexv9Z51fRRp6Pci99tSVAiEA9TdFrsBofBXvgpPCCIkmZukm5LrSPTgrDsytYVLrd4g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":171261},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","module":"dist/esm/index.js","gitHead":"313e001988903763e7eb169751114c5f71cc3efe","scripts":{"test":"yarn test-type && yarn test-unit && yarn test-circular && yarn test-linter","watch":"rm -rf dist && concurrently 'yarn:package-* --watch'","package":"rm -rf dist && yarn package-cjs && yarn package-esm && yarn package-types","lint-fix":"yarn linter-base-config --fix","test-type":"tsc --noEmit --emitDeclarationOnly false","test-unit":"yarn vitest run --passWithNoTests","transpile":"babel src --extensions .ts --quiet","package-cjs":"NODE_ENV=cjs yarn transpile --out-dir dist/cjs --source-maps","package-esm":"NODE_ENV=esm yarn transpile --out-dir dist/esm --source-maps","test-linter":"yarn linter-base-config .","lint-fix-all":"yarn lint-fix .","package-types":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","test-circular":"yarn depcruise --validate dependency-cruiser.js .","linter-base-config":"eslint --ext=js,ts"},"_npmUser":{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},"repository":{"url":"git+https://github.com/theodo/castore.git","type":"git"},"_npmVersion":"10.8.2","description":"DRY Castore MessageBus definition using AWS EventBridge","directories":{},"sideEffects":false,"_nodeVersion":"20.18.2","dependencies":{"lodash.chunk":"^4.2.0","@types/aws-lambda":"^8.10.111"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.14.0","vitest":"^0.26.2","ts-node":"^10.7.0","prettier":"^2.6.2","tsc-alias":"^1.8.7","@babel/cli":"^7.17.6","typescript":"^4.6.3","@babel/core":"^7.17.9","@types/node":"^17.0.29","ts-toolbelt":"^9.6.0","concurrently":"^7.1.0","@castore/core":"workspace:","@babel/preset-env":"^7.16.11","dependency-cruiser":"^11.7.0","@types/lodash.chunk":"^4.2.7","aws-sdk-client-mock":"^2.1.0","@babel/preset-typescript":"^7.16.7","@aws-sdk/client-eventbridge":"^3.2.0","babel-plugin-module-resolver":"^4.1.0","@babel/plugin-transform-runtime":"^7.17.0"},"peerDependencies":{"@castore/core":"^2.0.0","@aws-sdk/client-eventbridge":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/message-bus-adapter-event-bridge_2.4.0_1739877950971_0.7716992380355596","host":"s3://npm-registry-packages-npm-production"}},"2.4.1":{"name":"@castore/message-bus-adapter-event-bridge","version":"2.4.1","keywords":["event","source","store","typescript"],"license":"MIT","_id":"@castore/message-bus-adapter-event-bridge@2.4.1","maintainers":[{"name":"julietteff","email":"juliettef@theodo.fr"},{"name":"charlesgery","email":"charles.gery@gmail.com"},{"name":"valentinbeggi","email":"valentinbe@theodo.fr"},{"name":"thomasaribart","email":"thomas.aribart@gmail.com"}],"homepage":"https://github.com/theodo/castore#readme","bugs":{"url":"https://github.com/theodo/castore/issues"},"nx":{"targets":{"package":{"outputs":["packages/message-bus-adapter-event-bridge/dist"]}}},"dist":{"shasum":"41d2d3c2dc144f8284f6d561d4b2eeec692caee7","tarball":"https://registry.npmjs.org/@castore/message-bus-adapter-event-bridge/-/message-bus-adapter-event-bridge-2.4.1.tgz","fileCount":23,"integrity":"sha512-ihhHvv83JUudJjuO8/Su1eMo8s6K2quyDAYE5jcIFqwRNVc7FiUjCyuY63euvTOUyxEkYqBP+Z6LUpovvzdrUA==","signatures":[{"sig":"MEQCIA2vz1FfWFwNAIt3HAxht2dzitNN43zyMDpgJ4+F4iJKAiBzp1r0HY3QVDqpxY6a5/B+Bz007IneqRj7QTrxeo0M2Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":171261},"main":"dist/cjs/index.js","types":"dist/types/index.d.ts","module":"dist/esm/index.js","gitHead":"28c9f4e5c7c7527b6d3b5e5d9834789c2e64fd5e","scripts":{"test":"yarn test-type && yarn test-unit && yarn test-circular && yarn test-linter","watch":"rm -rf dist && concurrently 'yarn:package-* --watch'","package":"rm -rf dist && yarn package-cjs && yarn package-esm && yarn package-types","lint-fix":"yarn linter-base-config --fix","test-type":"tsc --noEmit --emitDeclarationOnly false","test-unit":"yarn vitest run --passWithNoTests","transpile":"babel src --extensions .ts --quiet","package-cjs":"NODE_ENV=cjs yarn transpile --out-dir dist/cjs --source-maps","package-esm":"NODE_ENV=esm yarn transpile --out-dir dist/esm --source-maps","test-linter":"yarn linter-base-config .","lint-fix-all":"yarn lint-fix .","package-types":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","test-circular":"yarn depcruise --validate dependency-cruiser.js .","linter-base-config":"eslint --ext=js,ts"},"_npmUser":{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},"repository":{"url":"git+https://github.com/theodo/castore.git","type":"git"},"_npmVersion":"10.8.2","description":"DRY Castore MessageBus definition using AWS EventBridge","directories":{},"sideEffects":false,"_nodeVersion":"20.18.2","dependencies":{"lodash.chunk":"^4.2.0","@types/aws-lambda":"^8.10.111"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.14.0","vitest":"^0.26.2","ts-node":"^10.7.0","prettier":"^2.6.2","tsc-alias":"^1.8.7","@babel/cli":"^7.17.6","typescript":"^4.6.3","@babel/core":"^7.17.9","@types/node":"^17.0.29","ts-toolbelt":"^9.6.0","concurrently":"^7.1.0","@castore/core":"workspace:","@babel/preset-env":"^7.16.11","dependency-cruiser":"^11.7.0","@types/lodash.chunk":"^4.2.7","aws-sdk-client-mock":"^2.1.0","@babel/preset-typescript":"^7.16.7","@aws-sdk/client-eventbridge":"^3.2.0","babel-plugin-module-resolver":"^4.1.0","@babel/plugin-transform-runtime":"^7.17.0"},"peerDependencies":{"@castore/core":"^2.0.0","@aws-sdk/client-eventbridge":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/message-bus-adapter-event-bridge_2.4.1_1740488554309_0.9919952411535569","host":"s3://npm-registry-packages-npm-production"}},"2.4.2":{"name":"@castore/message-bus-adapter-event-bridge","description":"DRY Castore MessageBus definition using AWS EventBridge","license":"MIT","homepage":"https://github.com/theodo/castore#readme","bugs":{"url":"https://github.com/theodo/castore/issues"},"repository":{"type":"git","url":"git+https://github.com/theodo/castore.git"},"keywords":["event","source","store","typescript"],"publishConfig":{"access":"public"},"sideEffects":false,"main":"dist/cjs/index.js","module":"dist/esm/index.js","types":"dist/types/index.d.ts","scripts":{"lint-fix":"yarn linter-base-config --fix","lint-fix-all":"yarn lint-fix .","linter-base-config":"eslint --ext=js,ts","package":"rm -rf dist && yarn package-cjs && yarn package-esm && yarn package-types","package-cjs":"NODE_ENV=cjs yarn transpile --out-dir dist/cjs --source-maps","package-esm":"NODE_ENV=esm yarn transpile --out-dir dist/esm --source-maps","package-types":"tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json","test":"yarn test-type && yarn test-unit && yarn test-circular && yarn test-linter","test-circular":"yarn depcruise --validate dependency-cruiser.js .","test-linter":"yarn linter-base-config .","test-type":"tsc --noEmit --emitDeclarationOnly false","test-unit":"yarn vitest run --passWithNoTests","transpile":"babel src --extensions .ts --quiet","watch":"rm -rf dist && concurrently 'yarn:package-* --watch'"},"dependencies":{"@types/aws-lambda":"^8.10.111","lodash.chunk":"^4.2.0"},"devDependencies":{"@aws-sdk/client-eventbridge":"^3.2.0","@babel/cli":"^7.17.6","@babel/core":"^7.17.9","@babel/plugin-transform-runtime":"^7.17.0","@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@castore/core":"workspace:","@types/lodash.chunk":"^4.2.7","@types/node":"^17.0.29","aws-sdk-client-mock":"^2.1.0","babel-plugin-module-resolver":"^4.1.0","concurrently":"^7.1.0","dependency-cruiser":"^11.7.0","eslint":"^8.14.0","prettier":"^2.6.2","ts-node":"^10.7.0","ts-toolbelt":"^9.6.0","tsc-alias":"^1.8.7","typescript":"^4.6.3","vitest":"^0.26.2"},"maintainers":[{"name":"julietteff","email":"juliettef@theodo.fr"},{"name":"charlesgery","email":"charles.gery@gmail.com"},{"name":"valentinbeggi","email":"valentinbe@theodo.fr"},{"name":"thomasaribart","email":"thomas.aribart@gmail.com"}],"nx":{"targets":{"package":{"outputs":["packages/message-bus-adapter-event-bridge/dist"]}}},"peerDependencies":{"@aws-sdk/client-eventbridge":"^3.0.0","@castore/core":"^2.0.0"},"version":"2.4.2","_id":"@castore/message-bus-adapter-event-bridge@2.4.2","gitHead":"fd79dfcc42ef28d216b08007edacd21208ba1876","_nodeVersion":"20.19.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-X3cW7mbrPFesX91EgWyGN+IHNZ4x0MwImm1G87uvvYUEHyumfU703NaOMBk3zfgEgQgsCiI3j8sgdkC17PJOJw==","shasum":"c3283c2ab9a79801f4f14c1139b0b00a6f1f755a","tarball":"https://registry.npmjs.org/@castore/message-bus-adapter-event-bridge/-/message-bus-adapter-event-bridge-2.4.2.tgz","fileCount":23,"unpackedSize":171261,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFB/PsMvdqjVLe21ukuyw549yNjuv5LhVpmkCSOKYu5GAiAByByufhA6eZxeeSUsVfYM01FVZLQDaRbctJP2TZKeUQ=="}]},"_npmUser":{"name":"thomasaribart","email":"thomas.aribart@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/message-bus-adapter-event-bridge_2.4.2_1744991118700_0.9738299092258187"},"_hasShrinkwrap":false}},"time":{"created":"2023-10-27T17:25:14.582Z","modified":"2025-04-18T15:45:19.138Z","2.0.0":"2023-10-27T17:25:14.909Z","2.1.0":"2023-11-03T14:37:35.030Z","2.2.0":"2024-01-16T17:46:36.430Z","2.3.0":"2024-03-20T17:52:05.341Z","2.3.1":"2024-04-25T08:57:24.977Z","2.4.0":"2025-02-18T11:25:51.187Z","2.4.1":"2025-02-25T13:02:34.506Z","2.4.2":"2025-04-18T15:45:18.895Z"},"bugs":{"url":"https://github.com/theodo/castore/issues"},"license":"MIT","homepage":"https://github.com/theodo/castore#readme","keywords":["event","source","store","typescript"],"repository":{"type":"git","url":"git+https://github.com/theodo/castore.git"},"description":"DRY Castore MessageBus definition using AWS EventBridge","maintainers":[{"name":"julietteff","email":"juliettef@theodo.fr"},{"name":"charlesgery","email":"charles.gery@gmail.com"},{"name":"valentinbeggi","email":"valentinbe@theodo.fr"},{"name":"thomasaribart","email":"thomas.aribart@gmail.com"}],"readme":"# EventBridge Message Bus Adapter\n\nDRY Castore [`MessageBus`](https://castore-dev.github.io/castore/docs/reacting-to-events/message-buses/) definition using [AWS EventBridge](https://aws.amazon.com/eventbridge/).\n\n## 📥 Installation\n\n```bash\n# npm\nnpm install @castore/message-bus-adapter-event-bridge\n\n# yarn\nyarn add @castore/message-bus-adapter-event-bridge\n```\n\nThis package has `@castore/core` and `@aws-sdk/client-eventbridge` (above v3) as peer dependencies, so you will have to install them as well:\n\n```bash\n# npm\nnpm install @castore/core @aws-sdk/client-eventbridge\n\n# yarn\nyarn add @castore/core @aws-sdk/client-eventbridge\n```\n\n## 👩‍💻 Usage\n\n```ts\nimport { EventBridgeClient } from '@aws-sdk/client-eventbridge';\n\nimport { EventBridgeMessageBusAdapter } from '@castore/message-bus-adapter-event-bridge';\n\nconst eventBridgeClient = new EventBridgeClient({});\n\nconst messageBusAdapter = new EventBridgeMessageBusAdapter({\n  eventBusName: 'my-event-bus-name',\n  eventBridgeClient,\n});\n\n// 👇 Alternatively, provide a getter\nconst messageBusAdapter = new EventBridgeMessageBusAdapter({\n  eventBusName: () => process.env.MY_EVENT_BUS_NAME,\n  eventBridgeClient,\n});\n\nconst appMessageBus = new NotificationMessageBus({\n  ...\n  messageBusAdapter\n})\n```\n\nThis will directly plug your MessageBus to EventBridge 🙌\n\n## 🤔 How it works\n\nWhen publishing a message, its `eventStoreId` is used as the message `source` and its event `type` is used as `detail-type` (except for `AggregateExistsMessageBus` for which a constant is used). The whole message is passed to the `detail` property.\n\n```ts\n// 👇 Aggregate exists\n{\n  \"source\": \"POKEMONS\", // <= eventStoreId\n  \"detail-type\": \"__AGGREGATE_EXISTS__\", // <= constant\n  \"detail\": {\n    \"eventStoreId\": \"POKEMONS\",\n    \"aggregateId\": \"123\",\n  },\n  ... // <= Other technical EventBridge properties\n}\n```\n\n```ts\n// 👇 Notification\n{\n  \"source\": \"POKEMONS\",\n  \"detail-type\": \"POKEMON_APPEARED\", // <= event type\n  \"detail\": {\n    \"eventStoreId\": \"POKEMONS\",\n    \"event\": {\n      \"aggregateId\": \"123\",\n      \"version\": 1,\n      \"type\": \"POKEMON_APPEARED\",\n      \"timestamp\": ...\n      ...\n    },\n  },\n  ...\n}\n```\n\n```ts\n// 👇 State-carrying\n{\n  \"source\": \"POKEMONS\",\n  \"detail-type\": \"POKEMON_APPEARED\",\n  \"detail\": {\n    \"eventStoreId\": \"POKEMONS\",\n    \"event\": {\n      \"aggregateId\": \"123\",\n      ...\n    },\n    \"aggregate\": { ... } // <= aggregate\n  },\n  ...\n}\n```\n\nIf the `replay` option is set to `true` when publishing a notification or state-carrying message, the `\"detail-type\"` will be set to `\"__REPLAYED__\"`. This makes sure that any subscription to replayed events is **opt-in**:\n\n```ts\n// 👇 Replayed notification message\n{\n  \"source\": \"POKEMONS\",\n  \"detail-type\": \"__REPLAYED__\",\n  \"detail\": {\n    \"eventStoreId\": \"POKEMONS\",\n    \"event\": {\n      \"aggregateId\": \"123\",\n      \"type\": \"POKEMON_APPEARED\", // <= event type still available\n      ...\n    },\n  },\n  ...\n}\n```\n\nOn the listeners side, you can use the `EventBridgeMessageBusMessage` TS type to type your argument:\n\n```ts\nimport type { EventBridgeMessageBusMessage } from '@castore/message-bus-adapter-event-bridge';\n\nconst listener = async (\n  message: EventBridgeMessageBusMessage<typeof appMessageBus>,\n) => {\n  // 🙌 Correctly typed!\n  const { eventStoreId, event } = message.detail;\n};\n```\n\nYou can provide event store ids and event types if you listener only listens to specific event types:\n\n```ts\nimport type { EventBridgeMessageBusMessage } from '@castore/message-bus-adapter-event-bridge';\n\nconst listener = async (\n  message: EventBridgeMessageBusMessage<\n    typeof appMessageBus,\n    'POKEMONS', // <= Only listen to the 'POKEMONS' event store events (optional)\n    'POKEMON_APPEARED' // <= Only listen to 'POKEMON_APPEARED' events (optional)\n  >,\n) => {\n  // 🙌 Correctly typed!\n  const { eventStoreId, event } = message.detail;\n};\n```\n\n## 🔑 IAM\n\nThe `publishMessage` method requires the `events:PutEvents` IAM permission on the provided event bus.\n","readmeFilename":"README.md"}