Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
CodeInjector.prototype.stop = function () {
console.log('stoping code injector');
var close = Q.nbind(this.server.close, this.server);
return close();
};
module.exports.findOneGame = function(game_id) {
var findOneGame = Q.nbind(db.games.findOne, db.games);
return findOneGame({_id: new ObjectID(game_id)});
};
function send_packet(device, data) {
var bmRequestType = usb.LIBUSB_ENDPOINT_OUT | usb.LIBUSB_REQUEST_TYPE_CLASS | usb.LIBUSB_RECIPIENT_INTERFACE;
var bRequest = 9;
var wValue = 0x0300;
var wIndex = 0;
return Q.nbind(device.controlTransfer, device)(
bmRequestType, bRequest, wValue, wIndex, data
);
}
function wrapAWS(eb, s3) {
return {
describeApplications: Q.nbind(eb.describeApplications, eb),
describeEnvironments: Q.nbind(eb.describeEnvironments, eb),
putS3Object: Q.nbind(s3.putObject, s3),
createApplicationVersion: Q.nbind(eb.createApplicationVersion, eb),
updateEnvironment: Q.nbind(eb.updateEnvironment, eb),
createConfigurationTemplate: Q.nbind(eb.createConfigurationTemplate, eb),
swapEnvironmentCNAMEs: Q.nbind(eb.swapEnvironmentCNAMEs, eb),
createEnvironment: Q.nbind(eb.createEnvironment, eb)
};
}
newMod[method] = function() {
for (var args = [],
$__2 = 0; $__2 < arguments.length; $__2++)
args[$__2] = arguments[$__2];
return Q.nbind(original, this).apply(null, $traceurRuntime.toObject(args));
};
}));