Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bitcoin

Package Overview
Dependencies
Maintainers
2
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitcoin - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

.travis.yml

6

Changelog.md
# 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

20

lib/bitcoin/client.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc