pm2-axon-rpc
Advanced tools
Comparing version 0.0.2 to 0.2.0
0.0.2 / 2013-03-25 | ||
================== | ||
### 0.0.x | ||
* bump axon version so we include the req/rep fixes | ||
--- | ||
0.0.1 / 2010-01-03 | ||
================== | ||
#### 0.0.3 — 2014-05-07 | ||
* Update to make axon-rpc compatible with axon 2.x. | ||
* Added the original error stack to the error received by the client. | ||
* Fixed tests on Windows. | ||
* Fixed crash on empty error message. | ||
#### 0.0.2 — 2013-03-25 | ||
* bump axon version so we include the req/rep fixes | ||
#### 0.0.1 — 2010-01-03 | ||
* Initial release |
@@ -16,3 +16,3 @@ | ||
function Client(sock) { | ||
sock.format('json'); | ||
if (typeof sock.format === 'function') sock.format('json'); | ||
this.sock = sock; | ||
@@ -40,3 +40,3 @@ } | ||
}, function(msg){ | ||
if (msg.error) { | ||
if ('error' in msg) { | ||
var err = new Error(msg.error); | ||
@@ -43,0 +43,0 @@ err.stack = msg.stack || err.stack; |
@@ -7,2 +7,3 @@ | ||
var debug = require('debug'); | ||
var Stringify = require('json-stringify-safe'); | ||
@@ -23,3 +24,3 @@ /** | ||
function Server(sock) { | ||
sock.format('json'); | ||
if (typeof sock.format === 'function') sock.format('json'); | ||
this.sock = sock; | ||
@@ -74,4 +75,2 @@ this.methods = {}; | ||
var Stringify = require('json-stringify-safe'); | ||
Server.prototype.onmessage = function(msg, reply){ | ||
@@ -78,0 +77,0 @@ if ('methods' == msg.type) return this.respondWithMethods(reply); |
{ | ||
"name": "pm2-axon-rpc", | ||
"version": "0.0.2", | ||
"description": "RPC for axon", | ||
"keywords": ["axon", "rpc", "cloud"], | ||
"version": "0.2.0", | ||
"description": "Remote procedure calls built on top of axon.", | ||
"keywords": [ | ||
"axon", | ||
"rpc", | ||
"cloud" | ||
], | ||
"author": "TJ Holowaychuk <tj@learnboost.com>", | ||
"contributors": [ | ||
{ | ||
"name": "Bret Copeland", | ||
"email": "bret@atlantisflight.org", | ||
"url": "https://github.com/bretcope" | ||
} | ||
], | ||
"dependencies": { | ||
@@ -13,3 +24,3 @@ "debug": "*", | ||
"devDependencies": { | ||
"axon": "1.0.0", | ||
"axon": "2.0.0", | ||
"better-assert": "*", | ||
@@ -21,3 +32,11 @@ "mocha": "*" | ||
}, | ||
"main": "index" | ||
"main": "index", | ||
"scripts": { | ||
"test": "mocha --reporter spec" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/visionmedia/axon-rpc.git" | ||
}, | ||
"license": "MIT" | ||
} |
@@ -111,3 +111,3 @@ | ||
Copyright (c) 2012 TJ Holowaychuk <tj@learnboost.com> | ||
Copyright (c) 2014 TJ Holowaychuk <tj@learnboost.com> | ||
@@ -114,0 +114,0 @@ Permission is hereby granted, free of charge, to any person obtaining |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
9328
0