@sentio/runtime 4.3.2-rc.1 → 4.3.3-rc.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.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { n as PluginManager, t as Plugin } from "./plugin-CteRSWq4.js";
2
- import { C as mergeProcessResults, E as recordRuntimeInfo, S as makeEthCallKey, T as parseSemver, a as StoreContext, b as errorString, c as metricsStorage, g as configureEndpoints, h as Endpoints, i as DataBindingContext, l as processMetrics, n as GLOBAL_CONFIG, o as timeoutError, r as AbstractStoreContext, s as dbMetrics, t as ProcessorServiceImplV3, u as providerMetrics, v as USER_PROCESSOR, w as mergeProcessResultsInPlace, x as locatePackageJson, y as compareSemver } from "./service-v3-fWCR8MDp.js";
1
+ import { n as PluginManager, t as Plugin } from "./plugin-9jInRbdc.js";
2
+ import { C as mergeProcessResults, E as recordRuntimeInfo, S as makeEthCallKey, T as parseSemver, a as StoreContext, b as errorString, c as metricsStorage, g as configureEndpoints, h as Endpoints, i as DataBindingContext, l as processMetrics, n as GLOBAL_CONFIG, o as timeoutError, r as AbstractStoreContext, s as dbMetrics, t as ProcessorServiceImplV3, u as providerMetrics, v as USER_PROCESSOR, w as mergeProcessResultsInPlace, x as locatePackageJson, y as compareSemver } from "./service-v3-iQMJsLkX.js";
3
3
 
4
4
  //#region src/state.ts
