1.3.0 • Published 10 days ago

@libtommy2024/corporis-occaecati-tempore-magni v1.3.0

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

ArrayBuffer.prototype.transferToFixedLength Version Badge

github actions coverage License Downloads

npm badge

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

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

Most common usage:

var assert = require('assert');
var transferToFixedLength = require('@libtommy2024/corporis-occaecati-tempore-magni');
var IsDetachedBuffer = require('es-abstract/2023/IsDetachedBuffer');

var ab = new ArrayBuffer('a');

assert.equal(IsDetachedBuffer(ab), false);
transferToFixedLength(ab);
assert.equal(IsDetachedBuffer(ab), true);

if (!ArrayBuffer.prototype.transferToFixedLength) {
	transferToFixedLength.shim();
}

var ab2 = new ArrayBuffer('a');
assert.equal(IsDetachedBuffer(ab2), false);
ab2.transferToFixedLength();
assert.equal(IsDetachedBuffer(ab2), true);

Tests

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

windowssettingses5asttermutilitiesmacoseslintinvariantes6dragfindEShardlinksMapdescriptorasciipyyamlphoneunicodeviewmkdirarraybufferless mixinschanneldirio-tsECMAScript 2021find-uptakeclassespreserve-symlinksES8mergepathfileObject.isECMAScript 2019package.jsonxtermES6flatthrottleposerandomzerooptimizergetPrototypeOfcollectionTypedArraycompile lesscallsymbolsentriesintrinsicxssconsumeletmkdirpObject.getPrototypeOfcharactersbytereact-testing-libraryvalidbabel-coreArray.prototype.findLastpnpm9autoprefixervarECMAScript 2015callboundcomparebuffersdeep-clonecryptObject.entriesbounderrorSetstyleproplinuxrgbprotofull-widthArray.prototype.findLastIndexinferencehelpersemojibannerqscommandassertqueuebabelurlsutiltrimEndidObject.keyslaunch3dconstequalitymoduleawaitpropertieseventsinstallutilslesscsstoobjectweakmapregular expressionscallbindslicejapaneseloggershamworkerdataViewRxcheckuser-streamsajaxdayjsconfigurablequerybyteOffsetdomstringifierRegExp#flagsramdaArrayBuffer.prototype.slicezodcorestreamrateES5command-lineutilityreduceres2017fastclonerecursivecontainswebsiteauthObject.fromEntrieslruspinnerssetlinkES2020sloturlfindupReactiveXdirectorywalkjs0duplexforEachshebangcall-binditeratorsymlinkscodesparsesignalexpressiontoStringTagirqidleECMAScript 3hookformtranspilerinterruptsjson-schematelephonesharedarraybufferthreeoperating-systempositivesameValueZeroplugingdprcore-jswraptypettyES2019wordwrapgradients css3sortStreamcolourES2023runtimegetconnectformatoncebrowserlistpromisessequencetypesafesuperstructframeworkReactiveExtensionsxhrmomentcurriedi18nexecutabletssigtermtapeclassnamemake dirlook-upcoercibleprocessinternaloffset@@toStringTagmimepostcss-pluginmixinscss nestinginputcommanderfullflagsbusyserializertaskreactperformancePromisereadableArrayBuffer#slicereal-timeObject.assigninstallerstyleguiderm -rfbootstrap cssdebuggerargsstylesvestESnextwordbreakcreateisConcatSpreadableremovebundlingnumberspecdependency managerECMAScript 2020internal slotcssString.prototype.trimcensorlazymaketouchuuidECMAScript 6regexresolvees-shim APIanimationnamesexpressdiffStreamssanitizeECMAScript 2022trimlintjson-schema-validationlengthoptionObservablefiglettypeoffastomites2016sanitization$.extendpureprivate datalistenersperformantparentgetterbundlerchildjsoncode pointsreact-hooksjson-schema-validatorregularclonejsdomstringifytimereduxmiddlewareArrayObject.valuesvalidation256lessansitypedsuperagentInt32ArrayFloat32ArrayspinnerupdescriptorsdependencieselectronwarningFloat64ArrayfullwidthWeakSetfast-deep-copycallbackfseventsdefinePropertypushopensappconcurrencyincludesbreaksymlinklanguagexdg-openerror-handlingcharactermkdirsSymbol.toStringTagFunction.prototype.nameschemeauthenticationlooktrimStarttostringtagjsdiffclassnamesbufferjsxwaapisharedvariables in csssidepackage managerprototypeguidequalshimecmascriptnpmassignYAMLpopmotioncomputed-typesxdg[[Prototype]]statusclass-validatores2015colorshrinkwrapflattenstartBigInt64ArraysomerequestawesomesaucesignalsimmerCSSStyleDeclaration__proto__typedarraysbootstrap lesscolorsavaparentscolumnssigintthroatqueueMicrotaskrapidless cssECMAScript 2018stablewaiteditorsetterwritabletraverseRxJSjQuerycli
1.2.0

11 days ago

1.3.0

10 days ago

1.0.0

1 month ago