awesome-compose/nginx-nodejs-redis/web/node_modules/redis/lib/command.js
ajeetraina 71b622220f modified configuration file for web
Signed-off-by: ajeetraina <ajeetraina@gmail.com>
2022-03-13 13:09:07 +05:30

17 lines
436 B
JavaScript

'use strict';
var betterStackTraces = /development/i.test(process.env.NODE_ENV) || /\bredis\b/i.test(process.env.NODE_DEBUG);
function Command (command, args, callback, call_on_write) {
this.command = command;
this.args = args;
this.buffer_args = false;
this.callback = callback;
this.call_on_write = call_on_write;
if (betterStackTraces) {
this.error = new Error();
}
}
module.exports = Command;