1.1.4 • Published 5 days ago

@teamteanpm2024/voluptas-consequuntur-consectetur v1.1.4

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

ArrayBuffer.prototype.slice Version Badge

github actions coverage License Downloads

npm badge

An ES spec-compliant ArrayBuffer.prototype.slice shim. Invoke its "shim" method to shim ArrayBuffer.prototype.slice if it is unavailable.

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

Most common usage:

var assert = require('assert');
var slice = require('@teamteanpm2024/voluptas-consequuntur-consectetur');

var ab = new ArrayBuffer(1);
var arr = new Uint8Array(ab);
arr[0] = 123;

var ab2 = slice(ab);

var arr2 = new Uint8Array(ab2);
arr2[0] = 234;

assert.deepEqual(arr, new Uint8Array([123]));
assert.deepEqual(arr2, new Uint8Array([234]));

if (!ArrayBuffer.prototype.transfer) {
	slice.shim();
}

var ab2 = ab.slice();

var arr2 = new Uint8Array(ab2);
arr2[0] = 234;

assert.deepEqual(arr, new Uint8Array([123]));
assert.deepEqual(arr2, new Uint8Array([234]));

Tests

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

ES3rm -frloggeroffsetfpsliceunicodefunctionswaitparentsmimetypesreal-timesnsartairbnbauthenticationarraybufferhttpsdatavieweast-asian-widthsharedarraybuffershellviewestreefull-widthproxyshebangcorecallbindexpresssimpledbargvdescriptionpropertyprettyreadablestreamthrottleflagECMAScript 2021classnamescss variablees6rfc4122bufferUnderscorejson-schemarm -rfdateinternalobjectagentweakmapargparsehasOwncollectioniterateupexitpureWeakMapownconcatSymbolcharactersshrinkwrappopmotionapidiffrangeerrorES5setImmediateES7find-upenvironmentsafetakemodulesmonorepocurlruntimeanimationRegExp.prototype.flagsopengetintrinsicjavascriptincludeses5eslint-pluginiamtypanionextensioneventDispatcherbundlingpicomatchframework[[Prototype]]ECMAScript 2015ECMAScript 7lockfileES2022stringtapefantasy-landpackagespostcssstylingclonecacheefficientpositiveresolvetyped arraytimeserializertsec2dropESnextwordbreaknegativecompile lessenvsyntaxerrordeepcopyinferencebcryptPromisetexthelperseslintpluginObject.getPrototypeOfregexgenericsirqgetOwnPropertyDescriptorrobustString.prototype.matchAllECMAScript 2019collection.es6getoptUint8ClampedArrayTypeScriptcss lesscallstylesFunction.prototype.nameramdalengthWebSocketaccessorwatcharraytc39setPrototypeOfconsolepreprocessorcryptcommandsymlinksi18ncoercibleloadbalancingInt32Arraycircularcall-bindes-abstractlesscssphonepackageECMAScript 2016toolkitcloudtrailquerystringlessJSONpatchbluebirdlinuxcore-jspackage managerponyfillwalkingECMAScript 2017vestbabel-corerdsFloat64ArraywatchFilesideECMAScript 2018AsyncIteratoremojiinvariant_.extendPushtaskrapidjsonschemaauthrmeventscomputed-typesspinnerfast-clonehandlersbytesequenceeslintconfigReflect.getPrototypeOfjoiglaciersharedsetmiddlewarexssdescriptorweaksetjson-schema-validatorflatdefineeslintsortdragbrowsermetadatadeleteimportexportperformancestatusinternal slotreduceasciiequalitywgetassertslotjapanesesymlinkwritablereadmulti-packageflattenbddexit-codevpcoptionieeveryremoveRFC-6455ECMAScript 2020react animationspeca11yendpointUint32ArrayTypedArrayfunctionalObject.entriesglobtypescriptloggingreact-hookspropertiesECMAScript 3queueMicrotaskes8xhrtypeerrorIteratorcommanderArray.prototype.includessqsnpmbabelbootstrap cssprivate datatranspileriteratorObject.definePropertyES8BigInt64ArrayStreamparsingtermlanguagereducerlogcolumnsredactpnpm9reactvalidationcloudformationHyBigrouparrays$.extendomittrimRightlazyawaitsymbolsES2015terminalquotetrimEndprotobreakES2020folderscheme-validationObject.assignlrustyled-componentsargumentstreams2minimalvalidemrECMAScript 6formattingjsonObject.valuessomereduxtddrgbstylepromiseserializeclassesURLeventEmitterajaxawss3256assertsdatastructurelistenersl10n__proto__readableESmobilefast-copyECMAScript 5mkdirptypewatchingstoragegatewayECMAScript 2023starterfunctionjstesterES2019superstructbrowserslistdeepclonefastfseventsmruES2016mixinsletjsdomnamesreact-testing-libraryexecidlerecursivecolourchromeMicrosofttypesafestringifynamewebArrayBuffer.prototype.slicespinnersindicatorrateplugincompareWeakSet3dwindowstraverseguidoperating-systembrowserlistdynamodbwafdeepelectronsuperagentautoprefixergetPrototypeOftypesentriescolorlastjwtlimitvariables in cssyamlwhichsanitizerequireCSSnodejsrmdirjsxdom-testing-librarylinkjasminetoStringTagconfigurableYAMLmomentdatavisualtoSortedes2018matchnopeswfyupiterationsanitizationqueueerror-handlingdirstringifierutilitytelephoneobjmatchAllreact-hook-formprotobufspringhasOwnPropertywriteassertionbundlerregular expressionscheckObject.keysdayjsfast-deep-copyencryptionRegExp#flagsvarjsonpathArray.prototype.flatwatchertrimStreamsjestjson-schema-validationfsdependency managerworkspace:*uninstallcontainspathelbhasprivateframercloudfrontebsgetfastifyenderuser-streamsxtermfindharmonyesmapprocessratelimitsignalgdprpruneqsquerystyleguideperformantvalidatorInt16Arrayregular expressiontapcolorsloadingbalancedlookstreamsES6testingstylesheetbindthreepostcss-pluginflagsparsedeterministiccsserrorsesmapreducefigletansisettingsdebuggerstabletoArraywaapischemebusyfindupmime-dbJSON-Schemahttpimmutabletoobjectnativecolumnserializationes7RxJSpackage.jsonworkflownodeoptimistimmerfast-deep-cloneextrawordwrapArray.prototype.containsastkoreanArray.prototype.flattenvalidatechinesetouchtestposeprefixexpressionfpscodesTypeBoxbuffersmimejQueryES2017directoryelasticachehardlinksisConcatSpreadablesigtermcloudwatchObject.isautoscalingutilitiesbootstrap less-0batchbannerregexpmoduleArray.prototype.findLastspeedinstallObservablesduplexgradients css3.envBigUint64Array6to5point-freees-shimsObject.fromEntrieshashajvchromiummergekinesises2016es2017ttyurlworkerdeep-copymakebeanstalkECMAScript 2022utilswalkUint8ArrayrandomchaitostringtagbyteLengthfiletrimLeftformatpushecmascriptObjectSetinputkarmashimregularbyteOffsethookformArrayBuffer#slicestatelesstypedarraydotenvuuiddependenciesamazonaccessibilityassignlinewrapavasignalspasswordlook-upconstObservablereact posemake dires2015has-ownUint16Arraykeynested cssless compilermatchesforEachawesomesauceform-validationcss nestingRxfile systemcensorinspectless cssintrinsicmochamacosboundinutil.inspectenumerablejsdiffcode pointsprototypeflatMapcommand-linegradients cssconsumeURLSearchParams0filterReactiveXcjkmkdirwidthcharacteres-shim APIpreserve-symlinksArray.prototype.flatMapimportfixed-widthwhatwgcorsformvalueshooksMappyyamltslibchannellintconcurrencyutilcloudsearchcss-in-jsisfindLastIndexequalless.jsextendCSSStyleDeclarationinterruptshigher-orderclass-validatorsymbolsameValueZeroparserdeep-clonetypedthroatlimitedcallboundshamparenttypeofcryptostreamsyntaxschemasigintReactiveExtensionsInt8ArrayString.prototype.trimpersistentvariablesfullwidthES2021gesturesmkdirsprogresstrimStartarktypeoncerequestgettercopydescriptorsdebugFloat32ArraypromisesemitasyncdefinePropertytranspileredux-toolkitnumbermovezerogroupByroute53keysArrayBuffernegative zerocreatecallbackconcatMapdataViewconnectio-tssortedcompilercliescapefromzodcurriedless mixinsformsArrayWebSocketsdomprotocol-buffersArray.prototype.findLastIndexoutputwarningfastclonevalueinstallerpolyfillargstypedarrayssettertacitsearchES2018classnameES2023Symbol.toStringTagfullpropconfig
1.1.4

5 days ago

1.1.3

6 days ago

1.1.2

7 days ago

1.1.1

8 days ago

1.1.0

9 days ago

1.0.0

10 days ago