Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit f1f6937

Browse files
committed
Merge pull request #209 from ipfs/update-deps
refactor: Update dependencies to latest
2 parents 2bcb488 + 09ebc56 commit f1f6937

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+201
-176
lines changed

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const runSequence = require('run-sequence')
55

66
require('require-dir')('tasks')
77

8-
gulp.task('default', done => {
8+
gulp.task('default', (done) => {
99
runSequence(
1010
'lint',
1111
'test',

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,21 @@
2424
},
2525
"devDependencies": {
2626
"babel-core": "^6.1.21",
27-
"babel-eslint": "^5.0.0-beta6",
27+
"babel-eslint": "^5.0.0-beta9",
2828
"babel-loader": "^6.2.0",
2929
"babel-plugin-transform-runtime": "^6.1.18",
3030
"babel-preset-es2015": "^6.0.15",
3131
"babel-runtime": "^6.3.19",
3232
"chai": "^3.4.1",
3333
"concurrently": "^1.0.0",
34-
"eslint-config-standard": "^4.4.0",
34+
"eslint": "^2.0.0-rc.0",
35+
"eslint-config-standard": "^5.1.0",
36+
"eslint-plugin-promise": "^1.0.8",
3537
"eslint-plugin-standard": "^1.3.1",
3638
"glob-stream": "5.3.1",
3739
"gulp": "^3.9.0",
3840
"gulp-bump": "^1.0.0",
39-
"gulp-eslint": "^1.0.0",
41+
"gulp-eslint": "^2.0.0-rc-3",
4042
"gulp-filter": "^3.0.1",
4143
"gulp-git": "^1.6.0",
4244
"gulp-load-plugins": "^1.0.0",

src/api/add.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const Wreck = require('wreck')
22

3-
module.exports = send => {
3+
module.exports = (send) => {
44
return function add (files, opts, cb) {
55
if (typeof (opts) === 'function' && cb === undefined) {
66
cb = opts

src/api/block.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const argCommand = require('../cmd-helpers').argCommand
44

5-
module.exports = send => {
5+
module.exports = (send) => {
66
return {
77
get: argCommand(send, 'block/get'),
88
stat: argCommand(send, 'block/stat'),

src/api/cat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
const argCommand = require('../cmd-helpers').argCommand
44

5-
module.exports = send => {
5+
module.exports = (send) => {
66
return argCommand(send, 'cat')
77
}

src/api/commands.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
const command = require('../cmd-helpers').command
44

5-
module.exports = send => {
5+
module.exports = (send) => {
66
return command(send, 'commands')
77
}

src/api/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const argCommand = require('../cmd-helpers').argCommand
44

5-
module.exports = send => {
5+
module.exports = (send) => {
66
return {
77
get: argCommand(send, 'config'),
88
set (key, value, opts, cb) {

src/api/dht.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const argCommand = require('../cmd-helpers').argCommand
44

5-
module.exports = send => {
5+
module.exports = (send) => {
66
return {
77
findprovs: argCommand(send, 'dht/findprovs'),
88
get (key, opts, cb) {
@@ -37,8 +37,8 @@ module.exports = send => {
3737

3838
return send('dht/get', key, opts)
3939
.then(
40-
res => handleResult(done, null, res),
41-
err => handleResult(done, err)
40+
(res) => handleResult(done, null, res),
41+
(err) => handleResult(done, err)
4242
)
4343
}
4444

src/api/diag.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const command = require('../cmd-helpers').command
44

5-
module.exports = send => {
5+
module.exports = (send) => {
66
return {
77
net: command(send, 'diag/net'),
88
sys: command(send, 'diag/sys')

src/api/id.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22

3-
module.exports = send => {
3+
module.exports = (send) => {
44
return function id (idParam, cb) {
55
if (typeof idParam === 'function') {
66
cb = idParam

0 commit comments

Comments
 (0)