New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bare-buffer

Package Overview
Dependencies
Maintainers
2
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bare-buffer - npm Package Compare versions

Comparing version 2.4.1 to 2.4.2

16

index.js

@@ -10,2 +10,6 @@ const constants = require('./lib/constants')

const Buffer = module.exports = exports = class Buffer extends Uint8Array {
static {
binding.tag(this)
}
[Symbol.species] () {

@@ -379,3 +383,13 @@ return Buffer

exports.isBuffer = function isBuffer (value) {
return value instanceof Buffer
if (typeof value !== 'object' || value === null) return false
let constructor = value.constructor
while (typeof constructor === 'function') {
if (binding.isTagged(constructor)) return true
constructor = Reflect.getPrototypeOf(constructor)
}
return false
}

@@ -382,0 +396,0 @@

2

package.json
{
"name": "bare-buffer",
"version": "2.4.1",
"version": "2.4.2",
"description": "Native buffers for JavaScript",

@@ -5,0 +5,0 @@ "exports": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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