@redis/json 5.5.5 → 5.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/commands/ARRAPPEND.d.ts +11 -1
- package/dist/lib/commands/ARRAPPEND.d.ts.map +1 -1
- package/dist/lib/commands/ARRAPPEND.js +13 -3
- package/dist/lib/commands/ARRAPPEND.js.map +1 -1
- package/dist/lib/commands/ARRINDEX.d.ts +13 -1
- package/dist/lib/commands/ARRINDEX.d.ts.map +1 -1
- package/dist/lib/commands/ARRINDEX.js +14 -2
- package/dist/lib/commands/ARRINDEX.js.map +1 -1
- package/dist/lib/commands/ARRINSERT.d.ts +12 -1
- package/dist/lib/commands/ARRINSERT.d.ts.map +1 -1
- package/dist/lib/commands/ARRINSERT.js +14 -3
- package/dist/lib/commands/ARRINSERT.js.map +1 -1
- package/dist/lib/commands/ARRLEN.d.ts +9 -0
- package/dist/lib/commands/ARRLEN.d.ts.map +1 -1
- package/dist/lib/commands/ARRLEN.js +9 -0
- package/dist/lib/commands/ARRLEN.js.map +1 -1
- package/dist/lib/commands/ARRPOP.d.ts +14 -4
- package/dist/lib/commands/ARRPOP.d.ts.map +1 -1
- package/dist/lib/commands/ARRPOP.js +12 -3
- package/dist/lib/commands/ARRPOP.js.map +1 -1
- package/dist/lib/commands/ARRTRIM.d.ts +10 -0
- package/dist/lib/commands/ARRTRIM.d.ts.map +1 -1
- package/dist/lib/commands/ARRTRIM.js +10 -0
- package/dist/lib/commands/ARRTRIM.js.map +1 -1
- package/dist/lib/commands/CLEAR.d.ts +9 -0
- package/dist/lib/commands/CLEAR.d.ts.map +1 -1
- package/dist/lib/commands/CLEAR.js +9 -0
- package/dist/lib/commands/CLEAR.js.map +1 -1
- package/dist/lib/commands/DEBUG_MEMORY.d.ts +9 -0
- package/dist/lib/commands/DEBUG_MEMORY.d.ts.map +1 -1
- package/dist/lib/commands/DEBUG_MEMORY.js +9 -0
- package/dist/lib/commands/DEBUG_MEMORY.js.map +1 -1
- package/dist/lib/commands/DEL.d.ts +9 -0
- package/dist/lib/commands/DEL.d.ts.map +1 -1
- package/dist/lib/commands/DEL.js +9 -0
- package/dist/lib/commands/DEL.js.map +1 -1
- package/dist/lib/commands/FORGET.d.ts +9 -0
- package/dist/lib/commands/FORGET.d.ts.map +1 -1
- package/dist/lib/commands/FORGET.js +9 -0
- package/dist/lib/commands/FORGET.js.map +1 -1
- package/dist/lib/commands/GET.d.ts +10 -2
- package/dist/lib/commands/GET.d.ts.map +1 -1
- package/dist/lib/commands/GET.js +11 -2
- package/dist/lib/commands/GET.js.map +1 -1
- package/dist/lib/commands/MERGE.d.ts +10 -1
- package/dist/lib/commands/MERGE.d.ts.map +1 -1
- package/dist/lib/commands/MERGE.js +11 -2
- package/dist/lib/commands/MERGE.js.map +1 -1
- package/dist/lib/commands/MGET.d.ts +9 -1
- package/dist/lib/commands/MGET.d.ts.map +1 -1
- package/dist/lib/commands/MGET.js +10 -2
- package/dist/lib/commands/MGET.js.map +1 -1
- package/dist/lib/commands/MSET.d.ts +11 -1
- package/dist/lib/commands/MSET.d.ts.map +1 -1
- package/dist/lib/commands/MSET.js +12 -2
- package/dist/lib/commands/MSET.js.map +1 -1
- package/dist/lib/commands/NUMINCRBY.d.ts +9 -0
- package/dist/lib/commands/NUMINCRBY.d.ts.map +1 -1
- package/dist/lib/commands/NUMINCRBY.js +9 -0
- package/dist/lib/commands/NUMINCRBY.js.map +1 -1
- package/dist/lib/commands/NUMMULTBY.d.ts +10 -1
- package/dist/lib/commands/NUMMULTBY.d.ts.map +1 -1
- package/dist/lib/commands/NUMMULTBY.js +9 -0
- package/dist/lib/commands/NUMMULTBY.js.map +1 -1
- package/dist/lib/commands/OBJKEYS.d.ts +9 -0
- package/dist/lib/commands/OBJKEYS.d.ts.map +1 -1
- package/dist/lib/commands/OBJKEYS.js +9 -0
- package/dist/lib/commands/OBJKEYS.js.map +1 -1
- package/dist/lib/commands/OBJLEN.d.ts +9 -0
- package/dist/lib/commands/OBJLEN.d.ts.map +1 -1
- package/dist/lib/commands/OBJLEN.js +9 -0
- package/dist/lib/commands/OBJLEN.js.map +1 -1
- package/dist/lib/commands/RESP.d.ts +8 -0
- package/dist/lib/commands/RESP.d.ts.map +1 -1
- package/dist/lib/commands/RESP.js +8 -0
- package/dist/lib/commands/RESP.js.map +1 -1
- package/dist/lib/commands/SET.d.ts +14 -1
- package/dist/lib/commands/SET.d.ts.map +1 -1
- package/dist/lib/commands/SET.js +15 -2
- package/dist/lib/commands/SET.js.map +1 -1
- package/dist/lib/commands/STRAPPEND.d.ts +10 -0
- package/dist/lib/commands/STRAPPEND.d.ts.map +1 -1
- package/dist/lib/commands/STRAPPEND.js +12 -2
- package/dist/lib/commands/STRAPPEND.js.map +1 -1
- package/dist/lib/commands/STRLEN.d.ts +9 -0
- package/dist/lib/commands/STRLEN.d.ts.map +1 -1
- package/dist/lib/commands/STRLEN.js +9 -0
- package/dist/lib/commands/STRLEN.js.map +1 -1
- package/dist/lib/commands/TOGGLE.d.ts +8 -0
- package/dist/lib/commands/TOGGLE.d.ts.map +1 -1
- package/dist/lib/commands/TOGGLE.js +8 -0
- package/dist/lib/commands/TOGGLE.js.map +1 -1
- package/dist/lib/commands/TYPE.d.ts +9 -0
- package/dist/lib/commands/TYPE.d.ts.map +1 -1
- package/dist/lib/commands/TYPE.js +9 -0
- package/dist/lib/commands/TYPE.js.map +1 -1
- package/dist/lib/commands/index.d.ts +46 -45
- package/dist/lib/commands/index.d.ts.map +1 -1
- package/dist/lib/commands/index.js +5 -15
- package/dist/lib/commands/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/lib/commands/helpers.d.ts +0 -9
- package/dist/lib/commands/helpers.d.ts.map +0 -1
- package/dist/lib/commands/helpers.js +0 -18
- package/dist/lib/commands/helpers.js.map +0 -1
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
4
|
IS_READ_ONLY: false,
|
|
5
|
+
/**
|
|
6
|
+
* Toggles a boolean value stored in a JSON document.
|
|
7
|
+
* Returns 1 if value was toggled to true, 0 if toggled to false, or null if path doesn't exist.
|
|
8
|
+
*
|
|
9
|
+
* @param parser - The Redis command parser
|
|
10
|
+
* @param key - The key containing the JSON document
|
|
11
|
+
* @param path - Path to the boolean value
|
|
12
|
+
*/
|
|
5
13
|
parseCommand(parser, key, path) {
|
|
6
14
|
parser.push('JSON.TOGGLE');
|
|
7
15
|
parser.pushKey(key);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TOGGLE.js","sourceRoot":"","sources":["../../../lib/commands/TOGGLE.ts"],"names":[],"mappings":";;AAGA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,IAAmB;QACzE,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;IACD,cAAc,EAAE,SAA2F;CACjF,CAAC"}
|
|
1
|
+
{"version":3,"file":"TOGGLE.js","sourceRoot":"","sources":["../../../lib/commands/TOGGLE.ts"],"names":[],"mappings":";;AAGA,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;OAOG;IACH,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,IAAmB;QACzE,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;IACD,cAAc,EAAE,SAA2F;CACjF,CAAC"}
|
|
@@ -5,6 +5,15 @@ export interface JsonTypeOptions {
|
|
|
5
5
|
}
|
|
6
6
|
declare const _default: {
|
|
7
7
|
readonly IS_READ_ONLY: true;
|
|
8
|
+
/**
|
|
9
|
+
* Returns the type of JSON value at a specific path in a JSON document.
|
|
10
|
+
* Returns the type as a string, array of types for multiple paths, or null if path doesn't exist.
|
|
11
|
+
*
|
|
12
|
+
* @param parser - The Redis command parser
|
|
13
|
+
* @param key - The key containing the JSON document
|
|
14
|
+
* @param options - Optional parameters
|
|
15
|
+
* @param options.path - Path to examine
|
|
16
|
+
*/
|
|
8
17
|
readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, options?: JsonTypeOptions) => void;
|
|
9
18
|
readonly transformReply: {
|
|
10
19
|
readonly 2: () => NullReply | BlobStringReply | ArrayReply<BlobStringReply | NullReply>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TYPE.d.ts","sourceRoot":"","sources":["../../../lib/commands/TYPE.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,EAAW,aAAa,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAEhI,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;;;
|
|
1
|
+
{"version":3,"file":"TYPE.d.ts","sourceRoot":"","sources":["../../../lib/commands/TYPE.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,EAAW,aAAa,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAEhI,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB;;;IAIC;;;;;;;;OAQG;gDACkB,aAAa,OAAO,aAAa,YAAY,eAAe;;0BAS9C,SAAS,GAAG,eAAe,GAAG,WAAW,eAAe,GAAG,SAAS,CAAC;4BAE3F,YAAY,WAAW,SAAS,GAAG,eAAe,GAAG,WAAW,eAAe,GAAG,SAAS,CAAC,CAAC,CAAC;;;AAtB7G,wBA0B6B"}
|
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = {
|
|
4
4
|
IS_READ_ONLY: true,
|
|
5
|
+
/**
|
|
6
|
+
* Returns the type of JSON value at a specific path in a JSON document.
|
|
7
|
+
* Returns the type as a string, array of types for multiple paths, or null if path doesn't exist.
|
|
8
|
+
*
|
|
9
|
+
* @param parser - The Redis command parser
|
|
10
|
+
* @param key - The key containing the JSON document
|
|
11
|
+
* @param options - Optional parameters
|
|
12
|
+
* @param options.path - Path to examine
|
|
13
|
+
*/
|
|
5
14
|
parseCommand(parser, key, options) {
|
|
6
15
|
parser.push('JSON.TYPE');
|
|
7
16
|
parser.pushKey(key);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TYPE.js","sourceRoot":"","sources":["../../../lib/commands/TYPE.ts"],"names":[],"mappings":";;AAOA,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,OAAyB;QAC/E,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACzB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEpB,IAAI,OAAO,EAAE,IAAI,EAAE,CAAC;YAClB,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,cAAc,EAAE;QACd,CAAC,EAAE,SAAmG;QACtG,uEAAuE;QACvE,CAAC,EAAE,CAAC,KAAqG,EAAE,EAAE;YAC3G,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;KACF;CACyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"TYPE.js","sourceRoot":"","sources":["../../../lib/commands/TYPE.ts"],"names":[],"mappings":";;AAOA,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB;;;;;;;;OAQG;IACH,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,OAAyB;QAC/E,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACzB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEpB,IAAI,OAAO,EAAE,IAAI,EAAE,CAAC;YAClB,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,cAAc,EAAE;QACd,CAAC,EAAE,SAAmG;QACtG,uEAAuE;QACvE,CAAC,EAAE,CAAC,KAAqG,EAAE,EAAE;YAC3G,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;KACF;CACyB,CAAC"}
|
|
@@ -1,70 +1,71 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type { RedisJSON } from '@redis/client/dist/lib/commands/generic-transformers';
|
|
2
|
+
export { transformRedisJsonArgument, transformRedisJsonReply, transformRedisJsonNullReply } from '@redis/client/dist/lib/commands/generic-transformers';
|
|
2
3
|
declare const _default: {
|
|
3
4
|
ARRAPPEND: {
|
|
4
5
|
readonly IS_READ_ONLY: false;
|
|
5
|
-
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, path: import("@redis/client/dist/lib/RESP/types").RedisArgument, json: import("
|
|
6
|
-
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").
|
|
6
|
+
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, path: import("@redis/client/dist/lib/RESP/types").RedisArgument, json: import("@redis/client/dist/lib/commands/generic-transformers").RedisJSON, ...jsons: import("@redis/client/dist/lib/commands/generic-transformers").RedisJSON[]) => void;
|
|
7
|
+
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").NullReply>;
|
|
7
8
|
};
|
|
8
9
|
arrAppend: {
|
|
9
10
|
readonly IS_READ_ONLY: false;
|
|
10
|
-
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, path: import("@redis/client/dist/lib/RESP/types").RedisArgument, json: import("
|
|
11
|
-
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").
|
|
11
|
+
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, path: import("@redis/client/dist/lib/RESP/types").RedisArgument, json: import("@redis/client/dist/lib/commands/generic-transformers").RedisJSON, ...jsons: import("@redis/client/dist/lib/commands/generic-transformers").RedisJSON[]) => void;
|
|
12
|
+
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").NullReply>;
|
|
12
13
|
};
|
|
13
14
|
ARRINDEX: {
|
|
14
15
|
readonly IS_READ_ONLY: true;
|
|
15
|
-
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, path: import("@redis/client/dist/lib/RESP/types").RedisArgument, json: import("
|
|
16
|
-
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").
|
|
16
|
+
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, path: import("@redis/client/dist/lib/RESP/types").RedisArgument, json: import("@redis/client/dist/lib/commands/generic-transformers").RedisJSON, options?: import("./ARRINDEX").JsonArrIndexOptions | undefined) => void;
|
|
17
|
+
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").NullReply>;
|
|
17
18
|
};
|
|
18
19
|
arrIndex: {
|
|
19
20
|
readonly IS_READ_ONLY: true;
|
|
20
|
-
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, path: import("@redis/client/dist/lib/RESP/types").RedisArgument, json: import("
|
|
21
|
-
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").
|
|
21
|
+
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, path: import("@redis/client/dist/lib/RESP/types").RedisArgument, json: import("@redis/client/dist/lib/commands/generic-transformers").RedisJSON, options?: import("./ARRINDEX").JsonArrIndexOptions | undefined) => void;
|
|
22
|
+
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").NullReply>;
|
|
22
23
|
};
|
|
23
24
|
ARRINSERT: {
|
|
24
25
|
readonly IS_READ_ONLY: false;
|
|
25
|
-
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, path: import("@redis/client/dist/lib/RESP/types").RedisArgument, index: number, json: import("
|
|
26
|
-
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").
|
|
26
|
+
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, path: import("@redis/client/dist/lib/RESP/types").RedisArgument, index: number, json: import("@redis/client/dist/lib/commands/generic-transformers").RedisJSON, ...jsons: import("@redis/client/dist/lib/commands/generic-transformers").RedisJSON[]) => void;
|
|
27
|
+
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").NullReply>;
|
|
27
28
|
};
|
|
28
29
|
arrInsert: {
|
|
29
30
|
readonly IS_READ_ONLY: false;
|
|
30
|
-
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, path: import("@redis/client/dist/lib/RESP/types").RedisArgument, index: number, json: import("
|
|
31
|
-
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").
|
|
31
|
+
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, path: import("@redis/client/dist/lib/RESP/types").RedisArgument, index: number, json: import("@redis/client/dist/lib/commands/generic-transformers").RedisJSON, ...jsons: import("@redis/client/dist/lib/commands/generic-transformers").RedisJSON[]) => void;
|
|
32
|
+
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").NullReply>;
|
|
32
33
|
};
|
|
33
34
|
ARRLEN: {
|
|
34
35
|
readonly IS_READ_ONLY: true;
|
|
35
36
|
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, options?: import("./ARRLEN").JsonArrLenOptions | undefined) => void;
|
|
36
|
-
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").
|
|
37
|
+
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").NullReply>;
|
|
37
38
|
};
|
|
38
39
|
arrLen: {
|
|
39
40
|
readonly IS_READ_ONLY: true;
|
|
40
41
|
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, options?: import("./ARRLEN").JsonArrLenOptions | undefined) => void;
|
|
41
|
-
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").
|
|
42
|
+
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").NullReply>;
|
|
42
43
|
};
|
|
43
44
|
ARRPOP: {
|
|
44
45
|
readonly IS_READ_ONLY: false;
|
|
45
46
|
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, options?: import("./ARRPOP").RedisArrPopOptions | undefined) => void;
|
|
46
|
-
readonly transformReply: (this: void, reply: import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").BlobStringReply<string> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>>) => string | number | boolean |
|
|
47
|
-
[key: string]: import("
|
|
48
|
-
[key: number]: import("
|
|
49
|
-
} |
|
|
47
|
+
readonly transformReply: (this: void, reply: import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").BlobStringReply<string> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>>) => string | number | boolean | Date | {
|
|
48
|
+
[key: string]: import("@redis/client/dist/lib/commands/generic-transformers").RedisJSON;
|
|
49
|
+
[key: number]: import("@redis/client/dist/lib/commands/generic-transformers").RedisJSON;
|
|
50
|
+
} | import("@redis/client/dist/lib/RESP/types").NullReply | (import("@redis/client/dist/lib/commands/generic-transformers").RedisJSON | import("@redis/client/dist/lib/RESP/types").NullReply)[] | null;
|
|
50
51
|
};
|
|
51
52
|
arrPop: {
|
|
52
53
|
readonly IS_READ_ONLY: false;
|
|
53
54
|
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, options?: import("./ARRPOP").RedisArrPopOptions | undefined) => void;
|
|
54
|
-
readonly transformReply: (this: void, reply: import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").BlobStringReply<string> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>>) => string | number | boolean |
|
|
55
|
-
[key: string]: import("
|
|
56
|
-
[key: number]: import("
|
|
57
|
-
} |
|
|
55
|
+
readonly transformReply: (this: void, reply: import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").BlobStringReply<string> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>>) => string | number | boolean | Date | {
|
|
56
|
+
[key: string]: import("@redis/client/dist/lib/commands/generic-transformers").RedisJSON;
|
|
57
|
+
[key: number]: import("@redis/client/dist/lib/commands/generic-transformers").RedisJSON;
|
|
58
|
+
} | import("@redis/client/dist/lib/RESP/types").NullReply | (import("@redis/client/dist/lib/commands/generic-transformers").RedisJSON | import("@redis/client/dist/lib/RESP/types").NullReply)[] | null;
|
|
58
59
|
};
|
|
59
60
|
ARRTRIM: {
|
|
60
61
|
readonly IS_READ_ONLY: false;
|
|
61
62
|
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, path: import("@redis/client/dist/lib/RESP/types").RedisArgument, start: number, stop: number) => void;
|
|
62
|
-
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").
|
|
63
|
+
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").NullReply>;
|
|
63
64
|
};
|
|
64
65
|
arrTrim: {
|
|
65
66
|
readonly IS_READ_ONLY: false;
|
|
66
67
|
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, path: import("@redis/client/dist/lib/RESP/types").RedisArgument, start: number, stop: number) => void;
|
|
67
|
-
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").
|
|
68
|
+
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").NullReply>;
|
|
68
69
|
};
|
|
69
70
|
CLEAR: {
|
|
70
71
|
readonly IS_READ_ONLY: false;
|
|
@@ -109,32 +110,32 @@ declare const _default: {
|
|
|
109
110
|
GET: {
|
|
110
111
|
readonly IS_READ_ONLY: false;
|
|
111
112
|
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, options?: import("./GET").JsonGetOptions | undefined) => void;
|
|
112
|
-
readonly transformReply: typeof import("
|
|
113
|
+
readonly transformReply: typeof import("@redis/client/dist/lib/commands/generic-transformers").transformRedisJsonNullReply;
|
|
113
114
|
};
|
|
114
115
|
get: {
|
|
115
116
|
readonly IS_READ_ONLY: false;
|
|
116
117
|
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, options?: import("./GET").JsonGetOptions | undefined) => void;
|
|
117
|
-
readonly transformReply: typeof import("
|
|
118
|
+
readonly transformReply: typeof import("@redis/client/dist/lib/commands/generic-transformers").transformRedisJsonNullReply;
|
|
118
119
|
};
|
|
119
120
|
MERGE: {
|
|
120
121
|
readonly IS_READ_ONLY: false;
|
|
121
|
-
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, path: import("@redis/client/dist/lib/RESP/types").RedisArgument, value: import("
|
|
122
|
+
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, path: import("@redis/client/dist/lib/RESP/types").RedisArgument, value: import("@redis/client/dist/lib/commands/generic-transformers").RedisJSON) => void;
|
|
122
123
|
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
|
|
123
124
|
};
|
|
124
125
|
merge: {
|
|
125
126
|
readonly IS_READ_ONLY: false;
|
|
126
|
-
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, path: import("@redis/client/dist/lib/RESP/types").RedisArgument, value: import("
|
|
127
|
+
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, path: import("@redis/client/dist/lib/RESP/types").RedisArgument, value: import("@redis/client/dist/lib/commands/generic-transformers").RedisJSON) => void;
|
|
127
128
|
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
|
|
128
129
|
};
|
|
129
130
|
MGET: {
|
|
130
131
|
readonly IS_READ_ONLY: true;
|
|
131
132
|
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, keys: import("@redis/client/dist/lib/RESP/types").RedisArgument[], path: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
|
|
132
|
-
readonly transformReply: (this: void, reply: (import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>)[]) => (import("@redis/client/dist/lib/
|
|
133
|
+
readonly transformReply: (this: void, reply: (import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>)[]) => (import("@redis/client/dist/lib/commands/generic-transformers").RedisJSON | import("@redis/client/dist/lib/RESP/types").NullReply)[];
|
|
133
134
|
};
|
|
134
135
|
mGet: {
|
|
135
136
|
readonly IS_READ_ONLY: true;
|
|
136
137
|
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, keys: import("@redis/client/dist/lib/RESP/types").RedisArgument[], path: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
|
|
137
|
-
readonly transformReply: (this: void, reply: (import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>)[]) => (import("@redis/client/dist/lib/
|
|
138
|
+
readonly transformReply: (this: void, reply: (import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>)[]) => (import("@redis/client/dist/lib/commands/generic-transformers").RedisJSON | import("@redis/client/dist/lib/RESP/types").NullReply)[];
|
|
138
139
|
};
|
|
139
140
|
MSET: {
|
|
140
141
|
readonly IS_READ_ONLY: false;
|
|
@@ -151,7 +152,7 @@ declare const _default: {
|
|
|
151
152
|
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, path: import("@redis/client/dist/lib/RESP/types").RedisArgument, by: number) => void;
|
|
152
153
|
readonly transformReply: {
|
|
153
154
|
readonly 2: (reply: import("@redis/client/dist/lib/RESP/types").UnwrapReply<import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>>) => number | (number | null)[];
|
|
154
|
-
readonly 3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").
|
|
155
|
+
readonly 3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
|
|
155
156
|
};
|
|
156
157
|
};
|
|
157
158
|
numIncrBy: {
|
|
@@ -159,7 +160,7 @@ declare const _default: {
|
|
|
159
160
|
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, path: import("@redis/client/dist/lib/RESP/types").RedisArgument, by: number) => void;
|
|
160
161
|
readonly transformReply: {
|
|
161
162
|
readonly 2: (reply: import("@redis/client/dist/lib/RESP/types").UnwrapReply<import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>>) => number | (number | null)[];
|
|
162
|
-
readonly 3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").
|
|
163
|
+
readonly 3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
|
|
163
164
|
};
|
|
164
165
|
};
|
|
165
166
|
/**
|
|
@@ -170,7 +171,7 @@ declare const _default: {
|
|
|
170
171
|
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, path: import("@redis/client/dist/lib/RESP/types").RedisArgument, by: number) => void;
|
|
171
172
|
readonly transformReply: {
|
|
172
173
|
readonly 2: (reply: import("@redis/client/dist/lib/RESP/types").UnwrapReply<import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>>) => number | (number | null)[];
|
|
173
|
-
readonly 3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").
|
|
174
|
+
readonly 3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
|
|
174
175
|
};
|
|
175
176
|
};
|
|
176
177
|
/**
|
|
@@ -181,7 +182,7 @@ declare const _default: {
|
|
|
181
182
|
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, path: import("@redis/client/dist/lib/RESP/types").RedisArgument, by: number) => void;
|
|
182
183
|
readonly transformReply: {
|
|
183
184
|
readonly 2: (reply: import("@redis/client/dist/lib/RESP/types").UnwrapReply<import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>>) => number | (number | null)[];
|
|
184
|
-
readonly 3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").
|
|
185
|
+
readonly 3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
|
|
185
186
|
};
|
|
186
187
|
};
|
|
187
188
|
OBJKEYS: {
|
|
@@ -197,52 +198,52 @@ declare const _default: {
|
|
|
197
198
|
OBJLEN: {
|
|
198
199
|
readonly IS_READ_ONLY: true;
|
|
199
200
|
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, options?: import("./OBJLEN").JsonObjLenOptions | undefined) => void;
|
|
200
|
-
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").
|
|
201
|
+
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").NullReply>;
|
|
201
202
|
};
|
|
202
203
|
objLen: {
|
|
203
204
|
readonly IS_READ_ONLY: true;
|
|
204
205
|
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, options?: import("./OBJLEN").JsonObjLenOptions | undefined) => void;
|
|
205
|
-
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").
|
|
206
|
+
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").NullReply>;
|
|
206
207
|
};
|
|
207
208
|
SET: {
|
|
208
209
|
readonly IS_READ_ONLY: false;
|
|
209
|
-
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, path: import("@redis/client/dist/lib/RESP/types").RedisArgument, json: import("
|
|
210
|
+
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, path: import("@redis/client/dist/lib/RESP/types").RedisArgument, json: import("@redis/client/dist/lib/commands/generic-transformers").RedisJSON, options?: import("./SET").JsonSetOptions | undefined) => void;
|
|
210
211
|
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
|
|
211
212
|
};
|
|
212
213
|
set: {
|
|
213
214
|
readonly IS_READ_ONLY: false;
|
|
214
|
-
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, path: import("@redis/client/dist/lib/RESP/types").RedisArgument, json: import("
|
|
215
|
+
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, path: import("@redis/client/dist/lib/RESP/types").RedisArgument, json: import("@redis/client/dist/lib/commands/generic-transformers").RedisJSON, options?: import("./SET").JsonSetOptions | undefined) => void;
|
|
215
216
|
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").SimpleStringReply<"OK">;
|
|
216
217
|
};
|
|
217
218
|
STRAPPEND: {
|
|
218
219
|
readonly IS_READ_ONLY: false;
|
|
219
220
|
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, append: string, options?: import("./STRAPPEND").JsonStrAppendOptions | undefined) => void;
|
|
220
|
-
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").
|
|
221
|
+
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").NullReply>;
|
|
221
222
|
};
|
|
222
223
|
strAppend: {
|
|
223
224
|
readonly IS_READ_ONLY: false;
|
|
224
225
|
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, append: string, options?: import("./STRAPPEND").JsonStrAppendOptions | undefined) => void;
|
|
225
|
-
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").
|
|
226
|
+
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").NullReply>;
|
|
226
227
|
};
|
|
227
228
|
STRLEN: {
|
|
228
229
|
readonly IS_READ_ONLY: true;
|
|
229
230
|
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, options?: import("./STRLEN").JsonStrLenOptions | undefined) => void;
|
|
230
|
-
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").
|
|
231
|
+
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").NullReply>;
|
|
231
232
|
};
|
|
232
233
|
strLen: {
|
|
233
234
|
readonly IS_READ_ONLY: true;
|
|
234
235
|
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, options?: import("./STRLEN").JsonStrLenOptions | undefined) => void;
|
|
235
|
-
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").
|
|
236
|
+
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").NullReply>;
|
|
236
237
|
};
|
|
237
238
|
TOGGLE: {
|
|
238
239
|
readonly IS_READ_ONLY: false;
|
|
239
240
|
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, path: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
|
|
240
|
-
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").
|
|
241
|
+
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").NullReply>;
|
|
241
242
|
};
|
|
242
243
|
toggle: {
|
|
243
244
|
readonly IS_READ_ONLY: false;
|
|
244
245
|
readonly parseCommand: (this: void, parser: import("@redis/client/dist/lib/client/parser").CommandParser, key: import("@redis/client/dist/lib/RESP/types").RedisArgument, path: import("@redis/client/dist/lib/RESP/types").RedisArgument) => void;
|
|
245
|
-
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").
|
|
246
|
+
readonly transformReply: () => import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").NullReply>;
|
|
246
247
|
};
|
|
247
248
|
TYPE: {
|
|
248
249
|
readonly IS_READ_ONLY: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/commands/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/commands/index.ts"],"names":[],"mappings":"AA0BA,YAAY,EAAE,SAAS,EAAE,MAAM,sDAAsD,CAAC;AACtF,OAAO,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiCtJ;;OAEG;;;;;;;;;IAEH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AArCL,wBAuDE"}
|
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
4
|
};
|
|
19
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.transformRedisJsonNullReply = exports.transformRedisJsonReply = exports.transformRedisJsonArgument = void 0;
|
|
20
7
|
const ARRAPPEND_1 = __importDefault(require("./ARRAPPEND"));
|
|
21
8
|
const ARRINDEX_1 = __importDefault(require("./ARRINDEX"));
|
|
22
9
|
const ARRINSERT_1 = __importDefault(require("./ARRINSERT"));
|
|
@@ -41,7 +28,10 @@ const STRAPPEND_1 = __importDefault(require("./STRAPPEND"));
|
|
|
41
28
|
const STRLEN_1 = __importDefault(require("./STRLEN"));
|
|
42
29
|
const TOGGLE_1 = __importDefault(require("./TOGGLE"));
|
|
43
30
|
const TYPE_1 = __importDefault(require("./TYPE"));
|
|
44
|
-
|
|
31
|
+
var generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
|
|
32
|
+
Object.defineProperty(exports, "transformRedisJsonArgument", { enumerable: true, get: function () { return generic_transformers_1.transformRedisJsonArgument; } });
|
|
33
|
+
Object.defineProperty(exports, "transformRedisJsonReply", { enumerable: true, get: function () { return generic_transformers_1.transformRedisJsonReply; } });
|
|
34
|
+
Object.defineProperty(exports, "transformRedisJsonNullReply", { enumerable: true, get: function () { return generic_transformers_1.transformRedisJsonNullReply; } });
|
|
45
35
|
exports.default = {
|
|
46
36
|
ARRAPPEND: ARRAPPEND_1.default,
|
|
47
37
|
arrAppend: ARRAPPEND_1.default,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/commands/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/commands/index.ts"],"names":[],"mappings":";;;;;;AAAA,4DAAoC;AACpC,0DAAkC;AAClC,4DAAoC;AACpC,sDAA8B;AAC9B,sDAA8B;AAC9B,wDAAgC;AAChC,oDAA4B;AAC5B,kEAA0C;AAC1C,gDAAwB;AACxB,sDAA8B;AAC9B,gDAAwB;AACxB,oDAA4B;AAC5B,kDAA0B;AAC1B,kDAA0B;AAC1B,4DAAoC;AACpC,4DAAoC;AACpC,wDAAgC;AAChC,sDAA8B;AAC9B,6BAA6B;AAC7B,gDAAwB;AACxB,4DAAoC;AACpC,sDAA8B;AAC9B,sDAA8B;AAC9B,kDAA0B;AAI1B,6FAAwJ;AAA/I,kIAAA,0BAA0B,OAAA;AAAE,+HAAA,uBAAuB,OAAA;AAAE,mIAAA,2BAA2B,OAAA;AAEzF,kBAAe;IACb,SAAS,EAAT,mBAAS;IACT,SAAS,EAAE,mBAAS;IACpB,QAAQ,EAAR,kBAAQ;IACR,QAAQ,EAAE,kBAAQ;IAClB,SAAS,EAAT,mBAAS;IACT,SAAS,EAAE,mBAAS;IACpB,MAAM,EAAN,gBAAM;IACN,MAAM,EAAE,gBAAM;IACd,MAAM,EAAN,gBAAM;IACN,MAAM,EAAE,gBAAM;IACd,OAAO,EAAP,iBAAO;IACP,OAAO,EAAE,iBAAO;IAChB,KAAK,EAAL,eAAK;IACL,KAAK,EAAE,eAAK;IACZ,YAAY,EAAZ,sBAAY;IACZ,WAAW,EAAE,sBAAY;IACzB,GAAG,EAAH,aAAG;IACH,GAAG,EAAE,aAAG;IACR,MAAM,EAAN,gBAAM;IACN,MAAM,EAAE,gBAAM;IACd,GAAG,EAAH,aAAG;IACH,GAAG,EAAE,aAAG;IACR,KAAK,EAAL,eAAK;IACL,KAAK,EAAE,eAAK;IACZ,IAAI,EAAJ,cAAI;IACJ,IAAI,EAAE,cAAI;IACV,IAAI,EAAJ,cAAI;IACJ,IAAI,EAAE,cAAI;IACV,SAAS,EAAT,mBAAS;IACT,SAAS,EAAE,mBAAS;IACpB;;OAEG;IACH,SAAS,EAAT,mBAAS;IACT;;OAEG;IACH,SAAS,EAAE,mBAAS;IACpB,OAAO,EAAP,iBAAO;IACP,OAAO,EAAE,iBAAO;IAChB,MAAM,EAAN,gBAAM;IACN,MAAM,EAAE,gBAAM;IACd,QAAQ;IACR,cAAc;IACd,GAAG,EAAH,aAAG;IACH,GAAG,EAAE,aAAG;IACR,SAAS,EAAT,mBAAS;IACT,SAAS,EAAE,mBAAS;IACpB,MAAM,EAAN,gBAAM;IACN,MAAM,EAAE,gBAAM;IACd,MAAM,EAAN,gBAAM;IACN,MAAM,EAAE,gBAAM;IACd,IAAI,EAAJ,cAAI;IACJ,IAAI,EAAE,cAAI;CACX,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redis/json",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.6.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/lib/index.js",
|
|
6
6
|
"types": "./dist/lib/index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"release": "release-it"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"@redis/client": "^5.
|
|
16
|
+
"@redis/client": "^5.6.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@redis/test-utils": "*"
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BlobStringReply, NullReply } from "@redis/client/dist/lib/RESP/types";
|
|
2
|
-
export declare function transformRedisJsonNullReply(json: NullReply | BlobStringReply): NullReply | RedisJSON;
|
|
3
|
-
export type RedisJSON = null | boolean | number | string | Date | Array<RedisJSON> | {
|
|
4
|
-
[key: string]: RedisJSON;
|
|
5
|
-
[key: number]: RedisJSON;
|
|
6
|
-
};
|
|
7
|
-
export declare function transformRedisJsonArgument(json: RedisJSON): string;
|
|
8
|
-
export declare function transformRedisJsonReply(json: BlobStringReply): RedisJSON;
|
|
9
|
-
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../lib/commands/helpers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,SAAS,EAAe,MAAM,mCAAmC,CAAC;AAE5F,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,SAAS,GAAG,eAAe,GAAG,SAAS,GAAG,SAAS,CAEpG;AAED,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,KAAK,CAAC,SAAS,CAAC,GAAG;IACnF,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,CAAC;AAEF,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAElE;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,eAAe,GAAG,SAAS,CAGxE"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.transformRedisJsonReply = exports.transformRedisJsonArgument = exports.transformRedisJsonNullReply = void 0;
|
|
4
|
-
const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
|
|
5
|
-
function transformRedisJsonNullReply(json) {
|
|
6
|
-
return (0, generic_transformers_1.isNullReply)(json) ? json : transformRedisJsonReply(json);
|
|
7
|
-
}
|
|
8
|
-
exports.transformRedisJsonNullReply = transformRedisJsonNullReply;
|
|
9
|
-
function transformRedisJsonArgument(json) {
|
|
10
|
-
return JSON.stringify(json);
|
|
11
|
-
}
|
|
12
|
-
exports.transformRedisJsonArgument = transformRedisJsonArgument;
|
|
13
|
-
function transformRedisJsonReply(json) {
|
|
14
|
-
const res = JSON.parse(json.toString());
|
|
15
|
-
return res;
|
|
16
|
-
}
|
|
17
|
-
exports.transformRedisJsonReply = transformRedisJsonReply;
|
|
18
|
-
//# sourceMappingURL=helpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../lib/commands/helpers.ts"],"names":[],"mappings":";;;AAAA,+FAAmF;AAGnF,SAAgB,2BAA2B,CAAC,IAAiC;IAC3E,OAAO,IAAA,kCAAW,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;AAClE,CAAC;AAFD,kEAEC;AAOD,SAAgB,0BAA0B,CAAC,IAAe;IACxD,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;AAC9B,CAAC;AAFD,gEAEC;AAED,SAAgB,uBAAuB,CAAC,IAAqB;IAC3D,MAAM,GAAG,GAAI,IAAI,CAAC,KAAK,CAAE,IAA4C,CAAC,QAAQ,EAAE,CAAC,CAAC;IAClF,OAAO,GAAG,CAAC;AACb,CAAC;AAHD,0DAGC"}
|