/ etherpad / src / node_modules / es-aggregate-error /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]test/4 days ago -  
[TXT]README.md4 days ago2.4K 
[TXT]CHANGELOG.md4 days ago 12K 
[   ]package.json4 days ago2.4K 
[   ]shim.js4 days ago417  
[   ]polyfill.js4 days ago191  
[   ]index.js4 days ago716  
[   ]implementation.js4 days ago1.7K 
[   ]auto.js4 days ago 36  
[   ]LICENSE4 days ago1.0K 
README.md

es-aggregate-error Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

ES Proposal spec-compliant shim for AggregateError. Invoke its "shim" method to shim AggregateError if it is unavailable or noncompliant.

This package implements the es-shim API interface. It works in an ES3-supported environment, and complies with the proposed spec.

Most common usage:

var assert = require('assert');
var AggregateError = require('es-aggregate-error');

var oneError = new RangeError('hi!');
var otherError = new EvalError('oops');
var error = new AggregateError([oneError, otherError], 'this is two kinds of errors');

assert.deepEqual(error.errors, [oneError, otherError]);
assert.equal(error.message, 'this is two kinds of errors');

AggregateError.shim(); // will be a no-op if not needed

assert.ok(new globalThis.AggregateError([]) instanceof AggregateError);

Tests

Simply clone the repo, npm install, and run npm test

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80