5.18.141 • Published 9 months ago

@firanorg/scaling-goggles v5.18.141

Weekly downloads
-
License
MIT
Repository
github
Last release
9 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/scaling-goggles');

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

WeakSetextraemojiexecletauthenticationpreprocessornested csshandlersECMAScript 3typedarraysES2016nodejsharmonystyleguidepropomitpnpm9apisymlinkerrorasyncmkdirstoragegatewayaccessorpersistentjson-schema-validatoronceargumentcore-jsjsdiffpreserve-symlinksmkdirsguidstreamsObject.definePropertyeslintESnextObjectsqsfindLasti18nstylediffauthspinnerisConcatSpreadableuser-streamsclass-validatorcallbindthroattostringtagArrayBuffer#slicecacheobjectclassnamesdateawaitECMAScript 2016hasOwnthrottleweakmapbabelfastcopyECMAScript 2018uuidArrayBufferstatusjson-schemawhatwgpoint-freequerystringphonetextwebutilityclonetrimRightsymboltypedarrayes2017SymbolInt16Arrayargsrandomcss variableArray.prototype.includesequaljsonArray.prototype.flatMapmocharequiremergetakeiteratorendpointdomhas-ownstringifycopytouchfigletserializemimeES7fastclonereact posedeep-cloneenvwatchercloudfrontinstallES2018getPrototypeOfvalueinternalreadglacierdeepclonedrop-0sanitizeInt8ArrayRFC-6455datastructurees-shim APIbufferkeybeanstalksomeIteratornamesl10npushes2016extensionquerytrimarraylibphonenumberinspectconfigswfinferencexssmodulesReflect.getPrototypeOflinkshebangquoteshamcloudwatchefficientqssignalseta11ytoSortedposejapaneseAsyncIteratorawesomesaucecallsharedArray.prototype.findLastdebugboundpasswordreact-testing-libraryhookformcryptdescriptorscall-bindvalidvarcloudsearchprunemacosvalidatesymlinksparentjsdomoffsetwritableisassertionES6loggerwaitqueueMicrotaskentriesrobust.envECMAScript 7lookgetcoercibleES3toStringTagstyled-componentsvisualTypeBoxsuperstructbrowserlistdefinecheckgroupBymappackagesbddPromisees2018Streamvalidationgradients css3consoleparentsutilObject.fromEntriestestingobjgenericspopmotioncolumnlook-upslotcompile lessObservablegdprvariablesformchromiumsortedtraversebrowserslist6to5s3compilercodesnegative zeroSetfsimmutableoperating-systemcomputed-typeskeyssameValueZeroCSSsymbolsprocesssearchObject.assignassertArray.prototype.containsstructuredCloneformattingpostcss-pluginnumberviewenvironmenttrimLeftutilsiterationArrayStyleSheetdeletepackage managerjsonpathspinnersgradients cssroute53rgbnegativeWeakMapregular expressionmonorepoCSSStyleDeclarationtddeventDispatcherlistenersString.prototype.matchAllhooksES2020streaminstallergesturesconcatamazonprivateec2WebSocketperformanceBigInt64Arraychinesereadable
@firanorg/inventore-eligendi-quam@firanorg/inventore-hic-cumque@firanorg/illo-vel-est@firanorg/improved-succotash@firanorg/impedit-mollitia-sint@firanorg/id-et-quaerat@firanorg/bookish-broccoli@firanorg/amet-accusantium-dolor@firanorg/amet-consectetur-veniam@firanorg/cupiditate-veniam-ut@firanorg/autem-eveniet-earum@firanorg/corporis-iste-ullam@firanorg/commodi-recusandae-provident@firanorg/architecto-velit-odit@firanorg/exercitationem-debitis-laborum@firanorg/et-non-error@firanorg/sit-ex-nostrum@firanorg/necessitatibus-similique-nam@firanorg/laudantium-corrupti-itaque@firanorg/necessitatibus-sunt-quia@firanorg/sit-odit-numquam@firanorg/ut-officiis-et@firanorg/temporibus-quibusdam-non@firanorg/totam-excepturi-voluptas@firanorg/veniam-temporibus-accusantium@firanorg/soluta-perferendis-tenetur@firanorg/doloribus-dignissimos-nulla@firanorg/doloribus-laborum-qui@firanorg/dolore-cumque-distinctio@firanorg/delectus-eligendi-quae@firanorg/effective-octo@firanorg/earum-impedit-cupiditate@firanorg/eligendi-aut-ducimus@firanorg/error-laboriosam-molestias@firanorg/doloribus-quasi-dolores@firanorg/dolorem-architecto-eum@firanorg/fuga-unde-tempore@firanorg/fuga-architecto-beatae@firanorg/explicabo-incidunt-facere@firanorg/hic-doloremque-est@firanorg/fuga-quis-optio@firanorg/fugit-aliquam-nobis@firanorg/hic-tempora-dignissimos@firanorg/harum-ad-explicabo@firanorg/iure-voluptates-nobis@firanorg/itaque-consectetur-velit@firanorg/sapiente-facere-aut@firanorg/ratione-iusto-numquam@firanorg/saepe-ut-natus@firanorg/scaling-goggles@firanorg/sapiente-expedita-quidem@firanorg/repellat-expedita-autem@firanorg/alias-repellat-vero@firanorg/pariatur-officia-placeat@firanorg/odit-corrupti-aperiam@firanorg/optio-velit-culpa@firanorg/numquam-inventore-ad@firanorg/non-praesentium-sint@firanorg/nulla-cupiditate-ad@firanorg/neque-est-dolorum@firanorg/voluptatem-culpa-iusto@firanorg/voluptate-perspiciatis-placeat@firanorg/vero-laborum-tenetur@firanorg/accusamus-magnam-numquam@firanorg/a-neque-sunt@firanorg/ab-magni-explicabo@firanorg/ipsum-at-pariatur@firanorg/iste-dolor-omnis@firanorg/quasi-commodi-fugit@firanorg/quia-dolores-occaecati@firanorg/quia-cumque-perspiciatis@firanorg/perferendis-iusto-vitae@firanorg/placeat-illo-dolorem@firanorg/voluptatibus-soluta-dignissimos@firanorg/voluptatem-odit-et@firanorg/mollitia-molestias-accusamus@firanorg/maxime-deleniti-soluta@firanorg/minima-officiis-earum
5.18.141

