fix eslint for opus

This commit is contained in:
Amish Shah
2016-08-25 22:02:36 +01:00
parent ccf513a2fc
commit 7ba37a3511
3 changed files with 5 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -26,7 +26,6 @@
}, },
"homepage": "https://github.com/hydrabolt/discord.js#readme", "homepage": "https://github.com/hydrabolt/discord.js#readme",
"dependencies": { "dependencies": {
"node-opus": "^0.1.13",
"object.values": "^1.0.3", "object.values": "^1.0.3",
"superagent": "^1.5.0", "superagent": "^1.5.0",
"tweetnacl": "^0.14.3", "tweetnacl": "^0.14.3",
@@ -36,6 +35,9 @@
"fs-extra": "^0.30.0", "fs-extra": "^0.30.0",
"jsdoc-parse": "^1.2.7" "jsdoc-parse": "^1.2.7"
}, },
"optionalDependencies": {
"node-opus": "^0.1.13"
},
"engines": { "engines": {
"node": ">=0.12.7" "node": ">=0.12.7"
}, },

View File

@@ -6,6 +6,7 @@ class NodeOpusEngine extends OpusEngine {
constructor(player) { constructor(player) {
super(player); super(player);
try { try {
// eslint-disable-next-line import/no-unresolved
opus = require('node-opus'); opus = require('node-opus');
} catch (err) { } catch (err) {
throw err; throw err;