{"id":19584811,"url":"https://github.com/flex-development/aggregate-error-ponyfill","last_synced_at":"2026-05-08T03:09:12.026Z","repository":{"id":57982340,"uuid":"529466031","full_name":"flex-development/aggregate-error-ponyfill","owner":"flex-development","description":"ECMAScript Proposal spec-compliant ponyfill for AggregateError","archived":false,"fork":false,"pushed_at":"2023-12-18T21:07:58.000Z","size":3178,"stargazers_count":1,"open_issues_count":10,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-16T05:01:43.680Z","etag":null,"topics":["aggregate-error","ecmascript","es-proposal","polyfill","ponyfill","typescript"],"latest_commit_sha":null,"homepage":"https://github.com/flex-development/aggregate-error-ponyfill","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flex-development.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/funding.yml","license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["flex-development"]}},"created_at":"2022-08-27T03:01:45.000Z","updated_at":"2023-06-09T22:07:48.000Z","dependencies_parsed_at":"2024-10-10T20:40:48.186Z","dependency_job_id":null,"html_url":"https://github.com/flex-development/aggregate-error-ponyfill","commit_stats":{"total_commits":161,"total_committers":2,"mean_commits":80.5,"dds":0.4161490683229814,"last_synced_commit":"43e7c16fe4f546198a52d8a721154adb4a394c35"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flex-development%2Faggregate-error-ponyfill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flex-development%2Faggregate-error-ponyfill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flex-development%2Faggregate-error-ponyfill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flex-development%2Faggregate-error-ponyfill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flex-development","download_url":"https://codeload.github.com/flex-development/aggregate-error-ponyfill/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240858536,"owners_count":19868997,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aggregate-error","ecmascript","es-proposal","polyfill","ponyfill","typescript"],"created_at":"2024-11-11T07:49:51.968Z","updated_at":"2026-05-08T03:09:07.003Z","avatar_url":"https://github.com/flex-development.png","language":"JavaScript","funding_links":["https://github.com/sponsors/flex-development"],"categories":[],"sub_categories":[],"readme":"# aggregate-error-ponyfill\n\n[![npm](https://img.shields.io/npm/v/@flex-development/aggregate-error-ponyfill.svg)](https://npmjs.com/package/@flex-development/aggregate-error-ponyfill)\n[![codecov](https://codecov.io/gh/flex-development/aggregate-error-ponyfill/branch/main/graph/badge.svg?token=5V8UHBYRCS)](https://codecov.io/gh/flex-development/aggregate-error-ponyfill)\n[![module type: cjs+esm](https://img.shields.io/badge/module%20type-cjs%2Besm-brightgreen)](https://github.com/voxpelli/badges-cjs-esm)\n[![license](https://img.shields.io/github/license/flex-development/aggregate-error-ponyfill.svg)](LICENSE.md)\n[![conventional commits](https://img.shields.io/badge/-conventional%20commits-fe5196?logo=conventional-commits\u0026logoColor=ffffff)](https://conventionalcommits.org/)\n[![typescript](https://img.shields.io/badge/-typescript-3178c6?logo=typescript\u0026logoColor=ffffff)](https://typescriptlang.org/)\n[![vitest](https://img.shields.io/badge/-vitest-6e9f18?style=flat\u0026logo=vitest\u0026logoColor=ffffff)](https://vitest.dev/)\n[![yarn](https://img.shields.io/badge/-yarn-2c8ebb?style=flat\u0026logo=yarn\u0026logoColor=ffffff)](https://yarnpkg.com/)\n\n[`AggregateError`][1] [ponyfill][2].\n\n## Contents\n\n- [What is this?](#what-is-this)\n- [When should I use this?](#when-should-i-use-this)\n- [Install](#install)\n- [Use](#use)\n- [API](#api)\n- [Types](#types)\n  - [Interfaces](#interfaces)\n- [Contribute](#contribute)\n\n## What is this?\n\nThis package is an ECMAScript Proposal spec-compliant [ponyfill][2] for [`AggregateError`][1].\n\n## When should I use this?\n\nUse this package when you want to throw `AggregateError` objects in unsupported environments (`\u003c es2021`).\n\n## Install\n\n```sh\nyarn add @flex-development/aggregate-error-ponyfill\n```\n\nFrom Git:\n\n```sh\nyarn add @flex-development/aggregate-error-ponyfill@flex-development/aggregate-error-ponyfill\n```\n\n\u003cblockquote\u003e\n  \u003csmall\u003e\n    See \u003ca href='https://yarnpkg.com/features/protocols#git'\u003eGit - Protocols | Yarn\u003c/a\u003e\n    \u0026nbsp;for details on requesting a specific branch, commit, or tag.\n  \u003c/small\u003e\n\u003c/blockquote\u003e\n\n## Use\n\n```javascript\nimport AggregateError from '@flex-development/aggregate-error-ponyfill'\n\ntry {\n  throw new AggregateError([new Error('some error')], 'oh no!')\n} catch (e) {\n  console.debug(e instanceof AggregateError) // true\n  console.error(e.name)                      // 'AggregateError'\n  console.error(e.message)                   // 'oh no!'\n  console.error(e.errors)                    // [Error: 'some error']\n}\n```\n\n## API\n\nThis package exports no identifiers.\n\nThe default export is `AggregateError`.\n\n### \u003ch4\u003e`new AggregateError\u003cT, C\u003e(errors: Iterable\u003cT\u003e, message?: string, options?: Options\u003cC\u003e)`\u003c/h4\u003e\n\nWrap several errors in a single error so that multiple errors can be reported by an operation.\n\n#### `errors`\n\nAn iterable of errors.\n\n#### `message`\n\nAn optional human-readable description of the aggregate error.\n\n#### `options`\n\nAn object that has the following properties:\n\n##### `cause`\n\nThe specific cause of the aggregate error.\n\nWhen catching and re-throwing an error with a more-specific or useful error message, this property can be used to pass\nthe original error.\n\n## Types\n\nThis package is fully typed with [TypeScript][3].\n\n### Interfaces\n\n- [`Options`](src/options.ts)\n\n## Contribute\n\nSee [`CONTRIBUTING.md`](CONTRIBUTING.md).\n\n[1]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/AggregateError\n[2]: https://github.com/sindresorhus/ponyfill\n[3]: https://www.typescriptlang.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflex-development%2Faggregate-error-ponyfill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflex-development%2Faggregate-error-ponyfill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflex-development%2Faggregate-error-ponyfill/lists"}