@upstash/redis 0.0.0-ci.8132df91-20231017 → 0.0.0-ci.822f8506-20231017

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.
@@ -15,7 +15,6 @@ export * from "./expire.js";
15
15
  export * from "./expireat.js";
16
16
  export * from "./flushall.js";
17
17
  export * from "./flushdb.js";
18
- export * from "./geo_add.js";
19
18
  export * from "./get.js";
20
19
  export * from "./getbit.js";
21
20
  export * from "./getdel.js";
@@ -138,7 +137,6 @@ export * from "./zremrangebyscore.js";
138
137
  export * from "./zrevrank.js";
139
138
  export * from "./zscan.js";
140
139
  export * from "./zscore.js";
141
- export * from "./zunion.js";
142
140
  export * from "./zunionstore.js";
143
141
  export * from "./xadd.js";
144
142
  export * from "./xrange.js";
@@ -1,4 +1,4 @@
1
- import { AppendCommand, BitCountCommand, BitOpCommand, BitPosCommand, DBSizeCommand, DecrByCommand, DecrCommand, DelCommand, EchoCommand, EvalCommand, EvalshaCommand, ExistsCommand, ExpireAtCommand, ExpireCommand, FlushAllCommand, FlushDBCommand, GetBitCommand, GetCommand, GetDelCommand, GetRangeCommand, GetSetCommand, HDelCommand, HExistsCommand, HGetAllCommand, HGetCommand, HIncrByCommand, HIncrByFloatCommand, HKeysCommand, HLenCommand, HMGetCommand, HMSetCommand, HScanCommand, HSetCommand, HSetNXCommand, HStrLenCommand, HValsCommand, IncrByCommand, IncrByFloatCommand, IncrCommand, JsonArrAppendCommand, JsonArrIndexCommand, JsonArrInsertCommand, JsonArrLenCommand, JsonArrPopCommand, JsonArrTrimCommand, JsonClearCommand, JsonDelCommand, JsonForgetCommand, JsonGetCommand, JsonMGetCommand, JsonNumIncrByCommand, JsonNumMultByCommand, JsonObjKeysCommand, JsonObjLenCommand, JsonRespCommand, JsonSetCommand, JsonStrAppendCommand, JsonStrLenCommand, JsonToggleCommand, JsonTypeCommand, KeysCommand, LIndexCommand, LInsertCommand, LLenCommand, LMoveCommand, LPopCommand, LPosCommand, LPushCommand, LPushXCommand, LRangeCommand, LRemCommand, LSetCommand, LTrimCommand, MGetCommand, MSetCommand, MSetNXCommand, PersistCommand, PExpireAtCommand, PExpireCommand, PingCommand, PSetEXCommand, PTtlCommand, PublishCommand, RandomKeyCommand, RenameCommand, RenameNXCommand, RPopCommand, RPushCommand, RPushXCommand, SAddCommand, ScanCommand, SCardCommand, ScriptExistsCommand, ScriptFlushCommand, ScriptLoadCommand, SDiffCommand, SDiffStoreCommand, SetBitCommand, SetCommand, SetExCommand, SetNxCommand, SetRangeCommand, SInterCommand, SInterStoreCommand, SIsMemberCommand, SMembersCommand, SMIsMemberCommand, SMoveCommand, SPopCommand, SRandMemberCommand, SRemCommand, SScanCommand, StrLenCommand, SUnionCommand, SUnionStoreCommand, TimeCommand, TouchCommand, TtlCommand, TypeCommand, UnlinkCommand, ZAddCommand, ZCardCommand, ZCountCommand, ZIncrByCommand, ZInterStoreCommand, ZLexCountCommand, ZPopMaxCommand, ZPopMinCommand, ZRangeCommand, ZRankCommand, ZRemCommand, ZRemRangeByLexCommand, ZRemRangeByRankCommand, ZRemRangeByScoreCommand, ZRevRankCommand, ZScanCommand, ZScoreCommand, ZUnionCommand, ZUnionStoreCommand, } from "./commands/mod.js";
1
+ import { AppendCommand, BitCountCommand, BitOpCommand, BitPosCommand, DBSizeCommand, DecrByCommand, DecrCommand, DelCommand, EchoCommand, EvalCommand, EvalshaCommand, ExistsCommand, ExpireAtCommand, ExpireCommand, FlushAllCommand, FlushDBCommand, GetBitCommand, GetCommand, GetDelCommand, GetRangeCommand, GetSetCommand, HDelCommand, HExistsCommand, HGetAllCommand, HGetCommand, HIncrByCommand, HIncrByFloatCommand, HKeysCommand, HLenCommand, HMGetCommand, HMSetCommand, HScanCommand, HSetCommand, HSetNXCommand, HStrLenCommand, HValsCommand, IncrByCommand, IncrByFloatCommand, IncrCommand, JsonArrAppendCommand, JsonArrIndexCommand, JsonArrInsertCommand, JsonArrLenCommand, JsonArrPopCommand, JsonArrTrimCommand, JsonClearCommand, JsonDelCommand, JsonForgetCommand, JsonGetCommand, JsonMGetCommand, JsonNumIncrByCommand, JsonNumMultByCommand, JsonObjKeysCommand, JsonObjLenCommand, JsonRespCommand, JsonSetCommand, JsonStrAppendCommand, JsonStrLenCommand, JsonToggleCommand, JsonTypeCommand, KeysCommand, LIndexCommand, LInsertCommand, LLenCommand, LMoveCommand, LPopCommand, LPosCommand, LPushCommand, LPushXCommand, LRangeCommand, LRemCommand, LSetCommand, LTrimCommand, MGetCommand, MSetCommand, MSetNXCommand, PersistCommand, PExpireAtCommand, PExpireCommand, PingCommand, PSetEXCommand, PTtlCommand, PublishCommand, RandomKeyCommand, RenameCommand, RenameNXCommand, RPopCommand, RPushCommand, RPushXCommand, SAddCommand, ScanCommand, SCardCommand, ScriptExistsCommand, ScriptFlushCommand, ScriptLoadCommand, SDiffCommand, SDiffStoreCommand, SetBitCommand, SetCommand, SetExCommand, SetNxCommand, SetRangeCommand, SInterCommand, SInterStoreCommand, SIsMemberCommand, SMembersCommand, SMIsMemberCommand, SMoveCommand, SPopCommand, SRandMemberCommand, SRemCommand, SScanCommand, StrLenCommand, SUnionCommand, SUnionStoreCommand, TimeCommand, TouchCommand, TtlCommand, TypeCommand, UnlinkCommand, ZAddCommand, ZCardCommand, ZCountCommand, ZIncrByCommand, ZInterStoreCommand, ZLexCountCommand, ZPopMaxCommand, ZPopMinCommand, ZRangeCommand, ZRankCommand, ZRemCommand, ZRemRangeByLexCommand, ZRemRangeByRankCommand, ZRemRangeByScoreCommand, ZRevRankCommand, ZScanCommand, ZScoreCommand, ZUnionStoreCommand, } from "./commands/mod.js";
2
2
  import { UpstashError } from "./error.js";
