Comparing version 0.1.0 to 0.1.1
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 @@ ================== |
@@ -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" } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
353826
2846