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 3.1.1 to 3.1.2

9

index.js

@@ -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",

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