3
3
  import { ZMScoreCommand } from "./commands/zmscore.js";
4
4
  import { HRandFieldCommand } from "./commands/hrandfield.js";
@@ -1185,15 +1185,6 @@ export class Pipeline {
1185
1185
  writable: true,
1186
1186
  value: (...args) => this.chain(new ZUnionStoreCommand(args, this.commandOptions))
1187
1187
  });
1188
- /**
1189
- * @see https://redis.io/commands/zunion
1190
- */
1191
- Object.defineProperty(this, "zunion", {
1192
- enumerable: true,
1193
- configurable: true,
1194
- writable: true,
1195
- value: (...args) => this.chain(new ZUnionCommand(args, this.commandOptions))
1196
- });
1197
1188
  this.client = opts.client;
1198
1189
  this.commands = []; // the TCommands generic in the class definition is only used for carrying through chained command types and should never be explicitly set when instantiating the class
1199
1190
  this.commandOptions = opts.commandOptions;
package/esm/pkg/redis.js CHANGED
@@ -1,4 +1,4 @@
1
- import { AppendCommand, BitCountCommand, BitOpCommand, BitPosCommand, DBSizeCommand, DecrByCommand, DecrCommand, DelCommand, EchoCommand, EvalCommand, EvalshaCommand, ExistsCommand, ExpireAtCommand, ExpireCommand, FlushAllCommand, FlushDBCommand, GeoAddCommand, GetBitCommand, GetCommand, GetDelCommand, GetRangeCommand, GetSetCommand, HDelCommand, HExistsCommand, HGetAllCommand, HGetCommand, HIncrByCommand, HIncrByFloatCommand, HKeysCommand, HLenCommand, HMGetCommand, HMSetCommand, HRandFieldCommand, HScanCommand, HSetCommand, HSetNXCommand, HStrLenCommand, HValsCommand, IncrByCommand, IncrByFloatCommand, IncrCommand, JsonArrAppendCommand, JsonArrIndexCommand, JsonArrInsertCommand, JsonArrLenCommand, JsonArrPopCommand, JsonArrTrimCommand, JsonClearCommand, JsonDelCommand, JsonForgetCommand, JsonGetCommand, JsonMGetCommand, JsonNumIncrByCommand, JsonNumMultByCommand, JsonObjKeysCommand, JsonObjLenCommand, JsonRespCommand, JsonSetCommand, JsonStrAppendCommand, JsonStrLenCommand, JsonToggleCommand, JsonTypeCommand, KeysCommand, LIndexCommand, LInsertCommand, LLenCommand, LMoveCommand, LPopCommand, LPosCommand, LPushCommand, LPushXCommand, LRangeCommand, LRemCommand, LSetCommand, LTrimCommand, MGetCommand, MSetCommand, MSetNXCommand, PersistCommand, PExpireAtCommand, PExpireCommand, PingCommand, PSetEXCommand, PTtlCommand, PublishCommand, RandomKeyCommand, RenameCommand, RenameNXCommand, RPopCommand, RPushCommand, RPushXCommand, SAddCommand, ScanCommand, SCardCommand, ScriptExistsCommand, ScriptFlushCommand, ScriptLoadCommand, SDiffCommand, SDiffStoreCommand, SetBitCommand, SetCommand, SetExCommand, SetNxCommand, SetRangeCommand, SInterCommand, SInterStoreCommand, SIsMemberCommand, SMembersCommand, SMIsMemberCommand, SMoveCommand, SPopCommand, SRandMemberCommand, SRemCommand, SScanCommand, StrLenCommand, SUnionCommand, SUnionStoreCommand, TimeCommand, TouchCommand, TtlCommand, TypeCommand, UnlinkCommand, XAddCommand, XRangeCommand, ZAddCommand, ZCardCommand, ZCountCommand, ZIncrByCommand, ZInterStoreCommand, ZLexCountCommand, ZPopMaxCommand, ZPopMinCommand, ZRangeCommand, ZRankCommand, ZRemCommand, ZRemRangeByLexCommand, ZRemRangeByRankCommand, ZRemRangeByScoreCommand, ZRevRankCommand, ZScanCommand, ZScoreCommand, ZUnionCommand, ZUnionStoreCommand, } from "./commands/mod.js";
1
+ import { AppendCommand, BitCountCommand, BitOpCommand, BitPosCommand, DBSizeCommand, DecrByCommand, DecrCommand, DelCommand, EchoCommand, EvalCommand, EvalshaCommand, ExistsCommand, ExpireAtCommand, ExpireCommand, FlushAllCommand, FlushDBCommand, GetBitCommand, GetCommand, GetDelCommand, GetRangeCommand, GetSetCommand, HDelCommand, HExistsCommand, HGetAllCommand, HGetCommand, HIncrByCommand, HIncrByFloatCommand, HKeysCommand, HLenCommand, HMGetCommand, HMSetCommand, HRandFieldCommand, HScanCommand, HSetCommand, HSetNXCommand, HStrLenCommand, HValsCommand, IncrByCommand, IncrByFloatCommand, IncrCommand, JsonArrAppendCommand, JsonArrIndexCommand, JsonArrInsertCommand, JsonArrLenCommand, JsonArrPopCommand, JsonArrTrimCommand, JsonClearCommand, JsonDelCommand, JsonForgetCommand, JsonGetCommand, JsonMGetCommand, JsonNumIncrByCommand, JsonNumMultByCommand, JsonObjKeysCommand, JsonObjLenCommand, JsonRespCommand, JsonSetCommand, JsonStrAppendCommand, JsonStrLenCommand, JsonToggleCommand, JsonTypeCommand, KeysCommand, LIndexCommand, LInsertCommand, LLenCommand, LMoveCommand, LPopCommand, LPosCommand, LPushCommand, LPushXCommand, LRangeCommand, LRemCommand, LSetCommand, LTrimCommand, MGetCommand, MSetCommand, MSetNXCommand, PersistCommand, PExpireAtCommand, PExpireCommand, PingCommand, PSetEXCommand, PTtlCommand, PublishCommand, RandomKeyCommand, RenameCommand, RenameNXCommand, RPopCommand, RPushCommand, RPushXCommand, SAddCommand, ScanCommand, SCardCommand, ScriptExistsCommand, ScriptFlushCommand, ScriptLoadCommand, SDiffCommand, SDiffStoreCommand, SetBitCommand, SetCommand, SetExCommand, SetNxCommand, SetRangeCommand, SInterCommand, SInterStoreCommand, SIsMemberCommand, SMembersCommand, SMIsMemberCommand, SMoveCommand, SPopCommand, SRandMemberCommand, SRemCommand, SScanCommand, StrLenCommand, SUnionCommand, SUnionStoreCommand, TimeCommand, TouchCommand, TtlCommand, TypeCommand, UnlinkCommand, XAddCommand, XRangeCommand, ZAddCommand, ZCardCommand, ZCountCommand, ZIncrByCommand, ZInterStoreCommand, ZLexCountCommand, ZPopMaxCommand, ZPopMinCommand, ZRangeCommand, ZRankCommand, ZRemCommand, ZRemRangeByLexCommand, ZRemRangeByRankCommand, ZRemRangeByScoreCommand, ZRevRankCommand, ZScanCommand, ZScoreCommand, ZUnionStoreCommand, } from "./commands/mod.js";
2
2
  import { Pipeline } from "./pipeline.js";
3
3
  import { Script } from "./script.js";
4
4
  import { ZMScoreCommand } from "./commands/zmscore.js";
@@ -589,12 +589,7 @@ export class Redis {
589
589
  enumerable: true,
590
590
  configurable: true,
591
591
  writable: true,
592
- value: (...args) => {
593
- const queries = Array.isArray(args[0])
594
- ? args[0]
595
- : args;
596
- return new MGetCommand(queries, this.opts).exec(this.client);
597
- }
592
+ value: (...args) => new MGetCommand(args, this.opts).exec(this.client)
598
593
  });
599
594
  /**
600
595
  * @see https://redis.io/commands/mset
@@ -1204,15 +1199,6 @@ export class Redis {
1204
1199
  writable: true,
1205
1200
  value: (key, member) => new ZScoreCommand([key, member], this.opts).exec(this.client)
1206
1201
  });
1207
- /**
1208
- * @see https://redis.io/commands/zunion
1209
- */
1210
- Object.defineProperty(this, "zunion", {
1211
- enumerable: true,
1212
- configurable: true,
1213
- writable: true,
1214
- value: (...args) => new ZUnionCommand(args, this.opts).exec(this.client)
1215
- });
1216
1202
  /**
1217
1203
  * @see https://redis.io/commands/zunionstore
1218
1204
  */
