3.11.112 • Published 2 years ago

@devtea2026/id-enim-deleniti-molestiae v3.11.112

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@devtea2026/id-enim-deleniti-molestiae Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

ES Proposal spec-compliant shim for Promise.prototype.finally. Invoke its "shim" method to shim Promise.prototype.finally 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 proposed spec.

Most common usage:

var assert = require('assert');
var promiseFinally = require('@devtea2026/id-enim-deleniti-molestiae');

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

promiseFinally(resolved, function () {
	assert.equal(arguments.length, 0);

	return Promise.resolve(true);
}).then(function (x) {
	assert.equal(x, 42);
});

promiseFinally(rejected, function () {
	assert.equal(arguments.length, 0);
}).catch(function (e) {
	assert.equal(e, -1);
});

promiseFinally(rejected, function () {
	assert.equal(arguments.length, 0);

	throw false;
}).catch(function (e) {
	assert.equal(e, false);
});

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

resolved.finally(function () {
	assert.equal(arguments.length, 0);

	return Promise.resolve(true);
}).then(function (x) {
	assert.equal(x, 42);
});

rejected.finally(function () {
	assert.equal(arguments.length, 0);
}).catch(function (e) {
	assert.equal(e, -1);
});

rejected.finally(function () {
	assert.equal(arguments.length, 0);

	throw false;
}).catch(function (e) {
	assert.equal(e, false);
});

Tests

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

Thanks

Huge thanks go out to @matthew-andrews, who provided the npm package name for v2 of this module. v1 is both in the original repo and preserved in a branch

matchprocessjsonaccessordiffjsonpathcallbackArrayBuffer#slicedescriptorsbrowserequalityinferencedeepcopytakemruweakmapintrinsic@@toStringTaghooksawaitAsyncIteratorrequestjestauthenticationcensorrangeerrorestreedependenciesless.jsfullwidthhotfull-widthoptimizerxtermajvhardlinksprunesnsformstc39bufferlinkoutputES7characterrmassertssignalglobalsiterationpredictablecloudsearchcorsisObservablesansis3regexpwebcalltypaniongenericseslintconfigparentMapdeep-cloneexpressrdsArray.prototype.containsFloat32Arraywatcheroffsetquotees-abstractcmdnegative zeroconcatMapmimetypesargsbluebirdspawnjwtpackagesmime-dbstartspecopensexerouterUint32ArraystringifyES2023cloudfrontauthcloudwatchtoobjectESnextwordbreaksuperstructratelimitsidecoretslibInt16ArrayStyleSheetloadbalancinghttpsamazoncommandpackage manageruplengthimmerIteratorCSSStyleDeclarationStreamECMAScript 2021storagegateway$.extendECMAScript 2017flatMapruntimeparentssharedarraybufferECMAScript 2019efficientirqCSS.envObject.isSymbolObject.entriesminimalpushesphoneeventEmitterinspectroute53propObject.getPrototypeOfjsxcommanderbounderror-handlingstringifieragenthasincludesReflect.getPrototypeOfObject.valuesconnectURLreuseBigUint64Arraysignalssymbolskarmaec2es-shimshasheditorquerystringsymbolarrayspolyfillargumentsimpledbtoStringTagdeepdeleteenderinterruptsimmutablecloudformationfindconsumefunctiones2017sortrm -rfio-tseslint-pluginvalueprettyES2019serializesuperagentformattingdefaultES2017look-upttybundlingfpses7ajaxhttptoolkitpicomatchlaunchfunctionalfastcopyautoscalingunicodereact-hooksFunction.prototype.namestarterfile systeminhasOwnelasticachetraversevalidationglacierreducerObject.keysparserECMAScript 2022readablefindLastIndexHyBiyamltestingwgetkeystreamSetjshintgetOwnPropertyDescriptorcloudtrailasciiBigInt64Arraylastfixed-widtheventDispatcherPushcollection.es6cryptodirectorystyled-componentswhichless mixinsredux-toolkitl10niterateObject.fromEntrieswindowsbcryptmapreducejasmineclassesTypeScriptprototypedataViewcompile lessgetterdescriptordebugasynclazyextraoncejQueryviewperformancecodesEScode pointsstatuslessthroatnumberworkerindicatorinvariantownautoprefixershrinkwrappropertiesdotenvparsingargumentsstructuredClonemake dirweaksetvarsbootstrap lesswidthairbnbdefinePropertystabletrimEndflagtddebseventspluginrgbfind-upexites2015positiveglobconfigurablepersistentSymbol.toStringTagtextes5form-validationbootstrap csshandlerstypeerrorchannelelmgroupByrobustbrowserslistmacosi18nfigletcolumnReactiveExtensionsbyteLengthnamesdataurlchinesefsjsdom-0speedtapString.prototype.trimremovecall-boundwafcss variableguidtapedynamodbomita11yes2016idnested cssFloat64ArrayserializerproxyqueueMicrotasknegativeTypedArrayrfc4122nodecss nestingdeterministicnopecollectionnpmwatchlintes2018ES5stylingtouchtypesafewebsiteoptimistReactiveXimportvariables in cssrapidvpcduplexwaitregularES2018symlinkarraylanguageexecutablechromeStreamswrapelectroneslintjsdiffescapeeast-asian-widthpasswordswfinternalmomentUint8ClampedArraysameValueZerotesteridentifiersfunctionsvalidstyletrimRightfindupreplayfast-deep-clonematchAllmkdirerrorbyteOffsetInt32Arrayexecbddterm_.extendwalkingscheme-validationrestString.prototype.matchAllcopytrimLeftRFC-6455awsregextypedfetchmodulelimitedcallbindeslintpluginperformantES6queueurlsmiddlewarebreakrecursivevisualtoSortedpreprocessorjapaneseinputfast-cloneprefixfullsearchnodejseveryshelloptionclassnamedatastructureenvironmentsutilitiesslotpackage.jsonuninstallsetPrototypeOflesscsssetqueryECMAScript 2016sigtermdeepclonexdgtimeforminstallertypedarrayreduceredact256watchFileutilitynameArray.prototype.flatMapqsflattentypeschemeendpointObservablestreams2mergeses__proto__YAMLdayjspropertycreateWebSocketbyteprotocol-buffersdatereal-timepathaccessibilityECMAScript 2020flagsArray.prototype.findLastcjkgradients cssframeworkcore-jskoreanbindsafecryptcomparelistenersmoveexpressionclassnamesparsereactArray.prototype.flatpromisesbatchemrcommand-linebannerdataviewenvironmentlockfileUint16Arrayargvhookformsqscheckfast-deep-copyTypeBoxES2021monorepochaienumerablechromiumPromisees6openerdescriptionfastcloneprogresstoolscomputed-typesemittsutil.inspectequalcontainsassignmobilefastifybeanstalksyntaxerrorjsES2015syntaxponyfillglobalgradients css3avautilcharacterslivearktypeloggertaskcurlwarningsomelookmimefluxtypescriptworkspace:*spinnerssharedes-shim APIJSON-Schemaprivate datadebuggerworkflowUint8ArrayArrayBuffer.prototype.slicesinatraconcattypeofzeroless compilerbuffersES8callbounddom-testing-libraryiamgetPrototypeOfECMAScript 2018stylesheetxdg-openpreserve-symlinksreadablestreamdependency managerartloggingmatchesgetintrinsicmkdirplinuxserializationtyped arraystateloadinglimitencryptioncss-in-jsreaduuidzodextensionObject.assignlogwritableargparsereduxconcurrencyresolvefseventssettingsiteratorexit-codeobjectmakegetoptfastsortedsequenceInt8ArraybrowserlistURLSearchParamsapireact-testing-libraryECMAScript 5stylesprotopromiseregular expressionsfolderobjcacheUnderscorelibphonenumbercolors[[Prototype]]whatwgtoArrayarraybufferES2022tostringtagflatkeyssliceemojiECMAScript 3envecmascripthas-ownlrufast-copymocharatekinesisvestjoigdprclonereact-hook-formmodulesArrayBufferastrm -frhigher-orderES2020
3.11.112

