3.10.154 • Published 11 months ago

@firanorg/saepe-ut-natus v3.10.154

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months 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('@firanorg/saepe-ut-natus');

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

windowspostcss-pluginfunctionssymbolswrapcolumnsAsyncIteratorprocessio-ts@@toStringTagworkerreducephoneargumentpipeimportECMAScript 2021ECMAScript 7errorassertBigInt64ArrayES2015statelessmodulepropertycloudsearchcolorpicomatchdirectoryrm -frRxJSstringsidetapepatheast-asian-widthirqvisualcompilerartswfgradients css3schemetouchsymlinkECMAScript 3grouppropertiessortedparentnodejslinewrapRFC-6455ObservablesdayjsaccessibilitysinatraautoprefixervpcbusyJSONpnpm9Symboldeep-clonekeyshebangconfigurablePromiseliveESECMAScript 2022scheme-validationflattencall-bindArraynamesArray.prototype.containselectron256commandertypescriptprivate datanegative zerohashArray.prototype.flatMapstablequerytasktypedsymlinkstestersuperagentRegExp#flagsspeedfpsincludesbluebirdwidthcryptObject.valuesURLSearchParamsinstallerfast-clonebindless compilerform-validationpruneawswritablereadablestreamrm -rfgenericsPusharraysfilefastcloneESnextutilitiessqssespredictablemimetelephoneterminalvestfigletnativeequalitychrometypedarraybatchMicrosoftajaxfast-copytypesafeFunction.prototype.namereal-timeenumerablepackage managerxhrObject.assignawaitinsigintcharacterfetchperformanceextradropcss nestingjapanesecontainsBigUint64ArrayObject.getPrototypeOfrmregularparentssharedarraybuffermappersistentutil.inspectCSSStyleDeclarationsliceloggerpackagekarmaprefixtypanionrangeerrortrimStartproxyFloat64Arraysignalsreact-testing-librarycloneinferenceboundtoStringTagenderglobalhttpimportexportlimitedArrayBuffer.prototype.slicereact-hooksjsdiffclassnamesmetadatauuidjwtwget.envString.prototype.matchAllthroatopensearchapiprotodynamodbvalidshrinkwrapwatcherwatchingdatastructurenegativees-shim APIreact-hook-formglobcsstoArraytsoptimizerparsinggetintrinsicRegExp.prototype.flagsfseventsarktypecodeslengthavaroute53stringifierqueues3a11ysettingsstylingconcurrencyenvsetPrototypeOfRxdateownjQueryECMAScript 2015shellkeysbufferassignhaseslintArray.prototype.includescheckmimetypesstoragegatewayeventEmitterbyteLengthfastcopycommand-lineserializebddbundlerdependency manageres8ES7syntaxerrorcircularconsole$.extenddescriptionreadablepackagesrestmkdirebsdescriptorminimalstructuredCloneassertstslibweakmapruntimeoffsetelmsignalES3jasminetypeofcloudfronttypetakeaccessorinvariantnpmwhatwginternalmake dirregular expressionsspeccss variablesetternested cssinstallfunctionalagentflagsES2023es-shimsdeepstylefunctionimmutableoptionoptimistframeworkvariablesECMAScript 2016browserslistautoscalingStyleSheethandlerseslintpluginrestfullinuxclass-validatorauthObject.isbuffersfindobjprettyeventDispatcherdataconnectredactcollection.es6corefullwidthelbsetfindLastcollectionsequencechinesecallbacksafewordwrapcliprivatemruequalcode pointsvalueemojiTypedArrayrateairbnbemrzodtoSortedECMAScript 2017classnameformexeces2017javascriptconcatMapfoldersymbolfind-upUnderscoredataviewformatcompile lessstdlibamazonreuseformattingremovestatusextendproplazyUint8ClampedArray0package.json_.extendfindLastIndexrgbpluginl10nrecursiveprotocol-buffersyupcreateerror-handlinglimitconcatidObject.entriesperformantfsObservableforEacheventsES5callboundgetPrototypeOfbeanstalklibphonenumberwatchFileglacierUint8ArraystylesxtermjsonthrottletextWeakSetpreprocessorpreserve-symlinkses-abstractomitfast-deep-clonemomenthasOwnPropertycopy
3.10.154

