Permalink
Browse files

updates, circular test passes, self-referential fails

  • Loading branch information...
1 parent 26bd87b commit 28a470f339908b58dedcc860a0b9d60be10cfc86 @substack committed Apr 7, 2012
Showing with 8 additions and 9 deletions.
  1. +1 −1 examples/simple/client.js
  2. +2 −2 examples/simple/server.js
  3. +1 −1 index.js
  4. +4 −5 package.json
@@ -2,7 +2,7 @@ var dnode = require('dnode');
dnode.connect(7070, function (remote, conn) {
remote.zing(33, function (n) {
- console.log('n = ' + n);
+ console.log('n=' + n);
conn.end();
});
});
@@ -1,6 +1,6 @@
var dnode = require('dnode');
-var server = dnode({
- zing : function (n, cb) { cb(n * 100) }
+var server = dnode(function (remote, conn) {
+ this.zing = function (n, cb) { cb(n * 100) };
});
server.listen(7070);
View
@@ -187,7 +187,7 @@ dnode.prototype.listen = function () {
// a webserver, use socket.io
server = SocketIO(
server || params.webserver,
- params.mount || '/dnode.js',
+ params.mount === undefined ? '/dnode.js' : params.mount,
params.io || {}
);
}
View
@@ -25,15 +25,14 @@
"socket.io" : "0.8.6",
"socket.io-client" : "https://github.com/substack/socket.io-client/tarball/master",
"lazy" : ">=1.0.5 <1.1",
- "traverse" : "0.4.x",
- "dnode-protocol" : "0.1.x",
+ "dnode-protocol" : "~0.1.2",
"jsonify" : "0.0.x"
},
"devDependencies" : {
- "tap" : "0.0.x",
+ "tap" : "~0.2.4",
"browserify" : "1.4.x",
- "uglify-js" : "1.0.6",
- "express" : "2.2.2"
+ "uglify-js" : "~1.2.5",
+ "express" : "2.5.x"
},
"scripts" : {
"test" : "tap test/*.js"

0 comments on commit 28a470f

Please sign in to comment.