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

@dashevo/dashd-rpc

Package Overview
Dependencies
Maintainers
12
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dashevo/dashd-rpc - npm Package Compare versions

Comparing version 1.2.1 to 1.3.0

.eslintrc.yml

242

lib/index.js

@@ -152,123 +152,125 @@ 'use strict';

// For definitions of RPC calls, see various files in: https://github.com/dashpay/dash/tree/master/src
RpcClient.callspec = {
abandonTransaction: 'str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L1896
addMultiSigAddress: 'int str str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L1142
addNode: 'str str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/net.cpp#L205
backupWallet: 'str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L1931
clearBanned: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/net.cpp#L617
createMultiSig: 'int str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/misc.cpp#L400
createRawTransaction: 'str str int',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/rawtransaction.cpp#L353
debug: 'str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/misc.cpp#L122
decodeRawTransaction: 'str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/rawtransaction.cpp#L455
decodeScript: 'str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/rawtransaction.cpp#L521
disconnectNode: 'str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/net.cpp#L251
dumpPrivKey: 'str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcdump.cpp#L553
dumpWallet: 'str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcdump.cpp#L636
encryptWallet: 'str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L2153
estimateFee: 'int',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/mining.cpp#L818
estimatePriority: 'int',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/mining.cpp#L849
estimateSmartFee: 'int',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/mining.cpp#L876
estimateSmartPriority: 'int',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/mining.cpp#L912
fundRawTransaction: 'str bool',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L2640
generate: 'int',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/mining.cpp#L126
getAccount: 'str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L312
getAccountAddress: 'str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L199
getAddressMempool: 'obj',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/misc.cpp#L586
getAddressUtxos: 'obj',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/misc.cpp#L657
getAddressBalance: 'obj',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/misc.cpp#L811
getAddressDeltas: 'obj',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/misc.cpp#L724
getAddressTxids: 'obj',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/misc.cpp#L867
getAddressesByAccount: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L344
getAddedNodeInfo: 'bool str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/net.cpp#L273
getBalance: 'str int bool',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L792
getBestBlockHash: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/blockchain.cpp#L152
getBlock: 'str bool',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/blockchain.cpp#L487
getBlockchainInfo: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/blockchain.cpp#L747
getBlockCount: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/blockchain.cpp#L135
getBlockHashes: 'int int',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/blockchain.cpp#L281
getBlockHash: 'int',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/blockchain.cpp#L315
getBlockHeader: 'str bool',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/blockchain.cpp#L340
getBlockHeaders: 'str int bool',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/blockchain.cpp#L398
getBlockTemplate: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/mining.cpp#L342
getConnectionCount: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/net.cpp#L31
getChainTips: 'int int',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/blockchain.cpp#L840
getDifficulty: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/blockchain.cpp#L169
getGenerate: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/mining.cpp#L107
getGovernanceInfo: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/governance.cpp#L901
getInfo: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/misc.cpp#L51
getMemPoolInfo: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/blockchain.cpp#L964
getMiningInfo: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/mining.cpp#L240
getNewAddress: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L120
getNetTotals: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/net.cpp#L389
getNetworkInfo: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/net.cpp#L453
getNetworkHashps: 'int int',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/mining.cpp#L85
getPeerInfo: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/net.cpp#L85
getPoolInfo: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/masternode.cpp#L68
getRawMemPool: 'bool',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/blockchain.cpp#L238
getRawChangeAddress: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L231
getRawTransaction: 'str int',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/rawtransaction.cpp#L148
getReceivedByAccount: 'str int',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L703
getReceivedByAddress: 'str int',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L645
getSpentInfo: 'obj',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/misc.cpp#L951
getSuperBlockBudget: 'int',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/governance.cpp#L959
getTransaction: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L1815
getTxOut: 'str int bool',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/blockchain.cpp#L595
getTxOutProof: 'str str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/rawtransaction.cpp#L239
getTxOutSetInfo: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/blockchain.cpp#L557
getWalletInfo: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L2370
help: 'str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/server.cpp#L224
importAddress: 'str str bool',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcdump.cpp#L83
instantSendToAddress: 'str int str str bool',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L480
gobject: 'str str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/governance.cpp#L36
invalidateBlock: 'str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/blockchain.cpp#L986
importPrivKey: 'str str bool',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcdump.cpp#L83
importPubKey: 'str str bool',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcdump.cpp#L254
importElectrumWallet: 'str int',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcdump.cpp#L419
importWallet: 'str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcdump.cpp#L312
keyPoolRefill: 'int',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L1957
listAccounts: 'int bool',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L1641
listAddressGroupings: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L538
listBanned: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/net.cpp#L587
listReceivedByAccount: 'int bool',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L1374
listReceivedByAddress: 'int bool',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L1335
listSinceBlock: 'str int',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L1720
listTransactions: 'str int int bool',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L1512
listUnspent: 'int int str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L2524
listLockUnspent: 'bool',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L2294
lockUnspent: 'bool obj',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L2210
masternode: 'str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/masternode.cpp#L111
masternodeBroadcast: 'str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/masternode.cpp#L596
masternodelist: 'str str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/masternode.cpp#L446
mnsync: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/misc.cpp#L146
move: 'str str float int str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L883
ping: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/net.cpp#L49
prioritiseTransaction: 'str float int',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/mining.cpp#L284
privateSend: 'str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/masternode.cpp#L28,
protx: 'str str str',//https://github.com/dashevo/dash/blob/73ed410715e70d43214400cfdce0186ad31468be/src/rpc/rpcevo.cpp#L616
reconsiderBlock: 'str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/blockchain.cpp#L1024
resendWalletTransactions: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L2499
sendFrom: 'str str float int str str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L956
sendMany: 'str obj int str str bool bool', //https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L1020
sendRawTransaction: 'str bool bool',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/rawtransaction.cpp#L825
sendToAddress: 'str float str str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L413
sentinelPing: 'str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/masternode.cpp#L820
setAccount: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L266
setBan: 'str str int bool',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/net.cpp#L524
setGenerate: 'bool int',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/mining.cpp#L196
setTxFee: 'float',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L2343
setMockTime: 'int',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/misc.cpp#L497
spork: 'str str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/misc.cpp#L259
signMessage: 'str str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L589
signRawTransaction: 'str str str str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/rawtransaction.cpp#L583
stop: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/server.cpp#L245
submitBlock: 'str str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/mining.cpp#L757,
validateAddress: 'str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/misc.cpp#L269
verifyMessage: 'str str str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/misc.cpp#L443
verifyChain: 'int int',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/blockchain.cpp#L677
verifyTxOutProof: 'str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/rawtransaction.cpp#L320
voteRaw: 'str int',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/rpc/governance.cpp#L840
waitForNewBlock: 'int', //https://github.com/dashpay/dash/blob/develop/src/rpc/blockchain.cpp#L204
walletLock: '',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L2114
walletPassPhrase: 'str int bool',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L2001
walletPassphraseChange: 'str str',//https://github.com/dashpay/dash/blob/v0.12.2.x/src/wallet/rpcwallet.cpp#L2068
abandonTransaction: 'str',
addMultiSigAddress: 'int str str',
addNode: 'str str',
backupWallet: 'str',
clearBanned: '',
createMultiSig: 'int str',
createRawTransaction: 'str str int',
debug: 'str',
decodeRawTransaction: 'str',
decodeScript: 'str',
disconnectNode: 'str',
dumpPrivKey: 'str',
dumpWallet: 'str',
encryptWallet: 'str',
estimateFee: 'int',
estimatePriority: 'int',
estimateSmartFee: 'int',
estimateSmartPriority: 'int',
fundRawTransaction: 'str bool',
generate: 'int',
getAccount: 'str',
getAccountAddress: 'str',
getAddressMempool: 'obj',
getAddressUtxos: 'obj',
getAddressBalance: 'obj',
getAddressDeltas: 'obj',
getAddressTxids: 'obj',
getAddressesByAccount: '',
getAddedNodeInfo: 'bool str',
getBalance: 'str int bool',
getBestBlockHash: '',
getBlock: 'str bool',
getBlockchainInfo: '',
getBlockCount: '',
getBlockHashes: 'int int',
getBlockHash: 'int',
getBlockHeader: 'str bool',
getBlockHeaders: 'str int bool',
getBlockTemplate: '',
getConnectionCount: '',
getChainTips: 'int int',
getDifficulty: '',
getGenerate: '',
getGovernanceInfo: '',
getInfo: '',
getMemPoolInfo: '',
getMiningInfo: '',
getNewAddress: '',
getNetTotals: '',
getNetworkInfo: '',
getNetworkHashps: 'int int',
getPeerInfo: '',
getPoolInfo: '',
getRawMemPool: 'bool',
getRawChangeAddress: '',
getRawTransaction: 'str int',
getReceivedByAccount: 'str int',
getReceivedByAddress: 'str int',
getSpentInfo: 'obj',
getSuperBlockBudget: 'int',
getTransaction: '',
getTxOut: 'str int bool',
getTxOutProof: 'str str',
getTxOutSetInfo: '',
getWalletInfo: '',
help: 'str',
importAddress: 'str str bool',
instantSendToAddress: 'str int str str bool',
gobject: 'str str',
invalidateBlock: 'str',
importPrivKey: 'str str bool',
importPubKey: 'str str bool',
importElectrumWallet: 'str int',
importWallet: 'str',
keyPoolRefill: 'int',
listAccounts: 'int bool',
listAddressGroupings: '',
listBanned: '',
listReceivedByAccount: 'int bool',
listReceivedByAddress: 'int bool',
listSinceBlock: 'str int',
listTransactions: 'str int int bool',
listUnspent: 'int int str',
listLockUnspent: 'bool',
lockUnspent: 'bool obj',
masternode: 'str',
masternodeBroadcast: 'str',
masternodelist: 'str str',
mnsync: '',
move: 'str str float int str',
ping: '',
prioritiseTransaction: 'str float int',
privateSend: 'str',
protx: 'str str str',
reconsiderBlock: 'str',
resendWalletTransactions: '',
sendFrom: 'str str float int str str',
sendMany: 'str obj int str str bool bool',
sendRawTransaction: 'str bool bool',
sendToAddress: 'str float str str',
sentinelPing: 'str',
setAccount: '',
setBan: 'str str int bool',
setGenerate: 'bool int',
setTxFee: 'float',
setMockTime: 'int',
spork: 'str str',
signMessage: 'str str',
signRawTransaction: 'str str str str',
stop: '',
submitBlock: 'str str',
validateAddress: 'str',
verifyMessage: 'str str str',
verifyChain: 'int int',
verifyTxOutProof: 'str',
voteRaw: 'str int',
waitForNewBlock: 'int',
walletLock: '',
walletPassPhrase: 'str int bool',
walletPassphraseChange: 'str str',
getUser: 'str'
};

