Update deps.

This commit is contained in:
Julien Fontanet 2016-03-15 15:42:14 +01:00
parent 7d7cc56527
commit cbfb94afcb
2 changed files with 8 additions and 8 deletions

View File

@ -28,22 +28,22 @@
"node": ">=0.12"
},
"dependencies": {
"jsonrpc-websocket-client": "0.0.1-4",
"lodash.startswith": "^3.0.1",
"jsonrpc-websocket-client": "0.0.1-5",
"lodash.startswith": "^4.0.0",
"make-error": "^1.0.4"
},
"devDependencies": {
"babel-cli": "^6.3.17",
"babel-eslint": "^5.0.0-beta6",
"babel-eslint": "^6.0.0-beta.6",
"babel-preset-es2015": "^6.3.13",
"babel-preset-stage-0": "^6.3.13",
"clarify": "^1.0.5",
"dependency-check": "^2.5.1",
"mocha": "^2.3.4",
"must": "^0.13.1",
"nyc": "^5.0.0",
"nyc": "^6.1.1",
"source-map-support": "^0.4.0",
"standard": "^5.4.1",
"standard": "^6.0.8",
"trace": "^2.0.1"
},
"scripts": {

View File

@ -18,7 +18,7 @@ export class XoError extends BaseError {}
// TODO: implement call(...).retry(predicate)
export default class Xo extends JsonRpcWebSocketClient {
constructor (opts) {
super(`${opts && opts.url || '.' }/api/`)
super(`${opts && opts.url || '.'}/api/`)
this._credentials = opts && opts.credentials || null
this._user = null
@ -45,7 +45,7 @@ export default class Xo extends JsonRpcWebSocketClient {
}
const promise = super.call(method, args)
promise.retry = predicate => promise.catch(error => {
promise.retry = (predicate) => promise.catch((error) => {
i = (i || 0) + 1
if (predicate(error, i)) {
return this.call(method, args, i)
@ -63,7 +63,7 @@ export default class Xo extends JsonRpcWebSocketClient {
}
_signIn (credentials) {
return super.call('session.signIn', credentials).then(user => {
return super.call('session.signIn', credentials).then((user) => {
this._user = user
this.emit('authenticated')
})