Skip to content

Commit

Permalink
Release 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui Marinho committed Nov 27, 2017
1 parent 6d558a4 commit c035b34
Show file tree
Hide file tree
Showing 10 changed files with 661 additions and 429 deletions.
21 changes: 19 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
# Changelog

## [1.2.0](https://github.com/ruimarinho/bitcoin-core/tree/1.2.0) (2017-02-12)
[Full Changelog](https://github.com/ruimarinho/bitcoin-core/compare/v1.1.0...1.2.0)
## [2.0.0](https://github.com/ruimarinho/bitcoin-core/tree/2.0.0) (2017-11-27)
[Full Changelog](https://github.com/ruimarinho/bitcoin-core/compare/v1.2.0...2.0.0)

**Merged pull requests:**

- Add support for named parameters when using the JSON-RPC interface [\#51](https://github.com/ruimarinho/bitcoin-core/pull/51) ([ruimarinho](https://github.com/ruimarinho))
- Improve response handling [\#50](https://github.com/ruimarinho/bitcoin-core/pull/50) ([ruimarinho](https://github.com/ruimarinho))
- Update dependencies [\#49](https://github.com/ruimarinho/bitcoin-core/pull/49) ([ruimarinho](https://github.com/ruimarinho))
- Update references [\#44](https://github.com/ruimarinho/bitcoin-core/pull/44) ([ruimarinho](https://github.com/ruimarinho))
- Fix bug when calling REST method with extension `bin` [\#43](https://github.com/ruimarinho/bitcoin-core/pull/43) ([pedrobranco](https://github.com/pedrobranco))
- Fix bug in rpc error class [\#42](https://github.com/ruimarinho/bitcoin-core/pull/42) ([pedrobranco](https://github.com/pedrobranco))
- Obfuscate private keys from importmulti request logging [\#38](https://github.com/ruimarinho/bitcoin-core/pull/38) ([pedrobranco](https://github.com/pedrobranco))
- Add support for [email protected] methods [\#36](https://github.com/ruimarinho/bitcoin-core/pull/36) ([joaopaulofonseca](https://github.com/joaopaulofonseca))
- Add support for bitcoin 0.13.2 [\#24](https://github.com/ruimarinho/bitcoin-core/pull/24) ([pedrobranco](https://github.com/pedrobranco))
- Fix mempool naming inconsistency in getRawMempool method name [\#22](https://github.com/ruimarinho/bitcoin-core/pull/22) ([ruimarinho](https://github.com/ruimarinho))
- Add support for bignumbers [\#17](https://github.com/ruimarinho/bitcoin-core/pull/17) ([pedrobranco](https://github.com/pedrobranco))

## [v1.2.0](https://github.com/ruimarinho/bitcoin-core/tree/v1.2.0) (2017-02-12)
[Full Changelog](https://github.com/ruimarinho/bitcoin-core/compare/v1.1.0...v1.2.0)

**Merged pull requests:**

Expand Down
28 changes: 13 additions & 15 deletions dist/src/errors/rpc-error.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
'use strict';
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;

var _http = require('http');
var _http = require("http");

var _standardError = require('./standard-error');

var _standardError2 = _interopRequireDefault(_standardError);
var _standardError = _interopRequireDefault(require("./standard-error"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
* Export `RpcError` class.
* Module dependencies.
*/

/**
* Module dependencies.
* Export `RpcError` class.
*/

class RpcError extends _standardError2.default {
constructor(code, msg, props) {
class RpcError extends _standardError.default {
constructor(code, msg, props = {}) {
if (typeof code != 'number') {
throw new TypeError(`Non-numeric HTTP code`);
}
Expand All @@ -31,9 +29,8 @@ class RpcError extends _standardError2.default {
msg = null;
}

props.code = code;
super(msg || _http.STATUS_CODES[code], props);

this.code = code;
}

get status() {
Expand All @@ -44,14 +41,15 @@ class RpcError extends _standardError2.default {
Object.defineProperty(this, 'status', {
configurable: true,
enumerable: true,
value: value,
value,
writable: true
});
}

toString() {
return `${this.name}: ${this.code} ${this.message}`;
}

}
exports.default = RpcError;
module.exports = exports['default'];

exports.default = RpcError;
16 changes: 7 additions & 9 deletions dist/src/errors/standard-error.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
'use strict';
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;

var _standardError = require('standard-error');

var _standardError2 = _interopRequireDefault(_standardError);
var _standardError = _interopRequireDefault(require("standard-error"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
* Export `StandardError` class.
* Module dependencies.
*/

class StandardError extends _standardError2.default {}
exports.default = StandardError;
/**
* Module dependencies.
* Export `StandardError` class.
*/
class StandardError extends _standardError.default {}

module.exports = exports['default'];
exports.default = StandardError;
Loading

0 comments on commit c035b34

Please sign in to comment.