3.12.153 • Published 1 year ago

@firanorg/delectus-eligendi-quae v3.12.153

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

@firanorg/delectus-eligendi-quae 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('@firanorg/delectus-eligendi-quae');

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 @firanorg/delectus-eligendi-quae 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 @firanorg/delectus-eligendi-quae npm package!

boundinferenceownhttpsFunction.prototype.namerobustfastcryptoterminaldotenvscheme-validationthroatwhatwgdeep-clonestatusdatastructuretrimEndimportzodcreateiterationkeytoolsliveautoprefixertrimStartsymbolsinatratestingtakecollection.es6Reflect.getPrototypeOfunicodevalidationdataViewvisualtslibclireduxextratoucharrayECMAScript 2022IteratorwgetmacosswfCSSfetchcollectionWeakMapsetImmediateminimalArray.prototype.findLastvariables in cssmovegetOwnPropertyDescriptorprivatemkdirYAMLmake dirtypeofhookscharacterrangeerrorES2019ES2015postcss-pluginpromisesObject.assignkinesisBigUint64Arrayless.jshigher-orderwatching_.extendstyleiterateloadingjsonfseventsinspectpromiseimportexportajvstatelessmobilejoierror-handlingpackagees6rgbavastringRegExp.prototype.flagshelperslesscsslazysigtermpropertiesReactiveExtensionsserializeremovesetpolyfillECMAScript 2023nativeescapemocharedux-toolkitvariablesFloat32ArrayjestbatchinconsoleclassesInt8ArraytapeeslintpluginbddTypedArrayratelimitArray.prototype.flatspinneruuiddebugexitreducebrowserextend$.extendECMAScript 7ESsideES3ajaxinvariantapireadablecolumnObject.isES2023japanesereact-hook-formWeakSetObject.getPrototypeOf[[Prototype]]bluebirdstreamless compilermergeintrinsicESnextupbundlingquerysqspreserve-symlinksworkersameValueZeroshimobjectconcurrencyeventDispatchereslintconfigsuperstructtapmkdirsbindflagsArray.prototype.findLastIndexslicesigintnested cssES2022jasmineflatMapdeepcopytdd@@toStringTagclassnamesObservableses2015wordbreakguidUint16ArraytesterhandlersdateES2021ec2prunetestpipeloadbalancingrequestfindLastprotobuftrimRightmatchesroute53requireformattingnpmkoreanparentsdayjsObject.fromEntriesexpressionUint8ClampedArraymrurm -frwalkingratebufferrouterrdseventsECMAScript 2015syntaxerrorcall-boundperformancefunctionwatchmapairbnbsharedarraybufferArrayttyES6httpUnderscorelibphonenumberpicomatchPromiseiecoercibleschemeprivate datatypeda11yInt16Arrayglaciereast-asian-widthcore-jsencryptionpushsetterprototypefunctionseveryworkflowtypeslotprotoawaitlook-upString.prototype.matchAllincludesutilpackage.jsonchinesewarningstoragegatewayfluxconfigjsxECMAScript 2020runtimeirqtypescriptcryptwordwrapregularwatchermodulesutilitiesvalidhas-ownSetsettingsObject.entriesoutputqueueMicrotaskiddeep-copytypedarraysObservableponyfillbuffersMicrosoftcensoruninstall__proto__timesuperagentes-shimstoSortedlimitRegExp#flagsbannergroupBynopegenericsgradients css3ES2016parsingvalidatenegativetaskfast-copycurlreactString.prototype.trimdeepes8routeagentvpcqsinputStreamtostringtagregular expressionspackage manageres5ArrayBuffer.prototype.slicecompile lesschannelnumberwatchFileserializeri18ntypesafemixinsbootstrap cssrestfulpositivedescriptorsinstallwalkURLinstallerlinuxworkspace:*es7cjkECMAScript 6ES2017Uint32Arraykeysmulti-packageinternalhardlinksebsurlprocesstsArray.prototype.flatMapansiindicatorES8flattencolourconfigurableeslintpnpm9zeroisConcatSpreadablefullwidthawesomesaucekarmaestyped arrayes2018diffECMAScript 2016sequenceargvframeworkReactiveXrm -rfgetPrototypeOfAsyncIteratoryupinternal slotES2020arraysdataviewassertioncopyrapidduplexECMAScript 3estreeBigInt64Arrayes-abstractfolderfastcopyjscacheweaksetredactWebSocketsreducermakeexpressjavascriptfullTypeBoxenvstate.envtc39getterfigletpropemittelephonebrowserslistartendpointdebuggerwritereal-timeclonesyntaxcolorInt32ArrayFloat64ArrayenderStyleSheetstarterprotocol-bufferspyyamlautoscalingwaitrfc4122typeerrorWebSocketES7hasOwnPropertyconsumeargumentArrayBufferwebsesidlereadablestreamnodeconcatMapflagtoobjecttraversemetadatabrowserliststringifystreams2reusedeepcloneapppredictableaccessormapreduceforEachprogressutilityoncepackagesmonorepotypesMappatchconcatpluginchromecssexeccloudformationjwtfindLastIndexlistenersshammkdirpES5RxhookformECMAScript 2021awsJSON-SchemafilestructuredClonetrimLeftRFC-6455jsonpathobj256preprocessorschemaperformantUint8Arraycodeslimitedwhichflatviewpropertyspeedfile systemreact-hookscode pointsextensionthrottlecallbindlockfilearktypeprefixyamlemojiassignhasheslint-pluginnegative zerocontainspostcssfastifysymlinksrmdirObject.valuescall-bindURLSearchParamsArray.prototype.includesenumerablegetoptequalsignalschromiumasynccorsECMAScript 5hasentriesassertgettrimcallboundshebangcommanderdeterministicreact-testing-libraryArray.prototype.filtermatchtextspinnersdomsafegradients cssTypeScriptclassnameauthdom-testing-libraryoffsetfsphonelesselectronresolvebyteOffsetrmhasOwndependency managerbeanstalkcompilerwraplastsetPrototypeOfutil.inspectrecursiveloginterruptsbytecolorsless cssdircloudsearchsortSymbolismatchAllJSONiamwafauthenticationcss-in-jsdatadynamodbdeletepasswordcss lessgdproptimiststreamsfast-deep-clonecloudfrontArray.prototype.flattenformsnamescorechai
3.12.153

