Socket
Socket
Sign inDemoInstall

dnode

Package Overview
Dependencies
Maintainers
0
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dnode - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

12

lib/conn.js

@@ -13,2 +13,9 @@ var EventEmitter = require('events').EventEmitter;

self.once = function (name, cb) {
self.on(name, function f () {
self.removeListener(name, f);
cb.apply(self, arguments);
});
};
var scrubber = new Scrubber;

@@ -49,2 +56,7 @@ self.end = function () {

// emitted by recon
stream.on('drop', function () {
self.emit('drop');
});
self.sendRequest = function (method, args) {

@@ -51,0 +63,0 @@ if (stream.readyState != 'open') {

2

package.json
{
"name" : "dnode",
"version" : "0.4.1",
"version" : "0.4.2",
"description" : "Transparently call remote callbacks",

@@ -5,0 +5,0 @@ "modules" : {

@@ -9,2 +9,6 @@ var dnode = require('dnode');

var dto = setTimeout(function () {
assert.fail('never dropped');
}, 10000);
var server1 = dnode({

@@ -18,2 +22,5 @@ decify : function (n, cb) { cb(n * 10) },

clearTimeout(to);
conn.once('drop', function () {
clearTimeout(dto);
});

@@ -20,0 +27,0 @@ remote.decify(5, function (x) {

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