Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

smith

Package Overview
Dependencies
Maintainers
5
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smith - npm Package Compare versions

Comparing version 0.1.16 to 0.1.17

2

package.json

@@ -11,3 +11,3 @@ {

"description": "Smith is an RPC agent system for Node.JS used in architect and vfs.",
"version": "0.1.16",
"version": "0.1.17",
"scripts": {

@@ -14,0 +14,0 @@ "test": "./test-all.sh"

@@ -733,4 +733,5 @@ /*

inherits(EngineIoTransport, Transport);
function EngineIoTransport(socket) {
function EngineIoTransport(socket, debug) {
var self = this;
this.debug = debug;

@@ -753,2 +754,5 @@ // Route errors from socket to transport.

if (Array.isArray(message)) {
if (debug) {
console.log("<-", message);
}
self.emit("message", message);

@@ -766,2 +770,6 @@ }

this.disconnect = function () {
socket.close();
};
// Encode and route send calls to socket.

@@ -777,2 +785,5 @@ this.send = function (message) {

}
if (this.debug && Array.isArray(message)) {
console.log("->", message);
}
return socket.send(json);

@@ -779,0 +790,0 @@ };

@@ -66,3 +66,7 @@ require('./helpers');

{Goodbye: "Sanity"},
[1,2,3,4,5,6,7,6,5,4,3,2,1]
[1,2,3,4,5,6,7,6,5,4,3,2,1],
// Big string that will use multiple bytes for length
// (Regression test for hashing)
new Array(300).join('A')
];

@@ -69,0 +73,0 @@ var message = frameMessages(input.map(function (item) {

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