{"_id":"@1mill/with-iota","_rev":"16-d43811afc8fa1d5f714faca00dd7b6ca","name":"@1mill/with-iota","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.2":{"name":"@1mill/with-iota","version":"0.0.2","keywords":["lambda"],"license":"MIT","_id":"@1mill/with-iota@0.0.2","maintainers":[{"name":"1mill","email":"nightw0lf@hotmail.com"}],"homepage":"https://github.com/1mill/with-iota#readme","bugs":{"url":"https://github.com/1mill/with-iota/issues"},"dist":{"shasum":"9c4bbb9e34a8bee25f83f551fe118520046b46ae","tarball":"https://registry.npmjs.org/@1mill/with-iota/-/with-iota-0.0.2.tgz","fileCount":20,"integrity":"sha512-14iX8ZWp4hM4T1hA/xKr4y2DeVyo+FMx+xga9N2dELZtQ5M47f77MzyfsFlV4Eciavvyb3fuHJfb7tk5V35V4Q==","signatures":[{"sig":"MEQCIALff7wA/qSvdo+Y8QsXzRGedgiE496RXqxrYc4KCAZ7AiBKvK5XxfTSuZwENlxIeJsPVPOsCKBAIRKwrpWcjaAvdw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7070725},"main":"./dist/index.cjs","type":"module","unpkg":"./dist/index.umd.js","module":"./dist/index.module.js","source":"src/index.js","authors":["Erik Ekberg <nightw0lf@hotmail.com>"],"gitHead":"2ed1c0643c25a69a58a58b0b4469cb82053dd8c3","scripts":{"dev":"microbundle watch","test":"node ./src/index.test.js","build":"rm -rf ./dist && npm run build:browser && npm run build:node","deploy":"npm run build && npm publish","build:node":"microbundle --format cjs,esm","build:browser":"microbundle --format modern,umd --external none"},"_npmUser":{"name":"1mill","email":"nightw0lf@hotmail.com"},"repository":{"url":"git+https://github.com/1mill/with-iota.git","type":"git"},"_npmVersion":"9.6.7","description":"Idempotently invoke and mutate state using AWS Lambda functions with Cloudevents","directories":{},"_nodeVersion":"18.17.1","dependencies":{"nanoid":"^5.0.1","radash":"^11.0.0","mongodb":"^6.1.0","sort-keys":"^5.0.0","@1mill/cloudevents":"^4.6.1","@aws-sdk/client-eventbridge":"^3.418.0"},"_hasShrinkwrap":false,"devDependencies":{"microbundle":"^0.15.1"},"_npmOperationalInternal":{"tmp":"tmp/with-iota_0.0.2_1695871141144_0.028620548089798303","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@1mill/with-iota","version":"0.0.3","keywords":["lambda"],"license":"MIT","_id":"@1mill/with-iota@0.0.3","maintainers":[{"name":"1mill","email":"nightw0lf@hotmail.com"}],"homepage":"https://github.com/1mill/with-iota#readme","bugs":{"url":"https://github.com/1mill/with-iota/issues"},"dist":{"shasum":"c22fe8f2dfa489ea5c5066c3297e8c9354818d07","tarball":"https://registry.npmjs.org/@1mill/with-iota/-/with-iota-0.0.3.tgz","fileCount":20,"integrity":"sha512-DUnTvIQwRgZb7agVHKoEiRmZLaLvtsoGngtSfd7HA3QVtXji2RpUriBslAR+s2EF+v5JgJKWgVBIFilFLFVWPA==","signatures":[{"sig":"MEUCIBFuVlLF2nGckke8QK2gxuuAyYQHSaH+lH/VwM300RGTAiEAzaZJZKP56S3cifKvUvYmUvoJRfeWAjr5x4FH27iYAio=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7072694},"main":"./dist/index.cjs","type":"module","unpkg":"./dist/index.umd.js","module":"./dist/index.module.js","source":"src/index.js","authors":["Erik Ekberg <nightw0lf@hotmail.com>"],"gitHead":"fb06bade1dff93f99a896b736620378d495faccb","scripts":{"dev":"microbundle watch","test":"node ./src/index.test.js","build":"rm -rf ./dist && npm run build:browser && npm run build:node","deploy":"npm run build && npm publish","build:node":"microbundle --format cjs,esm","build:browser":"microbundle --format modern,umd --external none"},"_npmUser":{"name":"1mill","email":"nightw0lf@hotmail.com"},"repository":{"url":"git+https://github.com/1mill/with-iota.git","type":"git"},"_npmVersion":"9.6.7","description":"Idempotently invoke and mutate state using AWS Lambda functions with Cloudevents","directories":{},"_nodeVersion":"18.17.1","dependencies":{"nanoid":"^5.0.1","radash":"^11.0.0","mongodb":"^6.1.0","sort-keys":"^5.0.0","@1mill/cloudevents":"^4.6.1","@aws-sdk/client-eventbridge":"^3.418.0"},"_hasShrinkwrap":false,"devDependencies":{"microbundle":"^0.15.1"},"_npmOperationalInternal":{"tmp":"tmp/with-iota_0.0.3_1695872402092_0.18673456040478564","host":"s3://npm-registry-packages"}},"0.0.4":{"name":"@1mill/with-iota","version":"0.0.4","keywords":["lambda"],"license":"MIT","_id":"@1mill/with-iota@0.0.4","maintainers":[{"name":"1mill","email":"nightw0lf@hotmail.com"}],"homepage":"https://github.com/1mill/with-iota#readme","bugs":{"url":"https://github.com/1mill/with-iota/issues"},"dist":{"shasum":"ca087c5f4ac42f1f1c6a1163382abf34da516318","tarball":"https://registry.npmjs.org/@1mill/with-iota/-/with-iota-0.0.4.tgz","fileCount":20,"integrity":"sha512-h+Z48pHhqqEobL0VWz67E1fKPXcB3neefF47VFi4L5v/aT9Sez7q36DhDEUcDpQLIjhX9GoFDDIm/Oh8AVsdIA==","signatures":[{"sig":"MEUCIEDHwmwmUGelqj0tYNdUpE7FU3RnXPkQA48XZPUaXebwAiEAsNiuwXeY5IGS1rskpnHL4ypJpHqLjJttP+fMRAYp3Zw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7072787},"main":"./dist/index.cjs","type":"module","unpkg":"./dist/index.umd.js","module":"./dist/index.module.js","source":"src/index.js","authors":["Erik Ekberg <nightw0lf@hotmail.com>"],"gitHead":"9028caaf86893ace75745f1287cc9eaf1f553325","scripts":{"dev":"microbundle watch","test":"node ./src/index.test.js","build":"rm -rf ./dist && npm run build:browser && npm run build:node","deploy":"npm run build && npm publish","build:node":"microbundle --format cjs,esm","build:browser":"microbundle --format modern,umd --external none"},"_npmUser":{"name":"1mill","email":"nightw0lf@hotmail.com"},"repository":{"url":"git+https://github.com/1mill/with-iota.git","type":"git"},"_npmVersion":"9.6.7","description":"Idempotently invoke and mutate state using AWS Lambda functions with Cloudevents","directories":{},"_nodeVersion":"18.17.1","dependencies":{"nanoid":"^5.0.1","radash":"^11.0.0","mongodb":"^6.1.0","sort-keys":"^5.0.0","@1mill/cloudevents":"^4.6.1","@aws-sdk/client-eventbridge":"^3.418.0"},"_hasShrinkwrap":false,"devDependencies":{"microbundle":"^0.15.1"},"_npmOperationalInternal":{"tmp":"tmp/with-iota_0.0.4_1695933219763_0.9670695921828438","host":"s3://npm-registry-packages"}},"0.0.5":{"name":"@1mill/with-iota","version":"0.0.5","keywords":["lambda"],"license":"MIT","_id":"@1mill/with-iota@0.0.5","maintainers":[{"name":"1mill","email":"nightw0lf@hotmail.com"}],"homepage":"https://github.com/1mill/with-iota#readme","bugs":{"url":"https://github.com/1mill/with-iota/issues"},"dist":{"shasum":"5b903943f8758fc1089375527c88acd335e86653","tarball":"https://registry.npmjs.org/@1mill/with-iota/-/with-iota-0.0.5.tgz","fileCount":20,"integrity":"sha512-yzQSsOqfBXHG46/yfUXi2m9NxAu5r7uyPxQAWoUqGWlEqfJSwb2H3uuePPHe3LqrWY5fRaYPEA/KDsH9V5YaGQ==","signatures":[{"sig":"MEQCIHYojjWusVMvwoalfGhhI1Y7j7x6SS59KlK05aKVhX4rAiBj1kwN5GBJR1/Wlybp5R3aRGWv4EHFRT5EJqYFWVnxLw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7064564},"main":"./dist/index.cjs","type":"module","unpkg":"./dist/index.umd.js","module":"./dist/index.module.js","source":"src/index.js","authors":["Erik Ekberg <nightw0lf@hotmail.com>"],"gitHead":"972db126ee2b34c74d7eb7db0002830359c26680","scripts":{"dev":"microbundle watch","test":"node ./src/index.test.js","build":"rm -rf ./dist && npm run build:browser && npm run build:node","deploy":"npm run build && npm publish","build:node":"microbundle --format cjs,esm","build:browser":"microbundle --format modern,umd --external none"},"_npmUser":{"name":"1mill","email":"nightw0lf@hotmail.com"},"repository":{"url":"git+https://github.com/1mill/with-iota.git","type":"git"},"_npmVersion":"9.6.7","description":"Idempotently invoke and mutate state using AWS Lambda functions with Cloudevents","directories":{},"_nodeVersion":"18.17.1","dependencies":{"nanoid":"^5.0.1","radash":"^11.0.0","mongodb":"^6.1.0","@1mill/cloudevents":"^4.6.1","@aws-sdk/client-eventbridge":"^3.418.0"},"_hasShrinkwrap":false,"devDependencies":{"microbundle":"^0.15.1"},"_npmOperationalInternal":{"tmp":"tmp/with-iota_0.0.5_1695934449703_0.7525544675650788","host":"s3://npm-registry-packages"}},"0.0.6":{"name":"@1mill/with-iota","version":"0.0.6","keywords":["lambda"],"license":"MIT","_id":"@1mill/with-iota@0.0.6","maintainers":[{"name":"1mill","email":"nightw0lf@hotmail.com"}],"homepage":"https://github.com/1mill/with-iota#readme","bugs":{"url":"https://github.com/1mill/with-iota/issues"},"dist":{"shasum":"29583c88cd85ba564b54f36a855d9d9cdc3a467a","tarball":"https://registry.npmjs.org/@1mill/with-iota/-/with-iota-0.0.6.tgz","fileCount":18,"integrity":"sha512-gEloSKMMFijnvwaXP/mLZ4XG4xXqg1WDvuZe/pyHw9sZm7dezbtOyqQqhpGPDuZNQdHC7IPWNVqWu4DVE7CFsA==","signatures":[{"sig":"MEQCIAGw5xk7O+VP8/pib1jLdvaMxloPj3ps9gsam4r10zq7AiAvxylfqX/45TU12d+nczTh72Gs871jL8K79GyGHUf5QQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3590396},"main":"./dist/index.cjs","type":"module","unpkg":"./dist/index.umd.js","module":"./dist/index.module.js","source":"src/index.js","authors":["Erik Ekberg <nightw0lf@hotmail.com>"],"exports":{"import":"./dist/index.module.js","default":"./dist/index.modern.js","require":"./dist/index.cjs"},"gitHead":"f60ddf9e8ca00e6761b8a9e96a33363a29fd2b01","scripts":{"dev":"microbundle watch","test":"node ./src/index.test.js","build":"rm -rf ./dist && npm run build:browser && npm run build:node","deploy":"npm run build && npm publish","build:node":"microbundle --format cjs,esm","build:browser":"microbundle --format modern,umd --external none"},"_npmUser":{"name":"1mill","email":"nightw0lf@hotmail.com"},"umd:main":"./dist/index.umd.js","repository":{"url":"git+https://github.com/1mill/with-iota.git","type":"git"},"_npmVersion":"9.6.7","description":"Idempotently invoke and mutate state using AWS Lambda functions with Cloudevents","directories":{},"jsnext:main":"./dist/index.module.js","_nodeVersion":"18.17.1","dependencies":{"nanoid":"^5.0.1","radash":"^11.0.0","mongodb":"^6.1.0","sort-keys":"^5.0.0","@1mill/cloudevents":"^4.6.1","@aws-sdk/client-eventbridge":"^3.418.0"},"_hasShrinkwrap":false,"devDependencies":{"microbundle":"^0.15.1"},"_npmOperationalInternal":{"tmp":"tmp/with-iota_0.0.6_1695936557408_0.23881231370301093","host":"s3://npm-registry-packages"}},"0.0.7":{"name":"@1mill/with-iota","version":"0.0.7","keywords":["lambda"],"license":"MIT","_id":"@1mill/with-iota@0.0.7","maintainers":[{"name":"1mill","email":"nightw0lf@hotmail.com"}],"homepage":"https://github.com/1mill/with-iota#readme","bugs":{"url":"https://github.com/1mill/with-iota/issues"},"dist":{"shasum":"17114dd52782f42d1a9786345d38d9d9b7d31a00","tarball":"https://registry.npmjs.org/@1mill/with-iota/-/with-iota-0.0.7.tgz","fileCount":16,"integrity":"sha512-/jBHECrgEY4Jo794P/diqPrqT3PMkQ24lT/QQXOjJGf1O0k03IqPvM3T4CnPR0cvvD3icbdGXMcx4dPbLdxHsw==","signatures":[{"sig":"MEQCIDVRKNxBKowkOkE+B7US1Smc82PPVRFJGpdagIhs+k5NAiA3H6USamb9RpdxKP+21iAnmdtYCWeyOBbAEV2AgIAoyg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":92671},"main":"./dist/index.cjs","type":"module","unpkg":"./dist/index.umd.js","module":"./dist/index.module.js","source":"./src/index.js","authors":["Erik Ekberg <nightw0lf@hotmail.com>"],"exports":{"import":"./dist/index.module.js","default":"./dist/index.modern.js","require":"./dist/index.cjs"},"gitHead":"0e11862b69b07d39151c4879470e151cb46a2796","scripts":{"dev":"microbundle watch","test":"node ./src/index.test.js","build":"rm -rf ./dist && npm run build:node","deploy":"npm run build && npm publish","build:node":"microbundle --format cjs,esm","build:browser":"microbundle --format modern,umd --external none"},"_npmUser":{"name":"1mill","email":"nightw0lf@hotmail.com"},"umd:main":"./dist/index.umd.js","repository":{"url":"git+https://github.com/1mill/with-iota.git","type":"git"},"_npmVersion":"9.6.7","description":"Idempotently invoke and mutate state using AWS Lambda functions with Cloudevents","directories":{},"jsnext:main":"./dist/index.module.js","_nodeVersion":"18.17.1","dependencies":{"nanoid":"^5.0.1","radash":"^11.0.0","mongodb":"^6.1.0","sort-keys":"^5.0.0","@1mill/cloudevents":"^4.6.1","@aws-sdk/client-eventbridge":"^3.418.0"},"_hasShrinkwrap":false,"devDependencies":{"microbundle":"^0.15.1"},"_npmOperationalInternal":{"tmp":"tmp/with-iota_0.0.7_1695938346770_0.40157347792299114","host":"s3://npm-registry-packages"}},"0.0.8":{"name":"@1mill/with-iota","version":"0.0.8","keywords":["lambda"],"license":"MIT","_id":"@1mill/with-iota@0.0.8","maintainers":[{"name":"1mill","email":"nightw0lf@hotmail.com"}],"homepage":"https://github.com/1mill/with-iota#readme","bugs":{"url":"https://github.com/1mill/with-iota/issues"},"dist":{"shasum":"50512fc3fb029306d1ec49070b558ea894c0315d","tarball":"https://registry.npmjs.org/@1mill/with-iota/-/with-iota-0.0.8.tgz","fileCount":16,"integrity":"sha512-zdVA/4jrTNbhw3A9ty3ET5Y+y0QIIzoMRyrGMzY3JV0T/wewYJEHyrfiJxA8bVldjwT+URISJC05CJweTEjRzA==","signatures":[{"sig":"MEUCIQDPpSnmOv2OR7vm9WFwFfSyjOp4P8o8Jamn8P2NUmMIIAIgMbL6T7P2U8DDjsip1YCbu+O3wmslDax7SVoOHzeRnZ8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94974},"main":"./dist/index.cjs","type":"module","unpkg":"./dist/index.umd.js","module":"./dist/index.module.js","source":"./src/index.js","authors":["Erik Ekberg <nightw0lf@hotmail.com>"],"exports":{"import":"./dist/index.module.js","default":"./dist/index.modern.js","require":"./dist/index.cjs"},"gitHead":"1880e9991eefe2a7c444b30ae77625335f00a845","scripts":{"dev":"microbundle watch","test":"node ./src/index.test.js","build":"rm -rf ./dist && npm run build:node","deploy":"npm run build && npm publish","build:node":"microbundle --format cjs,esm","build:browser":"microbundle --format modern,umd --external none"},"_npmUser":{"name":"1mill","email":"nightw0lf@hotmail.com"},"umd:main":"./dist/index.umd.js","repository":{"url":"git+https://github.com/1mill/with-iota.git","type":"git"},"_npmVersion":"9.6.7","description":"Idempotently invoke and mutate state using AWS Lambda functions with Cloudevents","directories":{},"jsnext:main":"./dist/index.module.js","_nodeVersion":"18.17.1","dependencies":{"nanoid":"^5.0.1","radash":"^11.0.0","mongodb":"^6.1.0","sort-keys":"^5.0.0","@1mill/cloudevents":"^4.6.1","@aws-sdk/client-eventbridge":"^3.418.0"},"_hasShrinkwrap":false,"devDependencies":{"microbundle":"^0.15.1"},"_npmOperationalInternal":{"tmp":"tmp/with-iota_0.0.8_1695952659148_0.9176252924705455","host":"s3://npm-registry-packages"}},"0.0.9":{"name":"@1mill/with-iota","version":"0.0.9","keywords":["lambda"],"license":"MIT","_id":"@1mill/with-iota@0.0.9","maintainers":[{"name":"1mill","email":"nightw0lf@hotmail.com"}],"homepage":"https://github.com/1mill/with-iota#readme","bugs":{"url":"https://github.com/1mill/with-iota/issues"},"dist":{"shasum":"8175faa71632607811ce1cb9dc5475d6ce9910b3","tarball":"https://registry.npmjs.org/@1mill/with-iota/-/with-iota-0.0.9.tgz","fileCount":16,"integrity":"sha512-PSwwmmPQ52xrgrM/5oT5/PufPm1p/Cc32Iv3xoQLHiAn4DuHQ6UuPzsTuiJp61QETgnRlADgUUDWybdo2c2MoA==","signatures":[{"sig":"MEQCH1gi+Uhm04QWmw1Iwdw05+wxjwnj9nBmOBL4oli35qkCIQDygpi5ewGNbpMYnarvhQ+2cH00EU0S2haSSRI7v74sqQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":95627},"main":"./dist/index.cjs","type":"module","unpkg":"./dist/index.umd.js","module":"./dist/index.module.js","source":"./src/index.js","authors":["Erik Ekberg <nightw0lf@hotmail.com>"],"exports":{"import":"./dist/index.module.js","default":"./dist/index.modern.js","require":"./dist/index.cjs"},"gitHead":"4812766f57fb5a9c84237b30a2d2fee9b3f9b998","scripts":{"dev":"microbundle watch","test":"node ./src/index.test.js","build":"rm -rf ./dist && npm run build:node","deploy":"npm run build && npm publish","build:node":"microbundle --format cjs,esm","build:browser":"microbundle --format modern,umd --external none"},"_npmUser":{"name":"1mill","email":"nightw0lf@hotmail.com"},"umd:main":"./dist/index.umd.js","repository":{"url":"git+https://github.com/1mill/with-iota.git","type":"git"},"_npmVersion":"9.6.7","description":"Idempotently invoke and mutate state using AWS Lambda functions with Cloudevents","directories":{},"jsnext:main":"./dist/index.module.js","_nodeVersion":"18.17.1","dependencies":{"nanoid":"^5.0.1","radash":"^11.0.0","mongodb":"^6.1.0","sort-keys":"^5.0.0","@1mill/cloudevents":"^4.6.1","@aws-sdk/client-eventbridge":"^3.418.0"},"_hasShrinkwrap":false,"devDependencies":{"microbundle":"^0.15.1"},"_npmOperationalInternal":{"tmp":"tmp/with-iota_0.0.9_1695955203999_0.8037511413486975","host":"s3://npm-registry-packages"}},"0.0.10":{"name":"@1mill/with-iota","version":"0.0.10","keywords":["lambda"],"license":"MIT","_id":"@1mill/with-iota@0.0.10","maintainers":[{"name":"1mill","email":"nightw0lf@hotmail.com"}],"homepage":"https://github.com/1mill/with-iota#readme","bugs":{"url":"https://github.com/1mill/with-iota/issues"},"dist":{"shasum":"9c2dfcd0da0b883e2f89b81bdba4e13322fde72b","tarball":"https://registry.npmjs.org/@1mill/with-iota/-/with-iota-0.0.10.tgz","fileCount":16,"integrity":"sha512-9WUmhc15mPIgvpVWg11mhCxXiJhaTdpQ5HblWh+SqHpLV2Gs7AtMYFXrVTqiDZKPMUDnmkQs2EY1LUsfJ+5hZw==","signatures":[{"sig":"MEUCIA1Ed7CtS2ZIlUXtdMTcxtoj9JbZ2mC+5t/InUOXutGLAiEA5ZNsoESRBcroulV9IZ5rRC6tQHVWTQVAFF+SiBbleE8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":102345},"main":"./dist/index.cjs","type":"module","unpkg":"./dist/index.umd.js","module":"./dist/index.module.js","source":"./src/index.js","authors":["Erik Ekberg <nightw0lf@hotmail.com>"],"exports":{"import":"./dist/index.module.js","default":"./dist/index.modern.js","require":"./dist/index.cjs"},"gitHead":"843b531df7b00d798c96db10f4d43f03b2a48772","scripts":{"dev":"microbundle watch","test":"node ./src/index.test.js","build":"rm -rf ./dist && npm run build:node","deploy":"npm run build && npm publish","build:node":"microbundle --format cjs,esm","build:browser":"microbundle --format modern,umd --external none"},"_npmUser":{"name":"1mill","email":"nightw0lf@hotmail.com"},"umd:main":"./dist/index.umd.js","repository":{"url":"git+https://github.com/1mill/with-iota.git","type":"git"},"_npmVersion":"9.6.7","description":"Idempotently invoke and mutate state using AWS Lambda functions with Cloudevents","directories":{},"jsnext:main":"./dist/index.module.js","_nodeVersion":"18.17.1","dependencies":{"nanoid":"^5.0.1","radash":"^11.0.0","mongodb":"^6.1.0","sort-keys":"^5.0.0","@1mill/cloudevents":"^4.6.1","@aws-sdk/client-eventbridge":"^3.418.0"},"_hasShrinkwrap":false,"devDependencies":{"microbundle":"^0.15.1"},"_npmOperationalInternal":{"tmp":"tmp/with-iota_0.0.10_1696020749324_0.9183768823746163","host":"s3://npm-registry-packages"}},"0.0.11":{"name":"@1mill/with-iota","version":"0.0.11","keywords":["lambda"],"license":"MIT","_id":"@1mill/with-iota@0.0.11","maintainers":[{"name":"1mill","email":"nightw0lf@hotmail.com"}],"homepage":"https://github.com/1mill/with-iota#readme","bugs":{"url":"https://github.com/1mill/with-iota/issues"},"dist":{"shasum":"7f8044b8ee895f68598b3ac6a033559b2512cb40","tarball":"https://registry.npmjs.org/@1mill/with-iota/-/with-iota-0.0.11.tgz","fileCount":18,"integrity":"sha512-3XSf9//gAd/u+i+eiYOnFKalurY5kO8ciNqwtj8olX2vJzfYAmE6F1K9ydivNc5PG7G0w1X9EpcntTPkcYHX8w==","signatures":[{"sig":"MEYCIQDDCB8ni7ZrlZ5aaFcgjQofAHG3jplX+AKCCuRRZjO3rgIhAIEVGg1F9DlufW3z56YtqqkMbhsRigZey8OPAtd9O+1e","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":107290},"main":"./dist/index.cjs","type":"module","unpkg":"./dist/index.umd.js","module":"./dist/index.module.js","source":"./src/index.js","authors":["Erik Ekberg <nightw0lf@hotmail.com>"],"exports":{"import":"./dist/index.module.js","default":"./dist/index.modern.js","require":"./dist/index.cjs"},"gitHead":"055d5118a40c7ac84e7b04b449c90f4cd48ddd73","scripts":{"dev":"microbundle watch","test":"npm run build && node ./src/index.test.js && node ./src/index.test.cjs","build":"rm -rf ./dist && npm run build:node","deploy":"npm run build && npm publish","build:node":"microbundle --format cjs,esm","build:browser":"microbundle --format modern,umd --external none"},"_npmUser":{"name":"1mill","email":"nightw0lf@hotmail.com"},"umd:main":"./dist/index.umd.js","repository":{"url":"git+https://github.com/1mill/with-iota.git","type":"git"},"_npmVersion":"9.6.7","description":"Idempotently invoke and mutate state using AWS Lambda functions with Cloudevents","directories":{},"jsnext:main":"./dist/index.module.js","_nodeVersion":"18.17.1","dependencies":{"nanoid":"^3.3.6","radash":"^11.0.0","mongodb":"^6.1.0","@1mill/cloudevents":"^4.6.1","@aws-sdk/client-eventbridge":"^3.418.0"},"_hasShrinkwrap":false,"devDependencies":{"microbundle":"^0.15.1"},"_npmOperationalInternal":{"tmp":"tmp/with-iota_0.0.11_1696819327017_0.030912599042226985","host":"s3://npm-registry-packages"}},"0.0.12":{"name":"@1mill/with-iota","version":"0.0.12","keywords":["lambda"],"license":"MIT","_id":"@1mill/with-iota@0.0.12","maintainers":[{"name":"1mill","email":"nightw0lf@hotmail.com"}],"homepage":"https://github.com/1mill/with-iota#readme","bugs":{"url":"https://github.com/1mill/with-iota/issues"},"dist":{"shasum":"2637ad5307883d8ec2875d5076863ed96100b860","tarball":"https://registry.npmjs.org/@1mill/with-iota/-/with-iota-0.0.12.tgz","fileCount":16,"integrity":"sha512-DXNyaVJJixVhepYqQTkMJ8wWu0dUWs6ofeaDteVuuqLt5FvQn43pmhBG4UsMRlhPkwAsK1/GHABlMkG1qD3DWQ==","signatures":[{"sig":"MEUCIQDtB/ZaqL4qBFn25guMAME4ZUQz6Dx8ipuvxLdO8QDKiQIgT32WDy92HHPhQoHBwnxQ1hW5nsK3ST3m+RUaIjmlpr8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":94230},"main":"./dist/bundle-node/with-iota.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/bundle-node/with-iota.module.js","source":"./src/index.js","authors":["Erik Ekberg <nightw0lf@hotmail.com>"],"exports":{"types":"./dist/index.d.ts","import":"./dist/bundle-node/with-iota.module.js","default":"./dist/bundle-node/with-iota.module.js","require":"./dist/bundle-node/with-iota.cjs"},"gitHead":"a70e2779ac0a06ff9162270373225ccb31218770","scripts":{"dev":"microbundle watch","build":"rm -rf ./dist && npm run build:node","deploy":"npm run build && npm publish","test:e2e":"npm run build && node ./e2e.test.js && node ./e2e.test.cjs","test:unit":"ts-mocha","build:node":"microbundle --format cjs,esm --output ./dist/bundle-node"},"_npmUser":{"name":"1mill","email":"nightw0lf@hotmail.com"},"repository":{"url":"git+https://github.com/1mill/with-iota.git","type":"git"},"_npmVersion":"10.8.1","description":"Idempotently invoke and mutate state using AWS Lambda functions with Cloudevents","directories":{},"_nodeVersion":"20.16.0","dependencies":{"nanoid":"^3.3.7","radash":"^12.1.0","mongodb":"^6.8.1","@types/sinon":"^17.0.3","@1mill/cloudevents":"^5.1.0","@aws-sdk/client-eventbridge":"^3.645.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^5.1.1","mocha":"^10.7.3","sinon":"^18.0.0","ts-node":"^10.9.2","ts-mocha":"^10.0.0","typescript":"^5.5.4","@types/chai":"^4.3.19","@types/node":"^22.5.4","microbundle":"^0.15.1","@types/mocha":"^10.0.7"},"_npmOperationalInternal":{"tmp":"tmp/with-iota_0.0.12_1725837336955_0.0863743195288853","host":"s3://npm-registry-packages"}},"0.1.0":{"name":"@1mill/with-iota","version":"0.1.0","keywords":["lambda"],"license":"MIT","_id":"@1mill/with-iota@0.1.0","maintainers":[{"name":"1mill","email":"nightw0lf@hotmail.com"}],"homepage":"https://github.com/1mill/with-iota#readme","bugs":{"url":"https://github.com/1mill/with-iota/issues"},"dist":{"shasum":"3227b3c22bf54cbe6fc890d03f165c2663b92fe0","tarball":"https://registry.npmjs.org/@1mill/with-iota/-/with-iota-0.1.0.tgz","fileCount":16,"integrity":"sha512-SYpjTXkHsl2oWzuXpgQRJzBEqvmOyJ5uraMnM+sEdu5DXHaiEarXvY2eHn0rCy2f9RDxkVCuNRkTUGkTBqprgA==","signatures":[{"sig":"MEYCIQDPniVeYIkvnb7mZgZBQ1S6QleC5ZdDSs1LDv/DNG1kIwIhAI5QXrbgbggMQPsyI2ix+wmkOuaZxz2+FdTkTgH8wg6n","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":93935},"main":"./dist/bundle-node/with-iota.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/bundle-node/with-iota.module.js","source":"./src/index.js","authors":["Erik Ekberg <nightw0lf@hotmail.com>"],"exports":{"types":"./dist/index.d.ts","import":"./dist/bundle-node/with-iota.module.js","default":"./dist/bundle-node/with-iota.module.js","require":"./dist/bundle-node/with-iota.cjs"},"gitHead":"2cce427cdb7fd0817878d9eac4805c759b3f5620","scripts":{"dev":"microbundle watch","build":"rm -rf ./dist && npm run build:node","deploy":"npm run build && npm publish","test:e2e":"npm run build && node ./e2e.test.js && node ./e2e.test.cjs","test:unit":"ts-mocha","build:node":"microbundle --format cjs,esm --output ./dist/bundle-node"},"_npmUser":{"name":"1mill","email":"nightw0lf@hotmail.com"},"repository":{"url":"git+https://github.com/1mill/with-iota.git","type":"git"},"_npmVersion":"10.8.1","description":"Idempotently invoke and mutate state using AWS Lambda functions with Cloudevents","directories":{},"_nodeVersion":"20.16.0","dependencies":{"nanoid":"^3.3.7","radash":"^12.1.0","mongodb":"^6.8.1","@types/sinon":"^17.0.3","@1mill/cloudevents":"^5.1.0","@aws-sdk/client-eventbridge":"^3.645.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^5.1.1","mocha":"^10.7.3","sinon":"^18.0.0","ts-node":"^10.9.2","ts-mocha":"^10.0.0","typescript":"^5.5.4","@types/chai":"^4.3.19","@types/node":"^22.5.4","microbundle":"^0.15.1","@types/mocha":"^10.0.7"},"_npmOperationalInternal":{"tmp":"tmp/with-iota_0.1.0_1725839098912_0.742153369318074","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"@1mill/with-iota","version":"0.2.0","keywords":["lambda"],"license":"MIT","_id":"@1mill/with-iota@0.2.0","maintainers":[{"name":"1mill","email":"nightw0lf@hotmail.com"}],"homepage":"https://github.com/1mill/with-iota#readme","bugs":{"url":"https://github.com/1mill/with-iota/issues"},"dist":{"shasum":"df7ad1a8bb0a6fe450a79a3a554a594ec2603c21","tarball":"https://registry.npmjs.org/@1mill/with-iota/-/with-iota-0.2.0.tgz","fileCount":16,"integrity":"sha512-+JU8Cn5cIMdtp4A3Wc4Z/YiIhlWyPZ1fFdd4djLGVMBLq7btgXtVEQkwo7KmJ2tPFc5hi5MEyljJE/sMezs2vg==","signatures":[{"sig":"MEYCIQCGTp7JQhWGZgse3XZp2uOdhpF9E2tdV89/TcIR6oNp3gIhAJ0v2a66UVLDTGTOjcshWIj8b+zw8si5FKpGH7S10U1u","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":96080},"main":"./dist/bundle-node/with-iota.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/bundle-node/with-iota.module.js","source":"./src/index.js","authors":["Erik Ekberg <nightw0lf@hotmail.com>"],"exports":{"types":"./dist/index.d.ts","import":"./dist/bundle-node/with-iota.module.js","default":"./dist/bundle-node/with-iota.module.js","require":"./dist/bundle-node/with-iota.cjs"},"gitHead":"c26141c78c33f8c2e3cafec06ab1edc6715880b2","scripts":{"dev":"microbundle watch","build":"rm -rf ./dist && npm run build:node","deploy":"npm run build && npm publish","test:e2e":"npm run build && node ./e2e.test.js && node ./e2e.test.cjs","test:unit":"ts-mocha","build:node":"microbundle --format cjs,esm --output ./dist/bundle-node"},"_npmUser":{"name":"1mill","email":"nightw0lf@hotmail.com"},"repository":{"url":"git+https://github.com/1mill/with-iota.git","type":"git"},"_npmVersion":"10.8.1","description":"Idempotently invoke and mutate state using AWS Lambda functions with Cloudevents","directories":{},"_nodeVersion":"20.16.0","dependencies":{"nanoid":"^3.3.7","radash":"^12.1.0","mongodb":"^6.8.1","@types/sinon":"^17.0.3","@1mill/cloudevents":"^5.1.0","@aws-sdk/client-eventbridge":"^3.645.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^5.1.1","mocha":"^10.7.3","sinon":"^18.0.0","ts-node":"^10.9.2","ts-mocha":"^10.0.0","typescript":"^5.5.4","@types/chai":"^4.3.19","@types/node":"^22.5.4","microbundle":"^0.15.1","@types/mocha":"^10.0.7"},"_npmOperationalInternal":{"tmp":"tmp/with-iota_0.2.0_1725846275112_0.5196170715640507","host":"s3://npm-registry-packages"}},"0.2.1":{"name":"@1mill/with-iota","version":"0.2.1","keywords":["lambda"],"license":"MIT","_id":"@1mill/with-iota@0.2.1","maintainers":[{"name":"1mill","email":"nightw0lf@hotmail.com"}],"homepage":"https://github.com/1mill/with-iota#readme","bugs":{"url":"https://github.com/1mill/with-iota/issues"},"dist":{"shasum":"262cfa47809470610230224b4b4d82987d65ac72","tarball":"https://registry.npmjs.org/@1mill/with-iota/-/with-iota-0.2.1.tgz","fileCount":16,"integrity":"sha512-BX5KiiUiYZD79L/pj+zVHqQhnXrBIKahQ4liiHQ4abIrLNx9UtNniv2fktaCKSyNOGKKbcz3deLMzagd8MLg6w==","signatures":[{"sig":"MEUCIDD8D0oC+ap+5aSNRmjsXzgvUm2AJ+dHrmfqgDF6JRUmAiEApyFUW81E6KjZsCfthX7SFR59nGIrnYyg1InJSbo7Gwg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":96002},"main":"./dist/bundle-node/with-iota.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/bundle-node/with-iota.module.js","source":"./src/index.js","authors":["Erik Ekberg <nightw0lf@hotmail.com>"],"exports":{"types":"./dist/index.d.ts","import":"./dist/bundle-node/with-iota.module.js","default":"./dist/bundle-node/with-iota.module.js","require":"./dist/bundle-node/with-iota.cjs"},"gitHead":"d3649d6b96f387a44be6f7741e7e2fcc19e74761","scripts":{"dev":"microbundle watch","build":"rm -rf ./dist && npm run build:node","deploy":"npm run build && npm publish","test:e2e":"npm run build && node ./e2e.test.js && node ./e2e.test.cjs","test:unit":"ts-mocha","build:node":"microbundle --format cjs,esm --output ./dist/bundle-node"},"_npmUser":{"name":"1mill","email":"nightw0lf@hotmail.com"},"repository":{"url":"git+https://github.com/1mill/with-iota.git","type":"git"},"_npmVersion":"10.8.1","description":"Idempotently invoke and mutate state using AWS Lambda functions with Cloudevents","directories":{},"_nodeVersion":"20.16.0","dependencies":{"nanoid":"^3.3.7","radash":"^12.1.0","mongodb":"^6.8.1","@types/sinon":"^17.0.3","@1mill/cloudevents":"^5.1.0","@aws-sdk/client-eventbridge":"^3.645.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^5.1.1","mocha":"^10.7.3","sinon":"^18.0.0","ts-node":"^10.9.2","ts-mocha":"^10.0.0","typescript":"^5.5.4","@types/chai":"^4.3.19","@types/node":"^22.5.4","microbundle":"^0.15.1","@types/mocha":"^10.0.7"},"_npmOperationalInternal":{"tmp":"tmp/with-iota_0.2.1_1725935316924_0.6220722381815389","host":"s3://npm-registry-packages"}},"0.2.2":{"name":"@1mill/with-iota","version":"0.2.2","keywords":["lambda"],"license":"MIT","_id":"@1mill/with-iota@0.2.2","maintainers":[{"name":"1mill","email":"nightw0lf@hotmail.com"}],"homepage":"https://github.com/1mill/with-iota#readme","bugs":{"url":"https://github.com/1mill/with-iota/issues"},"dist":{"shasum":"fffa14b785c64192e7312f97f746c3d0d27d64af","tarball":"https://registry.npmjs.org/@1mill/with-iota/-/with-iota-0.2.2.tgz","fileCount":16,"integrity":"sha512-uU47L7dmUC7KNS8oh7joLWDazH0M2v53LLDIOjHRugXYy+yFfrqRDfN+eJpnWfkBwFrpFjQ+5M5nYhnMmOAL8w==","signatures":[{"sig":"MEUCIQDJONZ7wWW+oF0JicBu3mq/WGM4KgyjJyRNOU498QxbggIgaX+wrSqPnnNBGSr1UyKd/yXxUgOSnfuyW06yvQGz0oY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":96036},"main":"./dist/bundle-node/with-iota.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/bundle-node/with-iota.module.js","source":"./src/index.js","authors":["Erik Ekberg <nightw0lf@hotmail.com>"],"exports":{"types":"./dist/index.d.ts","import":"./dist/bundle-node/with-iota.module.js","default":"./dist/bundle-node/with-iota.module.js","require":"./dist/bundle-node/with-iota.cjs"},"gitHead":"129b2c40d379982b69c3ad31757e0a13203cf764","scripts":{"dev":"microbundle watch","build":"rm -rf ./dist && npm run build:node","deploy":"npm run build && npm publish","test:e2e":"npm run build && node ./e2e.test.js && node ./e2e.test.cjs","test:unit":"ts-mocha","build:node":"microbundle --format cjs,esm --output ./dist/bundle-node"},"_npmUser":{"name":"1mill","email":"nightw0lf@hotmail.com"},"repository":{"url":"git+https://github.com/1mill/with-iota.git","type":"git"},"_npmVersion":"10.9.4","description":"Idempotently invoke and mutate state using AWS Lambda functions with Cloudevents","directories":{},"_nodeVersion":"22.21.1","dependencies":{"nanoid":"^3.3.7","radash":"^12.1.0","mongodb":"^6.8.1","@types/sinon":"^17.0.3","@1mill/cloudevents":"^5.1.0","@aws-sdk/client-eventbridge":"^3.645.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^5.1.1","mocha":"^10.7.3","sinon":"^18.0.0","ts-node":"^10.9.2","ts-mocha":"^10.0.0","typescript":"^5.5.4","@types/chai":"^4.3.19","@types/node":"^22.5.4","microbundle":"^0.15.1","@types/mocha":"^10.0.7"},"_npmOperationalInternal":{"tmp":"tmp/with-iota_0.2.2_1766942133004_0.9401339828544113","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@1mill/with-iota","version":"1.0.0","description":"Idempotently invoke and mutate state using AWS Lambda functions with Cloudevents","source":"./src/index.js","type":"module","exports":{"import":"./dist/bundle-node/with-iota.module.js","require":"./dist/bundle-node/with-iota.cjs","types":"./dist/index.d.ts","default":"./dist/bundle-node/with-iota.module.js"},"main":"./dist/bundle-node/with-iota.cjs","module":"./dist/bundle-node/with-iota.module.js","types":"./dist/index.d.ts","scripts":{"build":"rm -rf ./dist && npm run build:node","build:node":"microbundle --format cjs,esm --output ./dist/bundle-node","deploy":"npm run build && npm publish","dev":"microbundle watch","test:e2e":"npm run build && node ./e2e.test.js && node ./e2e.test.cjs","test:unit":"ts-mocha"},"repository":{"type":"git","url":"git+https://github.com/1mill/with-iota.git"},"keywords":["lambda"],"authors":["Erik Ekberg <nightw0lf@hotmail.com>"],"license":"MIT","bugs":{"url":"https://github.com/1mill/with-iota/issues"},"homepage":"https://github.com/1mill/with-iota#readme","dependencies":{"@1mill/cloudevents":"^6.0.0","@aws-sdk/client-eventbridge":"^3.958.0","mongodb":"^7.0.0","radash":"^12.1.1","uuid":"^13.0.0"},"devDependencies":{"@types/chai":"^4.3.19","@types/mocha":"^10.0.7","@types/node":"^22.5.4","@types/sinon":"^17.0.3","chai":"^5.1.1","microbundle":"^0.15.1","mocha":"^10.7.3","sinon":"^18.0.0","ts-mocha":"^10.0.0","ts-node":"^10.9.2","typescript":"^5.5.4"},"_id":"@1mill/with-iota@1.0.0","gitHead":"bb510f652f52693aaf20a84dec78e84720e7df57","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-0pKGek+PKVoilkECgkgcMM+DPvbZiHEey7eno5wAlpcbsyIshvbKQYbTuFF3FUhoo18BJH2doBGTN5zhZneMWQ==","shasum":"db26a311d38558e2cb995e3cda3a2fd6ec52684e","tarball":"https://registry.npmjs.org/@1mill/with-iota/-/with-iota-1.0.0.tgz","fileCount":16,"unpackedSize":96002,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAN0p36mUmA1pNv5ZQgRIMndbPBqbkPUET35+fojdFzpAiEA1OMPbStCRHhOX0pv8eJWeBCsUvc48M5rXn3ExCSobDo="}]},"_npmUser":{"name":"1mill","email":"nightw0lf@hotmail.com"},"directories":{},"maintainers":[{"name":"1mill","email":"nightw0lf@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/with-iota_1.0.0_1766945003275_0.25065404367725863"},"_hasShrinkwrap":false}},"time":{"created":"2023-09-28T03:19:01.027Z","modified":"2025-12-28T18:03:23.639Z","0.0.2":"2023-09-28T03:19:01.429Z","0.0.3":"2023-09-28T03:40:02.465Z","0.0.4":"2023-09-28T20:33:40.110Z","0.0.5":"2023-09-28T20:54:09.977Z","0.0.6":"2023-09-28T21:29:17.802Z","0.0.7":"2023-09-28T21:59:06.985Z","0.0.8":"2023-09-29T01:57:39.396Z","0.0.9":"2023-09-29T02:40:04.286Z","0.0.10":"2023-09-29T20:52:29.512Z","0.0.11":"2023-10-09T02:42:07.262Z","0.0.12":"2024-09-08T23:15:37.169Z","0.1.0":"2024-09-08T23:44:59.090Z","0.2.0":"2024-09-09T01:44:35.285Z","0.2.1":"2024-09-10T02:28:37.087Z","0.2.2":"2025-12-28T17:15:33.272Z","1.0.0":"2025-12-28T18:03:23.433Z"},"bugs":{"url":"https://github.com/1mill/with-iota/issues"},"license":"MIT","homepage":"https://github.com/1mill/with-iota#readme","keywords":["lambda"],"repository":{"type":"git","url":"git+https://github.com/1mill/with-iota.git"},"description":"Idempotently invoke and mutate state using AWS Lambda functions with Cloudevents","maintainers":[{"name":"1mill","email":"nightw0lf@hotmail.com"}],"readme":"# with-iota\r\n\r\n## Getting started\r\n\r\n1. Run `npm install @1mill/with-iota`\r\n1. Configure your AWS Lambda handler\r\n\r\n    ```node\r\n    import { CREATE, DELETE, INCREMENT, SET, withIota } from '@1mill/with-iota'\r\n\r\n    const func = async ({ cloudevent, ctx, data, mutation, rapids }) => {\r\n      const { companyId, name } = data\r\n\r\n      if (!companyId) { throw new Error('companyId is required') }\r\n      if (!name) { throw new Error('name is required') }\r\n\r\n      // * Create some record\r\n      const { id } = mutation.stage({\r\n        action: CREATE,\r\n        props: { companyId, name, comment: 'Hello world!' },\r\n        type: 'myRecords',\r\n      })\r\n\r\n      // * Enqueue cloudevent that will be emitted after all staged mutations\r\n      // * are comitted.\r\n      rapids.stage({\r\n        data: { id },\r\n        type: 'fct.my-record-created.v0',\r\n      })\r\n\r\n      // * Increment some value on a different record\r\n      mutation.stage({\r\n        action: INCREMENT,\r\n        id: companyId,\r\n        props: { recordsCount: 1 },\r\n        type: 'companies',\r\n      })\r\n\r\n      // * Set a value on the record we just created\r\n      mutation.stage({\r\n        action: SET,\r\n        id,\r\n        props: { comment: 'Update this comment!' },\r\n        type: 'myRecords'\r\n      })\r\n\r\n      // * Selete the record we just created\r\n      mutation.stage({\r\n        action: DELETE,\r\n        id,\r\n        type: 'myRecords',\r\n      })\r\n\r\n      // * Enqueue another cloudevent that will be emitted after all\r\n      // * staged mutations are committed.\r\n      rapids.stage({\r\n        data: { id },\r\n        type: 'fct.my-record-deleted.v0',\r\n      })\r\n\r\n      // * Return some value for calls with InvocationType set to RequestResponse.\r\n      return cloudevent.id\r\n    }\r\n\r\n    export const handler = async (event, ctx) => await withIota(event, ctx, { func })\r\n    ```\r\n\r\n## Usage\r\n\r\n### Setup\r\n\r\n**If you ever change any of the values below once they are set, be sure to migrate any saved journal entries to the new settings. If you do not do this, then already processed cloudevents may run again.**\r\n\r\n| Environment                       | Required | Types  | Default              | Description                                            |\r\n|-----------------------------------|----------|--------|----------------------|--------------------------------------------------------|\r\n| `MILL_IOTA_AWS_ACCESS_KEY_ID`     | yes      | string |                      | AWS Access Key with permissions to AWS EventBridge.    |\r\n| `MILL_IOTA_AWS_ENDPOINT`          |          | string | Set by AWS           |                                                        |\r\n| `MILL_IOTA_AWS_REGION`            | yes      | string |                      | Valid AWS Region.                                      |\r\n| `MILL_IOTA_AWS_SECRET_ACCESS_KEY` | yes      | string |                      | AWS Secret Key with permissions to AWS EventBridge.    |\r\n| `MILL_IOTA_AWS_SESSION_TOKEN`     |          | string | Set by AWS           | AWS Session Token with permissions to AWS EventBridge. |\r\n| `MILL_IOTA_EVENTBUS_NAME`         |          | string | `default`            | Name of the AWS EventBridge.                           |\r\n| `MILL_IOTA_JOURNAL_NAME`          |          | string | `iotaJournalEntries` | Name of the MongoDB collection.                        |\r\n| `MILL_IOTA_MONGO_DB`              | yes      | string |                      | Name of the MongoDB Database.                          |\r\n| `MILL_IOTA_MONGO_URI`             | yes      | string |                      | URI of the MongoDB Cluster.                            |\r\n| `MILL_IOTA_SERVICE_ID`            | yes      | string |                      | Unique name of the service / application itself.       |\r\n\r\nDuring the AWS Lambda runtime, AWS automatically provides all the `MILL_IOTA_AWS_` credentials.\r\n\r\n### Func\r\n\r\n| Property                   | Type      |Description |\r\n|----------------------------|-----------|------------|\r\n| cloudevent                 | object    | The `cloudevent` payload from `event`. |\r\n| countDocuments(name, args) | function  | Alias for `db.collection(name).countDocuments(args)` using `mongo`. |\r\n| ctx                        | object    | AWS Lambda `context`. |\r\n| data                       | any       | The `cloudevent.data`. If `cloudevent.datacontenttype` is `application/json`, then the JSON parsed `data` will be returned. |\r\n| distinct(name, args)       | function  | Alias for `db.collection(name).distinct(args)` using `mongo`. |\r\n| event                      | object    | The `event` that invoked the AWS Lambda function. |\r\n| find(name, args)           | function  | Alias for `db.collection(name).find(args)` using `mongo`. |\r\n| findOne(name, args)        | function  | Alias for `db.collection(name).findOne(args)` using `mongo`. |\r\n| mutation.stage(args)       | function  | Stage a mutation to be committed after `return`. |\r\n| rapids.stage(args)         | function  | Stage a cloudevent to be sent to `rapids` after `mutations` are applied. |\r\n\r\n## Lifecycle\r\n\r\nDespite the straggered nature of staged mutations and staged rapids cloudevents, all mutations are applied first in order. Then, all rapids cloudevents are emitted in order.\r\n\r\n| Lifecycle | Commit order |\r\n| --- | --- |\r\n| ![Image communicating lifecycle](./images/lifecycle.jpg) | ![Image communicating that all mutations are applied first followed by all rapids cloudevents](./images/commit-order.jpg) |\r\n\r\n## Development\r\n\r\n1. Run `npm install`\r\n1. Create `.env` file with with `MILL_IOTA_AWS_ACCESS_KEY_ID`, `MILL_IOTA_AWS_REGION`, and `MILL_IOTA_AWS_SECRET_ACCESS_KEY`.\r\n1. Run `docker compose up -d mongo mongo-admin`\r\n1. Run `docker compose up test`\r\n\r\n## Deploy\r\n\r\n1. Run `npm version (major|minor|patch)`\r\n1. Run `git push`\r\n1. Run `npm run deploy`\r\n","readmeFilename":"README.md"}