Comparing version 0.1.17 to 0.1.18
@@ -11,3 +11,3 @@ { | ||
"description": "Smith is an RPC agent system for Node.JS used in architect and vfs.", | ||
"version": "0.1.17", | ||
"version": "0.1.18", | ||
"scripts": { | ||
@@ -14,0 +14,0 @@ "test": "./test-all.sh" |
10
smith.js
@@ -170,3 +170,3 @@ /* | ||
hash |= 0; | ||
header.writeInt32BE(hash, 4); | ||
header.writeInt32BE(hash, 4, true); | ||
@@ -357,3 +357,3 @@ // 2 Reserved bytes for future usage | ||
Agent.prototype._onReady = function (names) { | ||
Agent.prototype._onReady = function (names, env) { | ||
if (!Array.isArray(names)) return; | ||
@@ -381,2 +381,3 @@ var self = this; | ||
}); | ||
this.remoteEnv = env; | ||
this._emitConnect(); | ||
@@ -441,4 +442,5 @@ }; | ||
var keys = Object.keys(this.api); | ||
var env = typeof process !== "undefined" && process.env; | ||
fn = function (callback) { | ||
callback(keys); | ||
callback(keys, env); | ||
}; | ||
@@ -732,3 +734,3 @@ } | ||
catch (err) { return this.emit("error", err); } | ||
this.websocket.send(data, {binary: true}); | ||
this.websocket.send(data); | ||
}; | ||
@@ -735,0 +737,0 @@ |
require('./helpers'); | ||
var Agent = require('smith').Agent; | ||
var Transport = require('smith').Transport; | ||
var Agent = require('..').Agent; | ||
var Transport = require('..').Transport; | ||
@@ -5,0 +5,0 @@ var a = new Agent({ |
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
62852
1452
3