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.3.1 to 0.3.2

6

History.md
0.3.2 / 2014-06-19
==================
* src: fix comment typo
* src: define our own `kMaxLength` constant
0.3.1 / 2014-06-09

@@ -3,0 +9,0 @@ ==================

8

lib/ref.js

@@ -609,4 +609,4 @@

/**
* `ref()` acceps a Buffer instance and returns a new Buffer
* instance that is "pointer" sized and has it's data pointing to the given
* `ref()` accepts a Buffer instance and returns a new Buffer
* instance that is "pointer" sized and has its data pointing to the given
* Buffer instance. Essentially the created Buffer is a "reference" to the

@@ -631,4 +631,4 @@ * original pointer, equivalent to the following C code:

/**
* Acceps a Buffer instance and attempts to "dereference" it.
* That is, first it checks the "indirection" count of _buffer_'s "type", and if
* Accepts a Buffer instance and attempts to "dereference" it.
* That is, first it checks the `indirection` count of _buffer_'s "type", and if
* it's greater than __1__ then it merely returns another Buffer, but with one

@@ -635,0 +635,0 @@ * level less `indirection`.

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

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

@@ -23,0 +23,0 @@ "repository": {

@@ -33,6 +33,7 @@

assert(strBuf.length > 10000);
var str = strBuf.toString('ucs2');
// the data in `utf16le.bin` should be a JSON parsable string
JSON.parse(strBuf.toString('utf16le'));
assert(JSON.parse(str));
})
})

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