@redis/search
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -102,2 +102,3 @@ import { RedisCommandArgument, RedisCommandArguments } from '@redis/client/dist/lib/commands'; | ||
DIALECT?: number; | ||
TIMEOUT?: number; | ||
} | ||
@@ -104,0 +105,0 @@ export declare const FIRST_KEY_INDEX = 1; |
@@ -95,2 +95,5 @@ "use strict"; | ||
} | ||
if (options?.TIMEOUT !== undefined) { | ||
args.push('TIMEOUT', options.TIMEOUT.toString()); | ||
} | ||
return args; | ||
@@ -97,0 +100,0 @@ } |
import { RedisCommandArgument, RedisCommandArguments } from '@redis/client/dist/lib/commands'; | ||
export declare const FIRST_KEY_INDEX = 1; | ||
export declare const IS_READ_ONLY = true; | ||
export declare function transformArguments(index: RedisCommandArgument, cursor: number): RedisCommandArguments; | ||
interface CursorReadOptions { | ||
COUNT?: number; | ||
} | ||
export declare function transformArguments(index: RedisCommandArgument, cursor: number, options?: CursorReadOptions): RedisCommandArguments; | ||
export { transformReply } from './AGGREGATE_WITHCURSOR'; |
@@ -6,4 +6,4 @@ "use strict"; | ||
exports.IS_READ_ONLY = true; | ||
function transformArguments(index, cursor) { | ||
return [ | ||
function transformArguments(index, cursor, options) { | ||
const args = [ | ||
'FT.CURSOR', | ||
@@ -14,2 +14,6 @@ 'READ', | ||
]; | ||
if (options?.COUNT) { | ||
args.push('COUNT', options.COUNT.toString()); | ||
} | ||
return args; | ||
} | ||
@@ -16,0 +20,0 @@ exports.transformArguments = transformArguments; |
@@ -365,2 +365,5 @@ "use strict"; | ||
} | ||
if (options?.TIMEOUT !== undefined) { | ||
args.push('TIMEOUT', options.TIMEOUT.toString()); | ||
} | ||
return args; | ||
@@ -367,0 +370,0 @@ } |
@@ -37,2 +37,3 @@ import { RedisCommandArguments } from '@redis/client/dist/lib/commands'; | ||
DIALECT?: number; | ||
TIMEOUT?: number; | ||
} | ||
@@ -39,0 +40,0 @@ export declare function transformArguments(index: string, query: string, options?: SearchOptions): RedisCommandArguments; |
{ | ||
"name": "@redis/search", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"license": "MIT", | ||
@@ -21,10 +21,22 @@ "main": "./dist/index.js", | ||
"@redis/test-utils": "*", | ||
"@types/node": "^18.14.1", | ||
"@types/node": "^20.2.3", | ||
"nyc": "^15.1.0", | ||
"release-it": "^15.6.0", | ||
"release-it": "^15.10.3", | ||
"source-map-support": "^0.5.21", | ||
"ts-node": "^10.9.1", | ||
"typedoc": "^0.23.25", | ||
"typescript": "^4.9.5" | ||
} | ||
"typedoc": "^0.24.7", | ||
"typescript": "^5.0.4" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/redis/node-redis.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/redis/node-redis/issues" | ||
}, | ||
"homepage": "https://github.com/redis/node-redis/tree/master/packages/search", | ||
"keywords": [ | ||
"redis", | ||
"RediSearch" | ||
] | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
75631
1883
1
0
0