.yarn-metadata.json 4.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. {
  2. "manifest": {
  3. "name": "aggregate-error",
  4. "version": "3.1.0",
  5. "description": "Create an error from multiple errors",
  6. "license": "MIT",
  7. "repository": {
  8. "type": "git",
  9. "url": "https://github.com/sindresorhus/aggregate-error.git"
  10. },
  11. "author": {
  12. "name": "Sindre Sorhus",
  13. "email": "sindresorhus@gmail.com",
  14. "url": "sindresorhus.com"
  15. },
  16. "engines": {
  17. "node": ">=8"
  18. },
  19. "scripts": {
  20. "test": "xo && ava && tsd"
  21. },
  22. "files": [
  23. "index.js",
  24. "index.d.ts"
  25. ],
  26. "keywords": [
  27. "aggregate",
  28. "error",
  29. "combine",
  30. "multiple",
  31. "many",
  32. "collection",
  33. "iterable",
  34. "iterator"
  35. ],
  36. "dependencies": {
  37. "clean-stack": "^2.0.0",
  38. "indent-string": "^4.0.0"
  39. },
  40. "devDependencies": {
  41. "ava": "^2.4.0",
  42. "tsd": "^0.7.1",
  43. "xo": "^0.25.3"
  44. },
  45. "_registry": "npm",
  46. "_loc": "/home/jovyan/.cache/yarn/v6/npm-aggregate-error-3.1.0-92670ff50f5359bdb7a3e0d40d0ec30c5737687a-integrity/node_modules/aggregate-error/package.json",
  47. "readmeFilename": "readme.md",
  48. "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",
  49. "licenseText": "MIT License\n\nCopyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
  50. },
  51. "artifacts": [],
  52. "remote": {
  53. "resolved": "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.1.0.tgz#92670ff50f5359bdb7a3e0d40d0ec30c5737687a",
  54. "type": "tarball",
  55. "reference": "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.1.0.tgz",
  56. "hash": "92670ff50f5359bdb7a3e0d40d0ec30c5737687a",
  57. "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==",
  58. "registry": "npm",
  59. "packageName": "aggregate-error",
  60. "cacheIntegrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA== sha1-kmcP9Q9TWb23o+DUDQ7DDFc3aHo="
  61. },
  62. "registry": "npm",
  63. "hash": "92670ff50f5359bdb7a3e0d40d0ec30c5737687a"
  64. }