@sentio/runtime 2.59.1-rc.1 → 2.59.2-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.
@@ -37960,11 +37960,11 @@ function mergeProcessResults(results) {
37960
37960
  function mergeProcessResultsInPlace(res, results) {
37961
37961
  res.states = res.states || StateResult.create();
37962
37962
  for (const r of results) {
37963
- mergeArrayInPlace(res.counters, r.counters);
37964
- mergeArrayInPlace(res.gauges, r.gauges);
37965
- mergeArrayInPlace(res.events, r.events);
37966
- mergeArrayInPlace(res.exports, r.exports);
37967
- mergeArrayInPlace(res.timeseriesResult, r.timeseriesResult);
37963
+ res.counters = mergeArrayInPlace(res.counters, r.counters);
37964
+ res.gauges = mergeArrayInPlace(res.gauges, r.gauges);
37965
+ res.events = mergeArrayInPlace(res.events, r.events);
37966
+ res.exports = mergeArrayInPlace(res.exports, r.exports);
37967
+ res.timeseriesResult = mergeArrayInPlace(res.timeseriesResult, r.timeseriesResult);
37968
37968
  res.states = {
37969
37969
  configUpdated: res.states?.configUpdated || r.states?.configUpdated || false
37970
37970
  };
@@ -37972,9 +37972,13 @@ function mergeProcessResultsInPlace(res, results) {
37972
37972
  return res;
37973
37973
  }
37974
37974
  function mergeArrayInPlace(dst, src) {
37975
- for (const r of src) {
37976
- dst.push(r);
37975
+ const res = dst || [];
37976
+ if (Array.isArray(src)) {
37977
+ for (const r of src) {
37978
+ res.push(r);
37979
+ }
37977
37980
  }
37981
+ return res;
37978
37982
  }
37979
37983
  function errorString(e) {
37980
37984
  return e.message + "\n" + e.stack;
@@ -59896,4 +59900,4 @@ long/umd/index.js:
59896
59900
  @noble/curves/esm/secp256k1.js:
59897
59901
  (*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
59898
59902
  */
59899
- //# sourceMappingURL=chunk-4UYFH4YB.js.map
59903
+ //# sourceMappingURL=chunk-L7MQIWIO.js.map