+5
-4
@@ -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) |
+3
-3
| { | ||
| "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": { |
+0
-2
@@ -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 @@ |
Sorry, the diff of this file is not supported yet
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
273
0.37%18864
-1.11%8
-11.11%100
-1.96%