@upstash/redis 0.1.11 → 0.2.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.
@@ -1,34 +1,3 @@
1
- import client from './client';
2
- export default client;
3
- declare const auth: (url: string, token: string) => void, append: (key: string, value: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, decr: (key: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, decrby: (key: string, decrement: number, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, get: (key: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, getrange: (key: string, start: number, end: number, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, getset: (key: string, value: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, incr: (key: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, incrby: (key: string, value: string | number, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, incrbyfloat: (key: string, value: string | number, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, mget: (values: string[], callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, mset: (values: string[], callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, msetnx: (values: string[], callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, psetex: (key: string, miliseconds: number, value: string | number, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, set: (key: string, value: string | number, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, setex: (key: string, seconds: number, value: string | number, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, setnx: (key: string, value: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, setrange: (key: string, offset: string | number, value: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, strlen: (key: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, bitcount: (key: string, start?: number | undefined, end?: number | undefined, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, bitop: (operation: "AND" | "OR" | "XOR" | "NOT", destinationKey: string, sourceKeys: string[], callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, bitpos: (key: string, bit: 0 | 1, start?: number | undefined, end?: number | undefined, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, getbit: (key: string, offset: number, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, setbit: (key: string, offset: number, value: 0 | 1, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, echo: (value: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, ping: (value?: string | undefined, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, hdel: (key: string, fields: string[], callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, hexists: (key: string, field: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, hget: (key: string, field: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, hgetall: (key: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, hincrby: (key: string, field: string, increment: string | number, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, hincrbyfloat: (key: string, field: string, increment: string | number, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, hkeys: (key: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, hlen: (key: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, hmget: (key: string, fields: string[], callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, hmset: (key: string, values: string[], callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, hset: (key: string, values: string[], callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, hsetnx: (key: string, field: string, value: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, hvals: (key: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, hscan: (key: string, cursor: number, options?: {
4
- match?: string | number | undefined;
5
- count?: string | number | undefined;
6
- } | undefined, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, del: (keys: string[], callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, exists: (keys: string[], callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, expire: (key: string, seconds: number, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, expireat: (key: string, timestamp: string | number, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, keys: (pattern: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, persist: (key: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, pexpire: (key: string, miliseconds: number, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, pexpireat: (key: string, miliseconds: number, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, pttl: (key: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, randomkey: (callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, rename: (key: string, newkey: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, renamenx: (key: string, newkey: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, scan: (cursor: number, opitons?: {
7
- match?: string | number | undefined;
8
- count?: string | number | undefined;
9
- } | undefined, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, touch: (keys: string[], callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, ttl: (key: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, type: (key: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, unlink: (keys: string[], callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, lindex: (key: string, index: number, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, linsert: (key: string, option: "BEFORE" | "AFTER", pivot: string, element: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, llen: (key: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, lpop: (key: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, lpush: (key: string, elements: string[], callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, lpushx: (key: string, elements: string[], callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, lrange: (key: string, start: number, stop: number, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, lrem: (key: string, count: number, element: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, lset: (key: string, index: number, element: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, ltrim: (key: string, start: number, stop: number, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, rpop: (key: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, rpoplpush: (source: string, destination: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, rpush: (key: string, elements: string[], callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, rpushx: (key: string, elements: string[], callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, dbsize: (callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, flushall: (mode?: "ASYNC" | undefined, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, flushdb: (mode?: "ASYNC" | undefined, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, info: (callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, time: (callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, sadd: (key: string, members: string[], callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, scard: (key: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, sdiff: (keys: string[], callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, sdiffstore: (destination: string, keys: string[], callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, sinter: (keys: string[], callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, sinterstore: (destination: string, keys: string[], callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, sismember: (key: string, member: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, smembers: (key: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, smove: (source: string, destination: string, member: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, spop: (key: string, count?: number | undefined, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, srandmember: (key: string, count?: number | undefined, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, srem: (key: string, members: string[], callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, sunion: (keys: string[], callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, sunionstore: (destination: string, keys: string[], callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, zadd: (key: string, values: (string | number)[], options?: (({
10
- xx?: boolean | undefined;
11
- } | {
12
- nx?: boolean | undefined;
13
- }) & {
14
- ch?: boolean | undefined;
15
- incr: boolean;
16
- }) | undefined, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, zcard: (key: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, zcount: (key: string, min: string | number, max: string | number, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, zincrby: (key: string, increment: string | number, member: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, zinterstore: (destination: string, keys: string[], options?: {
17
- weights?: number[] | undefined;
18
- aggregate?: "MIN" | "MAX" | "SUM" | undefined;
19
- } | undefined, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, zlexcount: (key: string, min: string | number, max: string | number, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, zpopmax: (key: string, count?: number | undefined, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, zpopmin: (key: string, count?: number | undefined, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, zrange: (key: string, min: string | number, max: string | number, options?: {
20
- withScores: boolean;
21
- } | undefined, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, zrangebylex: (key: string, min: string | number, max: string | number, offset?: number | undefined, count?: number | undefined, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, zrangebyscore: (key: string, min: string | number, max: string | number, options?: {
22
- withScores?: boolean | undefined;
23
- limit?: {
24
- offset: number;
25
- count: number;
26
- } | undefined;
27
- } | undefined, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, zrank: (key: string, member: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, zrem: (key: string, members: string[], callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, zremrangebylex: (key: string, min: string | number, max: string | number, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, zremrangebyrank: (key: string, start: number, stop: number, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, zremrangebyscore: (key: string, min: string | number, max: string | number, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, zrevrange: (key: string, start: number, stop: number, options?: {
28
- withScores: boolean;
29
- } | undefined, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, zrevrangebylex: (key: string, max: string | number, min: string | number, offset?: number | undefined, count?: number | undefined, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, zrevrangebyscore: (key: string, min: string | number, max: string | number, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, zscore: (key: string, member: string, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>, zunionstore: (destination: string, keys: string[], options?: {
30
- weights?: number[] | undefined;
31
- aggregate?: "MIN" | "MAX" | "SUM" | undefined;
32
- } | undefined, callback?: ((res: import("./client").ReturnType) => any) | undefined) => Promise<import("./client").ReturnType>;
33
- export { auth, append, decr, decrby, get, getrange, getset, incr, incrby, incrbyfloat, mget, mset, msetnx, psetex, set, setex, setnx, setrange, strlen, bitcount, bitop, bitpos, getbit, setbit, echo, ping, hdel, hexists, hget, hgetall, hincrby, hincrbyfloat, hkeys, hlen, hmget, hmset, hset, hsetnx, hvals, hscan, del, exists, expire, expireat, keys, persist, pexpire, pexpireat, pttl, randomkey, rename, renamenx, scan, touch, ttl, type, unlink, lindex, linsert, llen, lpop, lpush, lpushx, lrange, lrem, lset, ltrim, rpop, rpoplpush, rpush, rpushx, dbsize, flushall, flushdb, info, time, sadd, scard, sdiff, sdiffstore, sinter, sinterstore, sismember, smembers, smove, spop, srandmember, srem, sunion, sunionstore, zadd, zcard, zcount, zincrby, zinterstore, zlexcount, zpopmax, zpopmin, zrange, zrangebylex, zrangebyscore, zrank, zrem, zremrangebylex, zremrangebyrank, zremrangebyscore, zrevrange, zrevrangebylex, zrevrangebyscore, zscore, zunionstore, };
34
- //# sourceMappingURL=index.d.ts.map
1
+ import upstash from './client';
2
+ export default upstash;
3
+ export declare const auth: ((options?: import("./types").ClientObjectProps | undefined) => void) & ((url?: string | undefined, token?: string | undefined) => void) & ((url?: string | import("./types").ClientObjectProps | undefined, token?: string | undefined) => void), append: (key: string, value: string) => import("./types").MethodReturn, decr: (key: string) => import("./types").MethodReturn, decrby: (key: string, decrement: string | number) => import("./types").MethodReturn, get: (key: string) => import("./types").MethodReturn, getrange: (key: string, start: string | number, end: string | number) => import("./types").MethodReturn, getset: (key: string, value: string) => import("./types").MethodReturn, incr: (key: string) => import("./types").MethodReturn, incrby: (key: string, increment: string | number) => import("./types").MethodReturn, incrbyfloat: (key: string, increment: string | number) => import("./types").MethodReturn, mget: (...key: any) => import("./types").MethodReturn, mset: (...keyValue: any) => import("./types").MethodReturn, msetnx: (...keyValue: any) => import("./types").MethodReturn, psetex: (key: string, miliseconds: string | number, value: string) => import("./types").MethodReturn, set: ((key: string, value: string | number) => import("./types").MethodReturn) & ((key: string, value: string | number, timeType: "EX" | "PX", time: string | number) => import("./types").MethodReturn), setex: (key: string, seconds: string | number, value: string) => import("./types").MethodReturn, setnx: (key: string, value: string) => import("./types").MethodReturn, setrange: (key: string, offset: string | number, value: string) => import("./types").MethodReturn, strlen: (key: string) => import("./types").MethodReturn, bitcount: ((key: string) => import("./types").MethodReturn) & ((key: string, start: string | number, end: string | number) => import("./types").MethodReturn), bitop: (operation: "AND" | "OR" | "XOR" | "NOT", destKey: string, ...key: any) => import("./types").MethodReturn, bitpos: ((key: string, bit: import("./types").Bit) => import("./types").MethodReturn) & ((key: string, bit: import("./types").Bit, start: number) => import("./types").MethodReturn) & ((key: string, bit: import("./types").Bit, start: number, end: number) => import("./types").MethodReturn), getbit: (key: string, offset: string | number) => import("./types").MethodReturn, setbit: (key: string, offset: string | number, value: import("./types").Bit) => import("./types").MethodReturn, echo: (message: string) => import("./types").MethodReturn, ping: (() => import("./types").MethodReturn) & ((message: string) => import("./types").MethodReturn), hdel: (key: string, ...field: any) => import("./types").MethodReturn, hexists: (key: string, field: string) => import("./types").MethodReturn, hget: (key: string, field: string) => import("./types").MethodReturn, hgetall: (key: string) => import("./types").MethodReturn, hincrby: (key: string, field: string, increment: string | number) => import("./types").MethodReturn, hincrbyfloat: (key: string, field: string, increment: string | number) => import("./types").MethodReturn, hkeys: (key: string) => import("./types").MethodReturn, hlen: (key: string) => import("./types").MethodReturn, hmget: (key: string, ...field: any) => import("./types").MethodReturn, hmset: (key: string, ...fieldValue: any) => import("./types").MethodReturn, hscan: ((key: string, cursor: string | number) => import("./types").MethodReturn) & ((key: string, cursor: string | number, match: "MATCH", pattern: string) => import("./types").MethodReturn) & ((key: string, cursor: string | number, count: "COUNT", value: string | number) => import("./types").MethodReturn) & ((key: string, cursor: string | number, match: "MATCH", pattern: string, count: "COUNT", value: string | number) => import("./types").MethodReturn), hset: (key: string, ...fieldValue: any) => import("./types").MethodReturn, hsetnx: (key: string, field: string, value: string) => import("./types").MethodReturn, hvals: (key: string) => import("./types").MethodReturn, del: (...key: any) => import("./types").MethodReturn, exists: (...key: any) => import("./types").MethodReturn, expire: (key: string, seconds: string | number) => import("./types").MethodReturn, expireat: (key: string, timestamp: string | number) => import("./types").MethodReturn, keys: (pattern: string) => import("./types").MethodReturn, persist: (key: string) => import("./types").MethodReturn, pexpire: (key: string, miliseconds: string | number) => import("./types").MethodReturn, pexpireat: (key: string, milisecondsTimestamp: string | number) => import("./types").MethodReturn, pttl: (key: string) => import("./types").MethodReturn, randomkey: () => import("./types").MethodReturn, rename: (key: string, newKey: string) => import("./types").MethodReturn, renamenx: (key: string, newKey: string) => import("./types").MethodReturn, scan: ((cursor: string | number) => import("./types").MethodReturn) & ((cursor: string | number, match: "MATCH", pattern: string) => import("./types").MethodReturn) & ((cursor: string | number, count: "COUNT", value: string | number) => import("./types").MethodReturn) & ((cursor: string | number, match: "MATCH", pattern: string, count: "COUNT", value: string | number) => import("./types").MethodReturn), touch: (...key: any) => import("./types").MethodReturn, ttl: (key: string) => import("./types").MethodReturn, type: (key: string) => import("./types").MethodReturn, unlink: (...key: any) => import("./types").MethodReturn, lindex: (key: string, index: string | number) => import("./types").MethodReturn, linsert: (key: string, option: "BEFORE" | "AFTER", pivot: string, element: string) => import("./types").MethodReturn, llen: (key: string) => import("./types").MethodReturn, lpop: (key: string) => import("./types").MethodReturn, lpush: (key: string, ...element: any) => import("./types").MethodReturn, lpushx: (key: string, ...element: any) => import("./types").MethodReturn, lrange: (key: string, start: string | number, stop: string | number) => import("./types").MethodReturn, lrem: (key: string, count: string | number, element: string) => import("./types").MethodReturn, lset: (key: string, index: string | number, element: string) => import("./types").MethodReturn, ltrim: (key: string, start: string | number, stop: string | number) => import("./types").MethodReturn, rpop: (key: string) => import("./types").MethodReturn, rpoplpush: (source: string, destination: string) => import("./types").MethodReturn, rpush: (key: string, ...element: any) => import("./types").MethodReturn, rpushx: (key: string, ...element: any) => import("./types").MethodReturn, dbsize: () => import("./types").MethodReturn, flushall: (() => import("./types").MethodReturn) & ((mode: "ASYNC") => import("./types").MethodReturn), flushdb: (() => import("./types").MethodReturn) & ((mode: "ASYNC" | "SYNC") => import("./types").MethodReturn), info: (() => import("./types").MethodReturn) & ((section: string) => import("./types").MethodReturn), time: () => import("./types").MethodReturn, sadd: (key: string, ...member: any) => import("./types").MethodReturn, scard: (key: string) => import("./types").MethodReturn, sdiff: (...key: any) => import("./types").MethodReturn, sdiffstore: (destination: string, ...key: any) => import("./types").MethodReturn, sinter: (...key: any) => import("./types").MethodReturn, sinterstore: (destination: string, ...key: any) => import("./types").MethodReturn, sismember: (key: string, member: string) => import("./types").MethodReturn, smembers: (key: string) => import("./types").MethodReturn, smove: (source: string, destination: string, member: string) => import("./types").MethodReturn, spop: ((key: string) => import("./types").MethodReturn) & ((key: string, count: number) => import("./types").MethodReturn), srandmember: ((key: string) => import("./types").MethodReturn) & ((key: string, count: number) => import("./types").MethodReturn), srem: (key: string, ...member: any) => import("./types").MethodReturn, sunion: (...key: any) => import("./types").MethodReturn, sunionstore: (destination: string, ...key: any) => import("./types").MethodReturn, zadd: (key: string, ...scoreMember: any) => import("./types").MethodReturn, zcard: (key: string) => import("./types").MethodReturn, zcount: (key: string, min: import("./types").ZSetNumber, max: import("./types").ZSetNumber) => import("./types").MethodReturn, zincrby: (key: string, increment: string | number, member: string) => import("./types").MethodReturn, zinterstore: (destination: string, numkeys: string | number, ...key: any) => import("./types").MethodReturn, zlexcount: (key: string, min: import("./types").ZSetNumber, max: import("./types").ZSetNumber) => import("./types").MethodReturn, zpopmax: ((key: string) => import("./types").MethodReturn) & ((key: string, count: string | number) => import("./types").MethodReturn), zpopmin: ((key: string) => import("./types").MethodReturn) & ((key: string, count: string | number) => import("./types").MethodReturn), zrange: ((key: string, min: import("./types").ZSetNumber, max: import("./types").ZSetNumber) => import("./types").MethodReturn) & ((key: string, min: import("./types").ZSetNumber, max: import("./types").ZSetNumber, withscores: "WITHSCORES") => import("./types").MethodReturn), zrangebylex: ((key: string, min: import("./types").ZSetNumber, max: import("./types").ZSetNumber) => import("./types").MethodReturn) & ((key: string, min: import("./types").ZSetNumber, max: import("./types").ZSetNumber, limit: "LIMIT", offset: string | number, count: string | number) => import("./types").MethodReturn), zrangebyscore: ((key: string, min: import("./types").ZSetNumber, max: import("./types").ZSetNumber) => import("./types").MethodReturn) & ((key: string, min: import("./types").ZSetNumber, max: import("./types").ZSetNumber, withScores: "WITHSCORES") => import("./types").MethodReturn) & ((key: string, min: import("./types").ZSetNumber, max: import("./types").ZSetNumber, limit: "LIMIT", offset: string | number, count: string | number) => import("./types").MethodReturn) & ((key: string, min: import("./types").ZSetNumber, max: import("./types").ZSetNumber, withScores: "WITHSCORES", limit: "LIMIT", offset: string | number, count: string | number) => import("./types").MethodReturn), zrank: (key: string, member: string) => import("./types").MethodReturn, zrem: (key: string, ...member: any) => import("./types").MethodReturn, zremrangebylex: (key: string, min: import("./types").ZSetNumber, max: import("./types").ZSetNumber) => import("./types").MethodReturn, zremrangebyrank: (key: string, start: string | number, stop: string | number) => import("./types").MethodReturn, zremrangebyscore: (key: string, min: import("./types").ZSetNumber, max: import("./types").ZSetNumber) => import("./types").MethodReturn, zrevrange: ((key: string, start: string | number, stop: string | number) => import("./types").MethodReturn) & ((key: string, start: string | number, stop: string | number, withscores: "WITHSCORES") => import("./types").MethodReturn), zrevrangebylex: ((key: string, max: import("./types").ZSetNumber, min: import("./types").ZSetNumber) => import("./types").MethodReturn) & ((key: string, max: import("./types").ZSetNumber, min: import("./types").ZSetNumber, limit: "LIMIT", offset: string | number, count: string | number) => import("./types").MethodReturn), zrevrangebyscore: ((key: string, max: import("./types").ZSetNumber, min: import("./types").ZSetNumber) => import("./types").MethodReturn) & ((key: string, max: import("./types").ZSetNumber, min: import("./types").ZSetNumber, withScores: "WITHSCORES") => import("./types").MethodReturn) & ((key: string, max: import("./types").ZSetNumber, min: import("./types").ZSetNumber, limit: "LIMIT", offset: string | number, count: string | number) => import("./types").MethodReturn) & ((key: string, max: import("./types").ZSetNumber, min: import("./types").ZSetNumber, withScores: "WITHSCORES", limit: "LIMIT", offset: string | number, count: string | number) => import("./types").MethodReturn), zrevrank: (key: string, member: string) => import("./types").MethodReturn, zscore: (key: string, member: string) => import("./types").MethodReturn, zunionstore: (destination: string, ...numkeys: any) => import("./types").MethodReturn;
@@ -1,9 +1,3 @@
1
- import client from './client';
2
- export default client;
3
- const { auth, append, decr, decrby, get, getrange, getset, incr, incrby, incrbyfloat, mget, mset, msetnx, psetex, set, setex, setnx, setrange, strlen, bitcount, bitop, bitpos, getbit, setbit, echo, ping, hdel, hexists, hget, hgetall, hincrby, hincrbyfloat, hkeys, hlen, hmget, hmset, hset, hsetnx, hvals, hscan, del, exists, expire, expireat, keys, persist, pexpire, pexpireat, pttl, randomkey, rename, renamenx, scan, touch, ttl, type, unlink, lindex, linsert, llen, lpop, lpush, lpushx, lrange, lrem, lset, ltrim, rpop, rpoplpush, rpush, rpushx, dbsize, flushall, flushdb, info, time, sadd, scard, sdiff, sdiffstore, sinter, sinterstore, sismember, smembers, smove, spop, srandmember, srem, sunion, sunionstore, zadd, zcard, zcount, zincrby, zinterstore, zlexcount, zpopmax, zpopmin, zrange, zrangebylex, zrangebyscore, zrank, zrem, zremrangebylex, zremrangebyrank, zremrangebyscore, zrevrange, zrevrangebylex, zrevrangebyscore,
4
- // zrevrank,
5
- zscore, zunionstore, } = client();
6
- export { auth, append, decr, decrby, get, getrange, getset, incr, incrby, incrbyfloat, mget, mset, msetnx, psetex, set, setex, setnx, setrange, strlen, bitcount, bitop, bitpos, getbit, setbit, echo, ping, hdel, hexists, hget, hgetall, hincrby, hincrbyfloat, hkeys, hlen, hmget, hmset, hset, hsetnx, hvals, hscan, del, exists, expire, expireat, keys, persist, pexpire, pexpireat, pttl, randomkey, rename, renamenx, scan, touch, ttl, type, unlink, lindex, linsert, llen, lpop, lpush, lpushx, lrange, lrem, lset, ltrim, rpop, rpoplpush, rpush, rpushx, dbsize, flushall, flushdb, info, time, sadd, scard, sdiff, sdiffstore, sinter, sinterstore, sismember, smembers, smove, spop, srandmember, srem, sunion, sunionstore, zadd, zcard, zcount, zincrby, zinterstore, zlexcount, zpopmax, zpopmin, zrange, zrangebylex, zrangebyscore, zrank, zrem, zremrangebylex, zremrangebyrank, zremrangebyscore, zrevrange, zrevrangebylex, zrevrangebyscore,
7
- // zrevrank,
8
- zscore, zunionstore, };
9
- //# sourceMappingURL=index.js.map
1
+ import upstash from './client';
2
+ export default upstash;
3
+ export const { auth, append, decr, decrby, get, getrange, getset, incr, incrby, incrbyfloat, mget, mset, msetnx, psetex, set, setex, setnx, setrange, strlen, bitcount, bitop, bitpos, getbit, setbit, echo, ping, hdel, hexists, hget, hgetall, hincrby, hincrbyfloat, hkeys, hlen, hmget, hmset, hscan, hset, hsetnx, hvals, del, exists, expire, expireat, keys, persist, pexpire, pexpireat, pttl, randomkey, rename, renamenx, scan, touch, ttl, type, unlink, lindex, linsert, llen, lpop, lpush, lpushx, lrange, lrem, lset, ltrim, rpop, rpoplpush, rpush, rpushx, dbsize, flushall, flushdb, info, time, sadd, scard, sdiff, sdiffstore, sinter, sinterstore, sismember, smembers, smove, spop, srandmember, srem, sunion, sunionstore, zadd, zcard, zcount, zincrby, zinterstore, zlexcount, zpopmax, zpopmin, zrange, zrangebylex, zrangebyscore, zrank, zrem, zremrangebylex, zremrangebyrank, zremrangebyscore, zrevrange, zrevrangebylex, zrevrangebyscore, zrevrank, zscore, zunionstore, } = upstash();
@@ -0,0 +1,179 @@
1
+ export declare type ClientObjectProps = {
2
+ url?: undefined | string;
3
+ token?: undefined | string;
4
+ requestOptions?: undefined | RequestInit;
5
+ };
6
+ export declare type ReturnType = {
7
+ data: string | number | [] | any;
8
+ error: string | null;
9
+ };
10
+ export declare type MethodReturn = Promise<ReturnType>;
11
+ export declare type Part = string | boolean | number;
12
+ export declare type Bit = 0 | 1;
13
+ export declare type Infinities = '+inf' | '-inf';
14
+ export declare type ZSetNumber = Infinities | number | string;
15
+ declare type Auth1 = (options?: ClientObjectProps) => void;
16
+ declare type Auth2 = (url?: string, token?: string) => void;
17
+ declare type Auth3 = (url?: string | ClientObjectProps, token?: string) => void;
18
+ declare type SET1 = (key: string, value: string | number) => MethodReturn;
19
+ declare type SET2 = (key: string, value: string | number, timeType: 'EX' | 'PX', time: number | string) => MethodReturn;
20
+ declare type BITCOUNT1 = (key: string) => MethodReturn;
21
+ declare type BITCOUNT2 = (key: string, start: number | string, end: number | string) => MethodReturn;
22
+ declare type BITPOS1 = (key: string, bit: Bit) => MethodReturn;
23
+ declare type BITPOS2 = (key: string, bit: Bit, start: number) => MethodReturn;
24
+ declare type BITPOS3 = (key: string, bit: Bit, start: number, end: number) => MethodReturn;
25
+ declare type PING1 = () => MethodReturn;
26
+ declare type PING2 = (message: string) => MethodReturn;
27
+ declare type SCAN1 = (cursor: number | string) => MethodReturn;
28
+ declare type SCAN2 = (cursor: number | string, match: 'MATCH', pattern: string) => MethodReturn;
29
+ declare type SCAN3 = (cursor: number | string, count: 'COUNT', value: number | string) => MethodReturn;
30
+ declare type SCAN4 = (cursor: number | string, match: 'MATCH', pattern: string, count: 'COUNT', value: number | string) => MethodReturn;
31
+ declare type FLUSHALL1 = () => MethodReturn;
32
+ declare type FLUSHALL2 = (mode: 'ASYNC') => MethodReturn;
33
+ declare type FLUSHDB1 = () => MethodReturn;
34
+ declare type FLUSHDB2 = (mode: 'ASYNC' | 'SYNC') => MethodReturn;
35
+ declare type INFO1 = () => MethodReturn;
36
+ declare type INFO2 = (section: string) => MethodReturn;
37
+ declare type XSCAN1 = (key: string, cursor: number | string) => MethodReturn;
38
+ declare type XSCAN2 = (key: string, cursor: number | string, match: 'MATCH', pattern: string) => MethodReturn;
39
+ declare type XSCAN3 = (key: string, cursor: number | string, count: 'COUNT', value: number | string) => MethodReturn;
40
+ declare type XSCAN4 = (key: string, cursor: number | string, match: 'MATCH', pattern: string, count: 'COUNT', value: number | string) => MethodReturn;
41
+ declare type SPOP1 = (key: string) => MethodReturn;
42
+ declare type SPOP2 = (key: string, count: number) => MethodReturn;
43
+ declare type SRANDMEMBER1 = (key: string) => MethodReturn;
44
+ declare type SRANDMEMBER2 = (key: string, count: number) => MethodReturn;
45
+ declare type ZPOPMAX1 = (key: string) => MethodReturn;
46
+ declare type ZPOPMAX2 = (key: string, count: number | string) => MethodReturn;
47
+ declare type ZRANGE1 = (key: string, min: ZSetNumber, max: ZSetNumber) => MethodReturn;
48
+ declare type ZRANGE2 = (key: string, min: ZSetNumber, max: ZSetNumber, withscores: 'WITHSCORES') => MethodReturn;
49
+ declare type ZRANGEBYLEX1 = (key: string, min: ZSetNumber, max: ZSetNumber) => MethodReturn;
50
+ declare type ZRANGEBYLEX2 = (key: string, min: ZSetNumber, max: ZSetNumber, limit: 'LIMIT', offset: number | string, count: number | string) => MethodReturn;
51
+ declare type ZRANGEBYSCORE1 = (key: string, min: ZSetNumber, max: ZSetNumber) => MethodReturn;
52
+ declare type ZRANGEBYSCORE2 = (key: string, min: ZSetNumber, max: ZSetNumber, withScores: 'WITHSCORES') => MethodReturn;
53
+ declare type ZRANGEBYSCORE3 = (key: string, min: ZSetNumber, max: ZSetNumber, limit: 'LIMIT', offset: number | string, count: number | string) => MethodReturn;
54
+ declare type ZRANGEBYSCORE4 = (key: string, min: ZSetNumber, max: ZSetNumber, withScores: 'WITHSCORES', limit: 'LIMIT', offset: number | string, count: number | string) => MethodReturn;
55
+ declare type ZREVRANGEBYLEX1 = (key: string, max: ZSetNumber, min: ZSetNumber) => MethodReturn;
56
+ declare type ZREVRANGEBYLEX2 = (key: string, max: ZSetNumber, min: ZSetNumber, limit: 'LIMIT', offset: number | string, count: number | string) => MethodReturn;
57
+ declare type ZREVRANGEBYSCORE1 = (key: string, max: ZSetNumber, min: ZSetNumber) => MethodReturn;
58
+ declare type ZREVRANGEBYSCORE2 = (key: string, max: ZSetNumber, min: ZSetNumber, withScores: 'WITHSCORES') => MethodReturn;
59
+ declare type ZREVRANGEBYSCORE3 = (key: string, max: ZSetNumber, min: ZSetNumber, limit: 'LIMIT', offset: number | string, count: number | string) => MethodReturn;
60
+ declare type ZREVRANGEBYSCORE4 = (key: string, max: ZSetNumber, min: ZSetNumber, withScores: 'WITHSCORES', limit: 'LIMIT', offset: number | string, count: number | string) => MethodReturn;
61
+ declare type ZREVRANGE1 = (key: string, start: number | string, stop: number | string) => MethodReturn;
62
+ declare type ZREVRANGE2 = (key: string, start: number | string, stop: number | string, withscores: 'WITHSCORES') => MethodReturn;
63
+ export declare type Upstash = {
64
+ auth: Auth1 & Auth2 & Auth3;
65
+ append: (key: string, value: string) => MethodReturn;
66
+ decr: (key: string) => MethodReturn;
67
+ decrby: (key: string, decrement: number | string) => MethodReturn;
68
+ get: (key: string) => MethodReturn;
69
+ getrange: (key: string, start: number | string, end: number | string) => MethodReturn;
70
+ getset: (key: string, value: string) => MethodReturn;
71
+ incr: (key: string) => MethodReturn;
72
+ incrby: (key: string, increment: number | string) => MethodReturn;
73
+ incrbyfloat: (key: string, increment: number | string) => MethodReturn;
74
+ mget: (...key: any) => MethodReturn;
75
+ mset: (...keyValue: any) => MethodReturn;
76
+ msetnx: (...keyValue: any) => MethodReturn;
77
+ psetex: (key: string, miliseconds: number | string, value: string) => MethodReturn;
78
+ set: SET1 & SET2;
79
+ setex: (key: string, seconds: number | string, value: string) => MethodReturn;
80
+ setnx: (key: string, value: string) => MethodReturn;
81
+ setrange: (key: string, offset: number | string, value: string) => MethodReturn;
82
+ strlen: (key: string) => MethodReturn;
83
+ bitcount: BITCOUNT1 & BITCOUNT2;
84
+ bitop: (operation: 'AND' | 'OR' | 'XOR' | 'NOT', destKey: string, ...key: any) => MethodReturn;
85
+ bitpos: BITPOS1 & BITPOS2 & BITPOS3;
86
+ getbit: (key: string, offset: number | string) => MethodReturn;
87
+ setbit: (key: string, offset: number | string, value: Bit) => MethodReturn;
88
+ echo: (message: string) => MethodReturn;
89
+ ping: PING1 & PING2;
90
+ hdel: (key: string, ...field: any) => MethodReturn;
91
+ hexists: (key: string, field: string) => MethodReturn;
92
+ hget: (key: string, field: string) => MethodReturn;
93
+ hgetall: (key: string) => MethodReturn;
94
+ hincrby: (key: string, field: string, increment: number | string) => MethodReturn;
95
+ hincrbyfloat: (key: string, field: string, increment: number | string) => MethodReturn;
96
+ hkeys: (key: string) => MethodReturn;
97
+ hlen: (key: string) => MethodReturn;
98
+ hmget: (key: string, ...field: any) => MethodReturn;
99
+ hmset: (key: string, ...fieldValue: any) => MethodReturn;
100
+ hscan: XSCAN1 & XSCAN2 & XSCAN3 & XSCAN4;
101
+ hset: (key: string, ...fieldValue: any) => MethodReturn;
102
+ hsetnx: (key: string, field: string, value: string) => MethodReturn;
103
+ hvals: (key: string) => MethodReturn;
104
+ del: (...key: any) => MethodReturn;
105
+ exists: (...key: any) => MethodReturn;
106
+ expire: (key: string, seconds: number | string) => MethodReturn;
107
+ expireat: (key: string, timestamp: number | string) => MethodReturn;
108
+ keys: (pattern: string) => MethodReturn;
109
+ persist: (key: string) => MethodReturn;
110
+ pexpire: (key: string, miliseconds: number | string) => MethodReturn;
111
+ pexpireat: (key: string, milisecondsTimestamp: number | string) => MethodReturn;
112
+ pttl: (key: string) => MethodReturn;
113
+ randomkey: () => MethodReturn;
114
+ rename: (key: string, newKey: string) => MethodReturn;
115
+ renamenx: (key: string, newKey: string) => MethodReturn;
116
+ scan: SCAN1 & SCAN2 & SCAN3 & SCAN4;
117
+ touch: (...key: any) => MethodReturn;
118
+ ttl: (key: string) => MethodReturn;
119
+ type: (key: string) => MethodReturn;
120
+ unlink: (...key: any) => MethodReturn;
121
+ lindex: (key: string, index: number | string) => MethodReturn;
122
+ linsert: (key: string, option: 'BEFORE' | 'AFTER', pivot: string, element: string) => MethodReturn;
123
+ llen: (key: string) => MethodReturn;
124
+ lpop: (key: string) => MethodReturn;
125
+ lpush: (key: string, ...element: any) => MethodReturn;
126
+ lpushx: (key: string, ...element: any) => MethodReturn;
127
+ lrange: (key: string, start: number | string, stop: number | string) => MethodReturn;
128
+ lrem: (key: string, count: number | string, element: string) => MethodReturn;
129
+ lset: (key: string, index: number | string, element: string) => MethodReturn;
130
+ ltrim: (key: string, start: number | string, stop: number | string) => MethodReturn;
131
+ rpop: (key: string) => MethodReturn;
132
+ rpoplpush: (source: string, destination: string) => MethodReturn;
133
+ rpush: (key: string, ...element: any) => MethodReturn;
134
+ rpushx: (key: string, ...element: any) => MethodReturn;
135
+ dbsize: () => MethodReturn;
136
+ flushall: FLUSHALL1 & FLUSHALL2;
137
+ flushdb: FLUSHDB1 & FLUSHDB2;
138
+ info: INFO1 & INFO2;
139
+ time: () => MethodReturn;
140
+ sadd: (key: string, ...member: any) => MethodReturn;
141
+ scard: (key: string) => MethodReturn;
142
+ sdiff: (...key: any) => MethodReturn;
143
+ sdiffstore: (destination: string, ...key: any) => MethodReturn;
144
+ sinter: (...key: any) => MethodReturn;
145
+ sinterstore: (destination: string, ...key: any) => MethodReturn;
146
+ sismember: (key: string, member: string) => MethodReturn;
147
+ smembers: (key: string) => MethodReturn;
148
+ smove: (source: string, destination: string, member: string) => MethodReturn;
149
+ spop: SPOP1 & SPOP2;
150
+ srandmember: SRANDMEMBER1 & SRANDMEMBER2;
151
+ srem: (key: string, ...member: any) => MethodReturn;
152
+ sscan: XSCAN1 & XSCAN2 & XSCAN3 & XSCAN4;
153
+ sunion: (...key: any) => MethodReturn;
154
+ sunionstore: (destination: string, ...key: any) => MethodReturn;
155
+ zadd: (key: string, ...scoreMember: any) => MethodReturn;
156
+ zcard: (key: string) => MethodReturn;
157
+ zcount: (key: string, min: ZSetNumber, max: ZSetNumber) => MethodReturn;
158
+ zincrby: (key: string, increment: number | string, member: string) => MethodReturn;
159
+ zinterstore: (destination: string, numkeys: number | string, ...key: any) => MethodReturn;
160
+ zlexcount: (key: string, min: ZSetNumber, max: ZSetNumber) => MethodReturn;
161
+ zpopmax: ZPOPMAX1 & ZPOPMAX2;
162
+ zpopmin: ZPOPMAX1 & ZPOPMAX2;
163
+ zrange: ZRANGE1 & ZRANGE2;
164
+ zrangebylex: ZRANGEBYLEX1 & ZRANGEBYLEX2;
165
+ zrangebyscore: ZRANGEBYSCORE1 & ZRANGEBYSCORE2 & ZRANGEBYSCORE3 & ZRANGEBYSCORE4;
166
+ zrank: (key: string, member: string) => MethodReturn;
167
+ zrem: (key: string, ...member: any) => MethodReturn;
168
+ zremrangebylex: (key: string, min: ZSetNumber, max: ZSetNumber) => MethodReturn;
169
+ zremrangebyrank: (key: string, start: number | string, stop: number | string) => MethodReturn;
170
+ zremrangebyscore: (key: string, min: ZSetNumber, max: ZSetNumber) => MethodReturn;
171
+ zrevrange: ZREVRANGE1 & ZREVRANGE2;
172
+ zrevrangebylex: ZREVRANGEBYLEX1 & ZREVRANGEBYLEX2;
173
+ zrevrangebyscore: ZREVRANGEBYSCORE1 & ZREVRANGEBYSCORE2 & ZREVRANGEBYSCORE3 & ZREVRANGEBYSCORE4;
174
+ zrevrank: (key: string, member: string) => MethodReturn;
175
+ zscan: XSCAN1 & XSCAN2 & XSCAN3 & XSCAN4;
176
+ zscore: (key: string, member: string) => MethodReturn;
177
+ zunionstore: (destination: string, ...numkeys: any) => MethodReturn;
178
+ };
179
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,21 +1,18 @@
1
1
  {
2
2
  "name": "@upstash/redis",
3
- "version": "0.1.11",
3
+ "version": "0.2.1",
4
4
  "description": "An HTTP/REST based Redis client built on top of Upstash REST API.",
5
5
  "author": "Adem ilter <adem@upstash.com>",
6
6
  "license": "MIT",
7
- "main": "dist/main/index.js",
7
+ "main": "dist/main/index-cjs.js",
8
8
  "module": "dist/module/index.js",
9
- "types": "dist/main/index.d.ts",
10
- "jsdelivr": "dist/umd/upstash-redis.js",
11
- "unpkg": "dist/umd/upstash-redis.js",
9
+ "types": "dist/module/index.d.ts",
12
10
  "scripts": {
13
11
  "clean": "rimraf dist",
14
12
  "format": "prettier --write \"{src,test}/**/*.ts\"",
15
13
  "build": "run-s clean format build:*",
16
14
  "build:main": "tsc -p tsconfig.json",
17
15
  "build:module": "tsc -p tsconfig.module.json",
18
- "build:umd": "webpack",
19
16
  "test": "jest --runInBand && npm run size",
20
17
  "size": "size-limit"
21
18
  },
@@ -23,34 +20,28 @@
23
20
  "isomorphic-unfetch": "^3.1.0"
24
21
  },
25
22
  "devDependencies": {
26
- "@size-limit/preset-small-lib": "^5.0.3",
27
- "@types/jest": "^26.0.24",
23
+ "@size-limit/preset-small-lib": "^6.0.4",
24
+ "@types/jest": "^27.0.2",
28
25
  "@types/node-fetch": "^2.5.12",
29
26
  "dotenv": "^10.0.0",
30
- "jest": "^27.0.6",
31
- "nanoid": "^3.1.25",
27
+ "jest": "^27.3.1",
28
+ "nanoid": "^3.1.30",
32
29
  "npm-run-all": "^4.1.5",
33
30
  "prettier": "^2.3.2",
34
31
  "rimraf": "^3.0.2",
35
- "size-limit": "^5.0.3",
36
- "ts-jest": "^27.0.4",
37
- "ts-loader": "^9.2.5",
38
- "typescript": "^4.3.5",
39
- "webpack": "^5.49.0",
40
- "webpack-cli": "^4.7.2"
32
+ "size-limit": "^6.0.4",
33
+ "ts-jest": "^27.0.7",
34
+ "ts-loader": "^9.2.6",
35
+ "typescript": "^4.5.2"
41
36
  },
42
37
  "size-limit": [
43
38
  {
44
- "path": "dist/main/index.js",
45
- "limit": "5 KB"
39
+ "path": "dist/main/index-cjs.js",
40
+ "limit": "3 KB"
46
41
  },
47
42
  {
48
43
  "path": "dist/module/index.js",
49
- "limit": "5 KB"
50
- },
51
- {
52
- "path": "dist/umd/upstash-redis.js",
53
- "limit": "5 KB"
44
+ "limit": "3 KB"
54
45
  }
55
46
  ],
56
47
  "prettier": {