You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

20 lines
685 B

"use strict";
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;