Comparing version 6.0.0 to 6.0.1
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
90758
1995