hyperdeck-js-lib
Advanced tools
Comparing version 1.4.1 to 1.5.0
{ | ||
"name": "hyperdeck-js-lib", | ||
"version": "1.4.1", | ||
"version": "1.5.0", | ||
"description": "A javascript library for communication with the Blackmagic Hyperdeck.", | ||
@@ -13,9 +13,9 @@ "main": "src/index.js", | ||
"gulp-jshint": "^2.0.0", | ||
"gulp-mocha": "^4.3.1", | ||
"gulp-mocha": "^6.0.0", | ||
"jshint": "^2.9.1", | ||
"jshint-stylish": "^2.1.0", | ||
"mocha": "^4.0.0", | ||
"proxyquire": "^1.7.4", | ||
"mocha": "^5.0.0", | ||
"proxyquire": "^2.0.0", | ||
"should": "^13.1.0", | ||
"sinon": "^4.0.0" | ||
"sinon": "^6.0.0" | ||
}, | ||
@@ -22,0 +22,0 @@ "scripts": { |
@@ -42,9 +42,6 @@ var util = require('util'); | ||
this.slotInfo = function (id) { | ||
if (id === 0 || id === 1 || id === 2){ //TO DO find if it's 0-1 or 1-2 | ||
if (typeof id === 'number') { | ||
return this.makeRequest('slot info: slot id: ' + id); | ||
} else{ | ||
if (!id){ | ||
return this.makeRequest('slot info'); | ||
} | ||
throw new Error('Slot ID Value out of range'); | ||
return this.makeRequest('slot info'); | ||
} | ||
@@ -51,0 +48,0 @@ }; |
Sorry, the diff of this file is not supported yet
45959
1029