{"_id":"combine-errors","_rev":"12-009f082b57430ba4dda5e9bfdb593c81","name":"combine-errors","description":"Combine errors into one","dist-tags":{"latest":"3.0.3"},"versions":{"1.0.0":{"name":"combine-errors","version":"1.0.0","description":"Combine errors into one","keywords":["combine","errors","compose","error","handling"],"author":{"name":"Matthew Mueller","email":"mattmuelle@gmail.com"},"repository":{"type":"git","url":"git://github.com/MatthewMueller/combine-errors.git"},"dependencies":{},"main":"index","gitHead":"5f3494057952811c81a0624a028d2754cc06d67c","bugs":{"url":"https://github.com/MatthewMueller/combine-errors/issues"},"homepage":"https://github.com/MatthewMueller/combine-errors#readme","_id":"combine-errors@1.0.0","scripts":{},"_shasum":"810aaa45df0e3c06e28e84736448b6a07e14f336","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.2","_npmUser":{"name":"mattmueller","email":"mattmuelle@gmail.com"},"maintainers":[{"name":"mattmueller","email":"mattmuelle@gmail.com"}],"dist":{"shasum":"810aaa45df0e3c06e28e84736448b6a07e14f336","tarball":"https://registry.npmjs.org/combine-errors/-/combine-errors-1.0.0.tgz","integrity":"sha512-GFt/jBf4U/sY6ux9YzWMUtH13DlL5LW+K15tRP2dSd8/hX3K6qcuSYq83BewB0s8yB7c6AgqoMI6hKC9MqpyhA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGIEHKuHpeUSAGxcKQ+y6Jx7jG4i8hnpPTbDv5PZdUdsAiEA10L2NewE3UXfRSCDGaeHCApHVVVjzq8580/Yt1s5enk="}]},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/combine-errors-1.0.0.tgz_1457684915847_0.04199974238872528"},"directories":{}},"1.0.1":{"name":"combine-errors","version":"1.0.1","description":"Combine errors into one","keywords":["combine","errors","compose","error","handling"],"author":{"name":"Matthew Mueller","email":"mattmuelle@gmail.com"},"repository":{"type":"git","url":"git://github.com/MatthewMueller/combine-errors.git"},"dependencies":{},"main":"index","gitHead":"e38c46d2e747500f95f4e7d0f305c41c3d8c3c19","bugs":{"url":"https://github.com/MatthewMueller/combine-errors/issues"},"homepage":"https://github.com/MatthewMueller/combine-errors#readme","_id":"combine-errors@1.0.1","scripts":{},"_shasum":"886f47531a89f9fc8f0a9ab1c60e1acb2345dd8e","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.2","_npmUser":{"name":"mattmueller","email":"mattmuelle@gmail.com"},"maintainers":[{"name":"mattmueller","email":"mattmuelle@gmail.com"}],"dist":{"shasum":"886f47531a89f9fc8f0a9ab1c60e1acb2345dd8e","tarball":"https://registry.npmjs.org/combine-errors/-/combine-errors-1.0.1.tgz","integrity":"sha512-nh5AvWa34vJLC5pPD5d/fzCpChhU32FDjWkzYUWaUvEHyW9mqJrTgJuBn8JuOlNLG82gE25MK4ICoCcydd0DSg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzIdVvt8oUSVsntC2p59x+/QJph0j/Bo8Fsa7DWikvYQIhAJp7O3S33z+3kbnA9kFzyJSAhYfRIBUIHYfQqySTXqdG"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/combine-errors-1.0.1.tgz_1457685383357_0.4909461117349565"},"directories":{}},"2.0.0":{"name":"combine-errors","version":"2.0.0","description":"Combine errors into one","keywords":["combine","errors","compose","error","handling"],"author":{"name":"Matthew Mueller","email":"mattmuelle@gmail.com"},"repository":{"type":"git","url":"git://github.com/MatthewMueller/combine-errors.git"},"dependencies":{},"main":"index","gitHead":"f87460e2d46327d72bce70997553613467d00b69","bugs":{"url":"https://github.com/MatthewMueller/combine-errors/issues"},"homepage":"https://github.com/MatthewMueller/combine-errors#readme","_id":"combine-errors@2.0.0","scripts":{},"_shasum":"6ca13e4773111d8e7a74958966a4f4ff589960c3","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.2","_npmUser":{"name":"mattmueller","email":"mattmuelle@gmail.com"},"maintainers":[{"name":"mattmueller","email":"mattmuelle@gmail.com"}],"dist":{"shasum":"6ca13e4773111d8e7a74958966a4f4ff589960c3","tarball":"https://registry.npmjs.org/combine-errors/-/combine-errors-2.0.0.tgz","integrity":"sha512-ucM4TFBWgOFOwS2L6HETuihuVW5yuLhWJbejggnU9dxkCJ/vbh5zKjuOxULJDCT33Kl2OLAvHJyu26a/o42xJQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4rYfFIA9sPsxfPdpFw/hMXnIKvwJniLWBdUCkJdoeFAIhAIJPivp2ZgMI5t5QnimTppWwmpQCW76EWt5uRLQdPBv8"}]},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/combine-errors-2.0.0.tgz_1458735258341_0.014171869726851583"},"directories":{}},"3.0.0":{"name":"combine-errors","version":"3.0.0","description":"Combine errors into one","keywords":["combine","errors","compose","error","handling"],"author":{"name":"Matthew Mueller","email":"mattmuelle@gmail.com"},"repository":{"type":"git","url":"git://github.com/MatthewMueller/combine-errors.git"},"dependencies":{"custom-error-instance":"2.1.1"},"main":"index","devDependencies":{"mocha":"2.4.5"},"gitHead":"1a2f9714ef186be038209e97421c22dd6d39fac9","bugs":{"url":"https://github.com/MatthewMueller/combine-errors/issues"},"homepage":"https://github.com/MatthewMueller/combine-errors#readme","_id":"combine-errors@3.0.0","scripts":{},"_shasum":"48983531470ab0271c6fa5fe6d1a231059024c2b","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.2","_npmUser":{"name":"mattmueller","email":"mattmuelle@gmail.com"},"maintainers":[{"name":"mattmueller","email":"mattmuelle@gmail.com"}],"dist":{"shasum":"48983531470ab0271c6fa5fe6d1a231059024c2b","tarball":"https://registry.npmjs.org/combine-errors/-/combine-errors-3.0.0.tgz","integrity":"sha512-a8IblFyn8uqbfuMwQTuuXyH4lJva+m2X7hoHDaqK+VeuONW/fqGV44ikQRmKx7Fjz81Bnq7gAzL+YR/XbgREJw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCs5H+HNTAQdRSETVXikhp3vnHFSWm3jZxtpPvwY0EIdAIhAI6gucBzZ6sGVjeDfNuR6KYsuhNR06pu7CrmRFjofPLm"}]},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/combine-errors-3.0.0.tgz_1458907659333_0.08315059333108366"},"directories":{}},"3.0.1":{"name":"combine-errors","version":"3.0.1","description":"Combine errors into one","keywords":["combine","errors","compose","error","handling"],"author":{"name":"Matthew Mueller","email":"mattmuelle@gmail.com"},"repository":{"type":"git","url":"git://github.com/MatthewMueller/combine-errors.git"},"dependencies":{"custom-error-instance":"2.1.1"},"main":"index","devDependencies":{"mocha":"2.4.5"},"gitHead":"515602c75e9802035b56dd9fa42cff58a4b5cc9a","bugs":{"url":"https://github.com/MatthewMueller/combine-errors/issues"},"homepage":"https://github.com/MatthewMueller/combine-errors#readme","_id":"combine-errors@3.0.1","scripts":{},"_shasum":"79a04c22db8a6c5846a951dc41e8838f92e1c1e9","_from":".","_npmVersion":"2.15.1","_nodeVersion":"4.4.3","_npmUser":{"name":"mattmueller","email":"mattmuelle@gmail.com"},"maintainers":[{"name":"mattmueller","email":"mattmuelle@gmail.com"}],"dist":{"shasum":"79a04c22db8a6c5846a951dc41e8838f92e1c1e9","tarball":"https://registry.npmjs.org/combine-errors/-/combine-errors-3.0.1.tgz","integrity":"sha512-AtExYWaleAUiGvBXuVammxGTYhiAhURhFd0sGUHRla3JEM06t3tU8DvmNJ+AlFhFr8ed4sOpPGjnG/G7gPbJpQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHhoOAhE1RGrcAkvK9eHLRfmiUi7ZdVKooo33bJq/We/AiBHQgev2CFBxKx1PjlO4s7vLb/xHEjptinOu3fm17ZFJg=="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/combine-errors-3.0.1.tgz_1461514400869_0.5180070814676583"},"directories":{}},"3.0.2":{"name":"combine-errors","version":"3.0.2","description":"Combine errors into one","keywords":["combine","errors","compose","error","handling"],"author":{"name":"Matthew Mueller","email":"mattmuelle@gmail.com"},"repository":{"type":"git","url":"git://github.com/MatthewMueller/combine-errors.git"},"dependencies":{"custom-error-instance":"2.1.1","lodash.uniqby":"4.5.0"},"main":"index","devDependencies":{"mocha":"2.4.5"},"gitHead":"144e088d85d87eeffcb5df43ece0932f30ba80c3","bugs":{"url":"https://github.com/MatthewMueller/combine-errors/issues"},"homepage":"https://github.com/MatthewMueller/combine-errors#readme","_id":"combine-errors@3.0.2","scripts":{},"_shasum":"01a3e0c730e4ffcfee10b6dfdc9a1c72431d4f5c","_from":".","_npmVersion":"2.15.6","_nodeVersion":"6.1.0","_npmUser":{"name":"mattmueller","email":"mattmuelle@gmail.com"},"maintainers":[{"name":"mattmueller","email":"mattmuelle@gmail.com"}],"dist":{"shasum":"01a3e0c730e4ffcfee10b6dfdc9a1c72431d4f5c","tarball":"https://registry.npmjs.org/combine-errors/-/combine-errors-3.0.2.tgz","integrity":"sha512-dIRyFUUl7FwWXYHRdGbhkvR/NSIv6Kxd4amAmh+0sG5MFOTdzGCKs+2lMMfeFJxoueSXKXhMNhVioRqh9ke+jg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCdWlUr1uxdLmFko4BUVitsuaYN8k7CkRo9mZ9tCJh2sgIhAMe6mf0YCbfPX9qaFRO8uyyeG6JqZAnbMPBg9n9gInw9"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/combine-errors-3.0.2.tgz_1465284840866_0.18982151919044554"},"directories":{}},"3.0.3":{"name":"combine-errors","version":"3.0.3","description":"Combine errors into one","keywords":["combine","errors","compose","error","handling"],"author":{"name":"Matthew Mueller","email":"mattmuelle@gmail.com"},"repository":{"type":"git","url":"git://github.com/MatthewMueller/combine-errors.git"},"dependencies":{"custom-error-instance":"2.1.1","lodash.uniqby":"4.5.0"},"main":"index","devDependencies":{"mocha":"2.4.5"},"gitHead":"4f67e3d6b0ed9d6795e703a0f31077639e6a75bb","bugs":{"url":"https://github.com/MatthewMueller/combine-errors/issues"},"homepage":"https://github.com/MatthewMueller/combine-errors#readme","_id":"combine-errors@3.0.3","scripts":{},"_shasum":"f4df6740083e5703a3181110c2b10551f003da86","_from":".","_npmVersion":"2.15.6","_nodeVersion":"6.1.0","_npmUser":{"name":"mattmueller","email":"mattmuelle@gmail.com"},"maintainers":[{"name":"mattmueller","email":"mattmuelle@gmail.com"}],"dist":{"shasum":"f4df6740083e5703a3181110c2b10551f003da86","tarball":"https://registry.npmjs.org/combine-errors/-/combine-errors-3.0.3.tgz","integrity":"sha512-C8ikRNRMygCwaTx+Ek3Yr+OuZzgZjduCOfSQBjbM8V3MfgcjSTeto/GXP6PAwKvJz/v15b7GHZvx5rOlczFw/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrt0jRE9XIQ1v9ahy9yZPDTuxpgiGiqxdgaROidxizUwIgAPxRNb8LZmqodHqbLoiOEl3bmId0KgWyJwV5Un2snNk="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/combine-errors-3.0.3.tgz_1467104228986_0.0929112455341965"},"directories":{}}},"readme":"\n# combine-errors\n\n Simple, dependency-free way to combine multiple errors into one.\n\n This is useful for handling multiple asynchronous errors, where you want to catch all the errors and combine them to return just a single error.\n\n## Features\n\n- `error instanceof Error === true`\n- composable: `error([error([err1, err2]), err3])`\n- stack and message are combined in a nice way\n- array-like object, so you can access the original errors by looping over the error\n- If you just have one error, it looks exactly like raw error meaning, `error(err).message === err.message && error(err).stack === err.stack`\n- zero dependencies\n- should work in the browser, though I haven't tested it yet\n\n## Installation\n\n```\nnpm install combine-errors\n```\n\n## Usage\n\n```js\nvar error = require('combine-errors')\nvar err = error([\n new Error('boom'),\n new Error('kablam')\n])\nthrow err\n/*\n=>\nError: boom\n at repl:2:1\n at REPLServer.defaultEval (repl.js:262:27)\n at bound (domain.js:287:14)\n at REPLServer.runBound [as eval] (domain.js:300:12)\n at REPLServer. (repl.js:431:12)\n at emitOne (events.js:95:20)\n at REPLServer.emit (events.js:182:7)\n at REPLServer.Interface._onLine (readline.js:211:10)\n at REPLServer.Interface._line (readline.js:550:8)\n at REPLServer.Interface._ttyWrite (readline.js:827:14)\n\nError: kablam\n at repl:3:1\n at REPLServer.defaultEval (repl.js:262:27)\n at bound (domain.js:287:14)\n at REPLServer.runBound [as eval] (domain.js:300:12)\n at REPLServer. (repl.js:431:12)\n at emitOne (events.js:95:20)\n at REPLServer.emit (events.js:182:7)\n at REPLServer.Interface._onLine (readline.js:211:10)\n at REPLServer.Interface._line (readline.js:550:8)\n at REPLServer.Interface._ttyWrite (readline.js:827:14)\n*/\n```\n\n## License\n\nMIT\n","maintainers":[{"email":"hello@blakeembrey.com","name":"blakeembrey"},{"email":"mattmuelle@gmail.com","name":"mattmueller"}],"time":{"modified":"2022-06-13T06:33:50.832Z","created":"2016-03-11T08:28:36.438Z","1.0.0":"2016-03-11T08:28:36.438Z","1.0.1":"2016-03-11T08:36:23.838Z","2.0.0":"2016-03-23T12:14:20.645Z","3.0.0":"2016-03-25T12:07:39.754Z","3.0.1":"2016-04-24T16:13:24.171Z","3.0.2":"2016-06-07T07:34:01.332Z","3.0.3":"2016-06-28T08:57:11.228Z"},"homepage":"https://github.com/MatthewMueller/combine-errors#readme","keywords":["combine","errors","compose","error","handling"],"repository":{"type":"git","url":"git://github.com/MatthewMueller/combine-errors.git"},"author":{"name":"Matthew Mueller","email":"mattmuelle@gmail.com"},"bugs":{"url":"https://github.com/MatthewMueller/combine-errors/issues"},"readmeFilename":"Readme.md","users":{}}