ACL_GETUSER.js 530 B

123456789101112131415161718
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.transformReply = exports.transformArguments = void 0;
  4. function transformArguments(username) {
  5. return ['ACL', 'GETUSER', username];
  6. }
  7. exports.transformArguments = transformArguments;
  8. function transformReply(reply) {
  9. return {
  10. flags: reply[1],
  11. passwords: reply[3],
  12. commands: reply[5],
  13. keys: reply[7],
  14. channels: reply[9],
  15. selectors: reply[11]
  16. };
  17. }
  18. exports.transformReply = transformReply;