2.1.123 • Published 12 months ago

@diotoborg/eveniet-magnam v2.1.123

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

@diotoborg/eveniet-magnam 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/eveniet-magnam');

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/eveniet-magnam 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/eveniet-magnam npm package!

mochatestresolvejasminedragpackage.jsonglobalsStreamsstyleswfforEachmulti-packageeventDispatcherdefinePropertytypeerrorTypeScriptHyBimodulestringtoobjecttostringtagES2015clientcall-boundhelpersairbnbutil.inspect[[Prototype]]parentloggingcolorszerogroupByidentifiersmruBigInt64ArrayRxa11yURLSearchParamssidevisualpositiveECMAScript 2017argspackagessource mapharmonycss-in-jspinorecursiveURLasciiObject.entriesECMAScript 3emrweakmapignoresomeownjsonschemaECMAScript 2015formsinstallinternal slotconcatMapidlegraphqlcloudformationrm -rfviewcallbackcoverageStyleSheetmakejoiconcatclassesagentdeep-copycolortraversetransportArrayBufferstructuredCloneprototypesnsyamlES2020JSON-SchemaFunction.prototype.nameWebSocketsES7importchildObject.getPrototypeOftrimLeftclioptimistfantasy-landeventEmitterpipelintrouterurlcjkcontainsdefinewindowrandomvariablesjsdomexecuteoptionschemeramdavaluedeletettyfromObject.isawesomesauceexeclocalplugintypescripttestingObject.definePropertypatchString.prototype.matchAllreuseeslintbundlerArray.prototype.flates-shimsglacierframeworkspawnautoprefixerrequireutilitycssjestconfigprunermdirsortedfinduponcejsdiffFloat64Arraysafequeuesqstslibshellvalides7jsonfastcopymapreducestreamsguidtshardlinksinfindLaststyled-components.envreact-hooksnegativeES2016fpECMAScriptreal-timelocationhasSymbol.toStringTagrulesoffsetfullwidthwidthstringifytypeofinspectPromisecode pointsdom-testing-librarystreamfunctionsrequestfast-copyflagsebsselfcolumnspreprocessormapsetPrototypeOfArray.prototype.flattensearchTypedArrayamazonsesnodeECMAScript 7pyyamlelasticachetoolkitES2018bundlingtextreadSetartsettingsObject.valuesdatacurriedruntimenopeisConcatSpreadableregular expressiontypedextendargumentschemadependenciesfixed-widthtrimStartes2016flatMapinstallerjson-schema-validationreact posegroupimmutablehelperenumerableomit_.extendstringifierrestfulclassnamedircoerciblejsxes2015appatomdataviewsuperstructCSSprogresscharactersglobMicrosoftxtermmake dirparserInt32ArrayutilbyteOffsetcirculartypespackage managerfetchcomparekoreanhookformtransformscheme-validationassertionArrayBuffer#slicebddoutputcloudwatchreactpropeslintpluginStreamajvupasterisksString.prototype.trimcallboundajaxcharacterECMAScript 2023callbindpuremkdirpRFC-6455feedextraenvironmentsdependency managerasts3packagedomwriteasynckeysformattingwgettypanionreworkbeanstalkawsReactiveXparentsemitcolourentriesstylingmkdirjavascriptcreate
2.1.123

12 months ago

2.1.122

12 months ago

2.1.121

12 months ago

2.1.120

12 months ago

2.1.119

1 year ago

2.1.118

1 year ago

2.1.117

1 year ago

2.1.116

1 year ago

2.1.115

1 year ago

2.0.115

1 year ago

2.0.114

1 year ago

2.0.113

1 year ago

2.0.112

1 year ago

2.0.111

1 year ago

2.0.110

1 year ago

2.0.109

1 year ago

2.0.108

1 year ago

2.0.107

1 year ago

2.0.106

1 year ago

2.0.105

1 year ago

2.0.104

1 year ago

2.0.103

1 year ago

2.0.102

1 year ago

2.0.101

1 year ago

2.0.100

1 year ago

2.0.99

1 year ago

2.0.98

1 year ago

2.0.97

1 year ago

2.0.96

1 year ago

2.0.95

1 year ago

2.0.94

1 year ago

2.0.93

1 year ago

2.0.92

1 year ago

2.0.91

1 year ago

2.0.90

1 year ago

2.0.89

1 year ago

2.0.88

1 year ago

2.0.87

1 year ago

2.0.86

1 year ago

2.0.85

1 year ago

2.0.84

1 year ago

2.0.83

1 year ago

2.0.82

1 year ago

2.0.81

1 year ago

2.0.80

1 year ago

2.0.79

1 year ago

2.0.78

1 year ago

2.0.77

1 year ago

2.0.76

1 year ago

2.0.75

1 year ago

2.0.74

1 year ago

2.0.73

1 year ago

2.0.72

1 year ago

2.0.71

1 year ago

2.0.70

1 year ago

2.0.69

1 year ago

2.0.68

1 year ago

2.0.67

1 year ago

2.0.66

1 year ago

2.0.65

1 year ago

2.0.64

1 year ago

2.0.63

1 year ago

2.0.62

1 year ago

2.0.61

1 year ago

2.0.60

1 year ago

2.0.59

1 year ago

2.0.58

1 year ago

2.0.57

1 year ago

2.0.56

1 year ago

2.0.55

1 year ago

2.0.54

1 year ago

2.0.53

1 year ago

2.0.52

1 year ago

2.0.51

1 year ago

2.0.50

1 year ago

2.0.49

1 year ago

2.0.48

1 year ago

2.0.47

1 year ago

2.0.46

1 year ago

2.0.45

1 year ago

2.0.44

1 year ago

2.0.43

1 year ago

2.0.42

1 year ago

2.0.41

1 year ago

2.0.40

1 year ago

2.0.39

1 year ago

2.0.38

1 year ago

2.0.37

1 year ago

2.0.36

1 year ago

2.0.35

1 year ago

2.0.34

1 year ago

2.0.33

1 year ago

2.0.32

1 year ago

2.0.31

1 year ago

2.0.30

1 year ago

2.0.29

1 year ago

2.0.28

1 year ago

1.0.28

1 year ago

1.0.27

1 year ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

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