{"_id":"wait-for-observables","_rev":"29-17a9730538128a2433e2d109552ee557","name":"wait-for-observables","time":{"modified":"2022-06-28T21:28:30.227Z","created":"2017-12-04T23:47:21.583Z","1.0.0":"2017-12-04T23:47:21.583Z","1.0.1":"2017-12-04T23:51:44.964Z","1.0.2":"2017-12-04T23:54:48.884Z","1.0.3":"2017-12-05T00:16:28.259Z"},"maintainers":[{"email":"platform-excellence-services@convoy.com","name":"convoy_artifactory"},{"email":"convoy_npmjs_ci@convoy.com","name":"convoy_ci"},{"email":"convoy_npmjs_admin@convoy.com","name":"convoy_admin"},{"email":"npm@convoy.com","name":"donvoy"}],"dist-tags":{"latest":"1.0.3"},"description":"A helper for awaiting the results of one or more Observables","readme":"# wait-for-observables\n\n[![npm](https://img.shields.io/npm/v/wait-for-observables.svg)](https://www.npmjs.com/package/wait-for-observables)\n[![Build Status](https://img.shields.io/circleci/project/github/convoyinc/wait-for-observables/master.svg)](https://circleci.com/gh/convoyinc/workflows/wait-for-observables)\n\nA helper for `await`ing the results of one or more [`Observable`s](https://github.com/tc39/proposal-observable).\n\nThis is particularly handy when testing interfaces that return or consume observables.\n\n## Usage\n\n```ts\nimport waitFor from 'wait-for-observables';\n\ndescribe(`observable things`, () => {\n\n  it(`observes`, async () => {\n    const [result1, result2] = await waitFor(observable1, observable2);\n    // …do things with the results.\n  });\n\n});\n```\n\nAn observer that completes successfully will yield `{ values: any[] }`, where `values` is an array containing an entry for each call to `next`.\n\nObservers that fail will yield `{ error: any }`.\n","versions":{"1.0.3":{"name":"wait-for-observables","version":"1.0.3","description":"A helper for awaiting the results of one or more Observables","license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/convoyinc/wait-for-observables.git"},"homepage":"https://github.com/convoyinc/wait-for-observables","bugs":{"url":"https://github.com/convoyinc/wait-for-observables/issues"},"keywords":["observable","await"],"files":["**/*.md","src/","tsconfig.json"],"main":"./src/index.js","typings":"./src/index.d.ts","scripts":{"clean":"./scripts/clean.sh","compile":"./scripts/compile.sh","dev":"./scripts/dev.sh","fix:style":"./scripts/fix-style.sh","release":"./scripts/release.sh","test":"./scripts/test.sh","test-compile":"./scripts/test-compile.sh","test-style":"./scripts/test-style.sh","test-unit":"./scripts/test-unit.sh","test-unit-coverage":"./scripts/test-unit-coverage.sh"},"devDependencies":{"typescript":"^2.6.2"},"dependencies":{"tslib":"^1.8.0"},"gitHead":"c77074cfc914451711c41682fdf9434ce9d7416b","_id":"wait-for-observables@1.0.3","_shasum":"3b3def5f556b4b6411f608899746dd39cfdcc3f3","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"donvoy","email":"npm@convoy.com"},"dist":{"shasum":"3b3def5f556b4b6411f608899746dd39cfdcc3f3","tarball":"https://registry.npmjs.org/wait-for-observables/-/wait-for-observables-1.0.3.tgz","integrity":"sha512-fUXfx0u7LcoQRTTpWv8ghCrbf0bsgB/T8mxYlOph3RV3/9dMQGFq8HN/9rgzfvaCNLWBQoaLI0+61NyUjYYMYQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUM8Wv/5GbELZ13WBClleC5SBjusWtvASvWvP+g35SeQIgcLIzNdTbr0/Z7ccZmxGCBnQ3hIq4t/mxxADFAa4FfEw="}]},"maintainers":[{"name":"donvoy","email":"npm@convoy.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wait-for-observables-1.0.3.tgz_1512432987347_0.18827085033990443"},"directories":{}}},"homepage":"https://github.com/convoyinc/wait-for-observables","keywords":["observable","await"],"repository":{"type":"git","url":"git+https://github.com/convoyinc/wait-for-observables.git"},"bugs":{"url":"https://github.com/convoyinc/wait-for-observables/issues"},"license":"Apache-2.0","readmeFilename":"README.md"}