@semiont/graph 0.5.10 → 0.5.12

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.
Files changed (66) hide show
  1. package/dist/{chunk-RUQUFRTB.js → chunk-2FZWFAHI.js} +2 -2
  2. package/dist/{chunk-7UEKNJE3.js → chunk-7W3WYDYY.js} +947 -768
  3. package/dist/chunk-7W3WYDYY.js.map +1 -0
  4. package/dist/{chunk-HQ3XLO52.js → chunk-ANBNC7ET.js} +9 -11
  5. package/dist/chunk-ANBNC7ET.js.map +1 -0
  6. package/dist/{chunk-DCLCNCC5.js → chunk-FG7DZRU2.js} +47 -138
  7. package/dist/chunk-FG7DZRU2.js.map +1 -0
  8. package/dist/{chunk-WVFBW2BJ.js → chunk-FUH65BXZ.js} +3 -3
  9. package/dist/chunk-GH2BPPIO.js +358 -0
  10. package/dist/chunk-GH2BPPIO.js.map +1 -0
  11. package/dist/{chunk-2UFYZAZA.js → chunk-SIIGOCAF.js} +88 -169
  12. package/dist/chunk-SIIGOCAF.js.map +1 -0
  13. package/dist/chunk-TTCF2MVW.js +2238 -0
  14. package/dist/chunk-TTCF2MVW.js.map +1 -0
  15. package/dist/dist-es-2TLZH4GR.js +286 -0
  16. package/dist/dist-es-2TLZH4GR.js.map +1 -0
  17. package/dist/{dist-es-F3ITMM62.js → dist-es-3LHYAN2Z.js} +4 -4
  18. package/dist/{dist-es-RKGSX75L.js → dist-es-ERGUA43M.js} +126 -265
  19. package/dist/dist-es-ERGUA43M.js.map +1 -0
  20. package/dist/{dist-es-RHZZGTBH.js → dist-es-FF2QSTPC.js} +20 -14
  21. package/dist/dist-es-FF2QSTPC.js.map +1 -0
  22. package/dist/{dist-es-T7UQEVTL.js → dist-es-FYIEMWHW.js} +5 -5
  23. package/dist/{dist-es-SEF7BNPV.js → dist-es-QUWKNR3E.js} +3 -3
  24. package/dist/{dist-es-PIT4UOVB.js → dist-es-VWWFUSHN.js} +7 -7
  25. package/dist/dist-es-WPIJNMD4.js +220 -0
  26. package/dist/dist-es-WPIJNMD4.js.map +1 -0
  27. package/dist/{dist-es-HQN7ECGH.js → dist-es-YDMYLFPU.js} +5 -5
  28. package/dist/{event-streams-AI5RIQ2F.js → event-streams-C2JNHHGL.js} +20 -503
  29. package/dist/event-streams-C2JNHHGL.js.map +1 -0
  30. package/dist/index.js +45 -19
  31. package/dist/index.js.map +1 -1
  32. package/dist/{loadSso-GG2G7R6K.js → loadSso-XDB76252.js} +22 -19
  33. package/dist/loadSso-XDB76252.js.map +1 -0
  34. package/dist/{signin-W2DUKDEU.js → signin-AHFRIARE.js} +24 -21
  35. package/dist/signin-AHFRIARE.js.map +1 -0
  36. package/dist/{sso-oidc-QMDDOWYK.js → sso-oidc-3B3W33KS.js} +22 -18
  37. package/dist/sso-oidc-3B3W33KS.js.map +1 -0
  38. package/dist/{sts-3APBVT3H.js → sts-OXRUFMHG.js} +23 -25
  39. package/dist/sts-OXRUFMHG.js.map +1 -0
  40. package/package.json +7 -7
  41. package/dist/chunk-2UFYZAZA.js.map +0 -1
  42. package/dist/chunk-7UEKNJE3.js.map +0 -1
  43. package/dist/chunk-DCLCNCC5.js.map +0 -1
  44. package/dist/chunk-GXSQEW4F.js +0 -694
  45. package/dist/chunk-GXSQEW4F.js.map +0 -1
  46. package/dist/chunk-HQ3XLO52.js.map +0 -1
  47. package/dist/chunk-MTWDPBDH.js +0 -576
  48. package/dist/chunk-MTWDPBDH.js.map +0 -1
  49. package/dist/chunk-USQJFUZP.js +0 -1166
  50. package/dist/chunk-USQJFUZP.js.map +0 -1
  51. package/dist/dist-es-RHZZGTBH.js.map +0 -1
  52. package/dist/dist-es-RKGSX75L.js.map +0 -1
  53. package/dist/dist-es-ZEE6WCCG.js +0 -492
  54. package/dist/dist-es-ZEE6WCCG.js.map +0 -1
  55. package/dist/event-streams-AI5RIQ2F.js.map +0 -1
  56. package/dist/loadSso-GG2G7R6K.js.map +0 -1
  57. package/dist/signin-W2DUKDEU.js.map +0 -1
  58. package/dist/sso-oidc-QMDDOWYK.js.map +0 -1
  59. package/dist/sts-3APBVT3H.js.map +0 -1
  60. /package/dist/{chunk-RUQUFRTB.js.map → chunk-2FZWFAHI.js.map} +0 -0
  61. /package/dist/{chunk-WVFBW2BJ.js.map → chunk-FUH65BXZ.js.map} +0 -0
  62. /package/dist/{dist-es-F3ITMM62.js.map → dist-es-3LHYAN2Z.js.map} +0 -0
  63. /package/dist/{dist-es-T7UQEVTL.js.map → dist-es-FYIEMWHW.js.map} +0 -0
  64. /package/dist/{dist-es-SEF7BNPV.js.map → dist-es-QUWKNR3E.js.map} +0 -0
  65. /package/dist/{dist-es-PIT4UOVB.js.map → dist-es-VWWFUSHN.js.map} +0 -0
  66. /package/dist/{dist-es-HQN7ECGH.js.map → dist-es-YDMYLFPU.js.map} +0 -0
