1.0.3 • Published 11 days ago

@teamteanpm2024/provident-autem-quos v1.0.3

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

@teamteanpm2024/provident-autem-quos Version Badge

github actions coverage License Downloads

npm badge

An ESnext spec-compliant sync iterator helpers shim/polyfill/replacement that works as far down as ES3.

This package implements the es-shim API “multi” interface. It works in an ES3-supported environment and complies with the spec.

Because the Iterator.prototype methods depend on a receiver (the this value), the main export in each subdirectory takes the string to operate on as the first argument.

The main export of the package itself is simply an array of the available directory names. It’s sole intended use is for build tooling and testing.

Supported things

Environments where this is needed

  • node v22, Chrome >= v122: has a bug
  • node < v22, Chrome < v122, Safari <= v17.1, Firefox <= v125: not implemented

Getting started

npm install --save @teamteanpm2024/provident-autem-quos

Usage/Examples

const map = require('@teamteanpm2024/provident-autem-quos/Iterator.prototype.map');
const toArray = require('@teamteanpm2024/provident-autem-quos/Iterator.prototype.toArray');
const assert = require('assert');

const iterator = [1, 2, 3].values();

const mapped = map(iterator, (x) => x + 10);
assert.deepEqual(
	mapped.next(),
    {
        done: false,
        value: 11,
    }
);
assert.deepEqual(
    toArray(mapped),
    [12, 13]
);
require('./auto'); // shim all of the methods

require('./Iterator.prototype.map/auto'); // shim the “map” method

Tests

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

figletelectronharmonyajaxerroroptimizeres2015jwtES2022arktypeString.prototype.trimloadingapollopathcolumnsfull-widthcss nestingArray.prototype.containsstylingqueueArrayBuffer.prototype.slicefast-clonecallboundURLemitvalidnegative zerodropimmerloggerECMAScript 2021Array.prototype.findLasttypedlinuxArray.prototype.filterwatchingworkertddstylesSetes2017awesomesaucesharedarraybufferIteratorconsumeformattingiterateconcatArray.prototype.flattenmkdirmrulintjson-schema-validationassertionRFC-6455formless compilercolour-0languagefastcloneasciiregular expressionsJSON-Schemaworkspace:*WebSocketseslintconfigarraybuffernativeqsshrinkwraphigher-ordersanitizeCSSsidePushflatMappurepostcss-plugintypeofslicedraginternal slothandlersbyteLengthjspackage.jsonmime-dbsyntaxerrorObject.definePropertyiterationbufferspyyamlreduceregularcommand-linevariablesjapanesefiltereventsES2018ansiregexpbyteOffsetES2023findTypeScriptqueryflagsECMAScript 2017artnumbertoobjectECMAScript 2018everypluginpromisefindLasttoolkitcsscss variablefpECMAScript 3Int8ArraykeysconfigurablecorelookwatcherwatchStyleSheetdayjscallbackclassnamesinferencees8bundlingtrimLeftconcurrencyArray.prototype.flatoffsetprettyjsdom.envYAMLbytematchprivateupinspectSymbol.toStringTagclientTypedArray256StreamsUnderscoreavaecmascriptoptimistES7extendInt32Array3dnodelockfilecorsajvvalidatetapcss lesscheckclassnamegetOwnPropertyDescriptorpreprocessorStreamdeterministicuuidemojideeprequestwordbreakttydeepclonestreamssigtermmatchescollection.es6chromevestgetterfunctionsfetchwhichwriteMappipestreamtrimEndfunctiontyped arrayfunctionalObservablesresolvecodesnegativecryptoreusebundlertrimRightxsstypedarraytaskinternalnodejses5wrapcryptbannercurlgdprbatchString.prototype.matchAllES2015walkstyled-componentsES2019schemecolumnfast-copyxhrnested csshashflattenexit-codejson-schema-validatorscheme-validationtc39gradients css3setentriesUint16Arrayopenviewredux-toolkitdependenciesstreams20signalstatelessECMAScript 2019expressionreduxcallbindpropertygradients cssnpmreal-timebufferserializerECMAScript 2022cacheReactiveXrequireperformancecurriedhardlinksreact animationpicomatchHyBiimporta11ynopeassigntakearrayprefixastobjsettermiddlewaresharedbrowserslistReflect.getPrototypeOfpackagescloneerror-handlingsyntaxiswaapienumerablestatusAsyncIteratorform-validationmkdirpponyfillencryptioninstallerECMAScript 7rm -frcallfullwidthrangeerrorObject.fromEntriesunicodepopmotionvalidatorsignalsdataViewless mixinssanitizationTypeBoxperformantparentsdebuggroupArray.prototype.findLastIndexdeep-cloneFloat64ArrayhasOwnshebangObject.entrieses-shim APIserializetslibchinesecoercibleirqrm -rfimmutabledotenvfastifyES2020listenersJSONes6chaiconfigprototypeparserassertsSymbolkoreancompile lessWeakMapsequenceRxJSutilitiesnamesyamllinktacitstylefantasy-landdebuggerparsequotedescriptorframerFloat32ArraydeletejasmineECMAScript 2023diffweakmapcharacterdescriptorsfast-deep-copycall-bind$.extendInt16Arrayidlereact-hook-formcontainsserializationreadablerobustdeep-copyESnextcliwritableeslint-pluginES2017posefast-deep-cloneless cssstringifiermodulesvisualeast-asian-widthsomestringspringkarmadefinePropertyES3dateCSSStyleDeclarationWeakSetcomputed-typesstructuredClonecopybreakargparseletsortObservableglobcensorwatchFilermdirtscolorseslintwalkingqueueMicrotaskauthquerystringfileiteratormobilecjksortedi18nfromenvreact posehttpsECMAScript 2016getPrototypeOfPromisemacostestingjsonforEachphonevaluehttpes-shimsescapetapesigintECMAScript 2015terminalmoduleisConcatSpreadablestdlibthrottleboundUint8ArrayefficientjsdiffconcatMapdom-testing-libraryBigUint64ArrayArrayBuffer#slicejsxconnectpersistentvaluesweaksetdatastructuretraversefullcore-jstypesmakelimitedoutputchannelsuperstructpositiveuser-streamsprogressstylesheetincludesECMAScript 2020propertiesapithreemonorepocode pointsUint8ClampedArrayutiljsonschemaspeedratedirfolderArray.prototype.includesschemagraphqltermguidpackage manageraccessibilityramdadataequalityfinduplazy__proto__passwordutilslessless.jssymbolsdefinegetoptmimeRegExp#flagsreadpatchbootstrap lesslastjoiduplexslotdomwarningreact-testing-libraryES2021packageassertextensionprunepostcsswhatwgequaltimeutil.inspectlrujavascriptfastcopyratelimitsymlinksvaronceargsshimtoArrayautoprefixerRegExp.prototype.flagskeynametrimStartBigInt64ArraydescriptioninstallestreeeslintpluginReactiveExtensionsreducerintrinsic[[Prototype]]gesturesbddsameValueZeroparentflagformsObject.keysjson-schemafile systemvalidationclasseshelpersstringifyObjectcolorES6mkdirstesterlogtrimmochaprotocss-in-jsURLSearchParamsObject.assignmulti-packageES2016jQuerydeepcopygetlimitbabeleventEmitterlook-upUint32Arraypoint-freestyleguidemergeECMAScript 6ieredactvariables in csses2016recursivetoStringTagFunction.prototype.namepropgroupByoperating-systemchromiumio-tsxterminterruptspolyfilltranspilerjestObject.getPrototypeOfargvprocessmoveenderrgburlyupobjectreadablestreamdependency managersafeexecasynchooksmomentpnpm9es7accessorzodtypanionArray.prototype.flatMapmake dirindicatorbusyremovegenericsarraysspeccommanderuninstalldataviewrfc4122airbnbomitsetPrototypeOfmetadataECMAScript 5fixed-widthreact-hookstypedarraysfastflatgetintrinsicutilityminimaltesttypescriptlinewrapmatchAllmixinsES5hookformwaitclass-validatorcommandjsonpathmapfsfseventswebextrathroatstarterframeworkWebSocketwidthinputbootstrap csstextlesscssMicrosoftRxwindowsArrayregexenvironmenttranspileregular expressionrandomtelephone6to5@@toStringTaglibphonenumberObject.isshamconsthaseventDispatchersuperagentmimetypesreactbabel-coresymlinkArrayBufferObject.valueszeroshellsymbolcompilerfindLastIndexwgetprivate dataoptionauthenticationcharactersfind-uploggingsettingsformattypeargumentsearchruntimedirectory_.extendspinnersbcryptstablermcall-boundes-abstractcomparecollectiontypesafeprotocol-bufferstoolsawaitcircularprotobufwordwrapes2018bluebirdES8ESbindconsolelengthpromisesinvariantpushtoSortedesspinnerbrowserlistexittouchexpress
1.0.2

12 days ago

1.0.3

11 days ago

1.0.1

13 days ago

1.0.0

14 days ago