2.3.15 • Published 1 year ago

@hishprorg/accusantium-ratione v2.3.15

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@hishprorg/accusantium-ratione 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 iterator 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 @hishprorg/accusantium-ratione

Usage/Examples

const map = require('@hishprorg/accusantium-ratione/Iterator.prototype.map');
const toArray = require('@hishprorg/accusantium-ratione/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

languagearrayexecutefnmatchcallbackworkflowminimalschemavalueflatMapbinariesInt8Arraybufferglobalscommand-linemodulesES2021springmkdirmergeUnderscoreimporttoStringTagES5writablevpcreadableidentifiershooksfastcopyfastclonematchesoutputvaluesendpointloadingtapeeslintconfignumberbannerjson-schemaassertsrfc4122maketouchstreamsshareddataViewbyteOffsetprettyparserparentconstwgetlasthttpcloudfrontfilterutilitiesclass-validatorURLfeedtypaniondependency managercurlwalkingArrayBuffer#slicestartertransportUint32Arraynativepopmotionpoint-freeiteratesymlinksprogressspeeddescriptorkarmaterminalpromisettyES3htmldefinePropertynopemruramdaveststreamtacitestreepackage.jsonfile systemrapidqueryuninstallpatchprototypetypeofdiffmomentsomexmlmatchAllstylesworkerargumentcall-bound_.extendi18nsuperagentsqs__proto__errorsymbolclassnamehelpersBigInt64Arraytslibdateshrinkwrapbinary@@toStringTagkoreanArray.prototype.filterstyleguideebsansiacorn-0stringifierUint16ArraytoolspositivefastifyglobaljoibyteLengthnodechecktesterqueueMicrotaskcollection.es6validatorbrowserslistformatArray.prototype.containsinvariantgetOwnPropertyDescriptorrecursivecryptofast-copycommanderstyleWeakMapassertweaksetcall-bindregexppropertydeterministictimefunction.lengtheveryECMAScript 2023mobilemodulehigher-orderutil.inspectjapaneselook-uppluginspectakeexpressionprotocol-buffersES2016owndeepparsedescriptiondomhasOwnPropertyECMAScript 2016awsrmclientback-endenvironmentcloudformationcharactershebangBigUint64ArrayArray.prototype.includes.envpackagepushtsinspectschemeindescriptorsregular expressionsFunction.prototype.nameoffsetgetoptfantasy-landcliObject.fromEntriessyntaxserializefsmake dirassertionsameValueZerodebugio-tsInt32Arraymatchbabelform-validationlinktapcomparecode pointsfunctionsgroupByflatqsperformanteast-asian-widthmockingequaltestArray.prototype.flatECMAScript 2018polyfillconsoleECMAScript 2022shimequalityJSON-SchemalruInt16ArraychaixtermsliceUint8Arrayaccessoremrcss-in-jsecmascriptarraybufferuptypesafefullfiledeletefast-deep-copyflagtoReversedcoerciblesnsawesomesaucenameES8user-streamselectrontypeerrorsuperstructformsframeworktestingrandomtypepurebddpropertiesconsumesource mapES7binddeep-copystylingrm -frobjectbrowserlistObject.assignoncecontainsjQueryfetchcircularincludesignoreECMAScript 2019packagesArrayjsdiffboundbabel-corelocationlintRxJSsymbolsmanipulationReactiveExtensionses2017autoscalingarktypebundlerFloat64ArrayatomArray.prototype.findLastIndexStreamutilcolumnrequestObject.entriesgenericslistenersrobusthandlerString.prototype.trimelbmetadatasidetc39ECMAScript 5mochabytedotenv3dSymbol.toStringTagpreprocessorrm -rfrestfulajvprunees2015setairbnbRegExp#flagsreact-testing-librarystoragegatewayWeakSetcloudtrailreadRegExp.prototype.flagsiam6to5ES2019walkserver0hookformquoteshamistanbulArrayBufferforkyamlnegativehasOwngraphqldeepcopyajaxECMAScript 2020formtypedinputregexinstrumentationpicomatchvarsdependenciesdeep-clonerouterreact-hook-formReactiveXprivaterequireprocessfpsjsonschemasinatravalid256es-shim APIserializationa11yES2015bundlinges-shimsqueueartTypeScriptpathjson-schema-validationpackage managerfast-deep-clonesetImmediatehas-ownzeronpmignoreprotoPushagenteventDispatcherreversedArray.prototype.flatteneventses6objglacierMicrosoftinstallerquerystringPromiseECMAScript 3writelocalWebSocketsdragasterisksemojiespreecorehassescurriedpostcsses8ES2023structuredClonefindrssunicodeswfaccessibilityroute53computed-typesObservablewhatwgrdstrimLeftsimpledbproxygetPrototypeOfenderspinnersbrowserreact poseiteratorcolumnsemitidle$.extendjasminergbimportexportnodejsintrinsicisConcatSpreadableJSONsetPrototypeOfresolveredux-toolkitfromchromiumWebSocketimmerserviceframerworkspace:*reworkcore-jspyyamlcolorcreatebusykeyECMAScript 7transpilerutilsstringindicatorclassnamesObject.definePropertyESnextthreetypescriptruntimesubprocessescapejsforEachvariablescoveragewebchinesegetnamesvalidatetranspilereact-hookscsssyntaxerrortoSortedshellmkdirpredactprefixreverseimmutableharmonyreact animationentriestypedarrayRxpnpm9reduceTypedArrayeventEmittermockglobinferencewaapidirserializertraverseECMAScript 2017envECMAScript 2015MapReflect.getPrototypeOfObject.isbufferseslintomitspawnextrachannelcopyes-abstractperformancekeystermmulti-packagestringifyfind-upeslintpluginavaeffect-tsvalidationtrimreduxexecmapreduceObjectdom-testing-librarytelephoneSymboltrimRightIteratorlookbeanstalkrestTypeBoxconcatwaitcollectioncharactersES2022toolkitec2loggerjsdom
2.3.15

1 year ago

2.3.14

1 year ago

2.3.13

1 year ago

2.3.12

1 year ago

2.3.11

1 year ago

2.3.10

1 year ago

2.2.10

1 year ago

2.1.10

1 year ago

2.1.9

1 year ago

2.1.8

1 year ago

2.1.7

1 year ago

2.1.6

1 year ago

2.1.5

1 year ago

1.1.5

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