Comparing version 3.0.1 to 3.0.2
@@ -9,2 +9,3 @@ var commands = require('./commands') | ||
this.rpc = new rpc.Client(opts) | ||
this.wallet = opts.wallet | ||
} | ||
@@ -19,3 +20,3 @@ | ||
callRpc(cmd, args, this.rpc) | ||
callRpc(cmd, args, this.rpc, this.wallet) | ||
} | ||
@@ -26,3 +27,3 @@ | ||
// ===----------------------------------------------------------------------===// | ||
function callRpc (cmd, args, rpc) { | ||
function callRpc (cmd, args, rpc, wallet) { | ||
var fn = args[args.length - 1] | ||
@@ -43,3 +44,3 @@ | ||
fn(err) | ||
}) | ||
}, wallet ? `/wallet/${wallet}` : undefined) | ||
} | ||
@@ -55,3 +56,3 @@ | ||
var args = [].slice.call(arguments) | ||
callRpc(commands[protoFn], args, this.rpc) | ||
callRpc(commands[protoFn], args, this.rpc, this.wallet) | ||
} | ||
@@ -58,0 +59,0 @@ })(protoFn) |
{ | ||
"name": "bitcoin", | ||
"description": "Communicate with bitcoind via JSON-RPC", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"main": "lib/index.js", | ||
@@ -10,3 +10,3 @@ "keywords": [ | ||
], | ||
"author": "Bill Casarin <bill@casarin.ca> (jb55.com)", | ||
"author": "William Casarin <jb55@jb55.com>", | ||
"contributors": [ | ||
@@ -24,3 +24,3 @@ "Sean Lavine <sean@eternalrise.com>" | ||
"type": "git", | ||
"url": "git://github.com/freewil/node-bitcoin.git" | ||
"url": "git://github.com/jb55/node-bitcoin.git" | ||
}, | ||
@@ -27,0 +27,0 @@ "engines": { |
@@ -25,4 +25,2 @@ # node-bitcoin | ||
This module uses callbacks, which is the prevalent way to work with asynchronous functions in Node.js. If you'd like to instead use promises, then please see the [bitcoin-promise](https://github.com/rcorbish/node-bitcoin-promise) module. | ||
## Install | ||
@@ -29,0 +27,0 @@ |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
273
0
18864
8
100