1 year ago

3.12.152

1 year ago

3.12.151

1 year ago

3.12.150

1 year ago

3.10.137

1 year ago

3.10.136

1 year ago

3.10.139

1 year ago

3.10.138

1 year ago

3.10.140

1 year ago

3.10.135

1 year ago

3.11.150

1 year ago

3.11.149

1 year ago

3.11.148

1 year ago

3.11.147

1 year ago

3.11.146

1 year ago

3.11.145

1 year ago

3.11.144

1 year ago

3.11.143

1 year ago

3.11.142

1 year ago

3.11.141

1 year ago

3.11.140

1 year ago

3.10.133

1 year ago

3.10.134

1 year ago

3.10.132

1 year ago

3.10.131

1 year ago

3.10.130

1 year ago

3.10.129

1 year ago

3.10.128

1 year ago

3.10.127

1 year ago

3.9.124

1 year ago

3.9.127

1 year ago

3.9.125

1 year ago

3.9.126

1 year ago

3.9.123

1 year ago

3.9.122

1 year ago

3.9.121

1 year ago

3.9.120

1 year ago

2.9.120

1 year ago

2.9.119

1 year ago

2.9.118

1 year ago

2.9.116

1 year ago

2.9.117

1 year ago

2.9.115

1 year ago

2.8.115

1 year ago

2.8.114

1 year ago

2.7.114

1 year ago

2.7.113

1 year ago

2.7.112

1 year ago

2.7.111

1 year ago

2.7.110

1 year ago

2.7.109

1 year ago

2.6.91

1 year ago

2.6.92

1 year ago

2.6.93

1 year ago

2.6.94

1 year ago

2.6.101

1 year ago

2.6.102

1 year ago

2.6.100

1 year ago

2.6.90

1 year ago

1.5.70

1 year ago

1.5.72

1 year ago

1.5.71

1 year ago

2.6.99

1 year ago

2.6.95

1 year ago

2.6.96

1 year ago

2.6.97

1 year ago

2.6.98

1 year ago

1.4.37

1 year ago

1.4.39

1 year ago

1.4.38

1 year ago

1.3.35

1 year ago

1.3.36

1 year ago

1.3.34

1 year ago

1.3.37

1 year ago

2.7.106

1 year ago

2.7.107

1 year ago

2.7.108

1 year ago

2.7.103

1 year ago

2.7.104

1 year ago

2.7.105

1 year ago

1.6.80

1 year ago

1.4.60

1 year ago

1.4.62

1 year ago

1.4.61

1 year ago

1.4.64

1 year ago

1.4.63

1 year ago

1.4.66

1 year ago

1.4.65

1 year ago

1.4.68

1 year ago

1.4.67

1 year ago

1.4.69

1 year ago

1.4.70

1 year ago

1.2.18

1 year ago

1.2.19

1 year ago

1.4.40

1 year ago

1.4.42

1 year ago

1.4.41

1 year ago

1.2.20

1 year ago

1.4.44

1 year ago

1.4.43

1 year ago

1.4.46

1 year ago

1.2.23

1 year ago

1.4.45

1 year ago

1.2.24

1 year ago

1.4.48

1 year ago

1.2.21

1 year ago

1.4.47

1 year ago

1.2.22

1 year ago

1.2.27

1 year ago

1.4.49

1 year ago

1.2.28

1 year ago

1.2.25

1 year ago

1.2.26

1 year ago

2.6.80

1 year ago

2.6.81

1 year ago

2.6.82

1 year ago

1.2.29

1 year ago

2.6.83

1 year ago

1.6.73

1 year ago

1.6.72

1 year ago

1.6.75

1 year ago

1.4.51

1 year ago

1.6.74

1 year ago

1.4.50

1 year ago

1.6.77

1 year ago

1.4.53

1 year ago

1.2.30

1 year ago

1.6.76

1 year ago

1.4.52

1 year ago

1.2.31

1 year ago

1.6.79

1 year ago

1.4.55

1 year ago

1.6.78

1 year ago

1.4.54

1 year ago

2.6.88

1 year ago

1.4.57

1 year ago

1.2.34

1 year ago

2.6.89

1 year ago

1.4.56

1 year ago

2.6.103

1 year ago

1.4.59

1 year ago

1.2.32

1 year ago

1.4.58

1 year ago

1.2.33

1 year ago

2.6.84

1 year ago

2.6.85

1 year ago

2.6.86

1 year ago

2.6.87

1 year ago

1.2.17

1 year ago

1.2.13

1 year ago

1.2.16

1 year ago

1.2.14

1 year ago

1.2.15

1 year ago

1.2.12

1 year ago

1.2.11

1 year ago

1.2.10

1 year ago

1.2.9

1 year ago

1.2.8

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

1 year ago

1.1.2

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago