Skip to content

Commit 9405dd8

Browse files
Rui Marinhojoaopaulofonseca
authored andcommitted
Update dependencies
1 parent 73c702f commit 9405dd8

File tree

4 files changed

+3304
-24
lines changed

4 files changed

+3304
-24
lines changed

.babelrc

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22
"env": {
33
"test": {
44
"plugins": [
5-
"add-module-exports",
6-
["transform-async-to-module-method", {
7-
"module": "bluebird",
8-
"method": "coroutine"
9-
}],
10-
"istanbul"
11-
]
5+
"@babel/transform-async-to-generator",
6+
"istanbul"
7+
]
128
}
139
},
14-
"plugins": ["add-module-exports"],
15-
"presets": ["es2015-node4"]
10+
"presets": [
11+
["@babel/preset-env", {
12+
"targets": {
13+
"node": "current"
14+
}
15+
}]
16+
]
1617
}

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,21 @@
4444
"standard-error": "^1.1.0"
4545
},
4646
"devDependencies": {
47-
"babel-cli": "^6.4.0",
48-
"babel-eslint": "^8.0.1",
49-
"babel-plugin-add-module-exports": "^0.2.1",
50-
"babel-plugin-istanbul": "^2.0.0",
51-
"babel-plugin-transform-async-to-module-method": "^6.5.2",
52-
"babel-preset-es2015-node4": "^2.0.2",
53-
"babel-register": "^6.3.13",
54-
"eslint": "^4.4.1",
47+
"@babel/cli": "^7.0.0-beta.32",
48+
"@babel/core": "^7.0.0-beta.32",
49+
"@babel/plugin-transform-async-to-generator": "^7.0.0-beta.32",
50+
"@babel/polyfill": "^7.0.0-beta.32",
51+
"@babel/preset-env": "^7.0.0-beta.32",
52+
"@babel/register": "^7.0.0-beta.32",
53+
"babel-eslint": "^8.0.0",
54+
"babel-plugin-istanbul": "^4.1.5",
55+
"eslint": "4.11.0",
5556
"eslint-config-uphold": "0.0.1",
56-
"isparta": "^4.0.0",
57-
"mocha": "^3.0.2",
58-
"nock": "^8.0.0",
59-
"nyc": "^8.1.0",
57+
"mocha": "^4.0.1",
58+
"nock": "^9.1.0",
59+
"nyc": "^11.3.0",
6060
"pre-commit": "^1.1.2",
61-
"should": "^11.1.0"
61+
"should": "^13.1.3"
6262
},
6363
"engines": {
6464
"node": ">=4"
@@ -72,7 +72,7 @@
7272
"sourceMap": false
7373
},
7474
"options": {
75-
"mocha": "--compilers js:babel-register --timeout 20000 --recursive --require should"
75+
"mocha": "--require @babel/register --require @babel/polyfill --timeout 20000 --recursive --require should"
7676
},
7777
"pre-commit": [
7878
"lint"

src/index.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,13 @@ _.forOwn(methods, (range, method) => {
261261
});
262262

263263
/**
264-
* Export Client class.
264+
* Export Client class (ESM).
265265
*/
266266

267267
export default Client;
268+
269+
/**
270+
* Export Client class (CJS) for compatibility with require('bitcoin-core').
271+
*/
272+
273+
module.exports = Client;

0 commit comments

Comments
 (0)