29 lines
807 B
TypeScript
29 lines
807 B
TypeScript
// Module ID: 14395
|
|
// Function ID: 14396
|
|
// Name: unsupportedCommand
|
|
// Dependencies: [673, 9516, 2]
|
|
|
|
// Module 14395 (unsupportedCommand)
|
|
import set from "set" /* 2 */;
|
|
import ME from "ME" /* 673 */;
|
|
import prototypeDefault from "prototype" /* 9516 */;
|
|
|
|
const RPCErrors = ME.RPCErrors;
|
|
let obj = {
|
|
handler(cmd) {
|
|
let tmp = prototypeDefault;
|
|
tmp = new tmp({ errorCode: RPCErrors.INVALID_COMMAND }, "Unsupported command: " + cmd.cmd);
|
|
throw tmp;
|
|
}
|
|
};
|
|
obj = {
|
|
handler(cmd) {
|
|
let tmp = prototypeDefault;
|
|
tmp = new tmp({ errorCode: RPCErrors.INVALID_COMMAND }, "Deprecated command: " + cmd.cmd);
|
|
throw tmp;
|
|
}
|
|
};
|
|
const result = set.fileFinishedImporting("modules/rpc/helpers/unavailableCommand.tsx");
|
|
|
|
export const unsupportedCommand = obj;
|
|
export const deprecatedCommand = obj;
|