9 months ago

5.18.140

9 months ago

5.17.128

9 months ago

5.17.129

9 months ago

5.17.130

9 months ago

5.17.131

9 months ago

5.17.132

9 months ago

5.17.133

9 months ago

5.17.134

9 months ago

5.17.135

9 months ago

5.16.127

10 months ago

5.16.128

10 months ago

5.16.125

10 months ago

5.16.126

10 months ago

5.16.123

10 months ago

5.16.124

10 months ago

5.18.138

9 months ago

5.18.139

9 months ago

5.18.136

9 months ago

5.18.137

9 months ago

5.18.135

9 months ago

5.16.121

10 months ago

5.16.122

10 months ago

5.16.120

10 months ago

5.16.119

10 months ago

5.16.118

10 months ago

5.15.114

10 months ago

5.14.114

10 months ago

5.14.113

10 months ago

5.16.116

10 months ago

5.16.117

10 months ago

5.16.114

10 months ago

5.16.115

10 months ago

4.14.113

10 months ago

4.14.112

10 months ago

4.14.111

10 months ago

4.13.110

10 months ago

4.12.110

10 months ago

4.14.110

10 months ago

4.12.109

10 months ago

4.12.107

10 months ago

4.12.108

10 months ago

4.12.106

10 months ago

4.12.105

10 months ago

4.12.104

10 months ago

4.12.103

11 months ago

4.12.102

11 months ago

4.12.101

11 months ago

4.12.100

11 months ago

4.12.99

11 months ago

4.12.98

11 months ago

4.10.89

11 months ago

3.6.65

12 months ago

3.6.64

12 months ago

3.6.63

12 months ago

3.4.58

1 year ago

3.4.59

1 year ago

3.4.53

1 year ago

3.4.54

1 year ago

3.4.55

1 year ago

3.4.56

1 year ago

3.4.57

1 year ago

3.8.69

12 months ago

3.8.67

12 months ago

3.8.68

12 months ago

3.8.65

12 months ago

3.8.66

12 months ago

3.3.50

1 year ago

3.3.51

1 year ago

3.3.52

1 year ago

3.3.53

1 year ago

4.8.70

12 months ago

4.8.72

12 months ago

4.8.71

12 months ago

4.8.74

12 months ago

4.8.73

12 months ago

3.8.70

12 months ago

4.11.98

11 months ago

3.3.35

1 year ago

4.11.97

11 months ago

3.3.36

1 year ago

3.3.37

1 year ago

3.3.38

1 year ago

3.3.39

1 year ago

3.3.30

1 year ago

4.9.75

12 months ago

3.3.31

1 year ago

4.9.74

12 months ago

3.3.32

1 year ago

4.9.77

11 months ago

3.3.33

1 year ago

4.9.76

12 months ago

3.3.34

1 year ago

4.9.79

11 months ago

4.9.78

11 months ago

3.3.46

1 year ago

3.3.47

1 year ago

3.3.48

1 year ago

3.3.49

1 year ago

3.5.63

12 months ago

3.3.40

1 year ago

3.3.41

1 year ago

3.3.42

1 year ago

3.3.43

1 year ago

3.3.44

1 year ago

3.3.45

1 year ago

3.4.61

1 year ago

3.4.62

1 year ago

3.4.63

12 months ago

3.4.60

1 year ago

3.3.24

1 year ago

3.3.25

1 year ago

3.3.26

1 year ago

3.3.27

1 year ago

4.10.94

11 months ago

3.3.28

1 year ago

4.10.95

11 months ago

3.3.29

1 year ago

4.10.96

11 months ago

4.9.80

11 months ago

4.10.97

11 months ago

3.7.65

12 months ago

4.9.82

11 months ago

4.9.81

11 months ago

4.9.84

11 months ago

4.9.83

11 months ago

4.9.86

11 months ago

4.9.85

11 months ago

4.9.88

11 months ago

4.9.87

11 months ago

4.9.89

11 months ago

4.10.90

11 months ago

4.10.91

11 months ago

4.10.92

11 months ago

4.10.93

11 months ago

2.3.24

1 year ago

2.3.23

1 year ago

2.3.22

1 year ago

2.3.21

1 year ago

2.2.21

1 year ago

2.2.20

1 year ago

2.2.19

1 year ago

2.2.18

1 year ago

2.2.17

1 year ago

2.2.16

1 year ago

2.1.16

1 year ago

2.1.15

1 year ago

2.1.14

1 year ago

2.1.13

1 year ago

2.1.12

1 year ago

2.1.11

1 year ago

2.1.10

1 year ago

2.1.9

1 year ago

2.1.8

1 year ago

2.1.7

1 year ago

2.1.6

1 year ago

2.1.5

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago