recoder-code
Version:
Complete AI-powered development platform with ML model training, plugin registry, real-time collaboration, monitoring, infrastructure automation, and enterprise deployment capabilities
21 lines (20 loc) • 685 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformReply = exports.transformArguments = exports.IS_READ_ONLY = void 0;
const generic_transformers_1 = require("./generic-transformers");
exports.IS_READ_ONLY = true;
function transformArguments(cursor, options) {
const args = (0, generic_transformers_1.pushScanArguments)(['SCAN'], cursor, options);
if (options?.TYPE) {
args.push('TYPE', options.TYPE);
}
return args;
}
exports.transformArguments = transformArguments;
function transformReply([cursor, keys]) {
return {
cursor: Number(cursor),
keys
};
}
exports.transformReply = transformReply;