{"_id":"@bitbybit-labs/lib-amqp","name":"@bitbybit-labs/lib-amqp","dist-tags":{"latest":"0.0.2-beta.1"},"versions":{"0.0.2-beta.1":{"name":"@bitbybit-labs/lib-amqp","version":"0.0.2-beta.1","description":"AMQP helper with auto-connect, and other life-saver features.","main":"build/main/index.js","typings":"build/main/index.d.ts","module":"build/module/index.js","repository":{"type":"git","url":"git+https://github.com/AsmaraKu/lib_amqp.git"},"author":{"name":"bitbybit","url":"https://github.com/AsmaraKu"},"contributors":[{"name":"fauh45","email":"fauzan@bitbybit.studio","url":"https://github.com/fauh45"}],"license":"MIT","keywords":["amqp","amqplib"],"scripts":{"build":"run-p build:*","build:main":"tsc -p tsconfig.json","build:module":"tsc -p tsconfig.module.json","fix":"run-s fix:*","fix:prettier":"prettier \"src/**/*.ts\" --write","fix:lint":"eslint src --ext .ts --fix","test":"run-s build test:*","test:lint":"eslint src --ext .ts","test:prettier":"prettier \"src/**/*.ts\" --list-different","test:spelling":"cspell \"{README.md,.github/*.md,src/**/*.ts}\"","test:unit":"nyc --silent ava","check-cli":"run-s test diff-integration-tests check-integration-tests","check-integration-tests":"run-s check-integration-test:*","diff-integration-tests":"mkdir -p diff && rm -rf diff/test && cp -r test diff/test && rm -rf diff/test/test-*/.git && cd diff && git init --quiet && git add -A && git commit --quiet --no-verify --allow-empty -m 'WIP' && echo '\\n\\nCommitted most recent integration test output in the \"diff\" directory. Review the changes with \"cd diff && git diff HEAD\" or your preferred git diff viewer.'","watch:build":"tsc -p tsconfig.json -w","watch:test":"nyc --silent ava --watch","cov":"run-s build test:unit cov:html cov:lcov && open-cli coverage/index.html","cov:html":"nyc report --reporter=html","cov:lcov":"nyc report --reporter=lcov","cov:send":"run-s cov:lcov && codecov","cov:check":"nyc report && nyc check-coverage --lines 50 --functions 50 --branches 50","doc":"run-s doc:html && open-cli build/docs/index.html","doc:html":"typedoc src/ src/consumer/ src/publisher/ --entryPointStrategy expand --exclude **/*.spec.ts --out build/docs","doc:json":"typedoc src/ src/consumer/ src/publisher/ --entryPointStrategy expand --exclude **/*.spec.ts --json build/docs/typedoc.json","doc:publish":"gh-pages -m \"[ci skip] Updates\" -d build/docs","version":"standard-version --prerelease beta","reset-hard":"git clean -dfx && git reset --hard && npm i","prepare-release":"run-s reset-hard test cov:check doc:html version doc:publish"},"engines":{"node":">=16"},"dependencies":{"amqp-connection-manager":"^4.1.14","amqplib":"^0.10.3"},"peerDependencies":{"zod":"^3.22.4"},"peerDependenciesMeta":{"zod":{"optional":true}},"devDependencies":{"@ava/typescript":"^4.1.0","@istanbuljs/nyc-config-typescript":"^1.0.2","@types/amqplib":"^0.10.4","@typescript-eslint/eslint-plugin":"^6.10.0","@typescript-eslint/parser":"^6.10.0","ava":"^5.3.1","codecov":"^3.8.3","cspell":"^4.2.8","cz-conventional-changelog":"^3.3.0","eslint":"^8.53.0","eslint-config-prettier":"^9.0.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-functional":"^6.0.0","eslint-plugin-import":"^2.29.0","gh-pages":"^3.2.3","npm-run-all":"^4.1.5","nyc":"^15.1.0","open-cli":"^7.2.0","prettier":"^2.8.8","standard-version":"^9.5.0","ts-node":"^10.9.1","typedoc":"^0.25.3","typescript":"^5.2.2"},"ava":{"failFast":true,"timeout":"60s","typescript":{"rewritePaths":{"src/":"build/main/"},"compile":false},"files":["!build/module/**"]},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"prettier":{"singleQuote":true},"nyc":{"extends":"@istanbuljs/nyc-config-typescript","exclude":["**/*.spec.js"]},"gitHead":"797c5dce89a418284baf32b76b09600015db8990","bugs":{"url":"https://github.com/AsmaraKu/lib_amqp/issues"},"homepage":"https://github.com/AsmaraKu/lib_amqp#readme","_id":"@bitbybit-labs/lib-amqp@0.0.2-beta.1","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-a2bd7wI5uXyaTJVa2bpY0x3bDexA1aXJ4w/Ps0PepJ9AxuKYiXxIeFBPDX0P401x+6vk/zjIssOHh8u1yT7sLQ==","shasum":"8a48f6fc88d91d0c8c892dbd98ab4ff5e1e02b59","tarball":"https://registry.npmjs.org/@bitbybit-labs/lib-amqp/-/lib-amqp-0.0.2-beta.1.tgz","fileCount":40,"unpackedSize":68881,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8xWfC6zaJpyZIwGFG4V0SuvlbXTshozqNaoydXi3w4QIgbXwP44E1G4k5y1ACFKWrebYMIlWKiBCI3JmlWEqLero="}]},"_npmUser":{"name":"fauh45","email":"fauzanfauh45@gmail.com"},"directories":{},"maintainers":[{"name":"fauh45","email":"fauzanfauh45@gmail.com"},{"name":"maulanaadil","email":"maulana@asmaraku.com"},{"name":"brandon.pardede","email":"brandonpardede25@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lib-amqp_0.0.2-beta.1_1699613991772_0.9192587416500135"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-10T10:59:51.620Z","0.0.2-beta.1":"2023-11-10T10:59:51.947Z","modified":"2023-11-10T10:59:52.271Z"},"maintainers":[{"name":"fauh45","email":"fauzanfauh45@gmail.com"},{"name":"maulanaadil","email":"maulana@asmaraku.com"},{"name":"brandon.pardede","email":"brandonpardede25@gmail.com"}],"description":"AMQP helper with auto-connect, and other life-saver features.","homepage":"https://github.com/AsmaraKu/lib_amqp#readme","keywords":["amqp","amqplib"],"repository":{"type":"git","url":"git+https://github.com/AsmaraKu/lib_amqp.git"},"contributors":[{"name":"fauh45","email":"fauzan@bitbybit.studio","url":"https://github.com/fauh45"}],"author":{"name":"bitbybit","url":"https://github.com/AsmaraKu"},"bugs":{"url":"https://github.com/AsmaraKu/lib_amqp/issues"},"license":"MIT","readme":"# @asmaraku/lib-amqp\n\nAMQP helper with auto-connect, and other life-saver features.\n\n## Use Cases\n\nCurrently this library will support these use cases. Checklist means it has been implemented.\n\n- [x] Connect to AMQP Server (RabbitMQ) through the URL\n- [x] Setup auto-reconnection\n- [x] Automatically assert exchange & queue\n- [x] Add route between exchange + route\n- [x] Safe consume (message parsed through Zod)\n- [x] Easy type-safe publish (~~optionally~~ validated, strongly typed params)\n- [x] One function call on exit to gracefully stop the app (e.g. `await close(connection)`)\n- [ ] 100% test coverage, currently there's a lot of files without test\n  - [ ] Add unit test for `/lib/channel.ts`\n  - [ ] Add unit test for `/lib/consumer.ts`\n  - [ ] Add unit test for `/lib/publisher.ts`\n\n## Maintainer\n\nfauh45 ([fauzan@bitbybit.studio](mailto:fauzan@bitbybit.studio))\n","readmeFilename":"README.md"}