Comparing version 0.1.16 to 0.1.17
@@ -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" |
13
smith.js
@@ -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) { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
62767
1450
3