Skip to content

Commit

Permalink
Release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ruimarinho committed Mar 6, 2016
1 parent 2a6c829 commit 393359d
Show file tree
Hide file tree
Showing 8 changed files with 715 additions and 1 deletion.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Changelog

## [1.0.0](https://github.com/seegno/bitcoin-core/tree/1.0.0) (2016-03-06)
**Merged pull requests:**

- Add a better changelog sed [\#10](https://github.com/seegno/bitcoin-core/pull/10) ([ruimarinho](https://github.com/ruimarinho))
- Use async/await on tests [\#9](https://github.com/seegno/bitcoin-core/pull/9) ([ruimarinho](https://github.com/ruimarinho))
- Fix Docker hosts in CI environment [\#8](https://github.com/seegno/bitcoin-core/pull/8) ([ruimarinho](https://github.com/ruimarinho))
- Minor process improvements [\#7](https://github.com/seegno/bitcoin-core/pull/7) ([ruimarinho](https://github.com/ruimarinho))
- Call `done\(\)` when testing callbacks [\#6](https://github.com/seegno/bitcoin-core/pull/6) ([ruimarinho](https://github.com/ruimarinho))
- Allow extra ips in docker-compose.yml [\#5](https://github.com/seegno/bitcoin-core/pull/5) ([ruimarinho](https://github.com/ruimarinho))
- Add support for 0.12 [\#4](https://github.com/seegno/bitcoin-core/pull/4) ([ruimarinho](https://github.com/ruimarinho))
- Add new 0.12 version methods [\#3](https://github.com/seegno/bitcoin-core/pull/3) ([pedrobranco](https://github.com/pedrobranco))
57 changes: 57 additions & 0 deletions dist/src/errors/rpc-error.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
'use strict';

Object.defineProperty(exports, "__esModule", {
value: true
});

var _http = require('http');

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

var _standardError2 = _interopRequireDefault(_standardError);

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

/**
* Export `RpcError` class.
*/

/**
* Module dependencies.
*/

class RpcError extends _standardError2.default {
constructor(code, msg, props) {
if (typeof code != 'number') {
throw new TypeError(`Non-numeric HTTP code`);
}

if (typeof msg == 'object' && msg !== null) {
props = msg;
msg = null;
}

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

this.code = code;
}

get status() {
return this.code;
}

set status(value) {
Object.defineProperty(this, 'status', {
configurable: true,
enumerable: true,
value,
writable: true
});
}

toString() {
return `${ this.name }: ${ this.code } ${ this.message }`;
}
}
exports.default = RpcError;
module.exports = exports['default'];
23 changes: 23 additions & 0 deletions dist/src/errors/standard-error.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
'use strict';

Object.defineProperty(exports, "__esModule", {
value: true
});

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

var _standardError2 = _interopRequireDefault(_standardError);

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

/**
* Export `StandardError` class.
*/

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

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

0 comments on commit 393359d

Please sign in to comment.