@@ -1264,10 +1250,6 @@ export class Redis {
1264
1250
  * @see https://redis.io/commands/json.forget
1265
1251
  */
1266
1252
  forget: (...args) => new JsonForgetCommand(args, this.opts).exec(this.client),
1267
- /**
1268
- * @see https://redis.io/commands/geoadd
1269
- */
1270
- geoadd: (...args) => new GeoAddCommand(args, this.opts).exec(this.client),
1271
1253
  /**
1272
1254
  * @see https://redis.io/commands/json.get
1273
1255
  */
package/esm/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "v0.0.0-ci.8132df91-20231017";
1
+ export const VERSION = "v0.0.0-ci.822f8506-20231017";
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "main": "./script/platforms/nodejs.js",
4
4
  "types": "./types/platforms/nodejs.d.ts",
5
5
  "name": "@upstash/redis",
6
- "version": "v0.0.0-ci.8132df91-20231017",
6
+ "version": "v0.0.0-ci.822f8506-20231017",
7
7
  "description": "An HTTP/REST based Redis client built on top of Upstash REST API.",
8
8
  "repository": {
9
9
  "type": "git",
@@ -31,7 +31,6 @@ __exportStar(require("./expire.js"), exports);
31
31
  __exportStar(require("./expireat.js"), exports);
32
32
  __exportStar(require("./flushall.js"), exports);
33
33
  __exportStar(require("./flushdb.js"), exports);
34
- __exportStar(require("./geo_add.js"), exports);
35
34
  __exportStar(require("./get.js"), exports);
36
35
  __exportStar(require("./getbit.js"), exports);
37
36
  __exportStar(require("./getdel.js"), exports);
@@ -154,7 +153,6 @@ __exportStar(require("./zremrangebyscore.js"), exports);
154
153
  __exportStar(require("./zrevrank.js"), exports);
155
154
  __exportStar(require("./zscan.js"), exports);
156
155
  __exportStar(require("./zscore.js"), exports);
157
- __exportStar(require("./zunion.js"), exports);
158
156
  __exportStar(require("./zunionstore.js"), exports);
159
157
  __exportStar(require("./xadd.js"), exports);
160
158
  __exportStar(require("./xrange.js"), exports);
@@ -1188,15 +1188,6 @@ class Pipeline {
1188
1188
  writable: true,
1189
1189
  value: (...args) => this.chain(new mod_js_1.ZUnionStoreCommand(args, this.commandOptions))
1190
1190
  });
1191
- /**
1192
- * @see https://redis.io/commands/zunion
1193
- */
1194
- Object.defineProperty(this, "zunion", {
1195
- enumerable: true,
1196
- configurable: true,
1197
- writable: true,
1198
- value: (...args) => this.chain(new mod_js_1.ZUnionCommand(args, this.commandOptions))
1199
- });
1200
1191
  this.client = opts.client;
1201
1192
  this.commands = []; // the TCommands generic in the class definition is only used for carrying through chained command types and should never be explicitly set when instantiating the class
1202
1193
  this.commandOptions = opts.commandOptions;
@@ -592,12 +592,7 @@ class Redis {
592
592
  enumerable: true,
593
593
  configurable: true,
594
594
  writable: true,
595
- value: (...args) => {
596
- const queries = Array.isArray(args[0])
597
- ? args[0]
598
- : args;
599
- return new mod_js_1.MGetCommand(queries, this.opts).exec(this.client);
600
- }
595
+ value: (...args) => new mod_js_1.MGetCommand(args, this.opts).exec(this.client)
601
596
  });
