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

ref

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ref - npm Package Compare versions

Comparing version 0.2.3 to 0.3.0

10

History.md
0.3.0 / 2014-06-08
==================
* ref: use `hexAddress()` for the Buffer inspect() override
* ref: add `hexAddress()` function
* src: use `NanEscapableScope` where appropriate
* src: use `uintptr_t` to ensure a positive address
* src: better _snprintf_s #define macro (#12, @fjhub)
* package: update "debug" to v1.0.1
0.2.3 / 2014-06-04

@@ -3,0 +13,0 @@ ==================

15

lib/ref.js

@@ -1219,3 +1219,3 @@

Buffer.prototype.address = function address () {
return exports.address(this)
return exports.address(this, 0)
}

@@ -1227,4 +1227,12 @@

Buffer.prototype.hexAddress = function hexAddress () {
return exports.hexAddress(this, 0)
}
/**
* ...
*/
Buffer.prototype.isNull = function isNull () {
return exports.isNull(this)
return exports.isNull(this, 0)
}

@@ -1410,2 +1418,3 @@

SlowBuffer.prototype.address = Buffer.prototype.address
SlowBuffer.prototype.hexAddress = Buffer.prototype.hexAddress
SlowBuffer.prototype.isNull = Buffer.prototype.isNull

@@ -1439,5 +1448,5 @@ SlowBuffer.prototype.ref = Buffer.prototype.ref

var v = inspect.apply(this, arguments)
return v.replace('Buffer', 'Buffer@0x' + this.address().toString(16))
return v.replace('Buffer', 'Buffer@0x' + this.hexAddress())
}
}
}

4

package.json

@@ -20,3 +20,3 @@ {

],
"version": "0.2.3",
"version": "0.3.0",
"author": "Nathan Rajlich <nathan@tootallnate.net> (http://tootallnate.net)",

@@ -34,3 +34,3 @@ "repository": {

"bindings": "~1.2.0",
"debug": "~0.8.1",
"debug": "~1.0.1",
"nan": "~1.2.0"

@@ -37,0 +37,0 @@ },

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