Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

buffer

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

buffer - npm Package Compare versions

Comparing version 6.0.0 to 6.0.1

1

AUTHORS.md

@@ -69,3 +69,4 @@ # Authors

- mathmakgakpak (44949126+mathmakgakpak@users.noreply.github.com)
- jkkang (jkkang@smartauth.kr)
#### Generated by bin/update-authors.sh.

19

index.js

@@ -410,9 +410,14 @@ /*!

for (i = 0; i < list.length; ++i) {
const buf = list[i]
let buf = list[i]
if (isInstance(buf, Uint8Array)) {
Uint8Array.prototype.set.call(
buffer,
buf,
pos
)
if (pos + buf.length > buffer.length) {
if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf)
buf.copy(buffer, pos)
} else {
Uint8Array.prototype.set.call(
buffer,
buf,
pos
)
}
} else if (!Buffer.isBuffer(buf)) {

@@ -1802,3 +1807,3 @@ throw new TypeError('"list" argument must be an Array of Buffers')

// Simplified versions from Node, changed for Buffer-only usage
var errors = {}
const errors = {}
function E (sym, getMessage, Base) {

@@ -1805,0 +1810,0 @@ errors[sym] = class NodeError extends Base {

{
"name": "buffer",
"description": "Node.js Buffer API, for the browser",
"version": "6.0.0",
"version": "6.0.1",
"author": {

@@ -6,0 +6,0 @@ "name": "Feross Aboukhadijeh",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc