@upstash/redis 0.1.3 → 0.1.7

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,114 +1,54 @@
1
1
  import fetch from 'isomorphic-unfetch';
2
- function isObject(objectToCheck) {
3
- return typeof objectToCheck === 'object' && objectToCheck !== null;
4
- }
5
2
  /**
6
3
  * Parse Options
7
4
  */
8
- function parseOptions(url, token, edgeUrl, readFromEdge) {
9
- if (url && typeof url !== 'string') {
10
- return parseOptions(url === null || url === void 0 ? void 0 : url.url, url === null || url === void 0 ? void 0 : url.token, url === null || url === void 0 ? void 0 : url.edgeUrl, url === null || url === void 0 ? void 0 : url.readFromEdge);
5
+ function parseOptions(url, token, requestOptions = {}) {
6
+ if (typeof url === 'object' && url !== null) {
7
+ return parseOptions(url.url, url.token, url.requestOptions);
11
8
  }
12
- if (!url) {
13
- // try auto fill from env variables
9
+ // try auto fill from env variables
10
+ if (!url && typeof window === 'undefined') {
14
11
  url = process.env.UPSTASH_REDIS_REST_URL;
15
12
  token = process.env.UPSTASH_REDIS_REST_TOKEN;
16
- edgeUrl = process.env.UPSTASH_REDIS_EDGE_URL;
17
13
  }
18
- readFromEdge = readFromEdge !== null && readFromEdge !== void 0 ? readFromEdge : !!edgeUrl;
19
- return edgeUrl ? { url, token, edgeUrl, readFromEdge } : { url, token };
14
+ return { url: url, token, requestOptions };
20
15
  }
21
16
  /**
22
17
  * Fetch
23
18
  */
24
- async function fetchData(url, options, init) {
19
+ async function fetchData(options, ...parts) {
20
+ if (!options.url) {
21
+ throw 'Database url not found?';
22
+ }
25
23
  try {
26
- const res = await fetch(url, {
27
- ...init,
24
+ const res = await fetch(options.url, {
25
+ method: 'POST',
26
+ body: JSON.stringify(parts),
28
27
  headers: {
29
28
  Authorization: `Bearer ${options.token}`,
30
- ...init.headers,
29
+ ...options.requestOptions?.headers,
31
30
  },
31
+ ...options.requestOptions,
32
32
  });
33
33
  const data = await res.json();
34
- if (res.ok) {
35
- let edge = false;
36
- let cache = null;
37
- switch (res.headers.get('x-cache')) {
38
- case 'Hit from cloudfront':
39
- edge = true;
40
- cache = 'hit';
41
- break;
42
- case 'Miss from cloudfront':
43
- edge = true;
44
- cache = 'miss';
45
- break;
46
- }
47
- return {
48
- data: data.result,
49
- error: null,
50
- metadata: { edge, cache },
51
- };
52
- }
53
- else {
34
+ if (!res.ok) {
54
35
  if (data.error)
55
- throw data;
56
- throw new Error(`Upstash failed with (${res.status}): ${JSON.stringify(data, null, 2)}`);
36
+ throw data.error;
37
+ throw `Upstash failed with (${res.status}): ${JSON.stringify(data, null, 2)}`;
57
38
  }
39
+ return {
40
+ data: data.result,
41
+ error: null,
42
+ };
58
43
  }
59
44
  catch (err) {
60
45
  return {
61
46
  data: null,
62
- error: typeof err.data === 'object' ? err.data.message : err,
63
- metadata: { edge: false, cache: null },
47
+ // @ts-ignore
48
+ error: err,
64
49
  };
65
50
  }
66
51
  }
67
- /**
68
- * Request
69
- */
70
- function request(options, config, ...parts) {
71
- var _a;
72
- if (!options.url) {
73
- throw new Error('Database url not found?');
74
- }
75
- if (!options.edgeUrl) {
76
- if (options.readFromEdge || (config === null || config === void 0 ? void 0 : config.edge)) {
77
- throw new Error('You need to set Edge Url to read from edge.');
78
- }
79
- }
80
- let fromEdge = !!options.edgeUrl && options.readFromEdge !== false;
81
- if (config === undefined) {
82
- fromEdge = false;
83
- }
84
- else if (options.edgeUrl) {
85
- fromEdge = (_a = config === null || config === void 0 ? void 0 : config.edge) !== null && _a !== void 0 ? _a : true;
86
- }
87
- if (fromEdge) {
88
- const command = encodeURI(parts.join('/'));
89
- const edgeUrlWithPath = `${options.edgeUrl}/${command}`;
90
- return fetchData(edgeUrlWithPath, options, { method: 'GET' });
91
- }
92
- else {
93
- return fetchData(options.url, options, {
94
- method: 'POST',
95
- body: JSON.stringify(parts),
96
- });
97
- }
98
- }
99
- function hasConfig(options, command, a) {
100
- let lastArg;
101
- let args = [...a];
102
- if (a.length > 0) {
103
- lastArg = args.pop();
104
- }
105
- if (isObject(lastArg)) {
106
- return request(options, lastArg, command, ...args);
107
- }
108
- else {
109
- return request(options, {}, command, ...a);
110
- }
111
- }
112
52
  function upstash(url, token) {
113
53
  const options = parseOptions(url, token);
114
54
  /**
@@ -118,368 +58,367 @@ function upstash(url, token) {
118
58
  Object.assign(options, {
119
59
  url: undefined,
120
60
  token: undefined,
121
- edgeUrl: undefined,
122
61
  }, parseOptions(arguments[0], arguments[1]));
123
62
  }
124
63
  /**
125
64
  * STRING
126
65
  */
127
66
  function append() {
128
- return request(options, undefined, 'append', ...arguments);
67
+ return fetchData(options, 'append', ...arguments);
129
68
  }
130
69
  function decr() {
131
- return request(options, undefined, 'decr', ...arguments);
70
+ return fetchData(options, 'decr', ...arguments);
132
71
  }
133
72
  function decrby() {
134
- return request(options, undefined, 'decrby', ...arguments);
73
+ return fetchData(options, 'decrby', ...arguments);
135
74
  }
136
75
  function get() {
137
- return hasConfig(options, 'get', arguments);
76
+ return fetchData(options, 'get', ...arguments);
138
77
  }
139
78
  function getrange() {
140
- return hasConfig(options, 'getrange', arguments);
79
+ return fetchData(options, 'getrange', ...arguments);
141
80
  }
142
81
  function getset() {
143
- return request(options, undefined, 'getset', ...arguments);
82
+ return fetchData(options, 'getset', ...arguments);
144
83
  }
145
84
  function incr() {
146
- return request(options, undefined, 'incr', ...arguments);
85
+ return fetchData(options, 'incr', ...arguments);
147
86
  }
148
87
  function incrby() {
149
- return request(options, undefined, 'incrby', ...arguments);
88
+ return fetchData(options, 'incrby', ...arguments);
150
89
  }
151
90
  function incrbyfloat() {
152
- return request(options, undefined, 'incrbyfloat', ...arguments);
91
+ return fetchData(options, 'incrbyfloat', ...arguments);
153
92
  }
154
93
  function mget() {
155
- return hasConfig(options, 'mget', arguments);
94
+ return fetchData(options, 'mget', ...arguments);
156
95
  }
157
96
  function mset() {
158
- return request(options, undefined, 'mset', ...arguments);
97
+ return fetchData(options, 'mset', ...arguments);
159
98
  }
160
99
  function msetnx() {
161
- return request(options, undefined, 'msetnx', ...arguments);
100
+ return fetchData(options, 'msetnx', ...arguments);
162
101
  }
163
102
  function psetex() {
164
- return request(options, undefined, 'psetex', ...arguments);
103
+ return fetchData(options, 'psetex', ...arguments);
165
104
  }
166
105
  function set() {
167
- return request(options, undefined, 'set', ...arguments);
106
+ return fetchData(options, 'set', ...arguments);
168
107
  }
169
108
  function setex() {
170
- return request(options, undefined, 'setex', ...arguments);
109
+ return fetchData(options, 'setex', ...arguments);
171
110
  }
172
111
  function setnx() {
173
- return request(options, undefined, 'setnx', ...arguments);
112
+ return fetchData(options, 'setnx', ...arguments);
174
113
  }
175
114
  function setrange() {
176
- return request(options, undefined, 'setrange', ...arguments);
115
+ return fetchData(options, 'setrange', ...arguments);
177
116
  }
178
117
  function strlen() {
179
- return hasConfig(options, 'strlen', arguments);
118
+ return fetchData(options, 'strlen', ...arguments);
180
119
  }
181
120
  /**
182
121
  * BITMAPS
183
122
  */
184
123
  function bitcount() {
185
- return hasConfig(options, 'bitcount', arguments);
124
+ return fetchData(options, 'bitcount', ...arguments);
186
125
  }
187
126
  function bitop() {
188
- return request(options, undefined, 'bitop', ...arguments);
127
+ return fetchData(options, 'bitop', ...arguments);
189
128
  }
190
129
  function bitpos() {
191
- return hasConfig(options, 'bitpos', arguments);
130
+ return fetchData(options, 'bitpos', ...arguments);
192
131
  }
193
132
  function getbit() {
194
- return hasConfig(options, 'getbit', arguments);
133
+ return fetchData(options, 'getbit', ...arguments);
195
134
  }
196
135
  function setbit() {
197
- return request(options, undefined, 'setbit', ...arguments);
136
+ return fetchData(options, 'setbit', ...arguments);
198
137
  }
199
138
  /**
200
139
  * CONNECTION
201
140
  */
202
141
  function echo() {
203
- return hasConfig(options, 'echo', arguments);
142
+ return fetchData(options, 'echo', ...arguments);
204
143
  }
205
144
  function ping() {
206
- return hasConfig(options, 'ping', arguments);
145
+ return fetchData(options, 'ping', ...arguments);
207
146
  }
208
147
  /**
209
148
  * HASHES
210
149
  */
211
150
  function hdel() {
212
- return request(options, undefined, 'hdel', ...arguments);
151
+ return fetchData(options, 'hdel', ...arguments);
213
152
  }
214
153
  function hexists() {
215
- return hasConfig(options, 'hexists', arguments);
154
+ return fetchData(options, 'hexists', ...arguments);
216
155
  }
217
156
  function hget() {
218
- return hasConfig(options, 'hget', arguments);
157
+ return fetchData(options, 'hget', ...arguments);
219
158
  }
220
159
  function hgetall() {
221
- return hasConfig(options, 'hgetall', arguments);
160
+ return fetchData(options, 'hgetall', ...arguments);
222
161
  }
223
162
  function hincrby() {
224
- return request(options, undefined, 'hincrby', ...arguments);
163
+ return fetchData(options, 'hincrby', ...arguments);
225
164
  }
226
165
  function hincrbyfloat() {
227
- return request(options, undefined, 'hincrbyfloat', ...arguments);
166
+ return fetchData(options, 'hincrbyfloat', ...arguments);
228
167
  }
229
168
  function hkeys() {
230
- return hasConfig(options, 'hkeys', arguments);
169
+ return fetchData(options, 'hkeys', ...arguments);
231
170
  }
232
171
  function hlen() {
233
- return hasConfig(options, 'hlen', arguments);
172
+ return fetchData(options, 'hlen', ...arguments);
234
173
  }
235
174
  function hmget() {
236
- return hasConfig(options, 'hmget', arguments);
175
+ return fetchData(options, 'hmget', ...arguments);
237
176
  }
238
177
  function hmset() {
239
- return request(options, undefined, 'hmset', ...arguments);
178
+ return fetchData(options, 'hmset', ...arguments);
240
179
  }
241
180
  function hscan() {
242
- return request(options, undefined, 'hscan', ...arguments);
181
+ return fetchData(options, 'hscan', ...arguments);
243
182
  }
244
183
  function hset() {
245
- return request(options, undefined, 'hset', ...arguments);
184
+ return fetchData(options, 'hset', ...arguments);
246
185
  }
247
186
  function hsetnx() {
248
- return request(options, undefined, 'hsetnx', ...arguments);
187
+ return fetchData(options, 'hsetnx', ...arguments);
249
188
  }
250
189
  function hvals() {
251
- return hasConfig(options, 'hvals', arguments);
190
+ return fetchData(options, 'hvals', ...arguments);
252
191
  }
253
192
  /**
254
193
  * KEYS
255
194
  */
256
195
  function del() {
257
- return request(options, undefined, 'del', ...arguments);
196
+ return fetchData(options, 'del', ...arguments);
258
197
  }
259
198
  function exists() {
260
- return hasConfig(options, 'exists', arguments);
199
+ return fetchData(options, 'exists', ...arguments);
261
200
  }
262
201
  function expire() {
263
- return request(options, undefined, 'expire', ...arguments);
202
+ return fetchData(options, 'expire', ...arguments);
264
203
  }
265
204
  function expireat() {
266
- return request(options, undefined, 'expireat', ...arguments);
205
+ return fetchData(options, 'expireat', ...arguments);
267
206
  }
268
207
  function keys() {
269
- return hasConfig(options, 'keys', arguments);
208
+ return fetchData(options, 'keys', ...arguments);
270
209
  }
271
210
  function persist() {
272
- return request(options, undefined, 'persist', ...arguments);
211
+ return fetchData(options, 'persist', ...arguments);
273
212
  }
274
213
  function pexpire() {
275
- return request(options, undefined, 'pexpire', ...arguments);
214
+ return fetchData(options, 'pexpire', ...arguments);
276
215
  }
277
216
  function pexpireat() {
278
- return request(options, undefined, 'pexpireat', ...arguments);
217
+ return fetchData(options, 'pexpireat', ...arguments);
279
218
  }
280
219
  function pttl() {
281
- return hasConfig(options, 'pttl', arguments);
220
+ return fetchData(options, 'pttl', ...arguments);
282
221
  }
283
222
  function randomkey() {
284
- return request(options, undefined, 'randomkey', ...arguments);
223
+ return fetchData(options, 'randomkey', ...arguments);
285
224
  }
286
225
  function rename() {
287
- return request(options, undefined, 'rename', ...arguments);
226
+ return fetchData(options, 'rename', ...arguments);
288
227
  }
289
228
  function renamenx() {
290
- return request(options, undefined, 'renamenx', ...arguments);
229
+ return fetchData(options, 'renamenx', ...arguments);
291
230
  }
292
231
  function scan() {
293
- return request(options, undefined, 'scan', ...arguments);
232
+ return fetchData(options, 'scan', ...arguments);
294
233
  }
295
234
  function touch() {
296
- return request(options, undefined, 'touch', ...arguments);
235
+ return fetchData(options, 'touch', ...arguments);
297
236
  }
298
237
  function ttl() {
299
- return hasConfig(options, 'ttl', arguments);
238
+ return fetchData(options, 'ttl', ...arguments);
300
239
  }
301
240
  function type() {
302
- return hasConfig(options, 'type', arguments);
241
+ return fetchData(options, 'type', ...arguments);
303
242
  }
304
243
  function unlink() {
305
- return request(options, undefined, 'unlink', ...arguments);
244
+ return fetchData(options, 'unlink', ...arguments);
306
245
  }
307
246
  /**
308
247
  * LISTS
309
248
  */
310
249
  function lindex() {
311
- return hasConfig(options, 'lindex', arguments);
250
+ return fetchData(options, 'lindex', ...arguments);
312
251
  }
313
252
  function linsert() {
314
- return request(options, undefined, 'linsert', ...arguments);
253
+ return fetchData(options, 'linsert', ...arguments);
315
254
  }
316
255
  function llen() {
317
- return hasConfig(options, 'llen', arguments);
256
+ return fetchData(options, 'llen', ...arguments);
318
257
  }
319
258
  function lpop() {
320
- return request(options, undefined, 'lpop', ...arguments);
259
+ return fetchData(options, 'lpop', ...arguments);
321
260
  }
322
261
  function lpush() {
323
- return request(options, undefined, 'lpush', ...arguments);
262
+ return fetchData(options, 'lpush', ...arguments);
324
263
  }
325
264
  function lpushx() {
326
- return request(options, undefined, 'lpushx', ...arguments);
265
+ return fetchData(options, 'lpushx', ...arguments);
327
266
  }
328
267
  function lrange() {
329
- return hasConfig(options, 'lrange', arguments);
268
+ return fetchData(options, 'lrange', ...arguments);
330
269
  }
331
270
  function lrem() {
332
- return request(options, undefined, 'lrem', ...arguments);
271
+ return fetchData(options, 'lrem', ...arguments);
333
272
  }
334
273
  function lset() {
335
- return request(options, undefined, 'lset', ...arguments);
274
+ return fetchData(options, 'lset', ...arguments);
336
275
  }
337
276
  function ltrim() {
338
- return request(options, undefined, 'ltrim', ...arguments);
277
+ return fetchData(options, 'ltrim', ...arguments);
339
278
  }
340
279
  function rpop() {
341
- return request(options, undefined, 'rpop', ...arguments);
280
+ return fetchData(options, 'rpop', ...arguments);
342
281
  }
343
282
  function rpoplpush() {
344
- return request(options, undefined, 'rpoplpush', ...arguments);
283
+ return fetchData(options, 'rpoplpush', ...arguments);
345
284
  }
346
285
  function rpush() {
347
- return request(options, undefined, 'rpush', ...arguments);
286
+ return fetchData(options, 'rpush', ...arguments);
348
287
  }
349
288
  function rpushx() {
350
- return request(options, undefined, 'rpushx', ...arguments);
289
+ return fetchData(options, 'rpushx', ...arguments);
351
290
  }
352
291
  /**
353
292
  * SERVER
354
293
  */
355
294
  function dbsize() {
356
- return hasConfig(options, 'dbsize', arguments);
295
+ return fetchData(options, 'dbsize', ...arguments);
357
296
  }
358
297
  function flushall() {
359
- return request(options, undefined, 'flushall', ...arguments);
298
+ return fetchData(options, 'flushall', ...arguments);
360
299
  }
361
300
  function flushdb() {
362
- return request(options, undefined, 'flushdb', ...arguments);
301
+ return fetchData(options, 'flushdb', ...arguments);
363
302
  }
364
303
  function info() {
365
- return hasConfig(options, 'info', arguments);
304
+ return fetchData(options, 'info', ...arguments);
366
305
  }
367
306
  function time() {
368
- return request(options, undefined, 'time', ...arguments);
307
+ return fetchData(options, 'time', ...arguments);
369
308
  }
370
309
  /**
371
310
  * SET
372
311
  */
373
312
  function sadd() {
374
- return request(options, undefined, 'sadd', ...arguments);
313
+ return fetchData(options, 'sadd', ...arguments);
375
314
  }
376
315
  function scard() {
377
- return request(options, undefined, 'scard', ...arguments);
316
+ return fetchData(options, 'scard', ...arguments);
378
317
  }
379
318
  function sdiff() {
380
- return hasConfig(options, 'sdiff', arguments);
319
+ return fetchData(options, 'sdiff', ...arguments);
381
320
  }
382
321
  function sdiffstore() {
383
- return request(options, undefined, 'sdiffstore', ...arguments);
322
+ return fetchData(options, 'sdiffstore', ...arguments);
384
323
  }
385
324
  function sinter() {
386
- return hasConfig(options, 'sinter', arguments);
325
+ return fetchData(options, 'sinter', ...arguments);
387
326
  }
388
327
  function sinterstore() {
389
- return request(options, undefined, 'sinterstore', ...arguments);
328
+ return fetchData(options, 'sinterstore', ...arguments);
390
329
  }
391
330
  function sismember() {
392
- return hasConfig(options, 'sismember', arguments);
331
+ return fetchData(options, 'sismember', ...arguments);
393
332
  }
394
333
  function smembers() {
395
- return hasConfig(options, 'smembers', arguments);
334
+ return fetchData(options, 'smembers', ...arguments);
396
335
  }
397
336
  function smove() {
398
- return request(options, undefined, 'smove', ...arguments);
337
+ return fetchData(options, 'smove', ...arguments);
399
338
  }
400
339
  function spop() {
401
- return request(options, undefined, 'spop', ...arguments);
340
+ return fetchData(options, 'spop', ...arguments);
402
341
  }
403
342
  function srandmember() {
404
- return hasConfig(options, 'srandmember', arguments);
343
+ return fetchData(options, 'srandmember', ...arguments);
405
344
  }
406
345
  function srem() {
407
- return request(options, undefined, 'srem', ...arguments);
346
+ return fetchData(options, 'srem', ...arguments);
408
347
  }
409
348
  function sunion() {
410
- return hasConfig(options, 'sunion', arguments);
349
+ return fetchData(options, 'sunion', ...arguments);
411
350
  }
412
351
  function sunionstore() {
413
- return request(options, undefined, 'sunionstore', ...arguments);
352
+ return fetchData(options, 'sunionstore', ...arguments);
414
353
  }
415
354
  /**
416
355
  * SORTED SETS
417
356
  */
418
357
  function zadd() {
419
- return request(options, undefined, 'zadd', ...arguments);
358
+ return fetchData(options, 'zadd', ...arguments);
420
359
  }
421
360
  function zcard() {
422
- return hasConfig(options, 'zcard', arguments);
361
+ return fetchData(options, 'zcard', ...arguments);
423
362
  }
424
363
  function zcount() {
425
- return hasConfig(options, 'zcount', arguments);
364
+ return fetchData(options, 'zcount', ...arguments);
426
365
  }
427
366
  function zincrby() {
428
- return request(options, undefined, 'zincrby', ...arguments);
367
+ return fetchData(options, 'zincrby', ...arguments);
429
368
  }
430
369
  function zinterstore() {
431
- return request(options, undefined, 'zinterstore', ...arguments);
370
+ return fetchData(options, 'zinterstore', ...arguments);
432
371
  }
433
372
  function zlexcount() {
434
- return hasConfig(options, 'zlexcount', arguments);
373
+ return fetchData(options, 'zlexcount', ...arguments);
435
374
  }
436
375
  function zpopmax() {
437
- return request(options, undefined, 'zpopmax', ...arguments);
376
+ return fetchData(options, 'zpopmax', ...arguments);
438
377
  }
439
378
  function zpopmin() {
440
- return request(options, undefined, 'zpopmin', ...arguments);
379
+ return fetchData(options, 'zpopmin', ...arguments);
441
380
  }
442
381
  function zrange() {
443
- return hasConfig(options, 'zrange', arguments);
382
+ return fetchData(options, 'zrange', ...arguments);
444
383
  }
445
384
  function zrangebylex() {
446
- return hasConfig(options, 'zrangebylex', arguments);
385
+ return fetchData(options, 'zrangebylex', ...arguments);
447
386
  }
448
387
  function zrangebyscore() {
449
- return hasConfig(options, 'zrangebyscore', arguments);
388
+ return fetchData(options, 'zrangebyscore', ...arguments);
450
389
  }
451
390
  function zrank() {
452
- return hasConfig(options, 'zrank', arguments);
391
+ return fetchData(options, 'zrank', ...arguments);
453
392
  }
454
393
  function zrem() {
455
- return request(options, undefined, 'zrem', ...arguments);
394
+ return fetchData(options, 'zrem', ...arguments);
456
395
  }
457
396
  function zremrangebylex() {
458
- return request(options, undefined, 'zremrangebylex', ...arguments);
397
+ return fetchData(options, 'zremrangebylex', ...arguments);
459
398
  }
460
399
  function zremrangebyrank() {
461
- return request(options, undefined, 'zremrangebyrank', ...arguments);
400
+ return fetchData(options, 'zremrangebyrank', ...arguments);
462
401
  }
463
402
  function zremrangebyscore() {
464
- return request(options, undefined, 'zremrangebyscore', ...arguments);
403
+ return fetchData(options, 'zremrangebyscore', ...arguments);
465
404
  }
466
405
  function zrevrange() {
467
- return hasConfig(options, 'zrevrange', arguments);
406
+ return fetchData(options, 'zrevrange', ...arguments);
468
407
  }
469
408
  function zrevrangebylex() {
470
- return hasConfig(options, 'zrevrangebylex', arguments);
409
+ return fetchData(options, 'zrevrangebylex', ...arguments);
471
410
  }
472
411
  function zrevrangebyscore() {
473
- return hasConfig(options, 'zrevrangebyscore', arguments);
412
+ return fetchData(options, 'zrevrangebyscore', ...arguments);
474
413
  }
475
414
  function zrevrank() {
476
- return hasConfig(options, 'zrevrank', arguments);
415
+ return fetchData(options, 'zrevrank', ...arguments);
477
416
  }
478
417
  function zscore() {
479
- return hasConfig(options, 'zscore', arguments);
418
+ return fetchData(options, 'zscore', ...arguments);
480
419
  }
481
420
  function zunionstore() {
482
- return request(options, undefined, 'zunionstore', ...arguments);
421
+ return fetchData(options, 'zunionstore', ...arguments);
483
422
  }
484
423
  return {
485
424
  auth,
@@ -606,4 +545,3 @@ function upstash(url, token) {
606
545
  };
607
546
  }
608
547
  export default upstash;
609
- //# sourceMappingURL=client.js.map