@@ -1,498 +1,12 @@
1
+ import {
2
+ Crc32Node
3
+ } from "./chunk-GH2BPPIO.js";
1
4
  import {
2
5
  fromHex,
3
6
  fromUtf8,
4
7
  toHex,
5
8
  toUtf8
6
- } from "./chunk-DCLCNCC5.js";
7
-
8
- // ../../node_modules/tslib/tslib.es6.mjs
9
- function __awaiter(thisArg, _arguments, P, generator) {
10
- function adopt(value) {
11
- return value instanceof P ? value : new P(function(resolve) {
12
- resolve(value);
13
- });
14
- }
15
- return new (P || (P = Promise))(function(resolve, reject) {
16
- function fulfilled(value) {
17
- try {
18
- step(generator.next(value));
19
- } catch (e) {
20
- reject(e);
21
- }
22
- }
23
- function rejected(value) {
24
- try {
25
- step(generator["throw"](value));
26
- } catch (e) {
27
- reject(e);
28
- }
29
- }
30
- function step(result) {
31
- result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
32
- }
33
- step((generator = generator.apply(thisArg, _arguments || [])).next());
34
- });
35
- }
36
- function __generator(thisArg, body) {
37
- var _ = { label: 0, sent: function() {
38
- if (t[0] & 1) throw t[1];
39
- return t[1];
40
- }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
41
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
42
- return this;
43
- }), g;
44
- function verb(n) {
45
- return function(v) {
46
- return step([n, v]);
47
- };
48
- }
49
- function step(op) {
50
- if (f) throw new TypeError("Generator is already executing.");
51
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
52
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
53
- if (y = 0, t) op = [op[0] & 2, t.value];
54
- switch (op[0]) {
55
- case 0:
56
- case 1:
57
- t = op;
58
- break;
59
- case 4:
60
- _.label++;
61
- return { value: op[1], done: false };
62
- case 5:
63
- _.label++;
64
- y = op[1];
65
- op = [0];
66
- continue;
67
- case 7:
68
- op = _.ops.pop();
69
- _.trys.pop();
70
- continue;
71
- default:
72
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
73
- _ = 0;
74
- continue;
75
- }
76
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
77
- _.label = op[1];
78
- break;
79
- }
80
- if (op[0] === 6 && _.label < t[1]) {
81
- _.label = t[1];
82
- t = op;
83
- break;
84
- }
85
- if (t && _.label < t[2]) {
86
- _.label = t[2];
87
- _.ops.push(op);
88
- break;
89
- }
90
- if (t[2]) _.ops.pop();
91
- _.trys.pop();
92
- continue;
93
- }
94
- op = body.call(thisArg, _);
95
- } catch (e) {
96
- op = [6, e];
97
- y = 0;
98
- } finally {
99
- f = t = 0;
100
- }
101
- if (op[0] & 5) throw op[1];
102
- return { value: op[0] ? op[1] : void 0, done: true };
103
- }
104
- }
105
- function __values(o) {
106
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
107
- if (m) return m.call(o);
108
- if (o && typeof o.length === "number") return {
109
- next: function() {
110
- if (o && i >= o.length) o = void 0;
111
- return { value: o && o[i++], done: !o };
112
- }
113
- };
114
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
115
- }
116
-
117
- // ../../node_modules/@smithy/util-buffer-from/dist-es/index.js
118
- import { Buffer as Buffer2 } from "buffer";
119
- var fromString = (input, encoding) => {
120
- if (typeof input !== "string") {
121
- throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`);
122
- }
123
- return encoding ? Buffer2.from(input, encoding) : Buffer2.from(input);
124
- };
125
-
126
- // ../../node_modules/@smithy/util-utf8/dist-es/fromUtf8.js
127
- var fromUtf82 = (input) => {
128
- const buf = fromString(input, "utf8");
129
- return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);
130
- };
131
-
132
- // ../../node_modules/@aws-crypto/util/build/module/convertToBuffer.js
133
- var fromUtf83 = typeof Buffer !== "undefined" && Buffer.from ? function(input) {
134
- return Buffer.from(input, "utf8");
135
- } : fromUtf82;
136
- function convertToBuffer(data) {
137
- if (data instanceof Uint8Array)
138
- return data;
139
- if (typeof data === "string") {
140
- return fromUtf83(data);
141
- }
142
- if (ArrayBuffer.isView(data)) {
143
- return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
144
- }
145
- return new Uint8Array(data);
146
- }
147
-
148
- // ../../node_modules/@aws-crypto/util/build/module/isEmptyData.js
149
- function isEmptyData(data) {
150
- if (typeof data === "string") {
151
- return data.length === 0;
152
- }
153
- return data.byteLength === 0;
154
- }
155
-
156
- // ../../node_modules/@aws-crypto/util/build/module/numToUint8.js
157
- function numToUint8(num) {
158
- return new Uint8Array([
159
- (num & 4278190080) >> 24,
160
- (num & 16711680) >> 16,
161
- (num & 65280) >> 8,
162
- num & 255
163
- ]);
164
- }
165
-
166
- // ../../node_modules/@aws-crypto/util/build/module/uint32ArrayFrom.js
167
- function uint32ArrayFrom(a_lookUpTable2) {
168
- if (!Uint32Array.from) {
169
- var return_array = new Uint32Array(a_lookUpTable2.length);
170
- var a_index = 0;
171
- while (a_index < a_lookUpTable2.length) {
172
- return_array[a_index] = a_lookUpTable2[a_index];
173
- a_index += 1;
174
- }
175
- return return_array;
176
- }
177
- return Uint32Array.from(a_lookUpTable2);
178
- }
179
-
180
- // ../../node_modules/@aws-crypto/crc32/build/module/aws_crc32.js
181
- var AwsCrc32 = (
182
- /** @class */
183
- (function() {
184
- function AwsCrc322() {
185
- this.crc32 = new Crc32();
186
- }
187
- AwsCrc322.prototype.update = function(toHash) {
188
- if (isEmptyData(toHash))
189
- return;
190
- this.crc32.update(convertToBuffer(toHash));
191
- };
192
- AwsCrc322.prototype.digest = function() {
193
- return __awaiter(this, void 0, void 0, function() {
194
- return __generator(this, function(_a) {
195
- return [2, numToUint8(this.crc32.digest())];
196
- });
197
- });
198
- };
199
- AwsCrc322.prototype.reset = function() {
200
- this.crc32 = new Crc32();
201
- };
202
- return AwsCrc322;
203
- })()
204
- );
205
-
206
- // ../../node_modules/@aws-crypto/crc32/build/module/index.js
207
- var Crc32 = (
208
- /** @class */
209
- (function() {
210
- function Crc322() {
211
- this.checksum = 4294967295;
212
- }
213
- Crc322.prototype.update = function(data) {
214
- var e_1, _a;
215
- try {
216
- for (var data_1 = __values(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) {
217
- var byte = data_1_1.value;
218
- this.checksum = this.checksum >>> 8 ^ lookupTable[(this.checksum ^ byte) & 255];
219
- }
220
- } catch (e_1_1) {
221
- e_1 = { error: e_1_1 };
222
- } finally {
223
- try {
224
- if (data_1_1 && !data_1_1.done && (_a = data_1.return)) _a.call(data_1);
225
- } finally {
226
- if (e_1) throw e_1.error;
227
- }
228
- }
229
- return this;
230
- };
231
- Crc322.prototype.digest = function() {
232
- return (this.checksum ^ 4294967295) >>> 0;
233
- };
234
- return Crc322;
235
- })()
236
- );
237
- var a_lookUpTable = [
238
- 0,
239
- 1996959894,
240
- 3993919788,
241
- 2567524794,
242
- 124634137,
243
- 1886057615,
244
- 3915621685,
245
- 2657392035,
246
- 249268274,
247
- 2044508324,
248
- 3772115230,
249
- 2547177864,
250
- 162941995,
251
- 2125561021,
252
- 3887607047,
253
- 2428444049,
254
- 498536548,
255
- 1789927666,
256
- 4089016648,
257
- 2227061214,
258
- 450548861,
259
- 1843258603,
260
- 4107580753,
261
- 2211677639,
262
- 325883990,
263
- 1684777152,
264
- 4251122042,
265
- 2321926636,
266
- 335633487,
267
- 1661365465,
268
- 4195302755,
269
- 2366115317,
270
- 997073096,
271
- 1281953886,
272
- 3579855332,
273
- 2724688242,
274
- 1006888145,
275
- 1258607687,
276
- 3524101629,
277
- 2768942443,
278
- 901097722,
279
- 1119000684,
280
- 3686517206,
281
- 2898065728,
282
- 853044451,
283
- 1172266101,
284
- 3705015759,
285
- 2882616665,
286
- 651767980,
287
- 1373503546,
288
- 3369554304,
289
- 3218104598,
290
- 565507253,
291
- 1454621731,
292
- 3485111705,
293
- 3099436303,
294
- 671266974,
295
- 1594198024,
296
- 3322730930,
297
- 2970347812,
298
- 795835527,
299
- 1483230225,
300
- 3244367275,
301
- 3060149565,
302
- 1994146192,
303
- 31158534,
304
- 2563907772,
305
- 4023717930,
306
- 1907459465,
307
- 112637215,
308
- 2680153253,
309
- 3904427059,
310
- 2013776290,
311
- 251722036,
312
- 2517215374,
313
- 3775830040,
314
- 2137656763,
315
- 141376813,
316
- 2439277719,
317
- 3865271297,
318
- 1802195444,
319
- 476864866,
320
- 2238001368,
321
- 4066508878,
322
- 1812370925,
323
- 453092731,
324
- 2181625025,
325
- 4111451223,
326
- 1706088902,
327
- 314042704,
328
- 2344532202,
329
- 4240017532,
330
- 1658658271,
331
- 366619977,
332
- 2362670323,
333
- 4224994405,
334
- 1303535960,
335
- 984961486,
336
- 2747007092,
337
- 3569037538,
338
- 1256170817,
339
- 1037604311,
340
- 2765210733,
341
- 3554079995,
342
- 1131014506,
343
- 879679996,
344
- 2909243462,
345
- 3663771856,
346
- 1141124467,
347
- 855842277,
348
- 2852801631,
349
- 3708648649,
350
- 1342533948,
351
- 654459306,
352
- 3188396048,
353
- 3373015174,
354
- 1466479909,
355
- 544179635,
356
- 3110523913,
357
- 3462522015,
358
- 1591671054,
359
- 702138776,
360
- 2966460450,
361
- 3352799412,
362
- 1504918807,
363
- 783551873,
364
- 3082640443,
365
- 3233442989,
366
- 3988292384,
367
- 2596254646,
368
- 62317068,
369
- 1957810842,
370
- 3939845945,
371
- 2647816111,
372
- 81470997,
373
- 1943803523,
374
- 3814918930,
375
- 2489596804,
376
- 225274430,
377
- 2053790376,
378
- 3826175755,
379
- 2466906013,
380
- 167816743,
381
- 2097651377,
382
- 4027552580,
383
- 2265490386,
384
- 503444072,
385
- 1762050814,
386
- 4150417245,
387
- 2154129355,
388
- 426522225,
389
- 1852507879,
390
- 4275313526,
391
- 2312317920,
392
- 282753626,
393
- 1742555852,
394
- 4189708143,
395
- 2394877945,
396
- 397917763,
397
- 1622183637,
398
- 3604390888,
399
- 2714866558,
400
- 953729732,
401
- 1340076626,
402
- 3518719985,
403
- 2797360999,
404
- 1068828381,
405
- 1219638859,
406
- 3624741850,
407
- 2936675148,
408
- 906185462,
409
- 1090812512,
410
- 3747672003,
411
- 2825379669,
412
- 829329135,
413
- 1181335161,
414
- 3412177804,
415
- 3160834842,
416
- 628085408,
417
- 1382605366,
418
- 3423369109,
419
- 3138078467,
420
- 570562233,
421
- 1426400815,
422
- 3317316542,
423
- 2998733608,
424
- 733239954,
425
- 1555261956,
426
- 3268935591,
427
- 3050360625,
428
- 752459403,
429
- 1541320221,
430
- 2607071920,
431
- 3965973030,
432
- 1969922972,
433
- 40735498,
434
- 2617837225,
435
- 3943577151,
436
- 1913087877,
437
- 83908371,
438
- 2512341634,
439
- 3803740692,
440
- 2075208622,
441
- 213261112,
442
- 2463272603,
443
- 3855990285,
444
- 2094854071,
445
- 198958881,
446
- 2262029012,
447
- 4057260610,
448
- 1759359992,
449
- 534414190,
450
- 2176718541,
451
- 4139329115,
452
- 1873836001,
453
- 414664567,
454
- 2282248934,
455
- 4279200368,
456
- 1711684554,
457
- 285281116,
458
- 2405801727,
459
- 4167216745,
460
- 1634467795,
461
- 376229701,
462
- 2685067896,
463
- 3608007406,
464
- 1308918612,
465
- 956543938,
466
- 2808555105,
467
- 3495958263,
468
- 1231636301,
469
- 1047427035,
470
- 2932959818,
471
- 3654703836,
472
- 1088359270,
473
- 936918e3,
474
- 2847714899,
475
- 3736837829,
476
- 1202900863,
477
- 817233897,
478
- 3183342108,
479
- 3401237130,
480
- 1404277552,
481
- 615818150,
482
- 3134207493,
483
- 3453421203,
484
- 1423857449,
485
- 601450431,
486
- 3009837614,
487
- 3294710456,
488
- 1567103746,
489
- 711928724,
490
- 3020668471,
491
- 3272380065,
492
- 1510334235,
493
- 755167117
494
- ];
495
- var lookupTable = uint32ArrayFrom(a_lookUpTable);
9
+ } from "./chunk-FG7DZRU2.js";
496
10
 
497
11
  // ../../node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/Int64.js
498
12
  var Int64 = class _Int64 {
@@ -543,9 +57,9 @@ function negate(bytes) {
543
57
  var HeaderMarshaller = class {
544
58
  toUtf8;
545
59
  fromUtf8;
546
- constructor(toUtf82, fromUtf84) {
60
+ constructor(toUtf82, fromUtf82) {
547
61
  this.toUtf8 = toUtf82;
548
- this.fromUtf8 = fromUtf84;
62
+ this.fromUtf8 = fromUtf82;
549
63
  }
550
64
  format(headers) {
551
65
  const chunks = [];
@@ -740,13 +254,14 @@ function splitMessage({ byteLength, byteOffset, buffer }) {
740
254
  const headerLength = view.getUint32(PRELUDE_MEMBER_LENGTH, false);
741
255
  const expectedPreludeChecksum = view.getUint32(PRELUDE_LENGTH, false);
742
256
  const expectedMessageChecksum = view.getUint32(byteLength - CHECKSUM_LENGTH, false);
743
- const checksummer = new Crc32().update(new Uint8Array(buffer, byteOffset, PRELUDE_LENGTH));
744
- if (expectedPreludeChecksum !== checksummer.digest()) {
745
- throw new Error(`The prelude checksum specified in the message (${expectedPreludeChecksum}) does not match the calculated CRC32 checksum (${checksummer.digest()})`);
257
+ const checksummer = new Crc32Node();
258
+ checksummer.update(new Uint8Array(buffer, byteOffset, PRELUDE_LENGTH));
259
+ if (expectedPreludeChecksum !== checksummer.digestSync()) {
260
+ throw new Error(`The prelude checksum specified in the message (${expectedPreludeChecksum}) does not match the calculated CRC32 checksum (${checksummer.digestSync()})`);
746
261
  }
747
262
  checksummer.update(new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH, byteLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH)));
748
- if (expectedMessageChecksum !== checksummer.digest()) {
749
- throw new Error(`The message checksum (${checksummer.digest()}) did not match the expected value of ${expectedMessageChecksum}`);
263
+ if (expectedMessageChecksum !== checksummer.digestSync()) {
264
+ throw new Error(`The message checksum (${checksummer.digestSync()}) did not match the expected value of ${expectedMessageChecksum}`);
750
265
  }
751
266
  return {
752
267
  headers: new DataView(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH, headerLength),
@@ -759,8 +274,8 @@ var EventStreamCodec = class {
759
274
  headerMarshaller;
760
275
  messageBuffer;
761
276
  isEndOfStream;
762
- constructor(toUtf82, fromUtf84) {
763
- this.headerMarshaller = new HeaderMarshaller(toUtf82, fromUtf84);
277
+ constructor(toUtf82, fromUtf82) {
278
+ this.headerMarshaller = new HeaderMarshaller(toUtf82, fromUtf82);
764
279
  this.messageBuffer = [];
765
280
  this.isEndOfStream = false;
766
281
  }
@@ -800,13 +315,15 @@ var EventStreamCodec = class {
800
315
  const length = headers.byteLength + body.byteLength + 16;
801
316
  const out = new Uint8Array(length);
802
317
  const view = new DataView(out.buffer, out.byteOffset, out.byteLength);
803
- const checksum = new Crc32();
318
+ const checksum = new Crc32Node();
804
319
  view.setUint32(0, length, false);
805
320
  view.setUint32(4, headers.byteLength, false);
806
- view.setUint32(8, checksum.update(out.subarray(0, 8)).digest(), false);
321
+ checksum.update(out.subarray(0, 8));
322
+ view.setUint32(8, checksum.digestSync(), false);
807
323
  out.set(headers, 12);
808
324
  out.set(body, headers.byteLength + 12);
809
- view.setUint32(length - 4, checksum.update(out.subarray(8, length - 4)).digest(), false);
325
+ checksum.update(out.subarray(8, length - 4));
326
+ view.setUint32(length - 4, checksum.digestSync(), false);
810
327
  return out;
811
328
  }
812
329
  decode(message) {
@@ -1373,4 +890,4 @@ export {
1373
890
  resolveEventStreamSerdeConfig,
1374
891
  eventStreamSerdeProvider as universalEventStreamSerdeProvider
1375
892
  };
1376
- //# sourceMappingURL=event-streams-AI5RIQ2F.js.map
893
+ //# sourceMappingURL=event-streams-C2JNHHGL.js.map