{"_id":"combine-errors","_rev":"437808","name":"combine-errors","description":"Combine errors into one","dist-tags":{"latest":"3.0.3"},"maintainers":[{"name":"blakeembrey","email":"hello@blakeembrey.com"},{"name":"mattmueller","email":"mattmuelle@gmail.com"}],"time":{"modified":"2021-08-05T06:23:03.000Z","created":"2016-03-11T08:28:36.438Z","3.0.3":"2016-06-28T08:57:11.228Z","3.0.2":"2016-06-07T07:34:01.332Z","3.0.1":"2016-04-24T16:13:24.171Z","3.0.0":"2016-03-25T12:07:39.754Z","2.0.0":"2016-03-23T12:14:20.645Z","1.0.1":"2016-03-11T08:36:23.838Z","1.0.0":"2016-03-11T08:28:36.438Z"},"users":{"johnloy":true},"author":{"name":"Matthew Mueller","email":"mattmuelle@gmail.com"},"repository":{"type":"git","url":"git://github.com/MatthewMueller/combine-errors.git"},"versions":{"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":"blakeembrey","email":"hello@blakeembrey.com"},{"name":"mattmueller","email":"mattmuelle@gmail.com"}],"dist":{"shasum":"f4df6740083e5703a3181110c2b10551f003da86","size":2263,"noattachment":false,"key":"/combine-errors/-/combine-errors-3.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/combine-errors/download/combine-errors-3.0.3.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/combine-errors-3.0.3.tgz_1467104228986_0.0929112455341965"},"directories":{},"publish_time":1467104231228,"_cnpm_publish_time":1467104231228,"_hasShrinkwrap":false},"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":"blakeembrey","email":"hello@blakeembrey.com"},{"name":"mattmueller","email":"mattmuelle@gmail.com"}],"dist":{"shasum":"01a3e0c730e4ffcfee10b6dfdc9a1c72431d4f5c","size":2223,"noattachment":false,"key":"/combine-errors/-/combine-errors-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/combine-errors/download/combine-errors-3.0.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/combine-errors-3.0.2.tgz_1465284840866_0.18982151919044554"},"directories":{},"publish_time":1465284841332,"_cnpm_publish_time":1465284841332,"_hasShrinkwrap":false},"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":"blakeembrey","email":"hello@blakeembrey.com"},{"name":"mattmueller","email":"mattmuelle@gmail.com"}],"dist":{"shasum":"79a04c22db8a6c5846a951dc41e8838f92e1c1e9","size":2072,"noattachment":false,"key":"/combine-errors/-/combine-errors-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/combine-errors/download/combine-errors-3.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/combine-errors-3.0.1.tgz_1461514400869_0.5180070814676583"},"directories":{},"publish_time":1461514404171,"_cnpm_publish_time":1461514404171,"_hasShrinkwrap":false},"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":"blakeembrey","email":"hello@blakeembrey.com"},{"name":"mattmueller","email":"mattmuelle@gmail.com"}],"dist":{"shasum":"48983531470ab0271c6fa5fe6d1a231059024c2b","size":1940,"noattachment":false,"key":"/combine-errors/-/combine-errors-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/combine-errors/download/combine-errors-3.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/combine-errors-3.0.0.tgz_1458907659333_0.08315059333108366"},"directories":{},"publish_time":1458907659754,"_cnpm_publish_time":1458907659754,"_hasShrinkwrap":false},"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":"blakeembrey","email":"hello@blakeembrey.com"},{"name":"mattmueller","email":"mattmuelle@gmail.com"}],"dist":{"shasum":"6ca13e4773111d8e7a74958966a4f4ff589960c3","size":1661,"noattachment":false,"key":"/combine-errors/-/combine-errors-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/combine-errors/download/combine-errors-2.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/combine-errors-2.0.0.tgz_1458735258341_0.014171869726851583"},"directories":{},"publish_time":1458735260645,"_cnpm_publish_time":1458735260645,"_hasShrinkwrap":false},"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":"blakeembrey","email":"hello@blakeembrey.com"},{"name":"mattmueller","email":"mattmuelle@gmail.com"}],"dist":{"shasum":"886f47531a89f9fc8f0a9ab1c60e1acb2345dd8e","size":1620,"noattachment":false,"key":"/combine-errors/-/combine-errors-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/combine-errors/download/combine-errors-1.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/combine-errors-1.0.1.tgz_1457685383357_0.4909461117349565"},"directories":{},"publish_time":1457685383838,"_cnpm_publish_time":1457685383838,"_hasShrinkwrap":false},"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":"blakeembrey","email":"hello@blakeembrey.com"},{"name":"mattmueller","email":"mattmuelle@gmail.com"}],"dist":{"shasum":"810aaa45df0e3c06e28e84736448b6a07e14f336","size":1377,"noattachment":false,"key":"/combine-errors/-/combine-errors-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/combine-errors/download/combine-errors-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/combine-errors-1.0.0.tgz_1457684915847_0.04199974238872528"},"directories":{},"publish_time":1457684916438,"_cnpm_publish_time":1457684916438,"_hasShrinkwrap":false}},"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.<anonymous> (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.<anonymous> (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","_attachments":{},"homepage":"https://github.com/MatthewMueller/combine-errors#readme","bugs":{"url":"https://github.com/MatthewMueller/combine-errors/issues"}}