@crvouga/mockingbird-service-redis 2.18.0 → 2.19.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.
package/DISCOVERY.md CHANGED
@@ -70,7 +70,7 @@ designed for assertions and diagnosis by consuming test suites.
70
70
 
71
71
  ## Report a mismatch or missing capability
72
72
 
73
- Follow the [agent reporting contract](https://github.com/crvouga/mockingbird/blob/main/docs/REPORTING_ISSUES.md). Include package version,
73
+ Follow the [agent reporting contract](https://github.com/crvouga-organization/mockingbird/blob/main/docs/REPORTING_ISSUES.md). Include package version,
74
74
  operation/command, a minimal redacted request, actual emulator result, expected oracle result or vendor
75
75
  documentation, and whether the mismatch appears in the matrix. Never include keys, tokens,
76
76
  customer data, prompts, PHI, card data, or unredacted recordings.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @crvouga/mockingbird-service-redis
2
2
 
3
- > Local emulators. Real API contracts. Part of [Mockingbird](https://github.com/crvouga/mockingbird).
3
+ > Local emulators. Real API contracts. Part of [Mockingbird](https://github.com/crvouga-organization/mockingbird).
4
4
 
5
5
  In-process Redis for tests. `createRedis()` is a pure TypeScript RESP store: call commands on
6
6
  `redis.client()`, or speak RESP to the TCP server (`mockingbird-redis`, or `serve` from
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createRedis
3
- } from "./chunk-63SLX3Q5.js";
3
+ } from "./chunk-HQYU5DZF.js";
4
4
  import {
5
5
  createRespServer
6
6
  } from "./chunk-UUFJK44W.js";
@@ -23,7 +23,7 @@ __export(service_exports, {
23
23
  __reExport(service_exports, service_star);
24
24
  import * as service_star from "@crvouga/mockingbird-runtime/service";
25
25
  import { PACKAGE_VERSION as SHARED_VERSION, createRuntime as sharedRuntime } from "@crvouga/mockingbird-runtime/service";
26
- var PACKAGE_VERSION = true ? "2.18.0" : SHARED_VERSION;
26
+ var PACKAGE_VERSION = true ? "2.19.0" : SHARED_VERSION;
27
27
  var ADMIN_BRAND = typeof define_MOCKINGBIRD_ADMIN_BRAND_default === "object" ? define_MOCKINGBIRD_ADMIN_BRAND_default : void 0;
28
28
  var createRuntime = (options) => sharedRuntime({
29
29
  ...options,
@@ -307,4 +307,4 @@ export {
307
307
  serve,
308
308
  serveTarget
309
309
  };
310
- //# sourceMappingURL=chunk-RX6VEQSN.js.map
310
+ //# sourceMappingURL=chunk-3DWJY5YL.js.map
@@ -496,124 +496,7 @@ var COMMAND_TABLE = ROWS.map((row) => {
496
496
  });
497
497
 
498
498
  // src/sha256.ts
499
- var K = Uint32Array.from([
500
- 1116352408,
501
- 1899447441,
502
- 3049323471,
503
- 3921009573,
504
- 961987163,
505
- 1508970993,
506
- 2453635748,
507
- 2870763221,
508
- 3624381080,
509
- 310598401,
510
- 607225278,
511
- 1426881987,
512
- 1925078388,
513
- 2162078206,
514
- 2614888103,
515
- 3248222580,
516
- 3835390401,
517
- 4022224774,
518
- 264347078,
519
- 604807628,
520
- 770255983,
521
- 1249150122,
522
- 1555081692,
523
- 1996064986,
524
- 2554220882,
525
- 2821834349,
526
- 2952996808,
527
- 3210313671,
528
- 3336571891,
529
- 3584528711,
530
- 113926993,
531
- 338241895,
532
- 666307205,
533
- 773529912,
534
- 1294757372,
535
- 1396182291,
536
- 1695183700,
537
- 1986661051,
538
- 2177026350,
539
- 2456956037,
540
- 2730485921,
541
- 2820302411,
542
- 3259730800,
543
- 3345764771,
544
- 3516065817,
545
- 3600352804,
546
- 4094571909,
547
- 275423344,
548
- 430227734,
549
- 506948616,
550
- 659060556,
551
- 883997877,
552
- 958139571,
553
- 1322822218,
554
- 1537002063,
555
- 1747873779,
556
- 1955562222,
557
- 2024104815,
558
- 2227730452,
559
- 2361852424,
560
- 2428436474,
561
- 2756734187,
562
- 3204031479,
563
- 3329325298
564
- ]);
565
- var rotr = (value, bits) => value >>> bits | value << 32 - bits;
566
- function sha256Hex(input) {
567
- const padded = new Uint8Array((input.length + 8 >> 6) + 1 << 6);
568
- padded.set(input);
569
- padded[input.length] = 128;
570
- const view = new DataView(padded.buffer);
571
- view.setUint32(padded.length - 8, Math.floor(input.length * 8 / 4294967296));
572
- view.setUint32(padded.length - 4, input.length * 8 >>> 0);
573
- const h = Uint32Array.from([
574
- 1779033703,
575
- 3144134277,
576
- 1013904242,
577
- 2773480762,
578
- 1359893119,
579
- 2600822924,
580
- 528734635,
581
- 1541459225
582
- ]);
583
- const w = new Uint32Array(64);
584
- for (let offset = 0; offset < padded.length; offset += 64) {
585
- for (let i = 0; i < 16; i++) w[i] = view.getUint32(offset + i * 4);
586
- for (let i = 16; i < 64; i++) {
587
- const w15 = w[i - 15] ?? 0;
588
- const w2 = w[i - 2] ?? 0;
589
- const s0 = rotr(w15, 7) ^ rotr(w15, 18) ^ w15 >>> 3;
590
- const s1 = rotr(w2, 17) ^ rotr(w2, 19) ^ w2 >>> 10;
591
- w[i] = (w[i - 16] ?? 0) + s0 + (w[i - 7] ?? 0) + s1 >>> 0;
592
- }
593
- let [a, b, c, d, e, f, g, hh] = h;
594
- for (let i = 0; i < 64; i++) {
595
- const s1 = rotr(e, 6) ^ rotr(e, 11) ^ rotr(e, 25);
596
- const choice = e & f ^ ~e & g;
597
- const t1 = hh + s1 + choice + (K[i] ?? 0) + (w[i] ?? 0) >>> 0;
598
- const s0 = rotr(a, 2) ^ rotr(a, 13) ^ rotr(a, 22);
599
- const majority = a & b ^ a & c ^ b & c;
600
- const t2 = s0 + majority >>> 0;
601
- hh = g;
602
- g = f;
603
- f = e;
604
- e = d + t1 >>> 0;
605
- d = c;
606
- c = b;
607
- b = a;
608
- a = t1 + t2 >>> 0;
609
- }
610
- ;
611
- [a, b, c, d, e, f, g, hh].forEach((value, i) => {
612
- h[i] = (h[i] ?? 0) + value >>> 0;
613
- });
614
- }
615
- return [...h].map((word) => word.toString(16).padStart(8, "0")).join("");
616
- }
499
+ import { sha256Hex } from "@crvouga/mockingbird-runtime/core";
617
500
 
618
501
  // src/introspect.ts
619
502
  var upper = (bytes2) => bytes2 ? latin1(bytes2).toUpperCase() : "";
@@ -5472,7 +5355,7 @@ function structLib() {
5472
5355
  }
5473
5356
 
5474
5357
  // src/sha1.ts
5475
- var K2 = [1518500249, 1859775393, 2400959708, 3395469782];
5358
+ var K = [1518500249, 1859775393, 2400959708, 3395469782];
5476
5359
  function rotl(value, bits) {
5477
5360
  return (value << bits | value >>> 32 - bits) >>> 0;
5478
5361
  }
@@ -5506,7 +5389,7 @@ function sha1Hex(data) {
5506
5389
  if (stage === 0) f = b & c | ~b & d;
5507
5390
  else if (stage === 1 || stage === 3) f = b ^ c ^ d;
5508
5391
  else f = b & c | b & d | c & d;
5509
- const temp = rotl(a, 5) + f + e + (K2[stage] ?? 0) + (w[i] ?? 0) >>> 0;
5392
+ const temp = rotl(a, 5) + f + e + (K[stage] ?? 0) + (w[i] ?? 0) >>> 0;
5510
5393
  e = d;
5511
5394
  d = c;
5512
5395
  c = rotl(b, 30);
@@ -10563,4 +10446,4 @@ export {
10563
10446
  RedisPipeline,
10564
10447
  createRedis
10565
10448
  };
10566
- //# sourceMappingURL=chunk-63SLX3Q5.js.map
10449
+ //# sourceMappingURL=chunk-HQYU5DZF.js.map