11 months ago

3.10.153

11 months ago

2.10.145

12 months ago

3.10.148

12 months ago

2.9.140

12 months ago

3.10.147

12 months ago

2.9.141

12 months ago

2.10.147

12 months ago

2.9.142

12 months ago

3.10.149

12 months ago

2.10.146

12 months ago

2.9.143

12 months ago

2.9.136

12 months ago

3.10.151

12 months ago

2.9.137

12 months ago

3.10.150

12 months ago

2.9.138

12 months ago

2.9.139

12 months ago

3.10.152

11 months ago

2.9.144

12 months ago

2.9.145

12 months ago

2.9.134

12 months ago

2.9.135

12 months ago

2.9.132

1 year ago

2.9.133

1 year ago

2.9.131

1 year ago

2.9.130

1 year ago

2.8.130

1 year ago

2.8.129

1 year ago

2.8.127

1 year ago

2.8.128

1 year ago

2.8.125

1 year ago

2.8.126

1 year ago

2.8.124

1 year ago

2.8.123

1 year ago

2.8.122

1 year ago

2.8.121

1 year ago

2.8.120

1 year ago

2.8.119

1 year ago

2.8.118

1 year ago

2.8.116

1 year ago

2.8.117

1 year ago

2.8.115

1 year ago

2.8.114

1 year ago

2.7.114

1 year ago

2.7.113

1 year ago

2.7.112

1 year ago

2.7.111

1 year ago

2.7.110

1 year ago

2.7.109

1 year ago

2.7.108

1 year ago

1.1.29

1 year ago

1.1.28

1 year ago

2.6.100

1 year ago

1.5.72

1 year ago

1.5.71

1 year ago

1.5.74

1 year ago

1.5.73

1 year ago

1.5.76

1 year ago

1.1.30

1 year ago

1.5.75

1 year ago

1.5.78

1 year ago

1.5.77

1 year ago

2.6.99

1 year ago

1.1.34

1 year ago

1.5.79

1 year ago

1.1.33

1 year ago

1.1.32

1 year ago

1.1.31

1 year ago

1.1.38

1 year ago

1.1.37

1 year ago

1.1.36

1 year ago

2.6.98

1 year ago

1.1.35

1 year ago

1.1.39

1 year ago

1.5.81

1 year ago

1.5.80

1 year ago

1.5.82

1 year ago

1.1.41

1 year ago

1.1.40

1 year ago

1.3.68

1 year ago

1.1.45

1 year ago

1.3.69

1 year ago

1.1.44

1 year ago

1.3.66

1 year ago

1.1.43

1 year ago

1.3.67

1 year ago

1.1.42

1 year ago

1.1.49

1 year ago

1.1.48

1 year ago

1.1.47

1 year ago

1.1.46

1 year ago

1.2.60

1 year ago

1.2.63

1 year ago

1.2.64

1 year ago

1.2.61

1 year ago

1.2.62

1 year ago

1.2.65

1 year ago

1.2.66

1 year ago

1.1.19

1 year ago

2.7.106

1 year ago

2.7.107

1 year ago

2.7.102

1 year ago

2.7.103

1 year ago

2.7.104

1 year ago

2.7.105

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.27

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

1.6.82

1 year ago

1.6.84

1 year ago

1.6.83

1 year ago

2.7.100

1 year ago

1.6.86

1 year ago

2.7.101

1 year ago

1.6.85

1 year ago

1.6.88

1 year ago

1.6.87

1 year ago

1.6.89

1 year ago

1.6.91

1 year ago

1.6.90

1 year ago

1.6.93

1 year ago

1.6.92

1 year ago

1.6.95

1 year ago

1.4.71

1 year ago

1.6.94

1 year ago

1.4.70

1 year ago

1.6.97

1 year ago

1.6.96

1 year ago

1.6.98

1 year ago

1.2.59

1 year ago

1.3.70

1 year ago

1.1.52

1 year ago

1.1.51

1 year ago

1.1.50

1 year ago

1.1.56

1 year ago

1.1.55

1 year ago

1.1.54

1 year ago

1.1.53

1 year ago

1.1.59

1 year ago

1.1.58

1 year ago

1.1.57

1 year ago

1.2.39

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.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago