3.11.112 • Published 11 months ago

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

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

11 months ago

3.11.111

11 months ago

3.11.110

11 months ago

3.11.109

11 months ago

3.11.108

11 months ago

3.11.107

11 months ago

3.11.106

11 months ago

3.11.105

11 months ago

3.4.47

1 year ago

3.4.48

1 year ago

3.4.49

1 year ago

3.6.67

1 year ago

3.6.66

1 year ago

3.6.65

1 year ago

3.6.64

1 year ago

3.6.63

1 year ago

3.10.97

11 months ago

3.10.98

11 months ago

3.10.95

11 months ago

3.10.96

11 months ago

3.10.99

11 months ago

3.10.90

12 months ago

3.10.93

12 months ago

3.10.94

12 months ago

3.10.91

12 months ago

3.10.92

12 months ago

3.6.62

1 year ago

1.4.24

1 year ago

3.6.61

1 year ago

3.6.60

1 year ago

1.4.26

1 year ago

1.4.25

1 year ago

1.4.28

1 year ago

1.4.27

1 year ago

1.4.29

1 year ago

3.9.69

1 year ago

3.4.50

1 year ago

3.4.51

1 year ago

1.4.31

1 year ago

1.4.30

1 year ago

3.8.69

1 year ago

3.10.75

12 months ago

3.10.76

12 months ago

3.10.73

1 year ago

3.10.74

1 year ago

3.10.79

12 months ago

3.10.77

12 months ago

3.10.78

12 months ago

3.6.59

1 year ago

3.6.58

1 year ago

3.6.57

1 year ago

3.6.56

1 year ago

3.6.55

1 year ago

3.6.54

1 year ago

3.6.53

1 year ago

3.6.52

1 year ago

3.10.86

12 months ago

3.10.87

12 months ago

3.10.84

12 months ago

3.10.85

12 months ago

3.10.88

12 months ago

3.10.89

12 months ago

3.10.82

12 months ago

3.10.83

12 months ago

3.10.80

12 months ago

3.10.81

12 months ago

3.5.52

1 year ago

3.5.51

1 year ago

2.4.39

1 year ago

2.4.36

1 year ago

2.4.35

1 year ago

2.4.38

1 year ago

2.4.37

1 year ago

2.4.32

1 year ago

2.4.31

1 year ago

2.4.34

1 year ago

2.4.33

1 year ago

3.10.104

11 months ago

3.10.103

11 months ago

3.10.105

11 months ago

2.4.47

1 year ago

2.4.46

1 year ago

2.4.43

1 year ago

1.3.24

1 year ago

2.4.42

1 year ago

2.4.45

1 year ago

2.4.44

1 year ago

2.4.41

1 year ago

2.4.40

1 year ago

1.2.19

1 year ago

3.10.100

11 months ago

3.10.102

11 months ago

3.10.101

11 months ago

1.2.20

1 year ago

1.2.23

1 year ago

1.2.24

1 year ago

3.9.73

1 year ago

1.2.21

1 year ago

1.2.22

1 year ago

3.9.71

1 year ago

3.9.72

1 year ago

3.9.70

1 year ago

3.7.68

1 year ago

3.7.69

1 year ago

3.7.67

1 year ago

1.2.18

1 year ago

1.2.17

1 year ago

1.2.16

1 year ago

1.1.15

1 year ago

1.2.15

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