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 2.3.0 to 2.3.1

test/user-agent.js

2

bundle.js

@@ -98,3 +98,3 @@ require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({"Focm2+":[function(require,module,exports){

else
buf[i] = subject[i]
buf.writeInt8(subject[i], i)
}

@@ -101,0 +101,0 @@ } else if (type === 'string') {

@@ -97,3 +97,3 @@ /*!

else
buf[i] = subject[i]
buf.writeInt8(subject[i], i)
}

@@ -100,0 +100,0 @@ } else if (type === 'string') {

{
"name": "buffer",
"description": "Node.js Buffer API, for the browser",
"version": "2.3.0",
"version": "2.3.1",
"author": {

@@ -22,5 +22,5 @@ "name": "Feross Aboukhadijeh",

"devDependencies": {
"benchmark": "1.x",
"browserify": "3.x",
"tape": "2.x"
"benchmark": "^1.0.0",
"browserify": "^3.46.0",
"tape": "^2.12.3"
},

@@ -27,0 +27,0 @@ "homepage": "http://feross.org",

@@ -12,2 +12,10 @@ var B = require('../').Buffer

test('new buffer from array w/ negatives', function (t) {
t.equal(
new B([-1, -2, -3]).toString('hex'),
'fffefd'
)
t.end()
})
test('new buffer from string', function (t) {

@@ -14,0 +22,0 @@ t.equal(

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