2 years ago

3.11.111

2 years ago

3.11.110

2 years ago

3.11.109

2 years ago

3.11.108

2 years ago

3.11.107

2 years ago

3.11.106

2 years ago

3.11.105

2 years ago

3.4.47

2 years ago

3.4.48

2 years ago

3.4.49

2 years ago

3.6.67

2 years ago

3.6.66

2 years ago

3.6.65

2 years ago

3.6.64

2 years ago

3.6.63

2 years ago

3.10.97

2 years ago

3.10.98

2 years ago

3.10.95

2 years ago

3.10.96

2 years ago

3.10.99

2 years ago

3.10.90

2 years ago

3.10.93

2 years ago

3.10.94

2 years ago

3.10.91

2 years ago

3.10.92

2 years ago

3.6.62

2 years ago

1.4.24

2 years ago

3.6.61

2 years ago

3.6.60

2 years ago

1.4.26

2 years ago

1.4.25

2 years ago

1.4.28

2 years ago

1.4.27

2 years ago

1.4.29

2 years ago

3.9.69

2 years ago

3.4.50

2 years ago

3.4.51

2 years ago

1.4.31

2 years ago

1.4.30

2 years ago

3.8.69

2 years ago

3.10.75

2 years ago

3.10.76

2 years ago

3.10.73

2 years ago

3.10.74

2 years ago

3.10.79

2 years ago

3.10.77

2 years ago

3.10.78

2 years ago

3.6.59

2 years ago

3.6.58

2 years ago

3.6.57

2 years ago

3.6.56

2 years ago

3.6.55

2 years ago

3.6.54

2 years ago

3.6.53

2 years ago

3.6.52

2 years ago

3.10.86

2 years ago

3.10.87

2 years ago

3.10.84

2 years ago

3.10.85

2 years ago

3.10.88

2 years ago

3.10.89

2 years ago

3.10.82

2 years ago

3.10.83

2 years ago

3.10.80

2 years ago

3.10.81

2 years ago

3.5.52

2 years ago

3.5.51

2 years ago

2.4.39

2 years ago

2.4.36

2 years ago

2.4.35

2 years ago

2.4.38

2 years ago

2.4.37

2 years ago

2.4.32

2 years ago

2.4.31

2 years ago

2.4.34

2 years ago

2.4.33

2 years ago

3.10.104

2 years ago

3.10.103

2 years ago

3.10.105

2 years ago

2.4.47

2 years ago

2.4.46

2 years ago

2.4.43

2 years ago

1.3.24

2 years ago

2.4.42

2 years ago

2.4.45

2 years ago

2.4.44

2 years ago

2.4.41

2 years ago

2.4.40

2 years ago

1.2.19

2 years ago

3.10.100

2 years ago

3.10.102

2 years ago

3.10.101

2 years ago

1.2.20

2 years ago

1.2.23

2 years ago

1.2.24

2 years ago

3.9.73

2 years ago

1.2.21

2 years ago

1.2.22

2 years ago

3.9.71

2 years ago

3.9.72

2 years ago

3.9.70

2 years ago

3.7.68

2 years ago

3.7.69

2 years ago

3.7.67

2 years ago

1.2.18

2 years ago

1.2.17

2 years ago

1.2.16

2 years ago

1.1.15

2 years ago

1.2.15

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago