@crvouga/mockingbird-service-redis 2.12.0 → 2.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-22CTWFCU.js.map
@@ -1,3 +1,49 @@
1
+ import {
2
+ arityError,
3
+ arr,
4
+ authWithoutPassword,
5
+ bulk,
6
+ busyError,
7
+ clusterDisabled,
8
+ cmpBytes,
9
+ discardWithoutMulti,
10
+ err,
11
+ execAbort,
12
+ execWithoutMulti,
13
+ fromLatin1,
14
+ globMatch,
15
+ int,
16
+ intReply,
17
+ invalidExpire,
18
+ latin1,
19
+ map,
20
+ nestedMulti,
21
+ nil,
22
+ nilArray,
23
+ noAuth,
24
+ noPerm,
25
+ noScript,
26
+ noSuchKey,
27
+ notBusy,
28
+ notFloat,
29
+ notInteger,
30
+ ok,
31
+ oomError,
32
+ parseI64,
33
+ pubsubOnly,
34
+ push,
35
+ queued,
36
+ readonlyError,
37
+ scriptDenied,
38
+ simple,
39
+ syntaxError,
40
+ unknownCommand,
41
+ utf8,
42
+ utf8Text,
43
+ wrongPass,
44
+ wrongType
45
+ } from "./chunk-PJCRB2CA.js";
46
+
1
47
  // src/clock.ts
2
48
  function manualClock(start = 0) {
3
49
  return controlledClock(start);
@@ -54,579 +100,6 @@ function controlledClock(start) {
54
100
  };
55
101
  }
56
102
 
57
- // src/bytes.ts
58
- function latin1(bytes2) {
59
- let out = "";
60
- for (let i = 0; i < bytes2.length; i++) out += String.fromCharCode(bytes2[i] ?? 0);
61
- return out;
62
- }
63
- function fromLatin1(value) {
64
- const out = new Uint8Array(value.length);
65
- for (let i = 0; i < value.length; i++) out[i] = value.charCodeAt(i) & 255;
66
- return out;
67
- }
68
- function utf8(value) {
69
- return new TextEncoder().encode(value);
70
- }
71
- function utf8Text(bytes2) {
72
- return new TextDecoder("utf-8", { fatal: false }).decode(bytes2);
73
- }
74
- function cmpBytes(a, b) {
75
- const n = Math.min(a.length, b.length);
76
- for (let i = 0; i < n; i++) {
77
- const d = (a[i] ?? 0) - (b[i] ?? 0);
78
- if (d !== 0) return d;
79
- }
80
- return a.length - b.length;
81
- }
82
- var INT64_MAX = 9223372036854775807n;
83
- var INT64_MIN = -9223372036854775808n;
84
- function parseI64(bytes2) {
85
- const text4 = latin1(bytes2);
86
- if (!/^-?\d+$/.test(text4)) return null;
87
- try {
88
- const value = BigInt(text4);
89
- if (value > INT64_MAX || value < INT64_MIN) return null;
90
- return value;
91
- } catch {
92
- return null;
93
- }
94
- }
95
- function intReply(value) {
96
- if (value <= BigInt(Number.MAX_SAFE_INTEGER) && value >= BigInt(Number.MIN_SAFE_INTEGER)) {
97
- return Number(value);
98
- }
99
- return value;
100
- }
101
- function globMatch(pattern, value) {
102
- if (pattern === "*") return true;
103
- let skipLonger = false;
104
- const match = (pStart, sStart) => {
105
- let p = pStart;
106
- let s = sStart;
107
- while (p < pattern.length && s < value.length) {
108
- const ch = pattern[p];
109
- if (ch === "*") {
110
- while (p + 1 < pattern.length && pattern[p + 1] === "*") p++;
111
- if (p === pattern.length - 1) return true;
112
- while (s < value.length) {
113
- if (match(p + 1, s)) return true;
114
- if (skipLonger) return false;
115
- s++;
116
- }
117
- skipLonger = true;
118
- return false;
119
- }
120
- if (ch === "[") {
121
- p++;
122
- const negate2 = pattern[p] === "^";
123
- if (negate2) p++;
124
- let matched = false;
125
- const cur = value.charCodeAt(s);
126
- for (; ; ) {
127
- if (pattern[p] === "\\" && p + 1 < pattern.length) {
128
- p++;
129
- if (pattern.charCodeAt(p) === cur) matched = true;
130
- } else if (pattern[p] === "]") {
131
- break;
132
- } else if (p >= pattern.length) {
133
- p--;
134
- break;
135
- } else if (p + 2 < pattern.length && pattern[p + 1] === "-") {
136
- let start = pattern.charCodeAt(p);
137
- let end = pattern.charCodeAt(p + 2);
138
- if (start > end) [start, end] = [end, start];
139
- p += 2;
140
- if (cur >= start && cur <= end) matched = true;
141
- } else if (pattern.charCodeAt(p) === cur) matched = true;
142
- p++;
143
- }
144
- if (matched === negate2) return false;
145
- s++;
146
- } else if (ch === "?") {
147
- s++;
148
- } else {
149
- if (ch === "\\" && p + 1 < pattern.length) p++;
150
- if (pattern[p] !== value[s]) return false;
151
- s++;
152
- }
153
- p++;
154
- if (s >= value.length) {
155
- while (pattern[p] === "*") p++;
156
- break;
157
- }
158
- }
159
- return p >= pattern.length && s >= value.length;
160
- };
161
- return match(0, 0);
162
- }
163
-
164
- // src/protocol.ts
165
- var ok = () => ({ t: "simple", v: "OK" });
166
- var queued = () => ({ t: "simple", v: "QUEUED" });
167
- var simple = (v) => ({ t: "simple", v });
168
- var err = (v) => ({ t: "error", v });
169
- var int = (v) => ({ t: "int", v });
170
- var bulk = (v) => ({
171
- t: "bulk",
172
- v: v === null ? null : typeof v === "string" ? utf8(v) : v
173
- });
174
- var arr = (v) => ({ t: "array", v });
175
- var nil = () => ({ t: "bulk", v: null });
176
- var nilArray = () => ({ t: "array", v: null });
177
- var push = (v) => ({ t: "push", v });
178
- var map = (v) => ({ t: "map", v });
179
- var wrongType = () => err("WRONGTYPE Operation against a key holding the wrong kind of value");
180
- function arityError(name) {
181
- return err(`ERR wrong number of arguments for '${name}' command`);
182
- }
183
- var syntaxError = () => err("ERR syntax error");
184
- function unknownCommand(name, args) {
185
- const shown = args.slice(0, 10).map((arg) => `'${latin1(arg)}'`).join(" ");
186
- const extra = shown.length > 0 ? `${shown} ` : "";
187
- return err(`ERR unknown command '${name}', with args beginning with: ${extra}`);
188
- }
189
- var invalidExpire = (command) => err(`ERR invalid expire time in '${command}' command`);
190
- var notInteger = () => err("ERR value is not an integer or out of range");
191
- var notFloat = () => err("ERR value is not a valid float");
192
- var noScript = () => err("NOSCRIPT No matching script. Please use EVAL.");
193
- var readonlyError = () => err("READONLY You can't write against a read only replica.");
194
- var oomError = () => err("OOM command not allowed when used memory > 'maxmemory'.");
195
- var busyError = () => err("BUSY Redis is busy running a script. You can only call SCRIPT KILL or SHUTDOWN NOSAVE.");
196
- var noAuth = () => err("NOAUTH Authentication required.");
197
- var wrongPass = () => err("WRONGPASS invalid username-password pair or user is disabled.");
198
- function authWithoutPassword(password) {
199
- return err(
200
- `ERR AUTH <${password}> called without any password configured for the default user. Are you sure your configuration is correct?`
201
- );
202
- }
203
- var clusterDisabled = () => err("ERR This instance has cluster support disabled");
204
- var noSuchKey = () => err("ERR no such key");
205
- var execWithoutMulti = () => err("ERR EXEC without MULTI");
206
- var discardWithoutMulti = () => err("ERR DISCARD without MULTI");
207
- var nestedMulti = () => err("ERR MULTI calls can not be nested");
208
- var execAbort = () => err("EXECABORT Transaction discarded because of previous errors.");
209
- var scriptDenied = () => err("ERR This Redis command is not allowed from scripts");
210
- var notBusy = () => err("NOTBUSY No scripts in execution right now.");
211
- function pubsubOnly(name) {
212
- return err(
213
- `ERR Can't execute '${name}': only (P|S)SUBSCRIBE / (P|S)UNSUBSCRIBE / PING / QUIT / RESET are allowed in this context`
214
- );
215
- }
216
- function noPerm(name) {
217
- return err(`NOPERM this user has no permissions to run the '${name}' command`);
218
- }
219
- var CRLF = utf8("\r\n");
220
- function concat(parts) {
221
- let size2 = 0;
222
- for (const part of parts) size2 += part.length;
223
- const out = new Uint8Array(size2);
224
- let offset = 0;
225
- for (const part of parts) {
226
- out.set(part, offset);
227
- offset += part.length;
228
- }
229
- return out;
230
- }
231
- function formatDouble(value) {
232
- if (Number.isNaN(value)) return "nan";
233
- if (value === Infinity) return "inf";
234
- if (value === -Infinity) return "-inf";
235
- if (Object.is(value, -0)) return "-0";
236
- if (Number.isInteger(value)) return String(value);
237
- return String(value);
238
- }
239
- function encodeReply(reply, protocol = 2) {
240
- const parts = [];
241
- const text4 = (value) => {
242
- parts.push(utf8(value));
243
- };
244
- const walk = (value) => {
245
- switch (value.t) {
246
- case "simple":
247
- text4(`+${value.v}\r
248
- `);
249
- return;
250
- case "error":
251
- text4(`-${value.v}\r
252
- `);
253
- return;
254
- case "int":
255
- text4(`:${value.v.toString()}\r
256
- `);
257
- return;
258
- case "bulk":
259
- if (value.v === null) {
260
- text4(protocol === 3 ? "_\r\n" : "$-1\r\n");
261
- return;
262
- }
263
- text4(`$${value.v.length}\r
264
- `);
265
- parts.push(value.v);
266
- parts.push(CRLF);
267
- return;
268
- case "array":
269
- if (value.v === null) {
270
- text4(protocol === 3 ? "_\r\n" : "*-1\r\n");
271
- return;
272
- }
273
- text4(`*${value.v.length}\r
274
- `);
275
- for (const item of value.v) walk(item);
276
- return;
277
- case "null":
278
- text4(protocol === 3 ? "_\r\n" : "$-1\r\n");
279
- return;
280
- case "bool":
281
- if (protocol === 3) text4(value.v ? "#t\r\n" : "#f\r\n");
282
- else text4(value.v ? ":1\r\n" : ":0\r\n");
283
- return;
284
- case "double":
285
- if (protocol === 3) text4(`,${formatDouble(value.v)}\r
286
- `);
287
- else walk(bulk(formatDouble(value.v)));
288
- return;
289
- case "map":
290
- if (protocol === 3) {
291
- text4(`%${value.v.length}\r
292
- `);
293
- for (const [key, item] of value.v) {
294
- walk(key);
295
- walk(item);
296
- }
297
- return;
298
- }
299
- text4(`*${value.v.length * 2}\r
300
- `);
301
- for (const [key, item] of value.v) {
302
- walk(key);
303
- walk(item);
304
- }
305
- return;
306
- case "push":
307
- text4(protocol === 3 ? `>${value.v.length}\r
308
- ` : `*${value.v.length}\r
309
- `);
310
- for (const item of value.v) walk(item);
311
- return;
312
- default: {
313
- const never = value;
314
- throw new Error(`unknown reply ${never.t}`);
315
- }
316
- }
317
- };
318
- walk(reply);
319
- return concat(parts);
320
- }
321
- var RespParser = class {
322
- buf = new Uint8Array(0);
323
- pos = 0;
324
- push(chunk) {
325
- if (this.pos > 0) this.buf = this.buf.slice(this.pos);
326
- this.pos = 0;
327
- if (chunk.length > 0) {
328
- const next = new Uint8Array(this.buf.length + chunk.length);
329
- next.set(this.buf);
330
- next.set(chunk, this.buf.length);
331
- this.buf = next;
332
- }
333
- const out = [];
334
- while (this.pos < this.buf.length) {
335
- const saved = this.pos;
336
- const reply = this.tryOne();
337
- if (reply === void 0) {
338
- this.pos = saved;
339
- break;
340
- }
341
- out.push(reply);
342
- }
343
- return out;
344
- }
345
- tryOne() {
346
- if (this.pos >= this.buf.length) return void 0;
347
- const marker = this.buf[this.pos] ?? 0;
348
- if (marker !== 43 && marker !== 45 && marker !== 58 && marker !== 36 && marker !== 42 && marker !== 95 && marker !== 35 && marker !== 44 && marker !== 37 && marker !== 126 && marker !== 62 && marker !== 33) {
349
- return this.inline();
350
- }
351
- this.pos++;
352
- if (marker === 43) {
353
- const line = this.readLine();
354
- if (line === null) return void 0;
355
- return simple(line);
356
- }
357
- if (marker === 45) {
358
- const line = this.readLine();
359
- if (line === null) return void 0;
360
- return err(line);
361
- }
362
- if (marker === 58) {
363
- const line = this.readLine();
364
- if (line === null) return void 0;
365
- if (!/^-?\d+$/.test(line)) return err("ERR protocol error: invalid integer");
366
- const value = BigInt(line);
367
- return int(
368
- value <= BigInt(Number.MAX_SAFE_INTEGER) && value >= BigInt(Number.MIN_SAFE_INTEGER) ? Number(value) : value
369
- );
370
- }
371
- if (marker === 36) return this.bulk();
372
- if (marker === 42) return this.aggregate("array");
373
- if (marker === 95) {
374
- const line = this.readLine();
375
- if (line === null) return void 0;
376
- return { t: "null" };
377
- }
378
- if (marker === 35) {
379
- const line = this.readLine();
380
- if (line === null) return void 0;
381
- return { t: "bool", v: line === "t" };
382
- }
383
- if (marker === 44) {
384
- const line = this.readLine();
385
- if (line === null) return void 0;
386
- return { t: "double", v: Number(line) };
387
- }
388
- if (marker === 37) return this.map();
389
- if (marker === 126) return this.aggregate("set");
390
- if (marker === 62) return this.aggregate("push");
391
- if (marker === 33) return this.bulk();
392
- return void 0;
393
- }
394
- inline() {
395
- const line = this.readLine();
396
- if (line === null) return void 0;
397
- if (line.length === 0) return arr([]);
398
- const parts = [];
399
- let current = "";
400
- let quote3 = null;
401
- for (let i = 0; i < line.length; i++) {
402
- const ch = line[i];
403
- if (quote3) {
404
- if (ch === quote3) quote3 = null;
405
- else current += ch ?? "";
406
- continue;
407
- }
408
- if (ch === "'" || ch === '"') {
409
- quote3 = ch;
410
- continue;
411
- }
412
- if (ch === " ") {
413
- if (current.length > 0) {
414
- parts.push(current);
415
- current = "";
416
- }
417
- continue;
418
- }
419
- current += ch ?? "";
420
- }
421
- if (current.length > 0) parts.push(current);
422
- return arr(parts.map((part) => bulk(fromLatin1(part))));
423
- }
424
- readLine() {
425
- for (let i = this.pos; i < this.buf.length; i++) {
426
- if (this.buf[i] !== 10) continue;
427
- let end = i;
428
- if (end > this.pos && this.buf[end - 1] === 13) end--;
429
- const line = latin1(this.buf.subarray(this.pos, end));
430
- this.pos = i + 1;
431
- return line;
432
- }
433
- return null;
434
- }
435
- bulk() {
436
- const line = this.readLine();
437
- if (line === null) return void 0;
438
- const size2 = Number(line);
439
- if (!Number.isInteger(size2)) return err("ERR protocol error: invalid bulk length");
440
- if (size2 < 0) return nil();
441
- if (this.buf.length < this.pos + size2 + 2) return void 0;
442
- const value = this.buf.slice(this.pos, this.pos + size2);
443
- this.pos += size2 + 2;
444
- return { t: "bulk", v: value };
445
- }
446
- aggregate(kind) {
447
- const line = this.readLine();
448
- if (line === null) return void 0;
449
- const count = Number(line);
450
- if (!Number.isInteger(count)) return err("ERR protocol error: invalid multibulk length");
451
- if (count < 0) return nilArray();
452
- const items = [];
453
- for (let i = 0; i < count; i++) {
454
- const item = this.tryOne();
455
- if (item === void 0) return void 0;
456
- items.push(item);
457
- }
458
- if (kind === "push") return push(items);
459
- return arr(items);
460
- }
461
- map() {
462
- const line = this.readLine();
463
- if (line === null) return void 0;
464
- const count = Number(line);
465
- if (!Number.isInteger(count) || count < 0) return err("ERR protocol error: invalid map length");
466
- const pairs = [];
467
- for (let i = 0; i < count; i++) {
468
- const key = this.tryOne();
469
- if (key === void 0) return void 0;
470
- const value = this.tryOne();
471
- if (value === void 0) return void 0;
472
- pairs.push([key, value]);
473
- }
474
- return map(pairs);
475
- }
476
- };
477
- var MAX_BULK_LENGTH = 512 * 1024 * 1024;
478
- var MAX_MULTIBULK_LENGTH = 2147483647;
479
- var MAX_LINE_LENGTH = 64 * 1024;
480
- function parseLength(bytes2) {
481
- const value = latin1(bytes2);
482
- return /^(?:0|-?[1-9]\d*)$/.test(value) ? BigInt(value) : null;
483
- }
484
- var isSpace = (c) => c === 32 || c >= 9 && c <= 13;
485
- var hexValue = (c) => c === void 0 ? -1 : c >= 48 && c <= 57 ? c - 48 : c >= 97 && c <= 102 ? c - 87 : c >= 65 && c <= 70 ? c - 55 : -1;
486
- function splitInline(line) {
487
- const out = [];
488
- const end = line.length;
489
- let i = 0;
490
- for (; ; ) {
491
- while (i < end && isSpace(line[i] ?? 0)) i++;
492
- if (i >= end) return out;
493
- const current = [];
494
- let inDouble = false;
495
- let inSingle = false;
496
- let done = false;
497
- while (!done) {
498
- const c = i < end ? line[i] ?? 0 : 0;
499
- if (inDouble) {
500
- const escaped = line[i + 1];
501
- if (c === 92 && escaped === 120 && hexValue(line[i + 2]) >= 0 && hexValue(line[i + 3]) >= 0) {
502
- current.push(hexValue(line[i + 2]) * 16 + hexValue(line[i + 3]));
503
- i += 3;
504
- } else if (c === 92 && i + 1 < end) {
505
- i++;
506
- const e = line[i] ?? 0;
507
- current.push(
508
- e === 110 ? 10 : e === 114 ? 13 : e === 116 ? 9 : e === 98 ? 8 : e === 97 ? 7 : e
509
- );
510
- } else if (c === 34) {
511
- if (i + 1 < end && !isSpace(line[i + 1] ?? 0)) return null;
512
- done = true;
513
- } else if (i >= end) return null;
514
- else current.push(c);
515
- } else if (inSingle) {
516
- if (c === 92 && line[i + 1] === 39) {
517
- i++;
518
- current.push(39);
519
- } else if (c === 39) {
520
- if (i + 1 < end && !isSpace(line[i + 1] ?? 0)) return null;
521
- done = true;
522
- } else if (i >= end) return null;
523
- else current.push(c);
524
- } else if (i >= end || isSpace(c) || c === 0) done = true;
525
- else if (c === 34) inDouble = true;
526
- else if (c === 39) inSingle = true;
527
- else current.push(c);
528
- if (i < end) i++;
529
- }
530
- out.push(Uint8Array.from(current));
531
- }
532
- }
533
- var RequestParser = class {
534
- buf = new Uint8Array(0);
535
- pos = 0;
536
- remaining = 0;
537
- bulkLength = -1;
538
- args = [];
539
- failed = false;
540
- push(chunk) {
541
- const requests = [];
542
- if (this.failed) return { requests, error: null };
543
- if (this.pos > 0) this.buf = this.buf.slice(this.pos);
544
- this.pos = 0;
545
- if (chunk.length > 0) {
546
- const next = new Uint8Array(this.buf.length + chunk.length);
547
- next.set(this.buf);
548
- next.set(chunk, this.buf.length);
549
- this.buf = next;
550
- }
551
- const fail2 = (message) => {
552
- this.failed = true;
553
- this.buf = new Uint8Array(0);
554
- this.pos = 0;
555
- return { requests, error: message };
556
- };
557
- while (this.pos < this.buf.length) {
558
- if (this.remaining === 0) {
559
- if (this.buf[this.pos] === 42) {
560
- const header2 = this.header();
561
- if (header2 === null) {
562
- if (this.buf.length - this.pos > MAX_LINE_LENGTH)
563
- return fail2("too big mbulk count string");
564
- break;
565
- }
566
- const count = parseLength(header2.subarray(1));
567
- if (count === null || count > BigInt(MAX_MULTIBULK_LENGTH)) {
568
- return fail2("invalid multibulk length");
569
- }
570
- if (count > 0n) {
571
- this.remaining = Number(count);
572
- this.args = [];
573
- }
574
- } else {
575
- const newline = this.buf.indexOf(10, this.pos);
576
- if (newline < 0) {
577
- if (this.buf.length - this.pos > MAX_LINE_LENGTH) return fail2("too big inline request");
578
- break;
579
- }
580
- let end = newline;
581
- if (end > this.pos && this.buf[end - 1] === 13) end--;
582
- const line = this.buf.subarray(this.pos, end);
583
- this.pos = newline + 1;
584
- const args = splitInline(line);
585
- if (args === null) return fail2("unbalanced quotes in request");
586
- if (args.length > 0) requests.push(toRequest(args));
587
- }
588
- continue;
589
- }
590
- if (this.bulkLength < 0) {
591
- if (this.buf[this.pos] !== 36) {
592
- const got = String.fromCharCode(this.buf[this.pos] ?? 0);
593
- return fail2(`expected '$', got '${got}'`);
594
- }
595
- const header2 = this.header();
596
- if (header2 === null) {
597
- if (this.buf.length - this.pos > MAX_LINE_LENGTH) return fail2("too big bulk count string");
598
- break;
599
- }
600
- const length2 = parseLength(header2.subarray(1));
601
- if (length2 === null || length2 < 0n || length2 > BigInt(MAX_BULK_LENGTH)) {
602
- return fail2("invalid bulk length");
603
- }
604
- this.bulkLength = Number(length2);
605
- }
606
- if (this.buf.length - this.pos < this.bulkLength + 2) break;
607
- this.args.push(this.buf.slice(this.pos, this.pos + this.bulkLength));
608
- this.pos += this.bulkLength + 2;
609
- this.bulkLength = -1;
610
- if (--this.remaining === 0) {
611
- requests.push(toRequest(this.args));
612
- this.args = [];
613
- }
614
- }
615
- return { requests, error: null };
616
- }
617
- /** A `*N` or `$N` header line ending in CRLF, consumed; null while the CRLF has not arrived. */
618
- header() {
619
- const cr = this.buf.indexOf(13, this.pos);
620
- if (cr < 0 || cr + 1 >= this.buf.length) return null;
621
- const line = this.buf.subarray(this.pos, cr);
622
- this.pos = cr + 2;
623
- return line;
624
- }
625
- };
626
- function toRequest(args) {
627
- return { name: latin1(args[0] ?? new Uint8Array(0)), args: args.slice(1) };
628
- }
629
-
630
103
  // src/command-table.ts
631
104
  var ROWS = [
632
105
  "acl -2 0 0 0 @slow A container for Access List Control commands. 6.0.0 server Depends on subcommand.",
@@ -2054,12 +1527,12 @@ function formatFloat(x, spec) {
2054
1527
  }
2055
1528
  return pad(body, sign, spec, true);
2056
1529
  }
2057
- var INT64_MAX2 = 9223372036854775807n;
2058
- var INT64_MIN2 = -9223372036854775808n;
1530
+ var INT64_MAX = 9223372036854775807n;
1531
+ var INT64_MIN = -9223372036854775808n;
2059
1532
  function toInt64(x) {
2060
1533
  if (Number.isNaN(x)) return 0n;
2061
- if (x >= 2 ** 63) return INT64_MAX2;
2062
- if (x <= -(2 ** 63)) return INT64_MIN2;
1534
+ if (x >= 2 ** 63) return INT64_MAX;
1535
+ if (x <= -(2 ** 63)) return INT64_MIN;
2063
1536
  return BigInt(Math.trunc(x));
2064
1537
  }
2065
1538
  function formatInteger(x, spec) {
@@ -2403,7 +1876,7 @@ function tostr(value) {
2403
1876
  if (typeof value === "number") return numberToString(value);
2404
1877
  return void 0;
2405
1878
  }
2406
- function concat2(a, b, descA = "", descB = "") {
1879
+ function concat(a, b, descA = "", descB = "") {
2407
1880
  const x = tostr(a);
2408
1881
  const y = tostr(b);
2409
1882
  if (x !== void 0 && y !== void 0) return x + y;
@@ -2757,7 +2230,7 @@ function compileBinary(e) {
2757
2230
  const y = b(f);
2758
2231
  if (typeof x === "string" && typeof y === "string") return x + y;
2759
2232
  pos.line = line;
2760
- return concat2(x, y, descA, descB);
2233
+ return concat(x, y, descA, descB);
2761
2234
  };
2762
2235
  case "==":
2763
2236
  return (f) => {
@@ -9505,10 +8978,6 @@ function createRedis(options) {
9505
8978
  export {
9506
8979
  manualClock,
9507
8980
  wallClock,
9508
- err,
9509
- encodeReply,
9510
- RespParser,
9511
- RequestParser,
9512
8981
  RedisConnectionError,
9513
8982
  RedisReplyError,
9514
8983
  Redis,
@@ -9516,4 +8985,4 @@ export {
9516
8985
  RedisPipeline,
9517
8986
  createRedis
9518
8987
  };
9519
- //# sourceMappingURL=chunk-TVELGGZ4.js.map
8988
+ //# sourceMappingURL=chunk-AMGKTUAB.js.map