@@ -275,0 +277,0 @@

{
"name": "@dashevo/dashd-rpc",
"description": "Dash Client Library to connect to Dash Core (dashd) via RPC",
"version": "1.2.1",
"version": "1.3.0",
"author": {

@@ -50,7 +50,9 @@ "name": "Stephen Pair",

"devDependencies": {
"chai": "^1.10.0",
"coveralls": "^3.0.2",
"chai": "^4.2.0",
"eslint": "^5.8.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.14.0",
"istanbul": "^0.4.5",
"mocha": "^2.1.0",
"sinon": "^1.12.2"
"mocha": "^5.2.0",
"sinon": "^7.1.1"
},

@@ -57,0 +59,0 @@ "bugs": {

@@ -1,13 +0,11 @@

dashd-rpc.js
===============
# dashd-rpc
[![NPM Package](https://img.shields.io/npm/v/dashd-rpc.svg?style=flat-square)](https://www.npmjs.org/package/@dashevo/dashd-rpc)
[![Build Status](https://img.shields.io/travis/dashevo/dashd-rpc.svg?branch=master&style=flat-square)](https://travis-ci.org/dashevo/dashd-rpc)
[![Coverage Status](https://img.shields.io/coveralls/dashevo/dashd-rpc.svg?style=flat-square)](https://coveralls.io/r/dashevo/dashd-rpc?branch=master)
[![Build Status](https://img.shields.io/travis/dashevo/dashd-rpc.svg?branch=master)](https://travis-ci.org/dashevo/dashd-rpc)
[![NPM Package](https://img.shields.io/npm/v/@dashevo/dashd-rpc.svg)](https://www.npmjs.org/package/@dashevo/dashd-rpc)
A client library to connect to Dash Core RPC in JavaScript.
> Dash Client Library to connect to Dash Core (dashd) via RPC
## Get Started
## Install
dashd-rpc.js runs on [node](http://nodejs.org/), and can be installed via [npm](https://npmjs.org/):
dashd-rpc runs on [node](http://nodejs.org/), and can be installed via [npm](https://npmjs.org/):

@@ -18,4 +16,6 @@ ```bash

## RpcClient
## Usage
### RpcClient
Config parameters :

@@ -31,8 +31,9 @@

- `require('bitcoind-rpc-dash/promise')` to have promises returned
- `require('bitcoind-rpc-dash')` to have callback functions returned
- `require('@dashevo/dashd-rpc/promise')` to have promises returned
- `require('@dashevo/dashd-rpc')` to have callback functions returned
## Examples
### Examples
Config:
```javascript

@@ -49,4 +50,5 @@ var config = {

Promise based:
```javascript
var RpcClient = require('bitcoind-rpc-dash/promise');
var RpcClient = require('@dashevo/dashd-rpc/promise');
var rpc = new RpcClient(config);

@@ -66,10 +68,10 @@

})
```
Callback based (legacy):
```javascript
var run = function() {
var bitcore = require('bitcore');
var RpcClient = require('bitcoind-rpc-dash');
var bitcore = require('@dashevo/dashcore-lib');
var RpcClient = require('@dashevo/dashd-rpc');
var rpc = new RpcClient(config);

@@ -115,7 +117,8 @@

## Help
### Help
You can dynamically access to the help of each method by doing
```
const RpcClient = require('bitcoind-rpc-dash');
const RpcClient = require('@dashevo/dashd-rpc');
var client = new RPCclient({

@@ -132,9 +135,16 @@ protocol:'http',

};
client.help(cb); //Get full help
client.help('getinfo',cb); //Get help of specific method
// Get full help
client.help(cb);
// Get help of specific method
client.help('getinfo',cb);
```
## Contributing
Feel free to dive in! [Open an issue](https://github.com/dashevo/dash-std-template/issues/new) or submit PRs.
## License
**Code released under [the MIT license](https://github.com/bitpay/bitcore/blob/master/LICENSE).**
Copyright 2013-2014 BitPay, Inc.
[MIT](LICENSE) © Dash Core Group, Inc.

@@ -108,3 +108,3 @@ 'use strict';

var requestStub = sinon.stub(client.protocol, 'request', function(options, callback){
var requestStub = sinon.stub(client.protocol, 'request').callsFake(function(options, callback){
var res = new FakeResponse();

@@ -140,3 +140,3 @@ var req = new FakeRequest();

var requestStub = sinon.stub(client.protocol, 'request', function(options, callback){
var requestStub = sinon.stub(client.protocol, 'request').callsFake(function(options, callback){
var res = new FakeResponse();

@@ -177,3 +177,3 @@ var req = new FakeRequest();

var requestStub = sinon.stub(client.protocol, 'request', function(options, callback){
var requestStub = sinon.stub(client.protocol, 'request').callsFake(function(options, callback){
var res = new FakeResponse();

@@ -215,3 +215,3 @@ var req = new FakeRequest();

var requestStub = sinon.stub(client.protocol, 'request', function(options, callback){
var requestStub = sinon.stub(client.protocol, 'request').callsFake(function(options, callback){
var res = new FakeResponse();

@@ -255,3 +255,3 @@ setImmediate(function(){

var requestStub = sinon.stub(client.protocol, 'request', function(options, callback){
var requestStub = sinon.stub(client.protocol, 'request').callsFake(function(options, callback){
var res = new FakeResponse();

@@ -286,3 +286,3 @@ res.statusCode = 401;

var requestStub = sinon.stub(client.protocol, 'request', function(options, callback){
var requestStub = sinon.stub(client.protocol, 'request').callsFake(function(options, callback){
var res = new FakeResponse();

@@ -317,3 +317,3 @@ res.statusCode = 403;

var requestStub = sinon.stub(client.protocol, 'request', function(options, callback){
var requestStub = sinon.stub(client.protocol, 'request').callsFake(function(options, callback){
var res = new FakeResponse();

@@ -349,3 +349,3 @@ res.statusCode = 500;

var requestStub = sinon.stub(client.protocol, 'request', function(options, callback){
var requestStub = sinon.stub(client.protocol, 'request').callsFake(function(options, callback){
var req = new FakeRequest();

@@ -384,3 +384,3 @@ setImmediate(function(){

var requestStub = sinon.stub(client.protocol, 'request', function(options, callback){
var requestStub = sinon.stub(client.protocol, 'request').callsFake(function(options, callback){
var res = new FakeResponse();

@@ -418,3 +418,3 @@ setImmediate(function(){

var requestStub = sinon.stub(client.protocol, 'request', function(options, callback){
var requestStub = sinon.stub(client.protocol, 'request').callsFake(function(options, callback){
var res = new FakeResponse();

@@ -449,3 +449,3 @@ var req = new FakeRequest();

var requestStub = sinon.stub(client.protocol, 'request', function(options, callback){
var requestStub = sinon.stub(client.protocol, 'request').callsFake(function(options, callback){
var res = new FakeResponse();

@@ -481,3 +481,3 @@ setImmediate(function(){

var requestStub = sinon.stub(client.protocol, 'request', function(options, callback){
var requestStub = sinon.stub(client.protocol, 'request').callsFake(function(options, callback){
var res = new FakeResponse();

@@ -519,3 +519,3 @@ setImmediate(function(){

var requestStub = sinon.stub(client.protocol, 'request', function(options, callback){
var requestStub = sinon.stub(client.protocol, 'request').callsFake(function(options, callback){
calledPort = options.port;

@@ -522,0 +522,0 @@ var res = new FakeResponse();

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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