3.12.90 • Published 1 year ago

@diotoborg/eaque-illum-qui v3.12.90

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

3.12.89

1 year ago

3.12.88

1 year ago

3.12.87

1 year ago

3.11.87

1 year ago

3.11.86

1 year ago

3.11.85

1 year ago

3.11.84

1 year ago

3.11.83

1 year ago

3.11.82

1 year ago

3.11.81

1 year ago

3.10.81

1 year ago

3.10.80

1 year ago

3.10.79

1 year ago

3.10.78

1 year ago

3.10.77

1 year ago

3.10.76

1 year ago

3.10.75

1 year ago

3.10.74

1 year ago

3.10.73

1 year ago

3.10.72

1 year ago

3.10.71

1 year ago

3.10.70

1 year ago

3.10.69

1 year ago

3.10.68

1 year ago

3.10.67

1 year ago

3.9.67

1 year ago

3.9.66

1 year ago

3.9.65

1 year ago

3.9.64

1 year ago

3.9.63

1 year ago

3.9.62

1 year ago

3.8.62

1 year ago

3.8.61

1 year ago

3.8.60

1 year ago

3.8.59

1 year ago

3.8.58

1 year ago

3.8.57

1 year ago

3.8.56

1 year ago

3.8.55

1 year ago

3.8.54

1 year ago

3.8.53

1 year ago

3.8.52

1 year ago

3.8.51

1 year ago

3.8.50

1 year ago

3.8.49

1 year ago

3.8.48

1 year ago

3.8.47

1 year ago

3.8.46

1 year ago

3.8.45

1 year ago

3.8.44

1 year ago

2.8.44

1 year ago

2.8.43

1 year ago

2.8.42

1 year ago

2.8.41

1 year ago

2.7.41

1 year ago

2.7.40

1 year ago

2.7.39

1 year ago

2.7.38

1 year ago

2.7.37

1 year ago

2.6.37

1 year ago

2.6.36

1 year ago

2.6.35

1 year ago

2.6.34

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.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