1.0.0 • Published 22 days ago

@rabiepenpm/doloremque-at-error v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
22 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('@rabiepenpm/doloremque-at-error');

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

clia11ypluginUint8Arrayclasseswarningtypedstylinges-shim APImacosdataViewawesomesauceutilitiesutilityopenseditoreventDispatchernodebcryptbyteOffsetcolumnsstarterawaitworkspace:*react-hook-formwriteIteratorconfigurableimmutabletoobjectmimetypestslibPromiseprocessiesettingskarmapatchassert.envbrowserslistboundshebanglimitchromiumObjectvalidatorelectronloggingObservableslibphonenumberArrayBuffer#slicesymlinkhelperses8apollogetcurlcopypackageWebSocketESnextworkerCSSStyleDeclarationinternalsymbolsbabel-coretrimLeftargves7persistentfindupECMAScript 2022xhrArray.prototype.flattenprivate dataefficientimmerrateiterationmomentconcatMapzeroprotocol-buffersoutputtypesafegetintrinsichasvariables in cssexitprogresslookbddcall-bindasciijQuerycharacterschromees-shimsstylesheetnopedropargparsecallastCSSconcatsyntaxerrorpnpm9requestspeedargumentswaitgetOwnPropertyDescriptorcallbackdomes2015Object.definePropertyUint16Arraygenericseslintconfiginspectbreakobj_.extendObject.keysfindreducermatchAlllanguagedeterministictypefunctionsweakmapmake dirtrimStartTypeBoxTypedArraytestinggetPrototypeOfjsdifftestmkdirscss variablestatusdotenvESoperating-systemtoStringTagwatchFilerapidfull-widthbootstrap lesspipetoolkitschemetypeofscheme-validationcodesYAMLgraphqlRxJSshimopenercallbindenvcorefigletstylestranspilerreact-testing-libraryconsumeequalitymochastartframerdebuggerECMAScript 2019es6ponyfillmrufastcopylastdeepsymbolECMAScript 6invarianttypeerrorclientl10nArray.prototype.flatMapcssinterruptspurelimitedtypescriptenvironmentnegativeredux-toolkitflagECMAScript 2016safeindicatoransitypanionsignalpackage managerprefixincludeslinuxrecursiveoffsetPushdebugkoreanconstflatdirES2016folderloggetopthardlinksspringpoint-freeless mixinscompilersignalsexpressquotetypedarraysObject.assignspecassignappgetterECMAScript 2023dependency managerflagsECMAScript 2015webtermpropertysanitizationsortES2021assertionjasmineerrores-abstractsigintupprettystreams2isES2022code pointsautoprefixerES7AsyncIteratorwordbreakRFC-6455descriptorsconsolebundlingfast-deep-clonejsdomcurriedfantasy-landpositiveeventEmitterinstallBigUint64Arrayless.jsclassnamesObject.getPrototypeOfvest
1.0.0

22 days ago