4.9.67 • Published 1 year ago

@dramaorg/quibusdam-reiciendis v4.9.67

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@dramaorg/quibusdam-reiciendis Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

ES 2021 spec-compliant shim for Promise.any. Invoke its "shim" method to shim Promise.any if it is unavailable or noncompliant. Note: a global Promise must already exist: the es6-shim is recommended.

This package implements the es-shim API interface. It works in an ES3-supported environment that has Promise available globally, and complies with the spec.

Most common usage:

var assert = require('assert');
var any = require('@dramaorg/quibusdam-reiciendis');

var resolved = Promise.resolve(42);
var rejected = Promise.reject(-1);
var alsoRejected = Promise.reject(Infinity);

any([resolved, rejected, alsoRejected]).then(function (result) {
	assert.equal(result, 42);
});

any([rejected, alsoRejected]).catch(function (error) {
	assert.ok(error instanceof AggregateError);
	assert.deepEqual(error.errors, [-1, Infinity]);
});

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

Promise.any([resolved, rejected, alsoRejected]).then(function (result) {
	assert.equal(result, 42);
});

Promise.any([rejected, alsoRejected]).catch(function (error) {
	assert.ok(error instanceof AggregateError);
	assert.deepEqual(error.errors, [-1, Infinity]);
});

Tests

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

Pre-1.0 versions

The @dramaorg/quibusdam-reiciendis package was released as now-deprecated v0.1.0 and v0.1.1, as a fork of https://github.com/m0ppers/promise-any.

Thanks to @sadorlovsky for donating the repo and the @dramaorg/quibusdam-reiciendis npm package!

dirstarterObject.keysframerCSS.gitignorevariablesgroupSystem.globalbundleridlemakea11ybeanstalktermproxysymbolsPromiseprogressboundInt8ArraystringifierdragcoresnsconcatfserrorBigUint64ArrayESnodevisualrdsclienteventEmitterjestECMAScript 5Array.prototype.findLastIndextslibassignes-shim APIJSON-SchemaObject.fromEntriesinstallconsumehttps.envgettercircularreuseutilityObject.entriescodesgetPrototypeOfelasticacheregularpackageschemestreamsparentECMAScript 3eslinteslintpluginnopewaapigraphqlpromiseconsolerestobjsyntaxcolumns$.extendimporttoolsStreamseveryelbpropertymochaUint16ArrayTypeScripttoArraymulti-packagepolyfilldeeprangeerrorformsunicodeparsekeysrm -rfreact poseworkercallbackperformanceclonepostcssfast-deep-copyspeedWebSocketWeakMapnegativetrimautoscalingreact animationconstECMAScript 2018iteratefastcopyECMAScript 2023reversedotenvexpressioncharactersglaciertostringtagmomentstyleregular expressionsguidzeroeventsargsforkRegExp#flagsdropslicetc39concatMaprgbRxreduceregexsettingsfunctionalStreampnpm9emrtyped arrayquerystringparentsreworkruntimeArray.prototype.containsvalidtranspilerswfprunestyled-componentses6environmentcjkassertsbufferstakeenumerablelook-upimmerbrowserlocaltransportbinarymanagercolorsIteratorchromepackagesvalidatorstreamrssES2022popmotionoptimizerfilearktypejsontrimRightjson-schema-validatorcolortrimEndclassnamesentriesasciimrucoercibleflagtapdirectoryfunctionObject.getPrototypeOfjson-schemaramdatestingSymbol.toStringTagsymbolnodejsglobalfast-copyInt32Arrayclass-validatorUint8ClampedArrayreadablestreamreact-hook-formgdprJSONArrayBuffer#slicetranspilerm -frfeedspawnesUnderscoreendpointwhatwgnpmdeterministicbabel-corebundlingtape@@toStringTagcommand-lineESnextdataViewSymbolapppositiveObject.assignfullanimationhooksinvariantmodulesredirectreadiewalkinglistenersbabelhasOwnmoduleajaxwritecryptoFunction.prototype.namehigher-ordermapwalkvalidationzxsetImmediatecall-bindvaluedatafixed-widthtoobjectsuperagentredactprivate dataloadbalancingrecursivechannelsomejsonschemaES2021execfileES8picomatchclasseses-abstract-0inputassertinshrinkwrapreversedeast-asian-widthArray.prototype.flatMapcheck
4.9.67

1 year ago

4.9.66

1 year ago

4.8.66

1 year ago

4.8.65

1 year ago

4.8.64

1 year ago

4.8.63

1 year ago

4.8.62

1 year ago

4.8.61

1 year ago

4.8.60

1 year ago

4.8.59

1 year ago

4.8.58

1 year ago

4.8.57

1 year ago

4.8.56

1 year ago

4.8.55

1 year ago

4.8.54

1 year ago

4.8.53

1 year ago

4.7.53

1 year ago

4.7.52

1 year ago

3.7.52

1 year ago

3.7.51

1 year ago

3.7.50

1 year ago

3.7.49

1 year ago

3.7.48

1 year ago

3.6.48

1 year ago

3.6.47

1 year ago

3.6.46

1 year ago

3.6.45

1 year ago

3.6.44

1 year ago

2.6.44

1 year ago

2.6.43

1 year ago

2.6.42

1 year ago

2.5.42

1 year ago

2.5.41

1 year ago

2.5.40

1 year ago

2.5.39

1 year ago

2.5.38

1 year ago

2.5.37

1 year ago

2.5.36

1 year ago

2.5.35

1 year ago

2.5.34

1 year ago

2.5.33

1 year ago

2.5.32

1 year ago

2.5.31

1 year ago

2.4.31

1 year ago

2.4.30

1 year ago

2.4.29

1 year ago

2.3.29

1 year ago

2.3.28

1 year ago

2.3.27

1 year ago

2.3.26

1 year ago

2.3.25

1 year ago

2.3.24

1 year ago

2.3.23

1 year ago

2.2.23

1 year ago

2.2.22

1 year ago

2.2.21

1 year ago

2.2.20

1 year ago

2.2.19

1 year ago

2.2.18

1 year ago

2.2.17

1 year ago

2.1.17

1 year ago

2.1.16

1 year ago

2.1.15

1 year ago

2.1.14

1 year ago

2.1.13

1 year ago

2.1.12

1 year ago

2.1.11

1 year ago

2.1.10

1 year ago

2.0.10

1 year ago

2.0.9

1 year ago

2.0.8

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago