5.2.73 • Published 11 months ago

@dramaorg/tempora-quod v5.2.73

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

@dramaorg/tempora-quod 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 @dramaorg/tempora-quod

Usage/Examples

const map = require('@dramaorg/tempora-quod/Iterator.prototype.map');
const toArray = require('@dramaorg/tempora-quod/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

atomespreeES3schemehashairbnbcall-bindwgetsomeIteratorpoint-freeletclassnamesURLSearchParamsfast-deep-copyspinnercloudtrailchromeArray.prototype.containsieslicedebuggertouchgetOwnPropertyDescriptordescriptorECMAScript 2016writeajvInt32ArraycopyES2021cloudsearchdeeparktypewhatwgtypesnopeexpressdescriptiontrimEndPromiseroutingcollection.es6Uint8ArrayponyfilltrimRightaccessorvalidatorInt16ArraylistenersES2022ramdajsondependency managermake dirbundlingthreerangeerrornpmlintRegExp#flagssnswaftestingWeakSetrmbundlerjszxvaluesTypedArray.envjsxwhichcode pointsbabel-coreselffilterextrabyteLengths3JSON-SchemaserializerclassesquotenativeArrayloadbalancinghttpses-shim APImoduleES2015compilerSettextasyncspringes7termpropguidgetterxmlfantasy-landcallbackString.prototype.matchAllcolorasciidotenvdataviewvalueeast-asian-widthObject.assignnumbermkdirwalkawesomesaucefastifypopmotionperformancebyteargsES2017sidefnmatchdayjsCSStakesuperstructglobalThisgetPrototypeOffindLastformes2018Symbol.toStringTagObject.isreduceraccessibilityes8everyvisualfpscacheECMAScript 2019checkxtermfindcodescallboundrequestReactiveExtensionsfasteslintkinesislruhas-ownes6ES5framerES8weakmapjQuerydeterministicscheme-validationwaitdiffworkerstarterestreegroupBygraphqldebugautoscalingObject.fromEntriessubprocessgetoptsimpledbeslintconfigdeep-copyhasOwnPropertyidentifiersarrayminimalregularexecfilefromtapfindLastIndexwindowintrinsicinternalcontainsoptimistunicodestreampurestreamsArray.prototype.filterawspropertyvarsECMAScript 2015StyleSheetupES2023installjsonschemaasterisksjson-schema-validationes2017omityamlfind-upuser-streamsnametc39es2016concatcall-0effect-tseventEmitteruuidisConcatSpreadableBigUint64ArrayfigletclientObservabletoReversedsetPrototypeOflookES2019cloudwatchUint32Arrayesresolveassertsbinfunction.lengthperformantredirectzodimportexportjsdiffhasurlstylemochafullclonebeanstalkdeepcopymulti-packagetsfunctionalpolyfillstyleguidepreprocessorflagscssURLprotobufArray.prototype.flatdom-testing-libraryescapeObject.valueslanguagejoiimportUint16Arrayreal-timemodulesnpmignoredelete_.extendparentssameValueZeroglobalmkdirpparserforEachtoArrayrssmapexecBigInt64ArrayshareddeepclonebinariesrgbreworkartUnderscoreposereadableArray.prototype.findLastIndexbufferpackageRegExp.prototype.flagsargvjson-schemasuperagentstylingtoobjectcurriedkeygetharmonydragcss-in-jsframeworkglobal this valuesortedFunction.prototype.nameastFloat32ArrayECMAScript 2021setImmediatefeedclass-validatorroutercurlenumerablesinatracircularlibphonenumberextendprogressObjectphoneignoremonoreposhrinkwrapglacierECMAScript 2023testerpnpm9fast-copyenvironmentsort@@toStringTagArray.prototype.includeshttpfetchfastcopyinferencehookformtypeofzeroSymbolshimECMAScript 5rm -frstructuredCloneparentreact posebabelcloudformationWebSocketsspinnersspawnargumentacorn[[Prototype]]slotmomentmobilekeysclipackage.jsonpatchArrayBuffer#slicecolumnsfoldercomputed-typesjestreducees2015parseloggingsyntaxerrorpackagesproxyprotocol-buffersswfvalidationStreamstranspiletransportMapuninstallshellpush0hooksconsolematchesownboundgetintrinsicobjtypedarrayincludesreadablestreamHyBiconfigreactqueryformatnegativeec2chromium.gitignorelogtimeenvyupfpjapanesepipereact-hookscoreemitdirglobalslengthfastclonerdshasOwnconfigurableentriescall-boundflatredux-toolkitidforkObject.definePropertyutilmetadatareverseweaksetiteratepluginspeedstringifylocationhigher-orderansiprocessredactcore-jsxhrschemacolumntypedarraysArray.prototype.flattentypeerrorreduxchaiterminaliamgdprstableoptimizerECMAScript 2022arraybufferArray.prototype.findLastroutees5react-hook-formbinaryprotorm -rfInt8Arraybusyregular expressionECMAScript 2017WebSocket256RFC-6455ESimmerio-tsnodejsassignECMAScript 2020childconcatMapinstrumentationcallbindworkspace:*emojipinoAsyncIteratorinvariantcolourUint8ClampedArrayarraysoptionSystem.globalspecvariablesassertionprivate datajasmineES2020stringifierlook-upenvironmentspathObject.keysstylesimmutablea11ytostringtagprettyregexplinkrandomquerystringerrorfast-cloneecmascriptelbpositivepropertieses-shimsgitignoreanimationttydirectoryobjectfile systemcharactersrulesbrowserstyled-componentsserializationelasticachetrimLeftcloudfronttoSortedpostcssfunctiongenericsnodereadYAMLloggerequalStreamworkflowistanbulcoercible3dclassnamecommanddataViewefficientamazonECMAScript 7helperinspectagentArrayBufferprivatees-abstracttransformassertutilspostcss-plugincommand-line$.extendtypesafeexpressionES6fullwidthmanagertrimStartfull-widthi18nhelpers6to5mapreduceTypeBoxchinesesource mapdeep-cloneoffsetwalkingwritablequeuedataseseslintplugin
5.2.73

11 months ago

5.2.72

12 months ago

5.2.71

12 months ago

5.2.70

12 months ago

5.2.69

12 months ago

5.2.68

12 months ago

5.2.67

12 months ago

5.2.66

12 months ago

5.2.65

12 months ago

5.2.64

12 months ago

5.2.63

12 months ago

5.2.62

12 months ago

5.2.61

12 months ago

5.2.60

12 months ago

5.1.60

12 months ago

5.1.59

12 months ago

5.1.58

12 months ago

5.1.57

12 months ago

5.1.56

12 months ago

5.1.55

12 months ago

5.1.54

12 months ago

5.1.53

1 year ago

5.1.52

1 year ago

5.1.51

1 year ago

5.1.50

1 year ago

4.1.50

1 year ago

4.1.49

1 year ago

3.1.49

1 year ago

3.1.48

1 year ago

2.1.48

1 year ago

2.1.47

1 year ago

2.1.46

1 year ago

2.1.45

1 year ago

2.1.44

1 year ago

2.1.43

1 year ago

2.1.42

1 year ago

2.1.41

1 year ago

2.1.40

1 year ago

2.1.39

1 year ago

2.1.38

1 year ago

2.1.37

1 year ago

2.1.36

1 year ago

2.1.35

1 year ago

2.1.34

1 year ago

2.1.33

1 year ago

2.1.32

1 year ago

2.1.31

1 year ago

2.1.30

1 year ago

2.1.29

1 year ago

2.1.28

1 year ago

2.1.27

1 year ago

2.1.26

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.0.7

1 year ago

1.0.6

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