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 4.2.0 to 4.3.0

6

index.js

@@ -38,5 +38,2 @@ /*!

*
* - Safari 5-7 lacks support for changing the `Object.prototype.constructor` property
* on objects.
*
* - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.

@@ -55,9 +52,6 @@ *

function typedArraySupport () {
function Bar () {}
try {
var arr = new Uint8Array(1)
arr.foo = function () { return 42 }
arr.constructor = Bar
return arr.foo() === 42 && // typed array instances can be augmented
arr.constructor === Bar && // constructor can be set
typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`

@@ -64,0 +58,0 @@ arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`

2

package.json
{
"name": "buffer",
"description": "Node.js Buffer API, for the browser",
"version": "4.2.0",
"version": "4.3.0",
"author": {

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

@@ -5,8 +5,2 @@ if (process.env.OBJECT_IMPL) global.TYPED_ARRAY_SUPPORT = false

test('buf.constructor is Buffer', function (t) {
var buf = new B([1, 2])
t.strictEqual(buf.constructor, B)
t.end()
})
test('instanceof Buffer', function (t) {

@@ -13,0 +7,0 @@ var buf = new B([1, 2])

Sorry, the diff of this file is not supported yet

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