1.0.4 • Published 11 days ago

@teamteanpm2024/expedita-repudiandae-ullam v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
11 days ago

@teamteanpm2024/expedita-repudiandae-ullam Version Badge

github actions coverage License Downloads

npm badge

ES proposal spec-compliant shim for Promise.withResolvers. Invoke its "shim" method to shim Promise.withResolvers 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 withResolvers = require('@teamteanpm2024/expedita-repudiandae-ullam');

var obj = withResolvers(Promise);
assert.equal(obj.promise instanceof Promise, true);
assert.equal(typeof obj.resolve, 'function');
assert.equal(typeof obj.reject, 'function');

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

var obj2 = Promise.withResolvers();

assert.equal(obj2.promise instanceof Promise, true);
assert.equal(typeof obj2.resolve, 'function');
assert.equal(typeof obj2.reject, 'function');

Tests

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

lesscssomitmodulesSymbolsomefile systemshimerrorkeyconfigurableObject.definePropertyES3shellopensqueueruntimees-shim APIgetPrototypeOfdiffwaapidom-testing-librarybrowserslisttrimRightthroatcss-in-jspyyamlspringgetterrfc4122compilerlibphonenumberhttpclassnametypanionUnderscorecss variablesyntaxerrorWeakSetloggeres2015globcollectionvalueprivate datalinewrapReactiveXjson-schema-validatorxtermpolyfillcmdstringifiereventEmittercollection.es6symbollanguageinternal slot256nodeoffsetmkdirpbufferwritableRegExp#flagsxssrm -frparentArrayframeworkBigInt64ArrayweakmapminimalES2023walkingarraycreatefast-deep-clonebabel-coreartast0momentinputdeepformlimitedmiddlewareiterationnegative zeroidtoolslruflagsdeepclonetddcallbindStreameslint-pluginsameValueZeroeast-asian-widthsigintargvjsxinterruptssharedbusystyleguidetypeofxhrzodIteratorargumentArrayBuffer#slicepackage.jsonrateoptionfindLastschemetrimstarterserializersetPrototypeOfthreeyamlmapreduxwhichexepromisesTypeBoxindicatorconcurrencyappObject.fromEntriesJSON-Schemaautoprefixerbyteoptimizeriterateless.jsguidInt32ArrayObject.keysl10ndescriptorssideString.prototype.trimaccessorpoint-freeHyBigraphqldescriptionchromecensorparserlazypnpm9stringfind-upMicrosoftgetfilechinesejsdomvestdomsortflattenES2016user-streamscopyslotmulti-packagedefinePropertyArrayBuffer.prototype.sliceenvironmentseti18ndefineajaxprotomimeless mixinsjson-schemaerror-handlingrequirepopmotioncryptoargslesstoStringTagTypedArrayinstallerponyfilltoSortedhasawesomesaucetelephonelogRFC-6455negativeECMAScript 2017harmony[[Prototype]]CSSreact-hook-formfull-widthArray.prototype.includesfetchfixed-widthargumentsPushES2021irqnpmjsdiffArray.prototype.findLastvalidatehasOwnmixinslockfilefpinvariantbootstrap csspackagetestertacitwatchingprotobufsafecolorsajvreducewarningimmercolorschemafastifyemojiidleassertstimedeterministictranspilerdebugconcatfullArray.prototype.filterwritefast-copyhookformredactlaunchES2022tslibtypesymbolsregularbrowserlistjavascriptes5spinnersECMAScript 3makeObject.isreadablexdgarktypeStyleSheetcallbackbatchtc39typesexpressionuninstallcomparechromiumbindlimitawaitincludestyped arrayeveryprocessmobileintrinsicECMAScript 2015coloureditorfast-deep-copytrimLeftjwtCSSStyleDeclarationfindLastIndexsymlinkspurechaidefault
1.0.4

11 days ago

1.0.3

12 days ago

1.0.2

13 days ago

1.0.1

14 days ago

1.0.0

14 days ago