602
597
  /**
603
598
  * @see https://redis.io/commands/mset
@@ -1207,15 +1202,6 @@ class Redis {
1207
1202
  writable: true,
1208
1203
  value: (key, member) => new mod_js_1.ZScoreCommand([key, member], this.opts).exec(this.client)
1209
1204
  });
1210
- /**
1211
- * @see https://redis.io/commands/zunion
1212
- */
1213
- Object.defineProperty(this, "zunion", {
1214
- enumerable: true,
1215
- configurable: true,
1216
- writable: true,
1217
- value: (...args) => new mod_js_1.ZUnionCommand(args, this.opts).exec(this.client)
1218
- });
1219
1205
  /**
1220
1206
  * @see https://redis.io/commands/zunionstore
1221
1207
  */
@@ -1267,10 +1253,6 @@ class Redis {
1267
1253
  * @see https://redis.io/commands/json.forget
1268
1254
  */
1269
1255
  forget: (...args) => new mod_js_1.JsonForgetCommand(args, this.opts).exec(this.client),
1270
- /**
1271
- * @see https://redis.io/commands/geoadd
1272
- */
1273
- geoadd: (...args) => new mod_js_1.GeoAddCommand(args, this.opts).exec(this.client),
1274
1256
  /**
1275
1257
  * @see https://redis.io/commands/json.get
1276
1258
  */
package/script/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = "v0.0.0-ci.8132df91-20231017";
4
+ exports.VERSION = "v0.0.0-ci.822f8506-20231017";
@@ -15,7 +15,6 @@ export * from "./expire.js";
15
15
  export * from "./expireat.js";
16
16
  export * from "./flushall.js";
17
17
  export * from "./flushdb.js";
18
- export * from "./geo_add.js";
19
18
  export * from "./get.js";
20
19
  export * from "./getbit.js";
21
20
  export * from "./getdel.js";
@@ -138,7 +137,6 @@ export * from "./zremrangebyscore.js";
138
137
  export * from "./zrevrank.js";
139
138
  export * from "./zscan.js";
140
139
  export * from "./zscore.js";
141
- export * from "./zunion.js";
142
140
  export * from "./zunionstore.js";
143
141
  export * from "./xadd.js";
144
142
  export * from "./xrange.js";
@@ -583,10 +583,6 @@ export declare class Pipeline<TCommands extends Command<any, any>[] = []> {
583
583
  * @see https://redis.io/commands/zunionstore
584
584
  */
585
585
  zunionstore: (destination: string, numKeys: number, keys: string[], opts?: import("./commands/zunionstore.js").ZUnionStoreCommandOptions | undefined) => Pipeline<[...TCommands, Command<any, number>]>;
586
- /**
587
- * @see https://redis.io/commands/zunion
588
- */
589
- zunion: (numKeys: number, keys: string[], opts?: import("./commands/zunion.js").ZUnionCommandOptions | undefined) => Pipeline<[...TCommands, Command<any, any>]>;
590
586
  /**
591
587
  * @see https://redis.io/commands/?group=json
592
588
  */
@@ -1,4 +1,4 @@
1
- import { CommandOptions, DelCommand, ExistsCommand, FlushAllCommand, JsonGetCommand, PingCommand, ScoreMember, ScriptExistsCommand, SetCommandOptions, TouchCommand, UnlinkCommand, ZAddCommandOptions, ZAddCommandOptionsWithIncr, ZRangeCommandOptions } from "./commands/mod.js";
1
+ import { CommandOptions, DelCommand, ExistsCommand, FlushAllCommand, JsonGetCommand, MGetCommand, PingCommand, ScoreMember, ScriptExistsCommand, SetCommandOptions, TouchCommand, UnlinkCommand, ZAddCommandOptions, ZAddCommandOptionsWithIncr, ZRangeCommandOptions } from "./commands/mod.js";
2
2
  import { Requester, UpstashRequest, UpstashResponse } from "./http.js";
3
3
  import { Pipeline } from "./pipeline.js";
4
4
  import type { CommandArgs } from "./types.js";
@@ -61,10 +61,6 @@ export declare class Redis {
61
61
  * @see https://redis.io/commands/json.forget
62
62
  */
63
63
  forget: (key: string, path?: string | undefined) => Promise<number>;
64
- /**
65
- * @see https://redis.io/commands/geoadd
66
- */
67
- geoadd: (args_0: string, args_1: import("./commands/geo_add.js").GeoAddCommandOptions | import("./commands/geo_add.js").GeoMember<unknown>, ...args_2: import("./commands/geo_add.js").GeoMember<unknown>[]) => Promise<number | null>;
68
64
  /**
69
65
  * @see https://redis.io/commands/json.get
70
66
  */
@@ -377,7 +373,7 @@ export declare class Redis {
377
373
  /**
378
374
  * @see https://redis.io/commands/mget
379
375
  */
380
- mget: <TData extends unknown[]>(...args: (string | string[])[]) => Promise<TData>;
376
+ mget: <TData extends unknown[]>(...args: CommandArgs<typeof MGetCommand>) => Promise<TData>;
381
377
  /**
382
378
  * @see https://redis.io/commands/mset
383
379
  */
@@ -681,10 +677,6 @@ export declare class Redis {
681
677
  * @see https://redis.io/commands/zscore
682
678
  */
683
679
  zscore: <TData>(key: string, member: TData) => Promise<number | null>;
684
- /**
685
- * @see https://redis.io/commands/zunion
686
- */
687
- zunion: (numKeys: number, keys: string[], opts?: import("./commands/zunion.js").ZUnionCommandOptions | undefined) => Promise<any>;
688
680
  /**
689
681
  * @see https://redis.io/commands/zunionstore
690
682
  */
@@ -1 +1 @@
1
- export declare const VERSION = "v0.0.0-ci.8132df91-20231017";
1
+ export declare const VERSION = "v0.0.0-ci.822f8506-20231017";
@@ -1,27 +0,0 @@
1
- import { Command } from "./command.js";
2
- /**
3
- * @see https://redis.io/commands/geoadd
4
- */
5
- export class GeoAddCommand extends Command {
6
- constructor([key, arg1, ...arg2], opts) {
7
- const command = ["geoadd", key];
8
- if ("nx" in arg1 && arg1.nx) {
9
- command.push("nx");
10
- }
11
- else if ("xx" in arg1 && arg1.xx) {
12
- command.push("xx");
13
- }
14
- if ("ch" in arg1 && arg1.ch) {
15
- command.push("ch");
16
- }
17
- if ("latitude" in arg1 && arg1.latitude) {
18
- command.push(arg1.longitude, arg1.latitude, arg1.member);
19
- }
20
- command.push(...arg2.flatMap(({ latitude, longitude, member }) => [
21
- longitude,
22
- latitude,
23
- member,
24
- ]));
25
- super(command, opts);
26
- }
27
- }
@@ -1,30 +0,0 @@
1
- import { Command } from "./command.js";
2
- /**
3
- * @see https://redis.io/commands/zunion
4
- */
5
- export class ZUnionCommand extends Command {
6
- constructor([numKeys, keyOrKeys, opts], cmdOpts) {
7
- const command = ["zunion", numKeys];
8
- if (Array.isArray(keyOrKeys)) {
9
- command.push(...keyOrKeys);
10
- }
11
- else {
12
- command.push(keyOrKeys);
13
- }
14
- if (opts) {
15
- if ("weights" in opts && opts.weights) {
16
- command.push("weights", ...opts.weights);
17
- }
18
- else if ("weight" in opts && typeof opts.weight === "number") {
19
- command.push("weights", opts.weight);
20
- }
21
- if ("aggregate" in opts) {
22
- command.push("aggregate", opts.aggregate);
23
- }
24
- if (opts?.withScores) {
25
- command.push("withscores");
26
- }
27
- }
28
- super(command, cmdOpts);
29
- }
30
- }
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GeoAddCommand = void 0;
4
- const command_js_1 = require("./command.js");
5
- /**
6
- * @see https://redis.io/commands/geoadd
7
- */
8
- class GeoAddCommand extends command_js_1.Command {
9
- constructor([key, arg1, ...arg2], opts) {
10
- const command = ["geoadd", key];
11
- if ("nx" in arg1 && arg1.nx) {
12
- command.push("nx");
13
- }
14
- else if ("xx" in arg1 && arg1.xx) {
15
- command.push("xx");
16
- }
17
- if ("ch" in arg1 && arg1.ch) {
18
- command.push("ch");
19
- }
20
- if ("latitude" in arg1 && arg1.latitude) {
21
- command.push(arg1.longitude, arg1.latitude, arg1.member);
22
- }
23
- command.push(...arg2.flatMap(({ latitude, longitude, member }) => [
24
- longitude,
25
- latitude,
26
- member,
27
- ]));
28
- super(command, opts);
29
- }
30
- }
31
- exports.GeoAddCommand = GeoAddCommand;
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ZUnionCommand = void 0;
4
- const command_js_1 = require("./command.js");
5
- /**
6
- * @see https://redis.io/commands/zunion
7
- */
8
- class ZUnionCommand extends command_js_1.Command {
9
- constructor([numKeys, keyOrKeys, opts], cmdOpts) {
10
- const command = ["zunion", numKeys];
11
- if (Array.isArray(keyOrKeys)) {
12
- command.push(...keyOrKeys);
13
- }
14
- else {
15
- command.push(keyOrKeys);
16
- }
17
- if (opts) {
18
- if ("weights" in opts && opts.weights) {
19
- command.push("weights", ...opts.weights);
20
- }
21
- else if ("weight" in opts && typeof opts.weight === "number") {
22
- command.push("weights", opts.weight);
23
- }
24
- if ("aggregate" in opts) {
25
- command.push("aggregate", opts.aggregate);
26
- }
27
- if (opts?.withScores) {
28
- command.push("withscores");
29
- }
30
- }
31
- super(command, cmdOpts);
32
- }
33
- }
34
- exports.ZUnionCommand = ZUnionCommand;
@@ -1,25 +0,0 @@
1
- import { Command, CommandOptions } from "./command.js";
2
- export type GeoAddCommandOptions = {
3
- nx?: boolean;
4
- xx?: never;
5
- } | ({
6
- nx?: never;
7
- xx?: boolean;
8
- } & {
9
- ch?: boolean;
10
- });
11
- export interface GeoMember<TMemberType> {
12
- latitude: number;
13
- longitude: number;
14
- member: TMemberType;
15
- }
16
- /**
17
- * @see https://redis.io/commands/geoadd
18
- */
19
- export declare class GeoAddCommand<TMemberType = string> extends Command<number | null, number | null> {
20
- constructor([key, arg1, ...arg2]: [
21
- string,
22
- GeoMember<TMemberType> | GeoAddCommandOptions,
23
- ...GeoMember<TMemberType>[]
24
- ], opts?: CommandOptions<number | null, number | null>);
25
- }
@@ -1,29 +0,0 @@
1
- import { Command, CommandOptions } from "./command.js";
2
- export type ZUnionCommandOptions = {
3
- withScores?: boolean;
4
- aggregate?: "sum" | "min" | "max";
5
- } & ({
6
- weight: number;
7
- weights?: never;
8
- } | {
9
- weight?: never;
10
- weights: number[];
11
- } | {
12
- weight?: never;
13
- weights?: never;
14
- });
15
- /**
16
- * @see https://redis.io/commands/zunion
17
- */
18
- export declare class ZUnionCommand<TData extends unknown[]> extends Command<string[], TData> {
19
- constructor(cmd: [
20
- numKeys: 1,
21
- key: string,
22
- opts?: ZUnionCommandOptions
23
- ], cmdOpts?: CommandOptions<string[], TData>);
24
- constructor(cmd: [
25
- numKeys: number,
26
- keys: string[],
27
- opts?: ZUnionCommandOptions
28
- ], cmdOpts?: CommandOptions<string[], TData>);
29
- }