From 726b81b19251674e149ccfbb1abacbd837fc6db0 Mon Sep 17 00:00:00 2001 From: LinuxWizard42 Date: Wed, 12 Oct 2022 23:08:57 +0300 Subject: Removed files that should not have been included in git --- node_modules/buffer-alloc-unsafe/index.js | 17 ---------- node_modules/buffer-alloc-unsafe/package.json | 24 -------------- node_modules/buffer-alloc-unsafe/readme.md | 46 --------------------------- 3 files changed, 87 deletions(-) delete mode 100644 node_modules/buffer-alloc-unsafe/index.js delete mode 100644 node_modules/buffer-alloc-unsafe/package.json delete mode 100644 node_modules/buffer-alloc-unsafe/readme.md (limited to 'node_modules/buffer-alloc-unsafe') diff --git a/node_modules/buffer-alloc-unsafe/index.js b/node_modules/buffer-alloc-unsafe/index.js deleted file mode 100644 index 0bd335f..0000000 --- a/node_modules/buffer-alloc-unsafe/index.js +++ /dev/null @@ -1,17 +0,0 @@ -function allocUnsafe (size) { - if (typeof size !== 'number') { - throw new TypeError('"size" argument must be a number') - } - - if (size < 0) { - throw new RangeError('"size" argument must not be negative') - } - - if (Buffer.allocUnsafe) { - return Buffer.allocUnsafe(size) - } else { - return new Buffer(size) - } -} - -module.exports = allocUnsafe diff --git a/node_modules/buffer-alloc-unsafe/package.json b/node_modules/buffer-alloc-unsafe/package.json deleted file mode 100644 index c2ab904..0000000 --- a/node_modules/buffer-alloc-unsafe/package.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "buffer-alloc-unsafe", - "version": "1.1.0", - "license": "MIT", - "repository": "LinusU/buffer-alloc-unsafe", - "files": [ - "index.js" - ], - "scripts": { - "test": "standard && node test" - }, - "devDependencies": { - "standard": "^7.1.2" - }, - "keywords": [ - "allocUnsafe", - "allocate", - "buffer allocUnsafe", - "buffer unsafe allocate", - "buffer", - "ponyfill", - "unsafe allocate" - ] -} diff --git a/node_modules/buffer-alloc-unsafe/readme.md b/node_modules/buffer-alloc-unsafe/readme.md deleted file mode 100644 index 8725ecf..0000000 --- a/node_modules/buffer-alloc-unsafe/readme.md +++ /dev/null @@ -1,46 +0,0 @@ -# Buffer Alloc Unsafe - -A [ponyfill](https://ponyfill.com) for `Buffer.allocUnsafe`. - -Works as Node.js: `v7.0.0`
-Works on Node.js: `v0.10.0` - -## Installation - -```sh -npm install --save buffer-alloc-unsafe -``` - -## Usage - -```js -const allocUnsafe = require('buffer-alloc-unsafe') - -console.log(allocUnsafe(10)) -//=> - -console.log(allocUnsafe(10)) -//=> - -console.log(allocUnsafe(10)) -//=> - -allocUnsafe(-10) -//=> RangeError: "size" argument must not be negative -``` - -## API - -### allocUnsafe(size) - -- `size` <Integer> The desired length of the new `Buffer` - -Allocates a new *non-zero-filled* `Buffer` of `size` bytes. The `size` must be -less than or equal to the value of `buffer.kMaxLength` and greater than or equal -to zero. Otherwise, a `RangeError` is thrown. - -## See also - -- [buffer-alloc](https://github.com/LinusU/buffer-alloc) A ponyfill for `Buffer.alloc` -- [buffer-fill](https://github.com/LinusU/buffer-fill) A ponyfill for `Buffer.fill` -- [buffer-from](https://github.com/LinusU/buffer-from) A ponyfill for `Buffer.from` -- cgit v1.2.3-86-g962b