Huge News!Announcing our $40M Series B led by Abstract Ventures.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.1.0 to 0.1.1

5

History.md
0.1.1 / 2012-08-03
==================
- prevent multiple instances of ref from chaining inspects in "overwriteInspect"
0.1.0 / 2012-07-22

@@ -3,0 +8,0 @@ ==================

11

lib/ref.js

@@ -328,2 +328,3 @@

if (rtn.indirection !== _type.indirection - 1) {
// slow case
rtn = Object.create(_type)

@@ -1426,6 +1427,10 @@ rtn.indirection--

function overwriteInspect (inspect) {
return function () {
var v = inspect.apply(this, arguments)
return v.replace('Buffer', 'Buffer@0x' + this.address().toString(16))
if (inspect.name === 'refinspect') {
return inspect
} else {
return function refinspect () {
var v = inspect.apply(this, arguments)
return v.replace('Buffer', 'Buffer@0x' + this.address().toString(16))
}
}
}

@@ -19,3 +19,3 @@ { "name": "ref"

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

@@ -22,0 +22,0 @@ , "repository": { "type": "git", "url": "git://github.com/TooTallNate/ref.git" }

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