Comparing version 3.1.1 to 3.1.2
@@ -1019,4 +1019,2 @@ /*! | ||
Buffer.prototype.copy = function copy (target, target_start, start, end) { | ||
var self = this // source | ||
if (!start) start = 0 | ||
@@ -1030,3 +1028,3 @@ if (!end && end !== 0) end = this.length | ||
if (end === start) return 0 | ||
if (target.length === 0 || self.length === 0) return 0 | ||
if (target.length === 0 || this.length === 0) return 0 | ||
@@ -1037,3 +1035,3 @@ // Fatal error conditions | ||
} | ||
if (start < 0 || start >= self.length) throw new RangeError('sourceStart out of bounds') | ||
if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds') | ||
if (end < 0) throw new RangeError('sourceEnd out of bounds') | ||
@@ -1123,4 +1121,3 @@ | ||
// save reference to original Uint8Array get/set methods before overwriting | ||
arr._get = arr.get | ||
// save reference to original Uint8Array set method before overwriting | ||
arr._set = arr.set | ||
@@ -1127,0 +1124,0 @@ |
{ | ||
"name": "buffer", | ||
"description": "Node.js Buffer API, for the browser", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"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
126348
3296