From 72329aaa28bcbb678443900233cc47cff7ba1509 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 3 Mar 2017 18:45:40 +0100 Subject: [PATCH] Update bittorrent-tracker and standard to v9 --- client/package.json | 2 +- package.json | 4 ++-- server/controllers/api/requests.js | 1 - server/controllers/api/videos.js | 1 - server/controllers/static.js | 1 - server/lib/base-request-scheduler.js | 1 - server/lib/request-scheduler.js | 1 - server/lib/request-video-event-scheduler.js | 1 - server/lib/request-video-qadu-scheduler.js | 1 - server/tests/api/check-params/pods.js | 2 ++ server/tests/api/check-params/remotes.js | 2 ++ server/tests/api/check-params/requests.js | 2 ++ server/tests/api/check-params/users.js | 2 ++ server/tests/api/check-params/video-abuses.js | 2 ++ server/tests/api/check-params/videos.js | 2 ++ server/tests/api/friends-advanced.js | 2 ++ server/tests/api/friends-basic.js | 2 ++ server/tests/api/multiple-pods.js | 2 ++ server/tests/api/requests.js | 2 ++ server/tests/api/single-pod.js | 2 ++ server/tests/api/users.js | 2 ++ server/tests/api/video-abuse.js | 2 ++ 22 files changed, 29 insertions(+), 10 deletions(-) diff --git a/client/package.json b/client/package.json index 666a3f37d..41189231f 100644 --- a/client/package.json +++ b/client/package.json @@ -88,7 +88,7 @@ "devDependencies": { "add-asset-html-webpack-plugin": "^1.0.2", "codelyzer": "^2.0.0", - "standard": "^8.0.0", + "standard": "^9.0.0", "webpack-bundle-analyzer": "^2.2.1", "webpack-dll-bundles-plugin": "^1.0.0-beta.5" } diff --git a/package.json b/package.json index 4197f919a..c4c56ebdd 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "dependencies": { "async": "^2.0.0", "bcrypt": "^1.0.2", - "bittorrent-tracker": "^8.0.0", + "bittorrent-tracker": "^9.0.0", "body-parser": "^1.12.4", "concurrently": "^3.1.0", "config": "^1.14.0", @@ -77,7 +77,7 @@ "chai": "^3.3.0", "commander": "^2.9.0", "mocha": "^3.0.1", - "standard": "^8.0.0", + "standard": "^9.0.0", "supertest": "^3.0.0", "webtorrent": "^0.98.0" }, diff --git a/server/controllers/api/requests.js b/server/controllers/api/requests.js index be352113e..6fd5753ac 100644 --- a/server/controllers/api/requests.js +++ b/server/controllers/api/requests.js @@ -3,7 +3,6 @@ const express = require('express') const parallel = require('async/parallel') -const constants = require('../../initializers/constants') const friends = require('../../lib/friends') const middlewares = require('../../middlewares') const admin = middlewares.admin diff --git a/server/controllers/api/videos.js b/server/controllers/api/videos.js index d64ed4e4e..dfd8699e6 100644 --- a/server/controllers/api/videos.js +++ b/server/controllers/api/videos.js @@ -443,4 +443,3 @@ function reportVideoAbuse (req, res, finalCallback) { return finalCallback(null) }) } - diff --git a/server/controllers/static.js b/server/controllers/static.js index a91ff044d..810b752af 100644 --- a/server/controllers/static.js +++ b/server/controllers/static.js @@ -43,4 +43,3 @@ router.use( // --------------------------------------------------------------------------- module.exports = router - diff --git a/server/lib/base-request-scheduler.js b/server/lib/base-request-scheduler.js index 1c6b78297..4709c7960 100644 --- a/server/lib/base-request-scheduler.js +++ b/server/lib/base-request-scheduler.js @@ -8,7 +8,6 @@ const logger = require('../helpers/logger') const requests = require('../helpers/requests') module.exports = class BaseRequestScheduler { - constructor (options) { this.lastRequestTimestamp = 0 this.timer = null diff --git a/server/lib/request-scheduler.js b/server/lib/request-scheduler.js index 6b6535519..f6020e746 100644 --- a/server/lib/request-scheduler.js +++ b/server/lib/request-scheduler.js @@ -6,7 +6,6 @@ const db = require('../initializers/database') const logger = require('../helpers/logger') module.exports = class RequestScheduler extends BaseRequestScheduler { - constructor () { super() diff --git a/server/lib/request-video-event-scheduler.js b/server/lib/request-video-event-scheduler.js index 5ea5631b0..f178df49e 100644 --- a/server/lib/request-video-event-scheduler.js +++ b/server/lib/request-video-event-scheduler.js @@ -5,7 +5,6 @@ const constants = require('../initializers/constants') const db = require('../initializers/database') module.exports = class RequestVideoEventScheduler extends BaseRequestScheduler { - constructor () { super() diff --git a/server/lib/request-video-qadu-scheduler.js b/server/lib/request-video-qadu-scheduler.js index 33b1c6d28..bfccc5234 100644 --- a/server/lib/request-video-qadu-scheduler.js +++ b/server/lib/request-video-qadu-scheduler.js @@ -6,7 +6,6 @@ const db = require('../initializers/database') const logger = require('../helpers/logger') module.exports = class RequestVideoQaduScheduler extends BaseRequestScheduler { - constructor () { super() diff --git a/server/tests/api/check-params/pods.js b/server/tests/api/check-params/pods.js index 22cbdb30f..2567fff5f 100644 --- a/server/tests/api/check-params/pods.js +++ b/server/tests/api/check-params/pods.js @@ -1,3 +1,5 @@ +/* eslint-disable no-unused-expressions */ + 'use strict' const request = require('supertest') diff --git a/server/tests/api/check-params/remotes.js b/server/tests/api/check-params/remotes.js index f6a49d6e2..96361c643 100644 --- a/server/tests/api/check-params/remotes.js +++ b/server/tests/api/check-params/remotes.js @@ -1,3 +1,5 @@ +/* eslint-disable no-unused-expressions */ + 'use strict' const series = require('async/series') diff --git a/server/tests/api/check-params/requests.js b/server/tests/api/check-params/requests.js index 08f58db43..0ce5582d6 100644 --- a/server/tests/api/check-params/requests.js +++ b/server/tests/api/check-params/requests.js @@ -1,3 +1,5 @@ +/* eslint-disable no-unused-expressions */ + 'use strict' const request = require('supertest') diff --git a/server/tests/api/check-params/users.js b/server/tests/api/check-params/users.js index debf63cf6..6edb54660 100644 --- a/server/tests/api/check-params/users.js +++ b/server/tests/api/check-params/users.js @@ -1,3 +1,5 @@ +/* eslint-disable no-unused-expressions */ + 'use strict' const request = require('supertest') diff --git a/server/tests/api/check-params/video-abuses.js b/server/tests/api/check-params/video-abuses.js index 8cb4ccdc1..7308637e2 100644 --- a/server/tests/api/check-params/video-abuses.js +++ b/server/tests/api/check-params/video-abuses.js @@ -1,3 +1,5 @@ +/* eslint-disable no-unused-expressions */ + 'use strict' const request = require('supertest') diff --git a/server/tests/api/check-params/videos.js b/server/tests/api/check-params/videos.js index fac903715..f8549a95b 100644 --- a/server/tests/api/check-params/videos.js +++ b/server/tests/api/check-params/videos.js @@ -1,3 +1,5 @@ +/* eslint-disable no-unused-expressions */ + 'use strict' const chai = require('chai') diff --git a/server/tests/api/friends-advanced.js b/server/tests/api/friends-advanced.js index 708138bc9..15ca1a37c 100644 --- a/server/tests/api/friends-advanced.js +++ b/server/tests/api/friends-advanced.js @@ -1,3 +1,5 @@ +/* eslint-disable no-unused-expressions */ + 'use strict' const chai = require('chai') diff --git a/server/tests/api/friends-basic.js b/server/tests/api/friends-basic.js index 62c40df7b..658e54829 100644 --- a/server/tests/api/friends-basic.js +++ b/server/tests/api/friends-basic.js @@ -1,3 +1,5 @@ +/* eslint-disable no-unused-expressions */ + 'use strict' const chai = require('chai') diff --git a/server/tests/api/multiple-pods.js b/server/tests/api/multiple-pods.js index 94b62e27a..e02b6180b 100644 --- a/server/tests/api/multiple-pods.js +++ b/server/tests/api/multiple-pods.js @@ -1,3 +1,5 @@ +/* eslint-disable no-unused-expressions */ + 'use strict' const chai = require('chai') diff --git a/server/tests/api/requests.js b/server/tests/api/requests.js index 933ed29b4..215c2a8f3 100644 --- a/server/tests/api/requests.js +++ b/server/tests/api/requests.js @@ -1,3 +1,5 @@ +/* eslint-disable no-unused-expressions */ + 'use strict' const chai = require('chai') diff --git a/server/tests/api/single-pod.js b/server/tests/api/single-pod.js index 40c33686f..87d0e9a71 100644 --- a/server/tests/api/single-pod.js +++ b/server/tests/api/single-pod.js @@ -1,3 +1,5 @@ +/* eslint-disable no-unused-expressions */ + 'use strict' const chai = require('chai') diff --git a/server/tests/api/users.js b/server/tests/api/users.js index df075f48a..bd95e78c2 100644 --- a/server/tests/api/users.js +++ b/server/tests/api/users.js @@ -1,3 +1,5 @@ +/* eslint-disable no-unused-expressions */ + 'use strict' const chai = require('chai') diff --git a/server/tests/api/video-abuse.js b/server/tests/api/video-abuse.js index 58db17c42..0c4341860 100644 --- a/server/tests/api/video-abuse.js +++ b/server/tests/api/video-abuse.js @@ -1,3 +1,5 @@ +/* eslint-disable no-unused-expressions */ + 'use strict' const chai = require('chai') -- 2.25.1