Skip to content

Commit 2469ac5

Browse files
Rui Marinhoruimarinho
Rui Marinho
authored andcommitted
Update dependencies
1 parent 81296e8 commit 2469ac5

File tree

3 files changed

+34
-27
lines changed

3 files changed

+34
-27
lines changed

.babelrc

+10-9
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": "4"
14+
}
15+
}]
16+
]
1617
}

package.json

+17-17
Original file line numberDiff line numberDiff line change
@@ -34,31 +34,31 @@
3434
"version": "npm run changelog --future-release=$npm_package_version && npm run transpile && git add -A CHANGELOG.md dist"
3535
},
3636
"dependencies": {
37-
"@uphold/request-logger": "^1.2.0",
37+
"@uphold/request-logger": "^2.0.0",
3838
"bluebird": "^3.4.1",
39-
"debugnyan": "^1.0.0",
39+
"debugnyan": "^2.0.1",
4040
"json-bigint": "^0.2.0",
4141
"lodash": "^4.0.0",
42-
"request": "^2.53.0",
42+
"request": "^2.83.0",
4343
"semver": "^5.1.0",
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.4",
48+
"@babel/core": "^7.0.0-beta.4",
49+
"@babel/plugin-transform-async-to-generator": "^7.0.0-beta.4",
50+
"@babel/polyfill": "^7.0.0-beta.4",
51+
"@babel/preset-env": "^7.0.0-beta.4",
52+
"@babel/register": "^7.0.0-beta.4",
53+
"babel-eslint": "^8.0.0",
54+
"babel-plugin-istanbul": "^4.1.5",
55+
"eslint": "^4.10.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.0.27",
59+
"nyc": "^11.2.1",
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": "--compilers js:@babel/register --timeout 20000 --recursive --require should --require @babel/polyfill"
7676
},
7777
"pre-commit": [
7878
"lint"

src/index.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,13 @@ _.forOwn(methods, (range, method) => {
253253
});
254254

255255
/**
256-
* Export Client class.
256+
* Export Client class (ESM).
257257
*/
258258

259259
export default Client;
260+
261+
/**
262+
* Export Client class (CJS) for compatibility with require('bitcoin-core').
263+
*/
264+
265+
module.exports = Client;

0 commit comments

Comments
 (0)