5
5
  var State = class State {
@@ -1,6 +1,6 @@
1
1
  import { AsyncLocalStorage } from "node:async_hooks";
2
2
 
3
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/reflect/names.js
3
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/reflect/names.js
4
4
  /**
5
5
  * Converts snake_case to protoCamelCase according to the convention
6
6
  * used by protoc to convert a field name to a JSON name.
@@ -71,7 +71,7 @@ function safeObjectProperty(name) {
71
71
  }
72
72
 
73
73
  //#endregion
74
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.js
74
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.js
75
75
  /**
76
76
  * Read a 64 bit varint as two JS numbers.
77
77
  *
@@ -301,14 +301,14 @@ function varint32read() {
301
301
  }
302
302
 
303
303
  //#endregion
304
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.js
304
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.js
305
305
  /**
306
306
  * Int64Support for the current environment.
307
307
  */
308
308
  const protoInt64 = /*@__PURE__*/ makeInt64Support();
309
309
  function makeInt64Support() {
310
310
  const dv = /* @__PURE__ */ new DataView(/* @__PURE__ */ new ArrayBuffer(8));
311
- if (typeof BigInt === "function" && typeof dv.getBigInt64 === "function" && typeof dv.getBigUint64 === "function" && typeof dv.setBigInt64 === "function" && typeof dv.setBigUint64 === "function" && (!!globalThis.Deno || typeof process != "object" || typeof process.env != "object" || process.env.BUF_BIGINT_DISABLE !== "1")) {
311
+ if (typeof BigInt === "function" && typeof dv.getBigInt64 === "function" && typeof dv.getBigUint64 === "function" && typeof dv.setBigInt64 === "function" && typeof dv.setBigUint64 === "function" && (!!globalThis.Deno || !!globalThis.Bun || typeof process != "object" || typeof process.env != "object" || process.env.BUF_BIGINT_DISABLE !== "1")) {
312
312
  const MIN = BigInt("-9223372036854775808");
313
313
  const MAX = BigInt("9223372036854775807");
314
314
  const UMIN = BigInt("0");
@@ -391,7 +391,7 @@ function assertUInt64String(value) {
391
391
  }
392
392
 
393
393
  //#endregion
394
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/descriptors.js
394
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/descriptors.js
395
395
  /**
396
396
  * Scalar value types. This is a subset of field types declared by protobuf
397
397
  * enum google.protobuf.FieldDescriptorProto.Type The types GROUP and MESSAGE
@@ -417,9 +417,15 @@ var ScalarType;
417
417
  })(ScalarType || (ScalarType = {}));
418
418
 
419
419
  //#endregion
420
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.js
420
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.js
421
421
  /**
422
- * Returns the zero value for the given scalar type.
422
+ * Returns the zero value for the given scalar type, the value a field of this
423
+ * type has when unset: 0 for numeric types, "" for strings, false for
424
+ * booleans, and an empty Uint8Array for bytes. For 64-bit integer types, the
425
+ * result is "0" when longAsString is true, otherwise 0n.
426
+ *
427
+ * This is the type's zero value, not a proto2 custom field default. For float
428
+ * and double it is +0; isScalarZeroValue treats only +0, not -0, as this value.
423
429
  */
424
430
  function scalarZeroValue(type, longAsString) {
425
431
  switch (type) {
@@ -437,23 +443,33 @@ function scalarZeroValue(type, longAsString) {
437
443
  }
438
444
  }
439
445
  /**
440
- * Returns true for a zero-value. For example, an integer has the zero-value `0`,
441
- * a boolean is `false`, a string is `""`, and bytes is an empty Uint8Array.
446
+ * Returns true if the value is the zero value for the given scalar type: `0`
447
+ * for numeric types, `false` for booleans, `""` for strings, and an empty
448
+ * Uint8Array for bytes.
449
+ *
450
+ * This is the implicit-presence default check. A singular field with implicit
451
+ * presence is treated as unset, and omitted from the wire, when its value is
452
+ * the zero value. With explicit presence, or in repeated and map fields,
453
+ * presence is structural and this function does not apply.
442
454
  *
443
- * In proto3, zero-values are not written to the wire, unless the field is
444
- * optional or repeated.
455
+ * Note that -0 is NOT a zero value for float and double: under implicit
456
+ * presence, +0 is omitted from the wire but -0 is written, following the
457
+ * proto3 specification. As a result this can disagree with scalarEquals, which
458
+ * compares by value and treats -0 as equal to 0.
445
459
  */
446
460
  function isScalarZeroValue(type, value) {
447
461
  switch (type) {
448
462
  case ScalarType.BOOL: return value === false;
449
463
  case ScalarType.STRING: return value === "";
450
464
  case ScalarType.BYTES: return value instanceof Uint8Array && !value.byteLength;
465
+ case ScalarType.DOUBLE:
466
+ case ScalarType.FLOAT: return Object.is(value, 0);
451
467
  default: return value == 0;
452
468
  }
453
469
  }
454
470
 
455
471
  //#endregion
456
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/reflect/unsafe.js
472
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/reflect/unsafe.js
457
473
  const IMPLICIT$2 = 2;
458
474
  const unsafeLocal = Symbol.for("reflect unsafe local");
459
475
  /**
@@ -545,7 +561,7 @@ function unsafeClear(target, field) {
545
561
  }
546
562
 
547
563
  //#endregion
548
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/restore-json-names.js
564
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/restore-json-names.js
549
565
  /**
550
566
  * @private
551
567
  */
@@ -555,7 +571,7 @@ function restoreJsonNames(message) {
555
571
  }
556
572
 
557
573
  //#endregion
558
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/wire/text-format.js
574
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/wire/text-format.js
559
575
  /**
560
576
  * Parse an enum value from the Protobuf text format.
561
577
  *
@@ -702,7 +718,7 @@ function unescapeBytesDefaultValue(str) {
702
718
  }
703
719
 
704
720
  //#endregion
705
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.js
721
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.js
706
722
  /**
707
723
  * Iterate over all types - enumerations, extensions, services, messages -
708
724
  * and enumerations, extensions and messages nested in messages.
@@ -730,7 +746,7 @@ function* nestedTypes(desc) {
730
746
  }
731
747
 
732
748
  //#endregion
733
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/registry.js
749
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/registry.js
734
750
  function createFileRegistry(...args) {
735
751
  const registry = createBaseRegistry();
736
752
  if (!args.length) return registry;
@@ -1424,7 +1440,7 @@ function assert(condition, msg) {
1424
1440
  }
1425
1441
 
1426
1442
  //#endregion
1427
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/boot.js
1443
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/boot.js
1428
1444
  /**
1429
1445
  * Hydrate a file descriptor for google/protobuf/descriptor.proto from a plain
1430
1446
  * object.
@@ -1517,7 +1533,7 @@ function bootEnumDescriptorProto(init) {
1517
1533
  }
1518
1534
 
1519
1535
  //#endregion
1520
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.js
1536
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.js
1521
1537
  /**
1522
1538
  * Decodes a base64 string to a byte array.
1523
1539
  *
@@ -1634,7 +1650,7 @@ function getDecodeTable() {
1634
1650
  }
1635
1651
 
1636
1652
  //#endregion
1637
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/message.js
1653
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/message.js
1638
1654
  /**
1639
1655
  * Hydrate a message descriptor.
1640
1656
  *
@@ -1645,7 +1661,7 @@ function messageDesc(file, path, ...paths) {
1645
1661
  }
1646
1662
 
1647
1663
  //#endregion
1648
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js
1664
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js
1649
1665
  /**
1650
1666
  * Describes the file google/protobuf/descriptor.proto.
1651
1667
  */
@@ -4235,7 +4251,7 @@ var SymbolVisibility;
4235
4251
  })(SymbolVisibility || (SymbolVisibility = {}));
4236
4252
 
4237
4253
  //#endregion
4238
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/is-message.js
4254
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/is-message.js
4239
4255
  /**
4240
4256
  * Determine whether the given `arg` is a message.
4241
4257
  * If `desc` is set, determine whether `arg` is this specific message.
@@ -4247,7 +4263,7 @@ function isMessage(arg, schema) {
4247
4263
  }
4248
4264
 
4249
4265
  //#endregion
4250
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/reflect/error.js
4266
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/reflect/error.js
4251
4267
  const errorNames = [
4252
4268
  "FieldValueInvalidError",
4253
4269
  "FieldListRangeError",
@@ -4265,7 +4281,7 @@ function isFieldError(arg) {
4265
4281
  }
4266
4282
 
4267
4283
  //#endregion
4268
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.js
4284
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.js
4269
4285
  function isObject(arg) {
4270
4286
  return arg !== null && typeof arg == "object" && !Array.isArray(arg);
4271
4287
  }
@@ -4297,7 +4313,7 @@ function isReflectMessage(arg, messageDesc) {
4297
4313
  }
4298
4314
 
4299
4315
  //#endregion
4300
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js
4316
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js
4301
4317
  const symbol = Symbol.for("@bufbuild/protobuf/text-encoding");
4302
4318
  function getTextEncoding() {
4303
4319
  if (globalThis[symbol] == void 0) {
@@ -4328,7 +4344,7 @@ function getTextEncoding() {
4328
4344
  }
4329
4345
 
4330
4346
  //#endregion
4331
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.js
4347
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.js
4332
4348
  /**
4333
4349
  * Protobuf binary format wire types.
4334
4350
  *
@@ -4629,9 +4645,11 @@ var BinaryReader = class {
4629
4645
  * Skip one element and return the skipped data.
4630
4646
  *
4631
4647
  * When skipping StartGroup, provide the tags field number to check for
4632
- * matching field number in the EndGroup tag.
4648
+ * matching field number in the EndGroup tag. Recursion into nested groups
4649
+ * is guarded by the `recursionLimit` argument: When the limit is reached,
4650
+ * this method throws.
4633
4651
  */
4634
- skip(wireType, fieldNo) {
4652
+ skip(wireType, fieldNo, recursionLimit = 100) {
4635
4653
  let start = this.pos;
4636
4654
  switch (wireType) {
4637
4655
  case WireType.Varint:
@@ -4646,13 +4664,14 @@ var BinaryReader = class {
4646
4664
  this.pos += len;
4647
4665
  break;
4648
4666
  case WireType.StartGroup:
4667
+ if (recursionLimit <= 0) throw new Error("maximum recursion depth reached");
4649
4668
  for (;;) {
4650
4669
  const [fn, wt] = this.tag();
4651
4670
  if (wt === WireType.EndGroup) {
4652
4671
  if (fieldNo !== void 0 && fn !== fieldNo) throw new Error("invalid end group tag");
4653
4672
  break;
4654
4673
  }
4655
- this.skip(wt, fn);
4674
+ this.skip(wt, fn, recursionLimit - 1);
4656
4675
  }
4657
4676
  break;
4658
4677
  default: throw new Error("cant skip wire type " + wireType);
@@ -4790,7 +4809,7 @@ function assertFloat32(arg) {
4790
4809
  }
4791
4810
 
4792
4811
  //#endregion
4793
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.js
4812
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.js
4794
4813
  /**
4795
4814
  * Check whether the given field value is valid for the reflect API.
4796
4815
  */
@@ -4828,7 +4847,7 @@ function checkMapEntry(field, key, value) {
4828
4847
  function checkSingular(field, value) {
4829
4848
  if (field.scalar !== void 0) return checkScalarValue(value, field.scalar);
4830
4849
  if (field.enum !== void 0) {
4831
- if (field.enum.open) return Number.isInteger(value);
4850
+ if (field.enum.open) return checkScalarValue(value, ScalarType.INT32);
4832
4851
  return field.enum.values.some((v) => v.number === value);
4833
4852
  }
4834
4853
  return isReflectMessage(value, field.message);
@@ -4940,7 +4959,7 @@ function scalarTypeDescription(scalar) {
4940
4959
  }
4941
4960
 
4942
4961
  //#endregion
4943
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.js
4962
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.js
4944
4963
  function isWrapper(arg) {
4945
4964
  return isWrapperTypeName(arg.$typeName);
4946
4965
  }
@@ -4984,7 +5003,7 @@ function isWrapperTypeName(name) {
4984
5003
  }
4985
5004
 
4986
5005
  //#endregion
4987
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/create.js
5006
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/create.js
4988
5007
  const EDITION_PROTO3 = 999;
4989
5008
  const EDITION_PROTO2 = 998;
4990
5009
  const IMPLICIT = 2;
@@ -5136,7 +5155,7 @@ function createZeroField(field) {
5136
5155
  }
5137
5156
 
5138
5157
  //#endregion
5139
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.js
5158
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.js
5140
5159
  /**
5141
5160
  * Create a ReflectMessage.
5142
5161
  */
@@ -5490,17 +5509,22 @@ function wktValueToReflect(json) {
5490
5509
  }
5491
5510
 
5492
5511
  //#endregion
5493
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js
5494
- const readDefaults = { readUnknownFields: true };
5495
- function makeReadOptions(options) {
5496
- return options ? Object.assign(Object.assign({}, readDefaults), options) : readDefaults;
5512
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js
5513
+ /**
5514
+ * @private Only exported for getExtension()
5515
+ */
5516
+ function makeReadContext(options) {
5517
+ return Object.assign(Object.assign({
5518
+ readUnknownFields: true,
5519
+ recursionLimit: 100
5520
+ }, options), { depth: 0 });
5497
5521
  }
5498
5522
  /**
5499
5523
  * Parse serialized binary data.
5500
5524
  */
5501
5525
  function fromBinary(schema, bytes, options) {
5502
5526
  const msg = reflect(schema, void 0, false);
5503
- readMessage(msg, new BinaryReader(bytes), makeReadOptions(options), false, bytes.byteLength);
5527
+ readMessage(msg, new BinaryReader(bytes), makeReadContext(options), false, bytes.byteLength);
5504
5528
  return msg.message;
5505
5529
  }
5506
5530
  /**
@@ -5511,8 +5535,9 @@ function fromBinary(schema, bytes, options) {
5511
5535
  *
5512
5536
  * @private
5513
5537
  */
5514
- function readMessage(message, reader, options, delimited, lengthOrDelimitedFieldNo) {
5538
+ function readMessage(message, reader, ctx, delimited, lengthOrDelimitedFieldNo) {
5515
5539
  var _a;
5540
+ if (++ctx.depth > ctx.recursionLimit) throw new Error(`cannot decode ${message.desc} from binary: maximum recursion depth of ${ctx.recursionLimit} reached`);
5516
5541
  const end = delimited ? reader.len : reader.pos + lengthOrDelimitedFieldNo;
5517
5542
  let fieldNo;
5518
5543
  let wireType;
@@ -5522,25 +5547,27 @@ function readMessage(message, reader, options, delimited, lengthOrDelimitedField
5522
5547
  if (delimited && wireType == WireType.EndGroup) break;
5523
5548
  const field = message.findNumber(fieldNo);
5524
5549
  if (!field) {
5525
- const data = reader.skip(wireType, fieldNo);
5526
- if (options.readUnknownFields) unknownFields.push({
5550
+ const recursionLimit = ctx.recursionLimit - ctx.depth;
5551
+ const data = reader.skip(wireType, fieldNo, recursionLimit);
5552
+ if (ctx.readUnknownFields) unknownFields.push({
5527
5553
  no: fieldNo,
5528
5554
  wireType,
5529
5555
  data
5530
5556
  });
5531
5557
  continue;
5532
5558
  }
5533
- readField(message, reader, field, wireType, options);
5559
+ readField(message, reader, field, wireType, ctx);
5534
5560
  }
5535
5561
  if (delimited) {
5536
5562
  if (wireType != WireType.EndGroup || fieldNo !== lengthOrDelimitedFieldNo) throw new Error("invalid end group tag");
5537
5563
  }
5538
5564
  if (unknownFields.length > 0) message.setUnknown(unknownFields);
5565
+ ctx.depth--;
5539
5566
  }
5540
5567
  /**
5541
- * @private
5568
+ * @private Only exported for getExtension()
5542
5569
  */
5543
- function readField(message, reader, field, wireType, options) {
5570
+ function readField(message, reader, field, wireType, ctx) {
5544
5571
  var _a;
5545
5572
  switch (field.fieldKind) {
5546
5573
  case "scalar":
@@ -5550,7 +5577,7 @@ function readField(message, reader, field, wireType, options) {
5550
5577
  const val = readScalar(reader, ScalarType.INT32);
5551
5578
  if (field.enum.open) message.set(field, val);
5552
5579
  else if (field.enum.values.some((v) => v.number === val)) message.set(field, val);
5553
- else if (options.readUnknownFields) {
5580
+ else if (ctx.readUnknownFields) {
5554
5581
  const bytes = [];
5555
5582
  varint32write(val, bytes);
5556
5583
  const unknownFields = (_a = message.getUnknown()) !== null && _a !== void 0 ? _a : [];
@@ -5563,17 +5590,17 @@ function readField(message, reader, field, wireType, options) {
5563
5590
  }
5564
5591
  break;
5565
5592
  case "message":
5566
- message.set(field, readMessageField(reader, options, field, message.get(field)));
5593
+ message.set(field, readMessageField(reader, ctx, field, message.get(field)));
5567
5594
  break;
5568
5595
  case "list":
5569
- readListField(reader, wireType, message.get(field), options);
5596
+ readListField(reader, wireType, message.get(field), ctx);
5570
5597
  break;
5571
5598
  case "map":
5572
- readMapEntry(reader, message.get(field), options);
5599
+ readMapEntry(reader, message.get(field), ctx);
5573
5600
  break;
5574
5601
  }
5575
5602
  }
5576
- function readMapEntry(reader, map, options) {
5603
+ function readMapEntry(reader, map, ctx) {
5577
5604
  const field = map.field();
5578
5605
  let key;
5579
5606
  let val;
@@ -5594,7 +5621,7 @@ function readMapEntry(reader, map, options) {
5594
5621
  val = reader.int32();
5595
5622
  break;
5596
5623
  case "message":
5597
- val = readMessageField(reader, options, field);
5624
+ val = readMessageField(reader, ctx, field);
5598
5625
  break;
5599
5626
  }
5600
5627
  break;
@@ -5614,11 +5641,11 @@ function readMapEntry(reader, map, options) {
5614
5641
  }
5615
5642
  map.set(key, val);
5616
5643
  }
5617
- function readListField(reader, wireType, list, options) {
5644
+ function readListField(reader, wireType, list, ctx) {
5618
5645
  var _a;
5619
5646
  const field = list.field();
5620
5647
  if (field.listKind === "message") {
5621
- list.add(readMessageField(reader, options, field));
5648
+ list.add(readMessageField(reader, ctx, field));
5622
5649
  return;
5623
5650
  }
5624
5651
  const scalarType = (_a = field.scalar) !== null && _a !== void 0 ? _a : ScalarType.INT32;
@@ -5629,10 +5656,10 @@ function readListField(reader, wireType, list, options) {
5629
5656
  const e = reader.uint32() + reader.pos;
5630
5657
  while (reader.pos < e) list.add(readScalar(reader, scalarType, field.utf8Validation));
5631
5658
  }
5632
- function readMessageField(reader, options, field, mergeMessage) {
5659
+ function readMessageField(reader, ctx, field, mergeMessage) {
5633
5660
  const delimited = field.delimitedEncoding;
5634
5661
  const message = mergeMessage !== null && mergeMessage !== void 0 ? mergeMessage : reflect(field.message, void 0, false);
5635
- readMessage(message, reader, options, delimited, delimited ? field.number : reader.uint32());
5662
+ readMessage(message, reader, ctx, delimited, delimited ? field.number : reader.uint32());
5636
5663
  return message;
5637
5664
  }
5638
5665
  function readScalar(reader, type, validateUtf8 = false) {
@@ -5656,7 +5683,7 @@ function readScalar(reader, type, validateUtf8 = false) {
5656
5683
  }
5657
5684
 
5658
5685
  //#endregion
5659
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js
5686
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js
5660
5687
  /**
5661
5688
  * Hydrate a file descriptor.
5662
5689
  *
@@ -5671,7 +5698,7 @@ function fileDesc(b64, imports) {
5671
5698
  }
5672
5699
 
5673
5700
  //#endregion
5674
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/service.js
5701
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/service.js
5675
5702
  /**
5676
5703
  * Hydrate a service descriptor.
5677
5704
  *
@@ -5683,14 +5710,14 @@ function serviceDesc(file, path, ...paths) {
5683
5710
  }
5684
5711
 
5685
5712
  //#endregion
5686
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js
5713
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js
5687
5714
  /**
5688
5715
  * Describes the file google/protobuf/timestamp.proto.
5689
5716
  */
5690
5717
  const file_google_protobuf_timestamp = /*@__PURE__*/ fileDesc("Ch9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvEg9nb29nbGUucHJvdG9idWYiKwoJVGltZXN0YW1wEg8KB3NlY29uZHMYASABKAMSDQoFbmFub3MYAiABKAVChQEKE2NvbS5nb29nbGUucHJvdG9idWZCDlRpbWVzdGFtcFByb3RvUAFaMmdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL3RpbWVzdGFtcHBi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM");
5691
5718
 
5692
5719
  //#endregion
5693
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/empty_pb.js
5720
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/empty_pb.js
5694
5721
  /**
5695
5722
  * Describes the file google/protobuf/empty.proto.
5696
5723
  */
@@ -5702,7 +5729,7 @@ const file_google_protobuf_empty = /*@__PURE__*/ fileDesc("Chtnb29nbGUvcHJvdG9id
5702
5729
  const EmptySchema = /*@__PURE__*/ messageDesc(file_google_protobuf_empty, 0);
5703
5730
 
5704
5731
  //#endregion
5705
- //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/struct_pb.js
5732
+ //#region ../../node_modules/.pnpm/@bufbuild+protobuf@2.12.1/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/struct_pb.js
5706
5733
  /**
5707
5734
  * Describes the file google/protobuf/struct.proto.
5708
5735
  */
@@ -6921,5 +6948,5 @@ var PluginManager = class PluginManager {
6921
6948
  };
6922
6949
 
6923
6950
  //#endregion
6924
- export { isReflectMessage as A, protoCamelCase as B, hasCustomJsonRepresentation as C, BinaryReader as D, formatVal as E, base64Decode as F, base64Encode as I, scalarZeroValue as L, isFieldError as M, MethodOptions_IdempotencyLevel as N, BinaryWriter as O, messageDesc as P, ScalarType as R, create as S, checkField as T, protoSnakeCase as V, EmptySchema as _, ExecutionConfigSchema as a, readField as b, ProcessResultSchema as c, RuntimeInfoSchema as d, StateResultSchema as f, ValueSchema as g, StructSchema as h, DBResponseSchema as i, FieldError as j, WireType as k, ProcessStreamResponse_PartitionsSchema as l, NullValue as m, PluginManager as n, HandlerType as o, ListValueSchema as p, AccountConfigSchema as r, ProcessConfigResponseSchema as s, Plugin as t, ProcessorV3 as u, fileDesc as v, isWrapperDesc as w, reflect as x, fromBinary as y, protoInt64 as z };
6925
- //# sourceMappingURL=plugin-CteRSWq4.js.map
6951
+ export { WireType as A, protoInt64 as B, create as C, formatVal as D, checkField as E, messageDesc as F, protoSnakeCase as H, base64Decode as I, base64Encode as L, FieldError as M, isFieldError as N, BinaryReader as O, MethodOptions_IdempotencyLevel as P, scalarZeroValue as R, reflect as S, isWrapperDesc as T, protoCamelCase as V, EmptySchema as _, ExecutionConfigSchema as a, makeReadContext as b, ProcessResultSchema as c, RuntimeInfoSchema as d, StateResultSchema as f, ValueSchema as g, StructSchema as h, DBResponseSchema as i, isReflectMessage as j, BinaryWriter as k, ProcessStreamResponse_PartitionsSchema as l, NullValue as m, PluginManager as n, HandlerType as o, ListValueSchema as p, AccountConfigSchema as r, ProcessConfigResponseSchema as s, Plugin as t, ProcessorV3 as u, fileDesc as v, hasCustomJsonRepresentation as w, readField as x, fromBinary as y, ScalarType as z };
6952
+ //# sourceMappingURL=plugin-9jInRbdc.js.map