@trenskow/api-error 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +4 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -269,6 +269,10 @@ class Aggregated extends ApiError {
269
269
  this._errors.push(this._check(error));
270
270
  }
271
271
 
272
+ get errors() {
273
+ return this._errors;
274
+ }
275
+
272
276
  toJSON(options = {}) {
273
277
  return merge(super.toJSON(options), {
274
278
  errors: this._errors.map((error) => error.toJSON(options))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trenskow/api-error",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "A small collection of error objects that can be used for REST APIs.",
5
5
  "main": "index.js",
6
6
  "scripts": {