1.1.4 • Published 25 days ago

@teamteanpm2024/itaque-expedita-qui v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
25 days ago

@teamteanpm2024/itaque-expedita-qui 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('@teamteanpm2024/itaque-expedita-qui');

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

1.1.4

25 days ago

1.1.3

26 days ago

1.1.2

27 days ago

1.0.2

28 days ago

1.0.1

29 days ago

1.0.0

1 month ago