-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2a6c829
commit 393359d
Showing
8 changed files
with
715 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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']; |
Oops, something went wrong.