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

sockit-to-me

Package Overview
Dependencies
Maintainers
4
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sockit-to-me - npm Package Compare versions

Comparing version 0.1.8 to 0.2.0

2

package.json
{
"name": "sockit-to-me",
"version": "0.1.8",
"version": "0.2.0",
"author": "Ghislain 'Aus' Lacroix <aus@mozilla.com>",

@@ -5,0 +5,0 @@ "description": "A synchronous socket API for node.js.",

@@ -184,2 +184,30 @@ var assert = require('assert');

test('1s timeout if no data', function(done) {
subject.setPollTimeout(1000);
// Register a listener to ensure that the server really is ready
server.on('message', function(message) {
// Connected, ask server to send NOTHING.
if(message.reply == 'connected') {
var err;
try {
// Read the response.
var response = subject.read(helo.length);
}
catch(e) {
err = e;
}
assert.ok(err instanceof Error);
done();
}
})
// Connect to server.
subject.connect({ host: host, port: port });
});
});

@@ -186,0 +214,0 @@

Sorry, the diff of this file is not supported yet

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