@sentio/runtime 4.1.0-rc.2 → 4.1.0-rc.3

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,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { a as diag, c as init_consoleLogger, d as __commonJSMin, f as __esmMin, g as __toESM, h as __toCommonJS, i as metrics, l as DiagLogLevel, m as __require, n as init_esm$2, o as init_diag_api, p as __exportAll, r as init_metrics_api, s as DiagConsoleLogger, t as esm_exports$2, u as init_types$1 } from "./esm-CSGQo6hb.js";
3
- import { B as protoCamelCase, C as hasCustomJsonRepresentation, D as BinaryReader, E as formatVal, F as base64Decode, I as base64Encode, L as scalarZeroValue, M as isFieldError, N as MethodOptions_IdempotencyLevel, O as BinaryWriter, P as messageDesc, R as ScalarType, S as create, T as checkField, V as protoSnakeCase, a as ExecutionConfigSchema, b as readField$1, g as ValueSchema, h as StructSchema, j as FieldError, k as WireType, m as NullValue, n as PluginManager, p as ListValueSchema, s as ProcessConfigResponseSchema, u as ProcessorV3, v as fileDesc, w as isWrapperDesc, x as reflect, y as fromBinary, z as protoInt64 } from "./plugin-CT4pDRpS.js";
4
- import { _ as require_lib, d as ConnectError, f as codeFromString, g as configureEndpoints, m as Code, n as GLOBAL_CONFIG, p as codeToString, t as ProcessorServiceImplV3, x as locatePackageJson } from "./service-v3-BpwaUIVx.js";
3
+ import { B as protoCamelCase, C as hasCustomJsonRepresentation, D as BinaryReader, E as formatVal, F as base64Decode, I as base64Encode, L as scalarZeroValue, M as isFieldError, N as MethodOptions_IdempotencyLevel, O as BinaryWriter, P as messageDesc, R as ScalarType, S as create, T as checkField, V as protoSnakeCase, a as ExecutionConfigSchema, b as readField$1, g as ValueSchema, h as StructSchema, j as FieldError, k as WireType, m as NullValue, n as PluginManager, p as ListValueSchema, s as ProcessConfigResponseSchema, u as ProcessorV3, v as fileDesc, w as isWrapperDesc, x as reflect, y as fromBinary, z as protoInt64 } from "./plugin-NqpYCcqz.js";
4
+ import { _ as require_lib, d as ConnectError, f as codeFromString, g as configureEndpoints, m as Code, n as GLOBAL_CONFIG, p as codeToString, t as ProcessorServiceImplV3, x as locatePackageJson } from "./service-v3-B2UX7ZyD.js";
5
5
  import * as path$4 from "path";
6
6
  import { dirname, join } from "path";
7
7
  import * as fs$7 from "fs";
@@ -1,5 +1,5 @@
1
1
  import { d as __commonJSMin, g as __toESM, i as metrics, m as __require, n as init_esm, r as init_metrics_api } from "./esm-CSGQo6hb.js";
2
- import { A as isReflectMessage, R as ScalarType, S as create, _ as EmptySchema, c as ProcessResultSchema, d as RuntimeInfoSchema, f as StateResultSchema, i as DBResponseSchema, n as PluginManager, o as HandlerType, s as ProcessConfigResponseSchema, x as reflect, y as fromBinary } from "./plugin-CT4pDRpS.js";
2
+ import { A as isReflectMessage, R as ScalarType, S as create, _ as EmptySchema, c as ProcessResultSchema, d as RuntimeInfoSchema, f as StateResultSchema, i as DBResponseSchema, n as PluginManager, o as HandlerType, s as ProcessConfigResponseSchema, x as reflect, y as fromBinary } from "./plugin-NqpYCcqz.js";
3
3
  import { AsyncLocalStorage } from "node:async_hooks";
4
4
  import { createRequire } from "module";
5
5
  import path from "path";
@@ -52,9 +52,6 @@ function mergeProcessResults(results) {
52
52
  function mergeProcessResultsInPlace(res, results) {
53
53
  res.states = res.states || create(StateResultSchema);
54
54
  for (const r of results) {
55
- res.counters = mergeArrayInPlace(res.counters, r.counters);
56
- res.gauges = mergeArrayInPlace(res.gauges, r.gauges);
57
- res.events = mergeArrayInPlace(res.events, r.events);
58
55
  res.exports = mergeArrayInPlace(res.exports, r.exports);
59
56
  res.timeseriesResult = mergeArrayInPlace(res.timeseriesResult, r.timeseriesResult);
60
57
  res.states = create(StateResultSchema, { configUpdated: res.states?.configUpdated || r.states?.configUpdated || false });
@@ -62,12 +59,7 @@ function mergeProcessResultsInPlace(res, results) {
62
59
  return res;
63
60
  }
64
61
  function recordRuntimeInfo(results, handlerType) {
65
- for (const list of [
66
- results.gauges,
67
- results.counters,
68
- results.events,
69
- results.exports
70
- ]) list.forEach((e) => {
62
+ for (const list of [results.timeseriesResult, results.exports]) list.forEach((e) => {
71
63
  e.runtimeInfo = create(RuntimeInfoSchema, { from: handlerType });
72
64
  });
73
65
  }
@@ -12235,4 +12227,4 @@ var Contexts = class {
12235
12227
 
12236
12228
  //#endregion
12237
12229
  export { mergeProcessResults as C, recordRuntimeInfo as E, makeEthCallKey as S, parseSemver as T, require_lib as _, StoreContext as a, errorString as b, metricsStorage as c, ConnectError as d, codeFromString as f, configureEndpoints as g, Endpoints as h, DataBindingContext as i, processMetrics as l, Code as m, GLOBAL_CONFIG as n, timeoutError as o, codeToString as p, AbstractStoreContext as r, dbMetrics as s, ProcessorServiceImplV3 as t, providerMetrics as u, USER_PROCESSOR as v, mergeProcessResultsInPlace as w, locatePackageJson as x, compareSemver as y };
12238
- //# sourceMappingURL=service-v3-BpwaUIVx.js.map
12230
+ //# sourceMappingURL=service-v3-B2UX7ZyD.js.map