1.0.3 • Published 14 days ago

@teamteanpm2024/minus-sapiente-at v1.0.3

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

@teamteanpm2024/minus-sapiente-at 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/minus-sapiente-at

Usage/Examples

const map = require('@teamteanpm2024/minus-sapiente-at/Iterator.prototype.map');
const toArray = require('@teamteanpm2024/minus-sapiente-at/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

fast-deep-clonetypescriptmodulerm -frgetterObject.keysvariablesconsumeinterruptssharedconnectArray.prototype.findLastIndexobjectreact-hook-formes2016CSSStyleDeclarationcliwidthTypeScripteslintconfigoffsetdatajsdomcollectionencryptioncss nestingenderdefinePropertyfunctionaltranspilergroupPromisejapanesehookformvaluedirectorylinkjavascripttapedateArray.prototype.containsclonenamewaapireducercolorsprettybreakregexmatcheseveryrmdirreusestdlibframeworkajvtypeerrorexpressjsonclassnamesratelimitschemavariables in csssyntaxerrorassignbatchwalkinginputgraphqltrimEndapollotoStringTagdependencieschromiumArray.prototype.flatramdatrimLeftcall-bindreact-testing-libraryrfc4122loggingpopmotioninternalstylesfromreact-hooksloggerInt8ArraymkdirsserializequeueMicrotaskmatchSetreadabletestershebangguidpnpm9fast-copylesstypedsignalsperformantreactcss lessforEachassertspromisesdataviewdiffstylingbrowserslistsetmapfindLastpreprocessorconcatMapfull-widthlesscsspositiveajaxwgetRFC-6455spinnersbcryptaccessorcompareio-tscallloadingshrinkwrapoptimizerES6httpdescriptorscharacterincludesECMAScript 2021viewoncelimitcss-in-jsSymbolhasES2017immerrgbdirUint32ArraypropMapspringresolvequoteposesanitizeECMAScript 7ES2021ieECMAScript 3electrondroptyped arrayiterationhttpsjestredactphonebrowserlistsignalwritabletslibquerystringsortedTypedArraytsObjecttypeupharmonyprefixcontainses8[[Prototype]]less csstranspilereact animationpromisel10nsyntaxstatuspropertyzeroIteratorgradients cssdayjsshimmomentformattingtrim$.extendgesturesObject.getPrototypeOfcolumncss variableclassesbabelqsfast-clonecolumnsstyleguiderm -rfcryptlanguagemrupasswordlazyCSSfindupgetPrototypeOfyupprogresstestcreateECMAScript 6letponyfillwatchFileECMAScript 2015pyyamltoSorted_.extenddefinetypesextraES5mochaschemefolderconsoleeslintECMAScript 2020pluginsetPrototypeOfenumerable256computed-typeses6safeecmascriptminimalhardlinksvalidateflagStreamsnested cssreades-abstractform-validationinternal slotexitArray.prototype.includesttytypedarraysspeedaccessibilitygdprWeakSetpipegetOwnPropertyDescriptorcall-boundtostringtagfastifyrobustprototypeES2019propertieswarningargsconcatrangeerrormetadataefficientObject.valuesSymbol.toStringTagirqprivatepackagesflagspackagepathes2017eventDispatcherReactiveXfseventsECMAScript 2017Array.prototype.flatMapUint8ArrayfindLastIndexslicees5tddintrinsicmimemacoskarmai18ncolorterminaldatastructureauthenticationWebSocketsargumentchanneltoolssuperstructmodulesObject.entriesclass-validatormonorepotc39styled-componentsomitjasmineuuidstatelessArray.prototype.findLastnodecurlmkdirpchinesebytecallbackRxJSbootstrap cssesfantasy-landtrimStartcoercibleruntimetake.envunicodestreamsutilstreamgradients css3optimistBigUint64Arrayarraycollection.es6babel-corecircularjQuerytouchbannerarraybufferpushopeneslintplugintextflatMappackage.jsonanimationrandomECMAScript 2016slotlibphonenumberInt16ArrayemitfilterescapeperformancepersistentformsqueueECMAScript 2018postcss-pluginstringifylinuxtypesafecjkxhrairbnbReflect.getPrototypeOftimetap
1.0.2

15 days ago

1.0.3

14 days ago

1.0.1

16 days ago

1.0.0

17 days ago