{"_id":"pull-catch","_rev":"9-4af25fe2cc75d9ffa79e9dd343bef1a7","name":"pull-catch","description":"Catch errors in a pull stream","dist-tags":{"latest":"1.1.0"},"versions":{"0.0.0":{"name":"pull-catch","version":"0.0.0","description":"Catch errors in a pull stream","main":"index.js","scripts":{"preversion":"npm test","postversion":"git push && git push --tags && npm publish","test":"node test/index.js | tap-spec"},"devDependencies":{"pull-stream":"^3.5.0","tap-spec":"^4.1.1","tape":"^4.6.3"},"repository":{"type":"git","url":"git+https://github.com/nichoth/pull-catch.git"},"keywords":["pull","stream","pull-stream","error","catch"],"author":{"name":"nichoth"},"license":"ISC","bugs":{"url":"https://github.com/nichoth/pull-catch/issues"},"homepage":"https://github.com/nichoth/pull-catch#readme","gitHead":"e097585ae7d40eae863156767bcbd830cfdf15c3","_id":"pull-catch@0.0.0","_shasum":"bc8188d2dce687e6210d001f83ee219823487572","_from":".","_npmVersion":"3.9.2","_nodeVersion":"4.4.4","_npmUser":{"name":"nichoth","email":"nichoth@gmail.com"},"dist":{"shasum":"bc8188d2dce687e6210d001f83ee219823487572","tarball":"https://registry.npmjs.org/pull-catch/-/pull-catch-0.0.0.tgz","integrity":"sha512-NKis9LaeoDm04wGGbUEHOyKoLDsRx8F73leeIhF3Ks+3InWGnnijsD0Hs6UCVne4WTNLDkmjmi2t01jCClm/cA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDd1C6mjTPxM+NagDzpMVlsUmQE/4UumcIP3PCP1WnqpgIgMZN8mvwQWwMfVGgLUfUJGxfGRaKM/MuweJg0IuIEr6c="}]},"maintainers":[{"name":"nichoth","email":"nichoth@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/pull-catch-0.0.0.tgz_1480201139690_0.020877313567325473"},"directories":{}},"0.0.1":{"name":"pull-catch","version":"0.0.1","description":"Catch errors in a pull stream","main":"index.js","scripts":{"preversion":"npm test","postversion":"git push && git push --tags && npm publish","test":"node test/index.js | tap-spec"},"devDependencies":{"pull-stream":"^3.5.0","tap-spec":"^4.1.1","tape":"^4.6.3"},"repository":{"type":"git","url":"git+https://github.com/nichoth/pull-catch.git"},"keywords":["pull","stream","pull-stream","error","catch"],"author":{"name":"nichoth"},"license":"ISC","bugs":{"url":"https://github.com/nichoth/pull-catch/issues"},"homepage":"https://github.com/nichoth/pull-catch#readme","gitHead":"c86d4c35233e9efb6ad303bbcd5c0ac5c8737a21","_id":"pull-catch@0.0.1","_shasum":"c0eaa7c9da12afd88b727fa3eddcf7a6db2a2b8a","_from":".","_npmVersion":"3.9.2","_nodeVersion":"4.4.4","_npmUser":{"name":"nichoth","email":"nichoth@gmail.com"},"dist":{"shasum":"c0eaa7c9da12afd88b727fa3eddcf7a6db2a2b8a","tarball":"https://registry.npmjs.org/pull-catch/-/pull-catch-0.0.1.tgz","integrity":"sha512-RPSaFUDl77gc45US3jSTOQhcmELOiKIe4rdmn+l0zWgljnX7cJppezZ+dpCcVA3eA9uiNLujuvynZi9yRot4Dw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDN4RUcnjz3POuJBdET5HgP0m9FOnh2US8BcsezRjHEHwIhAP1IeTXFcMy3LOYfS4vefEMdFA4mV97w9SqwKbYQ4c1y"}]},"maintainers":[{"name":"nichoth","email":"nichoth@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pull-catch-0.0.1.tgz_1480214626581_0.7380757485516369"},"directories":{}},"0.0.2":{"name":"pull-catch","version":"0.0.2","description":"Catch errors in a pull stream","main":"index.js","scripts":{"preversion":"npm test","postversion":"git push && git push --tags && npm publish","test":"node test/index.js | tap-spec"},"devDependencies":{"pull-stream":"^3.5.0","tap-spec":"^4.1.1","tape":"^4.6.3"},"repository":{"type":"git","url":"git+https://github.com/nichoth/pull-catch.git"},"keywords":["pull","stream","pull-stream","error","catch"],"author":{"name":"nichoth"},"license":"ISC","bugs":{"url":"https://github.com/nichoth/pull-catch/issues"},"homepage":"https://github.com/nichoth/pull-catch#readme","gitHead":"2217111ed7a471cd56be23992b86d3a4330f76f5","_id":"pull-catch@0.0.2","_shasum":"464fda646531966867494f6378988cd21815da93","_from":".","_npmVersion":"3.9.2","_nodeVersion":"4.4.4","_npmUser":{"name":"nichoth","email":"nichoth@gmail.com"},"dist":{"shasum":"464fda646531966867494f6378988cd21815da93","tarball":"https://registry.npmjs.org/pull-catch/-/pull-catch-0.0.2.tgz","integrity":"sha512-PJxszfEJ+HAs1/4jlDk6jwE6mIkg396xHkWU/eeAdMO//ve9FTQBESjUEiGtd0cxEiWC3TV083yoPtmHxuxcUg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGenOZTcEik6U70W3bSFiQ+Vt549yCmTA70Qk4+M6gowIgaOub/403jJb5mBHj8Jb2MeZFPpBCJjPdazmF8iTWItY="}]},"maintainers":[{"name":"nichoth","email":"nichoth@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/pull-catch-0.0.2.tgz_1480214675944_0.5910357548855245"},"directories":{}},"1.0.0":{"name":"pull-catch","version":"1.0.0","description":"Catch errors in a pull stream","main":"index.js","scripts":{"preversion":"npm test","postversion":"git push && git push --tags && npm publish","test":"node test/index.js | tap-spec"},"devDependencies":{"pull-stream":"^3.5.0","tap-spec":"^4.1.1","tape":"^4.6.3"},"repository":{"type":"git","url":"git+https://github.com/nichoth/pull-catch.git"},"keywords":["pull","stream","pull-stream","error","catch"],"author":{"name":"nichoth"},"license":"ISC","bugs":{"url":"https://github.com/nichoth/pull-catch/issues"},"homepage":"https://github.com/nichoth/pull-catch#readme","gitHead":"efc2e62c5a2f2d59b0cd8aae4136b4a55815cb59","_id":"pull-catch@1.0.0","_shasum":"f58037eb5c282ccb506af9f76b0027d33931e48b","_from":".","_npmVersion":"3.9.2","_nodeVersion":"4.4.4","_npmUser":{"name":"nichoth","email":"nichoth@gmail.com"},"dist":{"shasum":"f58037eb5c282ccb506af9f76b0027d33931e48b","tarball":"https://registry.npmjs.org/pull-catch/-/pull-catch-1.0.0.tgz","integrity":"sha512-usrW/fh2dl0RBKGqNgCMq0v6F5x7KqFHQymFHR9ziAy4xaH0G0BIvv2STwiQ5azXme814aNCRzwTR8p3ik5Asg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmCZO/qb7whPu7sW1t2zvvLurlgYq7ukz2ZvcCicZh3AIhAMYdZ4gVL040EA0BhRN3QIuUayApeHKdV+rQ3KAYXTVT"}]},"maintainers":[{"name":"nichoth","email":"nichoth@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/pull-catch-1.0.0.tgz_1482256428529_0.6860309180337936"},"directories":{}},"1.0.1":{"name":"pull-catch","version":"1.0.1","description":"Catch errors in a pull stream","main":"index.js","scripts":{"preversion":"npm test","postversion":"git push && git push --tags && npm publish","test":"node test/index.js | tap-spec"},"devDependencies":{"pull-stream":"^3.5.0","tap-spec":"^4.1.1","tape":"^4.6.3"},"repository":{"type":"git","url":"git+https://github.com/nichoth/pull-catch.git"},"keywords":["pull","stream","pull-stream","error","catch"],"author":{"name":"nichoth"},"license":"ISC","bugs":{"url":"https://github.com/nichoth/pull-catch/issues"},"homepage":"https://github.com/nichoth/pull-catch#readme","gitHead":"60de2b9fb2dec2c84f3814d4f1769f3ad6d16b28","_id":"pull-catch@1.0.1","_npmVersion":"6.5.0","_nodeVersion":"10.9.0","_npmUser":{"name":"nichoth","email":"nichoth@gmail.com"},"dist":{"integrity":"sha512-wrKbmEYySNETxOYXDTCJ8L/rcAFMayOifne2a+X9C0wSm6ttIWHHXwMYQh6k8iDRvtMM8itYkBlP4leKBJTiKA==","shasum":"61be4d3d4184436a89994bec975f1ff4aea854cb","tarball":"https://registry.npmjs.org/pull-catch/-/pull-catch-1.0.1.tgz","fileCount":4,"unpackedSize":4533,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcN4BWCRA9TVsSAnZWagAAlBoP/2wwTCDckT78mIbRFWmb\ndfn45aUknNYG5Vy5eGRdZhJcEACMsaz4m4iHp7kLfA+cpj7kcgT6nmtmkxv8\ni8B5jgJ6sVAmx9HPz1StVfa5bPhDHScGus6oKnEja/ouM9lLS33nFWRxu14Q\nc9EkFFklY1t63+h1rINEmwecwEgEUvcOE+xsiqiRilReiX24Zg7G0maxNaeA\nxjr2fiq89dh4lAa7P2freZ7Tpe81qiOUSiV88jCCZSgtTfJJLT00MvXdBKzE\nfe7bqMVGOzjgyIl8hkln7zBloxPlnWEPqcv32NEc5+V8ZtV2X65jBxXb8mOH\n1X99c9/MKqoOvlHcR3jPFkajKpazyHUuQpIDkfEp9w8WBrFazJFuyvmz8V6W\nL6Ohh+AWjV0FlmobvnNzBr88eUNGUHQ+UeNmdq5tzFHE++jCfqNnF46DLtLx\nIylrtvTG5FMnFFxhbqGFdox/4Sc2QnDxbkInAmzmyqGH+D8Yc18iFP4lZg9m\nGMsBuY37v16CcYqQg0zfM99DfTkZKBlQQAvBH3s/13XR8Rz3/7Bb2Uyfa7uN\nUZzJTgvz0CQ+hF/PqHYTbi94FGEQ2A3ao6avvuPCtcp5qD7yuT7vDhN6aOwD\nzjjOv+QRew8cQF5Vni4ZtC7v3U75Pm67HMv0NcHVwmrKCmW1WeD/Pz7xEjKK\nvs+G\r\n=4Pd6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDA+cJSp8cFCnRfni/YED6k8AzwlxGDSIuKLNAV7EmR3AiAwbIkkg+r17hGowC3c1FCUtGHruCDqiWcE3phMhyj6qA=="}]},"maintainers":[{"name":"nichoth","email":"nichoth@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pull-catch_1.0.1_1547141206088_0.5612364729585348"},"_hasShrinkwrap":false},"1.1.0":{"name":"pull-catch","version":"1.1.0","description":"Catch errors in a pull stream","main":"index.js","scripts":{"preversion":"npm test","postversion":"git push && git push --tags && npm publish","test":"node test/index.js | tap-arc"},"devDependencies":{"pull-stream":"^3.5.0","tap-arc":"^1.2.0","tape":"^5.7.2"},"repository":{"type":"git","url":"git+https://github.com/nichoth/pull-catch.git"},"keywords":["pull","stream","pull-stream","error","catch"],"author":{"name":"nichoth"},"license":"ISC","bugs":{"url":"https://github.com/nichoth/pull-catch/issues"},"homepage":"https://github.com/nichoth/pull-catch#readme","_id":"pull-catch@1.1.0","gitHead":"55ca93c84d404203d3df3b8de09ea26946a55616","_nodeVersion":"20.8.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-x6DkWZfBVvYrjUIcFroe3GtBkZcRINi8PsYgx3qBYluIeawLn4Z5oJI++WE5AJPbIZBmxHFx+zIvQmhRYaSeFA==","shasum":"e1a19c1651b63145187501e5e67381f6a49de854","tarball":"https://registry.npmjs.org/pull-catch/-/pull-catch-1.1.0.tgz","fileCount":4,"unpackedSize":4531,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLZwRNXTu3s7MN/hzQ1FgJbFV7cxfq6FQHSY5wmcHQiAIhANudLvcmfaD66khNjTeJvQxllmorWHZ3WCh4iQJguW4k"}]},"_npmUser":{"name":"nichoth","email":"nichoth@gmail.com"},"directories":{},"maintainers":[{"name":"nichoth","email":"nichoth@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pull-catch_1.1.0_1698436792245_0.7729168825988002"},"_hasShrinkwrap":false}},"readme":"# pull catch\nHandle errors in pull streams\n\nThis is a through stream that can ensure your source stream always ends normally, even when it returns an error. This is useful if you are combining several source streams with pull-many, and you want to keep the remaining streams open even if one of them errors. \n\n## install \n\n    $ npm install pull-catch\n\n## example\n\n```js\nvar test = require('tape')\nvar S = require('pull-stream')\nvar Catch = require('../')\n\ntest('catch errors', function (t) {\n    t.plan(2)\n    S(\n        S.error(new Error('test')),\n        Catch(function onErr (err) {\n            t.equal(err.message, 'test', 'should callback with error')\n        }),\n        S.collect(function (err, resp) {\n            t.error(err, 'should end the stream without error')\n        })\n    )\n})\n\ntest('return false to pass error', function (t) {\n    t.plan(1)\n    S(\n        S.error(new Error('test')),\n        Catch(function (err) {\n            return false\n        }),\n        S.collect(function (err, res) {\n            t.equal(err.message, 'test', 'should pass error in stream')\n        })\n    )\n})\n\ntest('return truthy to emit one event then end', function (t) {\n    t.plan(2)\n    S(\n        S.error(new Error('test')),\n        Catch(function (err) {\n            return 'test data'\n        }),\n        S.collect(function (err, res) {\n            t.error(err, 'should not end with error')\n            t.deepEqual(res, ['test data'], 'should emit one event')\n        })\n    )\n})\n\ntest('callback is optional', function (t) {\n    t.plan(1)\n    S(\n        S.error(new Error('test')),\n        Catch(),\n        S.collect(function (err, res) {\n            t.error(err, 'should end stream without error')\n        })\n    )\n})\n```\n","maintainers":[{"name":"nichoth","email":"nichoth@gmail.com"}],"time":{"modified":"2023-10-27T19:59:52.602Z","created":"2016-11-26T22:59:01.662Z","0.0.0":"2016-11-26T22:59:01.662Z","0.0.1":"2016-11-27T02:43:46.800Z","0.0.2":"2016-11-27T02:44:36.171Z","1.0.0":"2016-12-20T17:53:50.463Z","1.0.1":"2019-01-10T17:26:46.202Z","1.1.0":"2023-10-27T19:59:52.432Z"},"homepage":"https://github.com/nichoth/pull-catch#readme","keywords":["pull","stream","pull-stream","error","catch"],"repository":{"type":"git","url":"git+https://github.com/nichoth/pull-catch.git"},"author":{"name":"nichoth"},"bugs":{"url":"https://github.com/nichoth/pull-catch/issues"},"license":"ISC","readmeFilename":"readme.md"}