Comparing version 1.3.0 to 1.3.1
# node-bitcoin changelog | ||
## v1.3.1 (2012/08/19) | ||
Remove `underscore` dependency | ||
## v1.3.0 (2012/07/03) | ||
Change use of http.createClient() (deprecated in node v0.8.x) to http.request() | ||
## v1.2.2 (2012/04/26) | ||
@@ -4,0 +10,0 @@ Fix callback being called twice when a client and request error |
@@ -0,5 +1,3 @@ | ||
var rpc = require('../jsonrpc'); | ||
var rpc = require('../jsonrpc') | ||
, _ = require('underscore')._; | ||
//===----------------------------------------------------------------------===// | ||
@@ -95,3 +93,3 @@ // jsonrpc wrappers | ||
// If the last function is a callback, pop it from the args list | ||
if(_.isFunction(fn)) { | ||
if(typeof fn === 'function') { | ||
args.pop(); | ||
@@ -115,8 +113,10 @@ } else { | ||
(function() { | ||
_.each(bitcoinAPI, function(jsonFn, protoFn) { | ||
Client.prototype[protoFn] = function() { | ||
var args = [].slice.call(arguments); | ||
callRpc(jsonFn, args, this.rpc); | ||
} | ||
}); | ||
for (var protoFn in bitcoinAPI) { | ||
(function(protoFn) { | ||
Client.prototype[protoFn] = function() { | ||
var args = [].slice.call(arguments); | ||
callRpc(bitcoinAPI[protoFn], args, this.rpc); | ||
}; | ||
})(protoFn); | ||
} | ||
})(); | ||
@@ -123,0 +123,0 @@ |
{ | ||
"name": "bitcoin", | ||
"description": "Communicate with bitcoind via JSON-RPC", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"main": "./lib/bitcoin", | ||
@@ -14,8 +14,6 @@ "keywords": [ | ||
], | ||
"dependencies": { | ||
"underscore": "1.3.x" | ||
}, | ||
"dependencies": {}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/jb55/node-bitcoin.git" | ||
"url": "git://github.com/freewil/node-bitcoin.git" | ||
}, | ||
@@ -22,0 +20,0 @@ "devDependencies": { |
# node-bitcoin | ||
[![Build Status](https://secure.travis-ci.org/freewil/node-bitcoin.png)](https://secure.travis-ci.org/freewil/node-bitcoin) | ||
node-bitcoin is a simple wrapper for the Bitcoin client's JSON-RPC API. | ||
@@ -4,0 +6,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
433000
0
26
523
67
- Removedunderscore@1.3.x
- Removedunderscore@1.3.3(transitive)