Skip to content

Commit 393359d

Browse files
committed
Release 1.0.0
1 parent 2a6c829 commit 393359d

File tree

8 files changed

+715
-1
lines changed

8 files changed

+715
-1
lines changed

CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Changelog
2+
3+
## [1.0.0](https://github.com/seegno/bitcoin-core/tree/1.0.0) (2016-03-06)
4+
**Merged pull requests:**
5+
6+
- Add a better changelog sed [\#10](https://github.com/seegno/bitcoin-core/pull/10) ([ruimarinho](https://github.com/ruimarinho))
7+
- Use async/await on tests [\#9](https://github.com/seegno/bitcoin-core/pull/9) ([ruimarinho](https://github.com/ruimarinho))
8+
- Fix Docker hosts in CI environment [\#8](https://github.com/seegno/bitcoin-core/pull/8) ([ruimarinho](https://github.com/ruimarinho))
9+
- Minor process improvements [\#7](https://github.com/seegno/bitcoin-core/pull/7) ([ruimarinho](https://github.com/ruimarinho))
10+
- Call `done\(\)` when testing callbacks [\#6](https://github.com/seegno/bitcoin-core/pull/6) ([ruimarinho](https://github.com/ruimarinho))
11+
- Allow extra ips in docker-compose.yml [\#5](https://github.com/seegno/bitcoin-core/pull/5) ([ruimarinho](https://github.com/ruimarinho))
12+
- Add support for 0.12 [\#4](https://github.com/seegno/bitcoin-core/pull/4) ([ruimarinho](https://github.com/ruimarinho))
13+
- Add new 0.12 version methods [\#3](https://github.com/seegno/bitcoin-core/pull/3) ([pedrobranco](https://github.com/pedrobranco))

dist/src/errors/rpc-error.js

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
'use strict';
2+
3+
Object.defineProperty(exports, "__esModule", {
4+
value: true
5+
});
6+
7+
var _http = require('http');
8+
9+
var _standardError = require('./standard-error');
10+
11+
var _standardError2 = _interopRequireDefault(_standardError);
12+
13+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14+
15+
/**
16+
* Export `RpcError` class.
17+
*/
18+
19+
/**
20+
* Module dependencies.
21+
*/
22+
23+
class RpcError extends _standardError2.default {
24+
constructor(code, msg, props) {
25+
if (typeof code != 'number') {
26+
throw new TypeError(`Non-numeric HTTP code`);
27+
}
28+
29+
if (typeof msg == 'object' && msg !== null) {
30+
props = msg;
31+
msg = null;
32+
}
33+
34+
super(msg || _http.STATUS_CODES[code], props);
35+
36+
this.code = code;
37+
}
38+
39+
get status() {
40+
return this.code;
41+
}
42+
43+
set status(value) {
44+
Object.defineProperty(this, 'status', {
45+
configurable: true,
46+
enumerable: true,
47+
value,
48+
writable: true
49+
});
50+
}
51+
52+
toString() {
53+
return `${ this.name }: ${ this.code } ${ this.message }`;
54+
}
55+
}
56+
exports.default = RpcError;
57+
module.exports = exports['default'];

dist/src/errors/standard-error.js

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
'use strict';
2+
3+
Object.defineProperty(exports, "__esModule", {
4+
value: true
5+
});
6+
7+
var _standardError = require('standard-error');
8+
9+
var _standardError2 = _interopRequireDefault(_standardError);
10+
11+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12+
13+
/**
14+
* Export `StandardError` class.
15+
*/
16+
17+
class StandardError extends _standardError2.default {}
18+
exports.default = StandardError;
19+
/**
20+
* Module dependencies.
21+
*/
22+
23+
module.exports = exports['default'];

0 commit comments

Comments
 (0)