3.12.90 • Published 10 months ago

@diotoborg/eaque-illum-qui v3.12.90

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@diotoborg/eaque-illum-qui 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('@diotoborg/eaque-illum-qui');

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 @diotoborg/eaque-illum-qui 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 @diotoborg/eaque-illum-qui npm package!

Function.prototype.namepyyamlrulesrgbreducerslotwidthTypeScriptmoveurlredactReactiveXReactiveExtensionsjson-schema-validationbootstrap csshardlinksflatMapintrinsicSetECMAScript 3es7jsdiffcollectionfindLastIndexvestfastclonereact-hook-formhelperemrserializerECMAScript 2017traversejsxrapidReflect.getPrototypeOftoStringTageast-asian-widthArray.prototype.flatMaprangeerrorbrowserfnmatchnegative zeroyupgradients css3windowsreadlanguageWeakSetIteratorshimboundstringifiergetoptfastifywhatwggraphqlreact-hookscertificateselasticacheexpressminimalwritegenericsstyleguideArray.prototype.flatterminalchannelweaksetclones3importexportstructuredCloneESnextES2023performancefpsless compilermake dirchromestylingdragreal-timespringfindvaluespassworddescriptionsyntaxpostcssvalidsubprocesschainested cssfastcopytsvisualdependency managertouchxhrSymbol.toStringTagsharedCSSfindLastUint32ArraySystem.globalregexroute53numberBigUint64ArrayshebangshrinkwraptrimtddnegativepersistentES2015es5datastructureRxJSstringifyfast-deep-copybeanstalkchromiumspinnerexit-coderfc4122hashbabel-coreimmerflagsextendasciibyteLengthconsumeInt32ArrayECMAScript 2015waapiconcatlengthmonorepomkdirspreprocessorserializecurriedcolorcolourprogresssqsreverseassertsmetadatachineseassignwgetwindowfluxqssuperagentoperating-systemlessschemeoncenamesmulti-packageauthless.jspipelockfilesigintfullwidthwaitES2020fastcore-jsarktypezerospecRxoptionponyfillpostcss-pluginrecursiveshamsignalloggingthreegitignoreESregularcallboundclass-validatordeep-copycensormkdirpslicefetchenvironmentsameValueZerojsonexecuteES3takequeueMicrotaskmodulesJSONhttp256childsequenceJSON-SchemahasOwnpluginArray.prototype.includeswhichstoragegatewayArray.prototype.filtercircularECMAScript 5ES2017livecssgradients csstypedarrayszodES2016PushlinuxbabelWeakMapMicrosoftowngdprauthenticationflaghasOwnPropertydeletetestercall-boundECMAScript 2019prettybindtransportArray.prototype.flattengesturesdeeplesscssqueueapipropertyUint8Arrayglobal objectforEachUint8ClampedArraycallresolvestreamscontains0fast-copycharacterlibphonenumber6to5cryptgetPrototypeOfasyncyamlprotocol-buffersguidcallbindpackagesfigletindicatorjson-schema-validatorprunestringformatStyleSheetsetreusemakekeyoptimiststableInt16ArrayperformantspinnerssetImmediatetrimLeftautoprefixeroffsettrimEndArrayBuffer.prototype.sliceroutegroupECMAScript 2022fsdotenvobjectStreamhaseslint-pluginnativebinariesES7querystringtypedarrayidlepnpm9Array.prototype.containsregexpsymbolcolorspushcallbackreadablekoreancloudsearchairbnbstyletoolkitvalidateUint16ArrayfilterirqinterruptshotRegExp.prototype.flagscjkpinoFloat32Arrayspawnclassesprivate databufferURLrouting
3.12.90

10 months ago

3.12.89

10 months ago

3.12.88

10 months ago

3.12.87

10 months ago

3.11.87

10 months ago

3.11.86

10 months ago

3.11.85

10 months ago

3.11.84

10 months ago

3.11.83

10 months ago

3.11.82

10 months ago

3.11.81

10 months ago

3.10.81

10 months ago

3.10.80

10 months ago

3.10.79

10 months ago

3.10.78

10 months ago

3.10.77

10 months ago

3.10.76

10 months ago

3.10.75

11 months ago

3.10.74

11 months ago

3.10.73

11 months ago

3.10.72

11 months ago

3.10.71

11 months ago

3.10.70

11 months ago

3.10.69

11 months ago

3.10.68

11 months ago

3.10.67

11 months ago

3.9.67

11 months ago

3.9.66

11 months ago

3.9.65

11 months ago

3.9.64

11 months ago

3.9.63

11 months ago

3.9.62

11 months ago

3.8.62

11 months ago

3.8.61

11 months ago

3.8.60

11 months ago

3.8.59

11 months ago

3.8.58

11 months ago

3.8.57

11 months ago

3.8.56

11 months ago

3.8.55

11 months ago

3.8.54

11 months ago

3.8.53

11 months ago

3.8.52

11 months ago

3.8.51

11 months ago

3.8.50

11 months ago

3.8.49

11 months ago

3.8.48

11 months ago

3.8.47

12 months ago

3.8.46

12 months ago

3.8.45

12 months ago

3.8.44

12 months ago

2.8.44

12 months ago

2.8.43

12 months ago

2.8.42

12 months ago

2.8.41

12 months ago

2.7.41

12 months ago

2.7.40

12 months ago

2.7.39

12 months ago

2.7.38

12 months ago

2.7.37

12 months ago

2.6.37

12 months ago

2.6.36

12 months ago

2.6.35

12 months ago

2.6.34

12 months ago

2.5.34

12 months ago

2.5.33

12 months ago

2.5.32

12 months ago

2.5.31

1 year ago

2.5.30

1 year ago

2.5.29

1 year ago

2.5.28

1 year ago

2.5.27

1 year ago

2.5.26

1 year ago

2.5.25

1 year ago

2.5.24

1 year ago

2.5.23

1 year ago

2.5.22

1 year ago

2.5.21

1 year ago

2.5.20

1 year ago

2.4.20

1 year ago

2.4.19

1 year ago

2.4.18

1 year ago

2.3.18

1 year ago

2.3.17

1 year ago

2.2.17

1 year ago

2.2.16

1 year ago

2.2.15

1 year ago

2.2.14

1 year ago

2.1.14

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

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