@redis/json 5.5.6 → 5.6.1

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.
Files changed (49) hide show
  1. package/dist/lib/commands/ARRAPPEND.d.ts +1 -1
  2. package/dist/lib/commands/ARRAPPEND.d.ts.map +1 -1
  3. package/dist/lib/commands/ARRAPPEND.js +3 -3
  4. package/dist/lib/commands/ARRAPPEND.js.map +1 -1
  5. package/dist/lib/commands/ARRINDEX.d.ts +1 -1
  6. package/dist/lib/commands/ARRINDEX.d.ts.map +1 -1
  7. package/dist/lib/commands/ARRINDEX.js +2 -2
  8. package/dist/lib/commands/ARRINDEX.js.map +1 -1
  9. package/dist/lib/commands/ARRINSERT.d.ts +1 -1
  10. package/dist/lib/commands/ARRINSERT.d.ts.map +1 -1
  11. package/dist/lib/commands/ARRINSERT.js +3 -3
  12. package/dist/lib/commands/ARRINSERT.js.map +1 -1
  13. package/dist/lib/commands/ARRPOP.d.ts +4 -4
  14. package/dist/lib/commands/ARRPOP.d.ts.map +1 -1
  15. package/dist/lib/commands/ARRPOP.js +2 -3
  16. package/dist/lib/commands/ARRPOP.js.map +1 -1
  17. package/dist/lib/commands/GET.d.ts +1 -2
  18. package/dist/lib/commands/GET.d.ts.map +1 -1
  19. package/dist/lib/commands/GET.js +2 -2
  20. package/dist/lib/commands/GET.js.map +1 -1
  21. package/dist/lib/commands/MERGE.d.ts +1 -1
  22. package/dist/lib/commands/MERGE.d.ts.map +1 -1
  23. package/dist/lib/commands/MERGE.js +2 -2
  24. package/dist/lib/commands/MERGE.js.map +1 -1
  25. package/dist/lib/commands/MGET.d.ts +1 -1
  26. package/dist/lib/commands/MGET.js +2 -2
  27. package/dist/lib/commands/MGET.js.map +1 -1
  28. package/dist/lib/commands/MSET.d.ts +1 -1
  29. package/dist/lib/commands/MSET.d.ts.map +1 -1
  30. package/dist/lib/commands/MSET.js +2 -2
  31. package/dist/lib/commands/MSET.js.map +1 -1
  32. package/dist/lib/commands/NUMMULTBY.d.ts +1 -1
  33. package/dist/lib/commands/SET.d.ts +1 -1
  34. package/dist/lib/commands/SET.d.ts.map +1 -1
  35. package/dist/lib/commands/SET.js +2 -2
  36. package/dist/lib/commands/SET.js.map +1 -1
  37. package/dist/lib/commands/STRAPPEND.js +2 -2
  38. package/dist/lib/commands/STRAPPEND.js.map +1 -1
  39. package/dist/lib/commands/index.d.ts +46 -45
  40. package/dist/lib/commands/index.d.ts.map +1 -1
  41. package/dist/lib/commands/index.js +5 -15
  42. package/dist/lib/commands/index.js.map +1 -1
  43. package/dist/lib/index.d.ts +1 -0
  44. package/dist/lib/index.d.ts.map +1 -1
  45. package/package.json +2 -2
  46. package/dist/lib/commands/helpers.d.ts +0 -9
  47. package/dist/lib/commands/helpers.d.ts.map +0 -1
  48. package/dist/lib/commands/helpers.js +0 -18
  49. package/dist/lib/commands/helpers.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { CommandParser } from '@redis/client/dist/lib/client/parser';
2
- import { RedisJSON } from './helpers';
2
+ import { RedisJSON } from '@redis/client/dist/lib/commands/generic-transformers';
3
3
  import { RedisArgument, NumberReply, ArrayReply, NullReply } from '@redis/client/dist/lib/RESP/types';
4
4
  declare const _default: {
5
5
  readonly IS_READ_ONLY: false;
@@ -1 +1 @@
1
- {"version":3,"file":"ARRAPPEND.d.ts","sourceRoot":"","sources":["../../../lib/commands/ARRAPPEND.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,SAAS,EAA8B,MAAM,WAAW,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAW,MAAM,mCAAmC,CAAC;;;IAI7G;;;;;;;;;OASG;gDAEO,aAAa,OAChB,aAAa,QACZ,aAAa,QACb,SAAS,YACL,MAAM,SAAS,CAAC;mCAUkB,WAAW,GAAG,WAAW,WAAW,GAAG,SAAS,CAAC;;AA3BjG,wBA4B6B"}
1
+ {"version":3,"file":"ARRAPPEND.d.ts","sourceRoot":"","sources":["../../../lib/commands/ARRAPPEND.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,SAAS,EAA8B,MAAM,sDAAsD,CAAC;AAC7G,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAW,MAAM,mCAAmC,CAAC;;;IAI7G;;;;;;;;;OASG;gDAEO,aAAa,OAChB,aAAa,QACZ,aAAa,QACb,SAAS,YACL,MAAM,SAAS,CAAC;mCAUkB,WAAW,GAAG,WAAW,WAAW,GAAG,SAAS,CAAC;;AA3BjG,wBA4B6B"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const helpers_1 = require("./helpers");
3
+ const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
4
4
  exports.default = {
5
5
  IS_READ_ONLY: false,
6
6
  /**
@@ -16,9 +16,9 @@ exports.default = {
16
16
  parseCommand(parser, key, path, json, ...jsons) {
17
17
  parser.push('JSON.ARRAPPEND');
18
18
  parser.pushKey(key);
19
- parser.push(path, (0, helpers_1.transformRedisJsonArgument)(json));
19
+ parser.push(path, (0, generic_transformers_1.transformRedisJsonArgument)(json));
20
20
  for (let i = 0; i < jsons.length; i++) {
21
- parser.push((0, helpers_1.transformRedisJsonArgument)(jsons[i]));
21
+ parser.push((0, generic_transformers_1.transformRedisJsonArgument)(jsons[i]));
22
22
  }
23
23
  },
24
24
  transformReply: undefined
@@ -1 +1 @@
1
- {"version":3,"file":"ARRAPPEND.js","sourceRoot":"","sources":["../../../lib/commands/ARRAPPEND.ts"],"names":[],"mappings":";;AACA,uCAAkE;AAGlE,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;;OASG;IACH,YAAY,CACV,MAAqB,EACrB,GAAkB,EAClB,IAAmB,EACnB,IAAe,EACf,GAAG,KAAuB;QAE1B,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC9B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAA,oCAA0B,EAAC,IAAI,CAAC,CAAC,CAAC;QAEpD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACtC,MAAM,CAAC,IAAI,CAAC,IAAA,oCAA0B,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACpD,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAA+E;CACrE,CAAC"}
1
+ {"version":3,"file":"ARRAPPEND.js","sourceRoot":"","sources":["../../../lib/commands/ARRAPPEND.ts"],"names":[],"mappings":";;AACA,+FAA6G;AAG7G,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;;OASG;IACH,YAAY,CACV,MAAqB,EACrB,GAAkB,EAClB,IAAmB,EACnB,IAAe,EACf,GAAG,KAAuB;QAE1B,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC9B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAA,iDAA0B,EAAC,IAAI,CAAC,CAAC,CAAC;QAEpD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACtC,MAAM,CAAC,IAAI,CAAC,IAAA,iDAA0B,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACpD,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAA+E;CACrE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { CommandParser } from '@redis/client/dist/lib/client/parser';
2
2
  import { RedisArgument, NumberReply, ArrayReply, NullReply } from '@redis/client/dist/lib/RESP/types';
3
- import { RedisJSON } from './helpers';
3
+ import { RedisJSON } from '@redis/client/dist/lib/commands/generic-transformers';
4
4
  export interface JsonArrIndexOptions {
5
5
  range?: {
6
6
  start: number;
@@ -1 +1 @@
1
- {"version":3,"file":"ARRINDEX.d.ts","sourceRoot":"","sources":["../../../lib/commands/ARRINDEX.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAW,MAAM,mCAAmC,CAAC;AAC/G,OAAO,EAAE,SAAS,EAA8B,MAAM,WAAW,CAAC;AAElE,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH;;;IAIC;;;;;;;;;;;OAWG;gDAEO,aAAa,OAChB,aAAa,QACZ,aAAa,QACb,SAAS,YACL,mBAAmB;mCAce,WAAW,GAAG,WAAW,WAAW,GAAG,SAAS,CAAC;;AAjCjG,wBAkC6B"}
1
+ {"version":3,"file":"ARRINDEX.d.ts","sourceRoot":"","sources":["../../../lib/commands/ARRINDEX.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAW,MAAM,mCAAmC,CAAC;AAC/G,OAAO,EAAE,SAAS,EAA8B,MAAM,sDAAsD,CAAC;AAE7G,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH;;;IAIC;;;;;;;;;;;OAWG;gDAEO,aAAa,OAChB,aAAa,QACZ,aAAa,QACb,SAAS,YACL,mBAAmB;mCAce,WAAW,GAAG,WAAW,WAAW,GAAG,SAAS,CAAC;;AAjCjG,wBAkC6B"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const helpers_1 = require("./helpers");
3
+ const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
4
4
  exports.default = {
5
5
  IS_READ_ONLY: true,
6
6
  /**
@@ -18,7 +18,7 @@ exports.default = {
18
18
  parseCommand(parser, key, path, json, options) {
19
19
  parser.push('JSON.ARRINDEX');
20
20
  parser.pushKey(key);
21
- parser.push(path, (0, helpers_1.transformRedisJsonArgument)(json));
21
+ parser.push(path, (0, generic_transformers_1.transformRedisJsonArgument)(json));
22
22
  if (options?.range) {
23
23
  parser.push(options.range.start.toString());
24
24
  if (options.range.stop !== undefined) {
@@ -1 +1 @@
1
- {"version":3,"file":"ARRINDEX.js","sourceRoot":"","sources":["../../../lib/commands/ARRINDEX.ts"],"names":[],"mappings":";;AAEA,uCAAkE;AASlE,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB;;;;;;;;;;;OAWG;IACH,YAAY,CACV,MAAqB,EACrB,GAAkB,EAClB,IAAmB,EACnB,IAAe,EACf,OAA6B;QAE7B,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAC7B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAA,oCAA0B,EAAC,IAAI,CAAC,CAAC,CAAC;QAEpD,IAAI,OAAO,EAAE,KAAK,EAAE,CAAC;YACnB,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;YAE5C,IAAI,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;gBACrC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC7C,CAAC;QACH,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAA+E;CACrE,CAAC"}
1
+ {"version":3,"file":"ARRINDEX.js","sourceRoot":"","sources":["../../../lib/commands/ARRINDEX.ts"],"names":[],"mappings":";;AAEA,+FAA6G;AAS7G,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB;;;;;;;;;;;OAWG;IACH,YAAY,CACV,MAAqB,EACrB,GAAkB,EAClB,IAAmB,EACnB,IAAe,EACf,OAA6B;QAE7B,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAC7B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAA,iDAA0B,EAAC,IAAI,CAAC,CAAC,CAAC;QAEpD,IAAI,OAAO,EAAE,KAAK,EAAE,CAAC;YACnB,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;YAE5C,IAAI,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;gBACrC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC7C,CAAC;QACH,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAA+E;CACrE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { CommandParser } from '@redis/client/dist/lib/client/parser';
2
2
  import { RedisArgument, NumberReply, ArrayReply, NullReply } from '@redis/client/dist/lib/RESP/types';
3
- import { RedisJSON } from './helpers';
3
+ import { RedisJSON } from '@redis/client/dist/lib/commands/generic-transformers';
4
4
  declare const _default: {
5
5
  readonly IS_READ_ONLY: false;
6
6
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ARRINSERT.d.ts","sourceRoot":"","sources":["../../../lib/commands/ARRINSERT.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAW,MAAM,mCAAmC,CAAC;AAC/G,OAAO,EAAE,SAAS,EAA8B,MAAM,WAAW,CAAC;;;IAIhE;;;;;;;;;;OAUG;gDAEO,aAAa,OAChB,aAAa,QACZ,aAAa,SACZ,MAAM,QACP,SAAS,YACL,MAAM,SAAS,CAAC;mCAUkB,WAAW,GAAG,WAAW,WAAW,GAAG,SAAS,CAAC;;AA7BjG,wBA8B6B"}
1
+ {"version":3,"file":"ARRINSERT.d.ts","sourceRoot":"","sources":["../../../lib/commands/ARRINSERT.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAW,MAAM,mCAAmC,CAAC;AAC/G,OAAO,EAAE,SAAS,EAA8B,MAAM,sDAAsD,CAAC;;;IAI3G;;;;;;;;;;OAUG;gDAEO,aAAa,OAChB,aAAa,QACZ,aAAa,SACZ,MAAM,QACP,SAAS,YACL,MAAM,SAAS,CAAC;mCAUkB,WAAW,GAAG,WAAW,WAAW,GAAG,SAAS,CAAC;;AA7BjG,wBA8B6B"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const helpers_1 = require("./helpers");
3
+ const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
4
4
  exports.default = {
5
5
  IS_READ_ONLY: false,
6
6
  /**
@@ -17,9 +17,9 @@ exports.default = {
17
17
  parseCommand(parser, key, path, index, json, ...jsons) {
18
18
  parser.push('JSON.ARRINSERT');
19
19
  parser.pushKey(key);
20
- parser.push(path, index.toString(), (0, helpers_1.transformRedisJsonArgument)(json));
20
+ parser.push(path, index.toString(), (0, generic_transformers_1.transformRedisJsonArgument)(json));
21
21
  for (let i = 0; i < jsons.length; i++) {
22
- parser.push((0, helpers_1.transformRedisJsonArgument)(jsons[i]));
22
+ parser.push((0, generic_transformers_1.transformRedisJsonArgument)(jsons[i]));
23
23
  }
24
24
  },
25
25
  transformReply: undefined
@@ -1 +1 @@
1
- {"version":3,"file":"ARRINSERT.js","sourceRoot":"","sources":["../../../lib/commands/ARRINSERT.ts"],"names":[],"mappings":";;AAEA,uCAAkE;AAElE,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;;;OAUG;IACH,YAAY,CACV,MAAqB,EACrB,GAAkB,EAClB,IAAmB,EACnB,KAAa,EACb,IAAe,EACf,GAAG,KAAuB;QAE1B,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC9B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,EAAE,EAAE,IAAA,oCAA0B,EAAC,IAAI,CAAC,CAAC,CAAC;QAEtE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACtC,MAAM,CAAC,IAAI,CAAC,IAAA,oCAA0B,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACpD,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAA+E;CACrE,CAAC"}
1
+ {"version":3,"file":"ARRINSERT.js","sourceRoot":"","sources":["../../../lib/commands/ARRINSERT.ts"],"names":[],"mappings":";;AAEA,+FAA6G;AAE7G,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;;;OAUG;IACH,YAAY,CACV,MAAqB,EACrB,GAAkB,EAClB,IAAmB,EACnB,KAAa,EACb,IAAe,EACf,GAAG,KAAuB;QAE1B,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC9B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,EAAE,EAAE,IAAA,iDAA0B,EAAC,IAAI,CAAC,CAAC,CAAC;QAEtE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACtC,MAAM,CAAC,IAAI,CAAC,IAAA,iDAA0B,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACpD,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAA+E;CACrE,CAAC"}
@@ -17,10 +17,10 @@ declare const _default: {
17
17
  * @param options.index - Optional index to pop from. Default is -1 (last element)
18
18
  */
19
19
  readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, options?: RedisArrPopOptions) => void;
20
- readonly transformReply: (this: void, reply: NullReply | BlobStringReply | ArrayReply<NullReply | BlobStringReply>) => string | number | boolean | NullReply | Date | {
21
- [key: string]: import("./helpers").RedisJSON;
22
- [key: number]: import("./helpers").RedisJSON;
23
- } | (NullReply | import("./helpers").RedisJSON)[] | null;
20
+ readonly transformReply: (this: void, reply: NullReply | BlobStringReply | ArrayReply<NullReply | BlobStringReply>) => string | number | boolean | Date | {
21
+ [key: string]: import("@redis/client/dist/lib/commands/generic-transformers").RedisJSON;
22
+ [key: number]: import("@redis/client/dist/lib/commands/generic-transformers").RedisJSON;
23
+ } | NullReply | (import("@redis/client/dist/lib/commands/generic-transformers").RedisJSON | NullReply)[] | null;
24
24
  };
25
25
  export default _default;
26
26
  //# sourceMappingURL=ARRPOP.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ARRPOP.d.ts","sourceRoot":"","sources":["../../../lib/commands/ARRPOP.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAwB,MAAM,mCAAmC,CAAC;AAIhI,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;;;IAIC;;;;;;;;;OASG;gDACkB,aAAa,OAAO,aAAa,YAAY,kBAAkB;iDAY9D,SAAS,GAAG,eAAe,GAAG,WAAW,SAAS,GAAG,eAAe,CAAC;;;;;AAxB7F,wBA6B6B"}
1
+ {"version":3,"file":"ARRPOP.d.ts","sourceRoot":"","sources":["../../../lib/commands/ARRPOP.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAwB,MAAM,mCAAmC,CAAC;AAGhI,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;;;IAIC;;;;;;;;;OASG;gDACkB,aAAa,OAAO,aAAa,YAAY,kBAAkB;iDAY9D,SAAS,GAAG,eAAe,GAAG,WAAW,SAAS,GAAG,eAAe,CAAC;;;;;AAxB7F,wBA6B6B"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
4
- const helpers_1 = require("./helpers");
5
4
  exports.default = {
6
5
  IS_READ_ONLY: false,
7
6
  /**
@@ -26,8 +25,8 @@ exports.default = {
26
25
  },
27
26
  transformReply(reply) {
28
27
  return (0, generic_transformers_1.isArrayReply)(reply) ?
29
- reply.map(item => (0, helpers_1.transformRedisJsonNullReply)(item)) :
30
- (0, helpers_1.transformRedisJsonNullReply)(reply);
28
+ reply.map(item => (0, generic_transformers_1.transformRedisJsonNullReply)(item)) :
29
+ (0, generic_transformers_1.transformRedisJsonNullReply)(reply);
31
30
  }
32
31
  };
33
32
  //# sourceMappingURL=ARRPOP.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ARRPOP.js","sourceRoot":"","sources":["../../../lib/commands/ARRPOP.ts"],"names":[],"mappings":";;AAEA,+FAAoF;AACpF,uCAAwD;AAOxD,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;;OASG;IACH,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,OAA4B;QAClF,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEpB,IAAI,OAAO,EAAE,CAAC;YACZ,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAE1B,IAAI,OAAO,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;gBAChC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;YACxC,CAAC;QACH,CAAC;IACH,CAAC;IACD,cAAc,CAAC,KAA4E;QACzF,OAAO,IAAA,mCAAY,EAAC,KAAK,CAAC,CAAC,CAAC;YACzB,KAA8C,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAA,qCAA2B,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAChG,IAAA,qCAA2B,EAAC,KAAK,CAAC,CAAC;IACvC,CAAC;CACyB,CAAC"}
1
+ {"version":3,"file":"ARRPOP.js","sourceRoot":"","sources":["../../../lib/commands/ARRPOP.ts"],"names":[],"mappings":";;AAEA,+FAAiH;AAOjH,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;;OASG;IACH,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,OAA4B;QAClF,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEpB,IAAI,OAAO,EAAE,CAAC;YACZ,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YAE1B,IAAI,OAAO,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;gBAChC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;YACxC,CAAC;QACH,CAAC;IACH,CAAC;IACD,cAAc,CAAC,KAA4E;QACzF,OAAO,IAAA,mCAAY,EAAC,KAAK,CAAC,CAAC,CAAC;YACzB,KAA8C,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAA,kDAA2B,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAChG,IAAA,kDAA2B,EAAC,KAAK,CAAC,CAAC;IACvC,CAAC;CACyB,CAAC"}
@@ -1,7 +1,6 @@
1
1
  import { CommandParser } from '@redis/client/dist/lib/client/parser';
2
2
  import { RedisArgument } from '@redis/client/dist/lib/RESP/types';
3
- import { RedisVariadicArgument } from '@redis/client/dist/lib/commands/generic-transformers';
4
- import { transformRedisJsonNullReply } from './helpers';
3
+ import { RedisVariadicArgument, transformRedisJsonNullReply } from '@redis/client/dist/lib/commands/generic-transformers';
5
4
  export interface JsonGetOptions {
6
5
  path?: RedisVariadicArgument;
7
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../lib/commands/GET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAW,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,sDAAsD,CAAC;AAC7F,OAAO,EAAE,2BAA2B,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,qBAAqB,CAAC;CAC9B;;;IAIC;;;;;;;;OAQG;gDAEO,aAAa,OAChB,aAAa,YACR,cAAc;;;AAd5B,wBAuB6B"}
1
+ {"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../lib/commands/GET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAW,MAAM,mCAAmC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AAE1H,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,qBAAqB,CAAC;CAC9B;;;IAIC;;;;;;;;OAQG;gDAEO,aAAa,OAChB,aAAa,YACR,cAAc;;;AAd5B,wBAuB6B"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const helpers_1 = require("./helpers");
3
+ const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
4
4
  exports.default = {
5
5
  IS_READ_ONLY: false,
6
6
  /**
@@ -19,6 +19,6 @@ exports.default = {
19
19
  parser.pushVariadic(options.path);
20
20
  }
21
21
  },
22
- transformReply: helpers_1.transformRedisJsonNullReply
22
+ transformReply: generic_transformers_1.transformRedisJsonNullReply
23
23
  };
24
24
  //# sourceMappingURL=GET.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../lib/commands/GET.ts"],"names":[],"mappings":";;AAGA,uCAAwD;AAMxD,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;OAQG;IACH,YAAY,CACV,MAAqB,EACrB,GAAkB,EAClB,OAAwB;QAExB,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACxB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,IAAI,OAAO,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAChC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACpC,CAAC;IACH,CAAC;IACD,cAAc,EAAE,qCAA2B;CACjB,CAAC"}
1
+ {"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../lib/commands/GET.ts"],"names":[],"mappings":";;AAEA,+FAA0H;AAM1H,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;OAQG;IACH,YAAY,CACV,MAAqB,EACrB,GAAkB,EAClB,OAAwB;QAExB,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACxB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,IAAI,OAAO,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAChC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACpC,CAAC;IACH,CAAC;IACD,cAAc,EAAE,kDAA2B;CACjB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { CommandParser } from '@redis/client/dist/lib/client/parser';
2
2
  import { SimpleStringReply, RedisArgument } from '@redis/client/dist/lib/RESP/types';
3
- import { RedisJSON } from './helpers';
3
+ import { RedisJSON } from '@redis/client/dist/lib/commands/generic-transformers';
4
4
  declare const _default: {
5
5
  readonly IS_READ_ONLY: false;
6
6
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"MERGE.d.ts","sourceRoot":"","sources":["../../../lib/commands/MERGE.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAW,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAC9F,OAAO,EAAE,SAAS,EAA8B,MAAM,WAAW,CAAC;;;IAIhE;;;;;;;;OAQG;gDACkB,aAAa,OAAO,aAAa,QAAQ,aAAa,SAAS,SAAS;mCAK/C,kBAAkB,IAAI,CAAC;;AAhBvE,wBAiB6B"}
1
+ {"version":3,"file":"MERGE.d.ts","sourceRoot":"","sources":["../../../lib/commands/MERGE.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAW,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAC9F,OAAO,EAAE,SAAS,EAA8B,MAAM,sDAAsD,CAAC;;;IAI3G;;;;;;;;OAQG;gDACkB,aAAa,OAAO,aAAa,QAAQ,aAAa,SAAS,SAAS;mCAK/C,kBAAkB,IAAI,CAAC;;AAhBvE,wBAiB6B"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const helpers_1 = require("./helpers");
3
+ const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
4
4
  exports.default = {
5
5
  IS_READ_ONLY: false,
6
6
  /**
@@ -15,7 +15,7 @@ exports.default = {
15
15
  parseCommand(parser, key, path, value) {
16
16
  parser.push('JSON.MERGE');
17
17
  parser.pushKey(key);
18
- parser.push(path, (0, helpers_1.transformRedisJsonArgument)(value));
18
+ parser.push(path, (0, generic_transformers_1.transformRedisJsonArgument)(value));
19
19
  },
20
20
  transformReply: undefined
21
21
  };
@@ -1 +1 @@
1
- {"version":3,"file":"MERGE.js","sourceRoot":"","sources":["../../../lib/commands/MERGE.ts"],"names":[],"mappings":";;AAEA,uCAAkE;AAElE,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;OAQG;IACH,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,IAAmB,EAAE,KAAgB;QAC3F,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAA,oCAA0B,EAAC,KAAK,CAAC,CAAC,CAAC;IACvD,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC"}
1
+ {"version":3,"file":"MERGE.js","sourceRoot":"","sources":["../../../lib/commands/MERGE.ts"],"names":[],"mappings":";;AAEA,+FAA6G;AAE7G,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;OAQG;IACH,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,IAAmB,EAAE,KAAgB;QAC3F,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC1B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAA,iDAA0B,EAAC,KAAK,CAAC,CAAC,CAAC;IACvD,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC"}
@@ -11,7 +11,7 @@ declare const _default: {
11
11
  * @param path - Path to retrieve from each document
12
12
  */
13
13
  readonly parseCommand: (this: void, parser: CommandParser, keys: Array<RedisArgument>, path: RedisArgument) => void;
14
- readonly transformReply: (this: void, reply: UnwrapReply<ArrayReply<NullReply | BlobStringReply>>) => (NullReply | import("./helpers").RedisJSON)[];
14
+ readonly transformReply: (this: void, reply: UnwrapReply<ArrayReply<NullReply | BlobStringReply>>) => (import("@redis/client/dist/lib/commands/generic-transformers").RedisJSON | NullReply)[];
15
15
  };
16
16
  export default _default;
17
17
  //# sourceMappingURL=MGET.d.ts.map
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const helpers_1 = require("./helpers");
3
+ const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
4
4
  exports.default = {
5
5
  IS_READ_ONLY: true,
6
6
  /**
@@ -17,7 +17,7 @@ exports.default = {
17
17
  parser.push(path);
18
18
  },
19
19
  transformReply(reply) {
20
- return reply.map(json => (0, helpers_1.transformRedisJsonNullReply)(json));
20
+ return reply.map(json => (0, generic_transformers_1.transformRedisJsonNullReply)(json));
21
21
  }
22
22
  };
23
23
  //# sourceMappingURL=MGET.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MGET.js","sourceRoot":"","sources":["../../../lib/commands/MGET.ts"],"names":[],"mappings":";;AAEA,uCAAwD;AAExD,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB;;;;;;;OAOG;IACH,YAAY,CAAC,MAAqB,EAAE,IAA0B,EAAE,IAAmB;QACjF,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACzB,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACtB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;IACD,cAAc,CAAC,KAA2D;QACxE,OAAO,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAA,qCAA2B,EAAC,IAAI,CAAC,CAAC,CAAA;IAC7D,CAAC;CACyB,CAAC"}
1
+ {"version":3,"file":"MGET.js","sourceRoot":"","sources":["../../../lib/commands/MGET.ts"],"names":[],"mappings":";;AAEA,+FAAmG;AAEnG,kBAAe;IACb,YAAY,EAAE,IAAI;IAClB;;;;;;;OAOG;IACH,YAAY,CAAC,MAAqB,EAAE,IAA0B,EAAE,IAAmB;QACjF,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACzB,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACtB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;IACD,cAAc,CAAC,KAA2D;QACxE,OAAO,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAA,kDAA2B,EAAC,IAAI,CAAC,CAAC,CAAA;IAC7D,CAAC;CACyB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { CommandParser } from '@redis/client/dist/lib/client/parser';
2
2
  import { RedisArgument, SimpleStringReply } from '@redis/client/dist/lib/RESP/types';
3
- import { RedisJSON } from './helpers';
3
+ import { RedisJSON } from '@redis/client/dist/lib/commands/generic-transformers';
4
4
  export interface JsonMSetItem {
5
5
  key: RedisArgument;
6
6
  path: RedisArgument;
@@ -1 +1 @@
1
- {"version":3,"file":"MSET.d.ts","sourceRoot":"","sources":["../../../lib/commands/MSET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAW,MAAM,mCAAmC,CAAC;AAC9F,OAAO,EAAE,SAAS,EAA8B,MAAM,WAAW,CAAC;AAElE,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,aAAa,CAAC;IACnB,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,SAAS,CAAC;CAClB;;;IAIC;;;;;;;;;OASG;gDACkB,aAAa,SAAS,MAAM,YAAY,CAAC;mCAQhB,kBAAkB,IAAI,CAAC;;AApBvE,wBAqB6B"}
1
+ {"version":3,"file":"MSET.d.ts","sourceRoot":"","sources":["../../../lib/commands/MSET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAW,MAAM,mCAAmC,CAAC;AAC9F,OAAO,EAAE,SAAS,EAA8B,MAAM,sDAAsD,CAAC;AAE7G,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,aAAa,CAAC;IACnB,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,SAAS,CAAC;CAClB;;;IAIC;;;;;;;;;OASG;gDACkB,aAAa,SAAS,MAAM,YAAY,CAAC;mCAQhB,kBAAkB,IAAI,CAAC;;AApBvE,wBAqB6B"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const helpers_1 = require("./helpers");
3
+ const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
4
4
  exports.default = {
5
5
  IS_READ_ONLY: false,
6
6
  /**
@@ -17,7 +17,7 @@ exports.default = {
17
17
  parser.push('JSON.MSET');
18
18
  for (let i = 0; i < items.length; i++) {
19
19
  parser.pushKey(items[i].key);
20
- parser.push(items[i].path, (0, helpers_1.transformRedisJsonArgument)(items[i].value));
20
+ parser.push(items[i].path, (0, generic_transformers_1.transformRedisJsonArgument)(items[i].value));
21
21
  }
22
22
  },
23
23
  transformReply: undefined
@@ -1 +1 @@
1
- {"version":3,"file":"MSET.js","sourceRoot":"","sources":["../../../lib/commands/MSET.ts"],"names":[],"mappings":";;AAEA,uCAAkE;AAQlE,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;;OASG;IACH,YAAY,CAAC,MAAqB,EAAE,KAA0B;QAC5D,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAEzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACtC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;YAC7B,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,IAAA,oCAA0B,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QACzE,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC"}
1
+ {"version":3,"file":"MSET.js","sourceRoot":"","sources":["../../../lib/commands/MSET.ts"],"names":[],"mappings":";;AAEA,+FAA6G;AAQ7G,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;;OASG;IACH,YAAY,CAAC,MAAqB,EAAE,KAA0B;QAC5D,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAEzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACtC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;YAC7B,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,IAAA,iDAA0B,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QACzE,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAqD;CAC3C,CAAC"}
@@ -14,7 +14,7 @@ declare const _default: {
14
14
  readonly parseCommand: (this: void, parser: CommandParser, key: RedisArgument, path: RedisArgument, by: number) => void;
15
15
  readonly transformReply: {
16
16
  readonly 2: (reply: import("@redis/client/dist/lib/RESP/types").UnwrapReply<import("@redis/client/dist/lib/RESP/types").BlobStringReply<string>>) => number | (number | null)[];
17
- readonly 3: () => import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
17
+ 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>>;
18
18
  };
19
19
  };
20
20
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { CommandParser } from '@redis/client/dist/lib/client/parser';
2
2
  import { RedisArgument, SimpleStringReply, NullReply } from '@redis/client/dist/lib/RESP/types';
3
- import { RedisJSON } from './helpers';
3
+ import { RedisJSON } from '@redis/client/dist/lib/commands/generic-transformers';
4
4
  export interface JsonSetOptions {
5
5
  condition?: 'NX' | 'XX';
6
6
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"SET.d.ts","sourceRoot":"","sources":["../../../lib/commands/SET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,SAAS,EAAW,MAAM,mCAAmC,CAAC;AACzG,OAAO,EAAE,SAAS,EAA8B,MAAM,WAAW,CAAC;AAElE,MAAM,WAAW,cAAc;IAC7B,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,EAAE,CAAC,EAAE,OAAO,CAAC;IACb;;OAEG;IACH,EAAE,CAAC,EAAE,OAAO,CAAC;CACd;;;IAIC;;;;;;;;;;;;OAYG;gDAEO,aAAa,OAChB,aAAa,QACZ,aAAa,QACb,SAAS,YACL,cAAc;mCAcoB,kBAAkB,IAAI,CAAC,GAAG,SAAS;;AAlCnF,wBAmC6B"}
1
+ {"version":3,"file":"SET.d.ts","sourceRoot":"","sources":["../../../lib/commands/SET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,SAAS,EAAW,MAAM,mCAAmC,CAAC;AACzG,OAAO,EAAE,SAAS,EAA8B,MAAM,sDAAsD,CAAC;AAE7G,MAAM,WAAW,cAAc;IAC7B,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,EAAE,CAAC,EAAE,OAAO,CAAC;IACb;;OAEG;IACH,EAAE,CAAC,EAAE,OAAO,CAAC;CACd;;;IAIC;;;;;;;;;;;;OAYG;gDAEO,aAAa,OAChB,aAAa,QACZ,aAAa,QACb,SAAS,YACL,cAAc;mCAcoB,kBAAkB,IAAI,CAAC,GAAG,SAAS;;AAlCnF,wBAmC6B"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const helpers_1 = require("./helpers");
3
+ const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
4
4
  exports.default = {
5
5
  IS_READ_ONLY: false,
6
6
  /**
@@ -19,7 +19,7 @@ exports.default = {
19
19
  parseCommand(parser, key, path, json, options) {
20
20
  parser.push('JSON.SET');
21
21
  parser.pushKey(key);
22
- parser.push(path, (0, helpers_1.transformRedisJsonArgument)(json));
22
+ parser.push(path, (0, generic_transformers_1.transformRedisJsonArgument)(json));
23
23
  if (options?.condition) {
24
24
  parser.push(options?.condition);
25
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SET.js","sourceRoot":"","sources":["../../../lib/commands/SET.ts"],"names":[],"mappings":";;AAEA,uCAAkE;AAclE,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;;;;;OAYG;IACH,YAAY,CACV,MAAqB,EACrB,GAAkB,EAClB,IAAmB,EACnB,IAAe,EACf,OAAwB;QAExB,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACxB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAA,oCAA0B,EAAC,IAAI,CAAC,CAAC,CAAC;QAEpD,IAAI,OAAO,EAAE,SAAS,EAAE,CAAC;YACvB,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QAClC,CAAC;aAAM,IAAI,OAAO,EAAE,EAAE,EAAE,CAAC;YACvB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC;aAAM,IAAI,OAAO,EAAE,EAAE,EAAE,CAAC;YACvB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAiE;CACvD,CAAC"}
1
+ {"version":3,"file":"SET.js","sourceRoot":"","sources":["../../../lib/commands/SET.ts"],"names":[],"mappings":";;AAEA,+FAA6G;AAc7G,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;;;;;OAYG;IACH,YAAY,CACV,MAAqB,EACrB,GAAkB,EAClB,IAAmB,EACnB,IAAe,EACf,OAAwB;QAExB,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACxB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACpB,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAA,iDAA0B,EAAC,IAAI,CAAC,CAAC,CAAC;QAEpD,IAAI,OAAO,EAAE,SAAS,EAAE,CAAC;YACvB,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;QAClC,CAAC;aAAM,IAAI,OAAO,EAAE,EAAE,EAAE,CAAC;YACvB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC;aAAM,IAAI,OAAO,EAAE,EAAE,EAAE,CAAC;YACvB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC;IACH,CAAC;IACD,cAAc,EAAE,SAAiE;CACvD,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const helpers_1 = require("./helpers");
3
+ const generic_transformers_1 = require("@redis/client/dist/lib/commands/generic-transformers");
4
4
  exports.default = {
5
5
  IS_READ_ONLY: false,
6
6
  /**
@@ -19,7 +19,7 @@ exports.default = {
19
19
  if (options?.path !== undefined) {
20
20
  parser.push(options.path);
21
21
  }
22
- parser.push((0, helpers_1.transformRedisJsonArgument)(append));
22
+ parser.push((0, generic_transformers_1.transformRedisJsonArgument)(append));
23
23
  },
24
24
  transformReply: undefined
25
25
  };
@@ -1 +1 @@
1
- {"version":3,"file":"STRAPPEND.js","sourceRoot":"","sources":["../../../lib/commands/STRAPPEND.ts"],"names":[],"mappings":";;AAEA,uCAAuD;AAMvD,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;;OASG;IACH,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,MAAc,EAAE,OAA8B;QACpG,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC9B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEpB,IAAI,OAAO,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAChC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;QAED,MAAM,CAAC,IAAI,CAAC,IAAA,oCAA0B,EAAC,MAAM,CAAC,CAAC,CAAC;IAClD,CAAC;IACD,cAAc,EAAE,SAA+E;CACrE,CAAC"}
1
+ {"version":3,"file":"STRAPPEND.js","sourceRoot":"","sources":["../../../lib/commands/STRAPPEND.ts"],"names":[],"mappings":";;AAEA,+FAAkG;AAMlG,kBAAe;IACb,YAAY,EAAE,KAAK;IACnB;;;;;;;;;OASG;IACH,YAAY,CAAC,MAAqB,EAAE,GAAkB,EAAE,MAAc,EAAE,OAA8B;QACpG,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAC9B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAEpB,IAAI,OAAO,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAChC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;QAED,MAAM,CAAC,IAAI,CAAC,IAAA,iDAA0B,EAAC,MAAM,CAAC,CAAC,CAAC;IAClD,CAAC;IACD,cAAc,EAAE,SAA+E;CACrE,CAAC"}
@@ -1,70 +1,71 @@
1
- export * from './helpers';
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("./helpers").RedisJSON, ...jsons: import("./helpers").RedisJSON[]) => void;
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").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
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("./helpers").RedisJSON, ...jsons: import("./helpers").RedisJSON[]) => void;
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").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
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("./helpers").RedisJSON, options?: import("./ARRINDEX").JsonArrIndexOptions | undefined) => void;
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").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
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("./helpers").RedisJSON, options?: import("./ARRINDEX").JsonArrIndexOptions | undefined) => void;
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").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
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("./helpers").RedisJSON, ...jsons: import("./helpers").RedisJSON[]) => void;
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").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
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("./helpers").RedisJSON, ...jsons: import("./helpers").RedisJSON[]) => void;
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").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
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").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
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").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
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 | import("@redis/client/dist/lib/RESP/types").NullReply | Date | {
47
- [key: string]: import("./helpers").RedisJSON;
48
- [key: number]: import("./helpers").RedisJSON;
49
- } | (import("@redis/client/dist/lib/RESP/types").NullReply | import("./helpers").RedisJSON)[] | null;
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 | import("@redis/client/dist/lib/RESP/types").NullReply | Date | {
55
- [key: string]: import("./helpers").RedisJSON;
56
- [key: number]: import("./helpers").RedisJSON;
57
- } | (import("@redis/client/dist/lib/RESP/types").NullReply | import("./helpers").RedisJSON)[] | null;
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").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
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").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
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("./helpers").transformRedisJsonNullReply;
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("./helpers").transformRedisJsonNullReply;
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("./helpers").RedisJSON) => void;
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("./helpers").RedisJSON) => void;
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/RESP/types").NullReply | import("./helpers").RedisJSON)[];
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/RESP/types").NullReply | import("./helpers").RedisJSON)[];
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").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
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").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
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").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
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").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").DoubleReply<number>>;
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").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
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").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
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("./helpers").RedisJSON, options?: import("./SET").JsonSetOptions | undefined) => void;
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("./helpers").RedisJSON, options?: import("./SET").JsonSetOptions | undefined) => void;
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").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
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").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
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").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
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").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
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").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
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").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number> | import("@redis/client/dist/lib/RESP/types").ArrayReply<import("@redis/client/dist/lib/RESP/types").NullReply | import("@redis/client/dist/lib/RESP/types").NumberReply<number>>;
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":"AAyBA,cAAc,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiCxB;;OAEG;;;;;;;;;IAEH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AArCL,wBAuDE"}
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
- __exportStar(require("./helpers"), exports);
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":";;;;;;;;;;;;;;;;;;;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;AAE1B,4CAA0B;AAE1B,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"}
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"}
@@ -1,2 +1,3 @@
1
1
  export { default } from './commands';
2
+ export type { RedisJSON } from './commands';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,YAAY,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redis/json",
3
- "version": "5.5.6",
3
+ "version": "5.6.1",
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.5.6"
16
+ "@redis/client": "^5.6.1"
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"}