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

bitcoin

Package Overview
Dependencies
Maintainers
0
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.0.0 to 1.0.1

1

lib/bitcoin/client.js

@@ -12,2 +12,3 @@

getAccountAddress: 'getaccountaddress',
getAddressesByAccount: 'getaddressesbyaccount',
getBalance: 'getbalance',

@@ -14,0 +15,0 @@ getBlockCount: 'getblockcount',

2

package.json
{
"name": "bitcoin",
"description": "Communicate with bitcoind via JSON-RPC",
"version": "1.0.0",
"version": "1.0.1",
"main": "./lib/bitcoin",

@@ -6,0 +6,0 @@ "keywords": [

@@ -7,3 +7,3 @@ var path = require('path');

var test = {
address: "1GbDSt8XieCHQmkQsZmMirwHoUHJukjwXn"
account: "test"
}

@@ -31,19 +31,26 @@

topic: makeClient,
'an account': {
'an account address': {
topic: function(client){
client.getAccount(test.address, this.callback);
client.getAccountAddress(test.account, this.callback);
},
'is valid': function(account){
assert.ok(account, "Update test variables with a valid address?");
'is valid': function(address){
assert.ok(address, "Update test variables with a valid address?");
},
'after getting the account\'s address again': {
topic: function(account, client) {
client.getAccountAddress(account, this.callback);
'after getting the account name again': {
topic: function(address, client) {
client.getAccount(address, this.callback);
},
'should be the same as the original':
function(address) {
assert.equal(address, test.address);
'should be the same as the original': function(account) {
assert.equal(account, test.account);
}
}
},
'account addresses': {
topic: function(client){
client.getAddressesByAccount(test.account, this.callback);
},
'is not empty': function(addresses) {
assert.isTrue(addresses && addresses.length > 0);
}
},
'getDifficulty': {

@@ -50,0 +57,0 @@ topic: function(client) { client.getDifficulty(this.callback); },

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