{"_id":"@ardatan/aggregate-error","_rev":"134425","name":"@ardatan/aggregate-error","description":"Create an error from multiple errors","dist-tags":{"latest":"0.0.6"},"maintainers":[{"name":"ardatan","email":""}],"time":{"modified":"2021-06-03T11:17:04.000Z","created":"2020-06-23T16:42:35.199Z","0.0.6":"2020-09-04T06:15:12.603Z","0.0.5":"2020-09-04T06:04:26.216Z","0.0.4":"2020-09-04T05:36:50.686Z","0.0.3":"2020-09-04T05:33:12.110Z","0.0.2":"2020-09-03T12:40:57.009Z","0.0.1":"2020-06-23T16:42:35.199Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/aggregate-error.git"},"versions":{"0.0.6":{"name":"@ardatan/aggregate-error","version":"0.0.6","description":"Create an error from multiple errors","sideEffects":false,"dependencies":{"tslib":"~2.0.1"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/aggregate-error.git"},"keywords":["aggregate","error","combine","multiple","many","collection","iterable","iterator"],"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"license":"MIT","engines":{"node":">=8"},"main":"index.cjs.js","module":"index.esm.js","typings":"index.d.ts","typescript":{"definition":"index.d.ts"},"bugs":{"url":"https://github.com/sindresorhus/aggregate-error/issues"},"homepage":"https://github.com/sindresorhus/aggregate-error#readme","_id":"@ardatan/aggregate-error@0.0.6","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"shasum":"fe6924771ea40fc98dc7a7045c2e872dc8527609","size":6961,"noattachment":false,"key":"/@ardatan/aggregate-error/-/@ardatan/aggregate-error-0.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/@ardatan/aggregate-error/download/@ardatan/aggregate-error-0.0.6.tgz"},"maintainers":[{"name":"ardatan","email":""}],"_npmUser":{"name":"ardatan","email":"ardatanrikulu@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aggregate-error_0.0.6_1599200112499_0.4880634455741619"},"_hasShrinkwrap":false,"publish_time":1599200112603,"_cnpm_publish_time":1599200112603},"0.0.5":{"name":"@ardatan/aggregate-error","version":"0.0.5","description":"Create an error from multiple errors","sideEffects":false,"dependencies":{"tslib":"~2.0.1"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/aggregate-error.git"},"keywords":["aggregate","error","combine","multiple","many","collection","iterable","iterator"],"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"license":"MIT","engines":{"node":">=8"},"main":"index.cjs.js","module":"index.esm.js","typings":"index.d.ts","typescript":{"definition":"index.d.ts"},"bugs":{"url":"https://github.com/sindresorhus/aggregate-error/issues"},"homepage":"https://github.com/sindresorhus/aggregate-error#readme","_id":"@ardatan/aggregate-error@0.0.5","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"shasum":"c924c6717c75b5a593f77d4e44d4a82133316edb","size":6975,"noattachment":false,"key":"/@ardatan/aggregate-error/-/@ardatan/aggregate-error-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/@ardatan/aggregate-error/download/@ardatan/aggregate-error-0.0.5.tgz"},"maintainers":[{"name":"ardatan","email":""}],"_npmUser":{"name":"ardatan","email":"ardatanrikulu@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aggregate-error_0.0.5_1599199466112_0.00989227957164518"},"_hasShrinkwrap":false,"publish_time":1599199466216,"_cnpm_publish_time":1599199466216},"0.0.4":{"name":"@ardatan/aggregate-error","version":"0.0.4","description":"Create an error from multiple errors","sideEffects":false,"dependencies":{"tslib":"~2.0.1"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/aggregate-error.git"},"keywords":["aggregate","error","combine","multiple","many","collection","iterable","iterator"],"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"license":"MIT","engines":{"node":">=8"},"main":"index.cjs.js","module":"index.esm.js","typings":"index.d.ts","typescript":{"definition":"index.d.ts"},"bugs":{"url":"https://github.com/sindresorhus/aggregate-error/issues"},"homepage":"https://github.com/sindresorhus/aggregate-error#readme","_id":"@ardatan/aggregate-error@0.0.4","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"shasum":"6fcec1e211dc84b956677b18594f9c77e2ff6d57","size":7213,"noattachment":false,"key":"/@ardatan/aggregate-error/-/@ardatan/aggregate-error-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@ardatan/aggregate-error/download/@ardatan/aggregate-error-0.0.4.tgz"},"maintainers":[{"name":"ardatan","email":""}],"_npmUser":{"name":"ardatan","email":"ardatanrikulu@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aggregate-error_0.0.4_1599197810572_0.8690177870459026"},"_hasShrinkwrap":false,"publish_time":1599197810686,"_cnpm_publish_time":1599197810686},"0.0.3":{"name":"@ardatan/aggregate-error","version":"0.0.3","description":"Create an error from multiple errors","sideEffects":false,"repository":{"type":"git","url":"git+https://github.com/sindresorhus/aggregate-error.git"},"keywords":["aggregate","error","combine","multiple","many","collection","iterable","iterator"],"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"license":"MIT","engines":{"node":">=8"},"main":"index.cjs.js","module":"index.esm.js","typings":"index.d.ts","typescript":{"definition":"index.d.ts"},"bugs":{"url":"https://github.com/sindresorhus/aggregate-error/issues"},"homepage":"https://github.com/sindresorhus/aggregate-error#readme","_id":"@ardatan/aggregate-error@0.0.3","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"shasum":"ec9fdfe576534b98653a11709b9d5d3b4cc93628","size":11387,"noattachment":false,"key":"/@ardatan/aggregate-error/-/@ardatan/aggregate-error-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@ardatan/aggregate-error/download/@ardatan/aggregate-error-0.0.3.tgz"},"maintainers":[{"name":"ardatan","email":""}],"_npmUser":{"name":"ardatan","email":"ardatanrikulu@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aggregate-error_0.0.3_1599197591964_0.4071062210327787"},"_hasShrinkwrap":false,"publish_time":1599197592110,"_cnpm_publish_time":1599197592110},"0.0.2":{"name":"@ardatan/aggregate-error","version":"0.0.2","sideEffects":false,"license":"MIT","engines":{"node":">=10"},"main":"index.cjs.js","module":"index.esm.js","typings":"index.d.ts","typescript":{"definition":"index.d.ts"},"publishConfig":{"access":"public"},"_id":"@ardatan/aggregate-error@0.0.2","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"shasum":"0aaa959f44ed98803d9f3ff6b3519edb9d3e50d4","size":5737,"noattachment":false,"key":"/@ardatan/aggregate-error/-/@ardatan/aggregate-error-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@ardatan/aggregate-error/download/@ardatan/aggregate-error-0.0.2.tgz"},"maintainers":[{"name":"ardatan","email":""}],"_npmUser":{"name":"ardatan","email":"ardatanrikulu@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aggregate-error_0.0.2_1599136856886_0.964116045444535"},"_hasShrinkwrap":false,"publish_time":1599136857009,"_cnpm_publish_time":1599136857009},"0.0.1":{"name":"@ardatan/aggregate-error","version":"0.0.1","sideEffects":false,"license":"MIT","engines":{"node":">=10"},"main":"index.cjs.js","module":"index.esm.js","typings":"index.d.ts","typescript":{"definition":"index.d.ts"},"publishConfig":{"access":"public"},"_id":"@ardatan/aggregate-error@0.0.1","_nodeVersion":"14.0.0","_npmVersion":"6.14.4","dist":{"shasum":"1403ac5de10d8ca689fc1f65844c27179ae1d44f","size":5732,"noattachment":false,"key":"/@ardatan/aggregate-error/-/@ardatan/aggregate-error-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@ardatan/aggregate-error/download/@ardatan/aggregate-error-0.0.1.tgz"},"maintainers":[{"name":"ardatan","email":""}],"_npmUser":{"name":"ardatan","email":"ardatanrikulu@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aggregate-error_0.0.1_1592930555051_0.9649021509240487"},"_hasShrinkwrap":false,"publish_time":1592930555199,"_cnpm_publish_time":1592930555199}},"readme":"# aggregate-error [![Build Status](https://travis-ci.org/sindresorhus/aggregate-error.svg?branch=master)](https://travis-ci.org/sindresorhus/aggregate-error)\n\n> Create an error from multiple errors\n\n\n## Install\n\n```\n$ npm install aggregate-error\n```\n\n\n## Usage\n\n```js\nconst AggregateError = require('aggregate-error');\n\nconst error = new AggregateError([new Error('foo'), 'bar', {message: 'baz'}]);\n\nthrow error;\n/*\nAggregateError:\n    Error: foo\n        at Object.<anonymous> (/Users/sindresorhus/dev/aggregate-error/example.js:3:33)\n    Error: bar\n        at Object.<anonymous> (/Users/sindresorhus/dev/aggregate-error/example.js:3:13)\n    Error: baz\n        at Object.<anonymous> (/Users/sindresorhus/dev/aggregate-error/example.js:3:13)\n    at AggregateError (/Users/sindresorhus/dev/aggregate-error/index.js:19:3)\n    at Object.<anonymous> (/Users/sindresorhus/dev/aggregate-error/example.js:3:13)\n    at Module._compile (module.js:556:32)\n    at Object.Module._extensions..js (module.js:565:10)\n    at Module.load (module.js:473:32)\n    at tryModuleLoad (module.js:432:12)\n    at Function.Module._load (module.js:424:3)\n    at Module.runMain (module.js:590:10)\n    at run (bootstrap_node.js:394:7)\n    at startup (bootstrap_node.js:149:9)\n*/\n\nfor (const individualError of error) {\n\tconsole.log(individualError);\n}\n//=> [Error: foo]\n//=> [Error: bar]\n//=> [Error: baz]\n```\n\n\n## API\n\n### AggregateError(errors)\n\nReturns an `Error` that is also an [`Iterable`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators#Iterables) for the individual errors.\n\n#### errors\n\nType: `Array<Error|Object|string>`\n\nIf a string, a new `Error` is created with the string as the error message.<br>\nIf a non-Error object, a new `Error` is created with all properties from the object copied over.\n","_attachments":{},"homepage":"https://github.com/sindresorhus/aggregate-error#readme","bugs":{"url":"https://github.com/sindresorhus/aggregate-error/issues"},"license":"MIT"}