@sentio/runtime 2.59.0-rc.35 → 2.59.0-rc.37
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/lib/{chunk-QWKQ7U4H.js → chunk-NVQB62KF.js} +13 -7
- package/lib/{chunk-QWKQ7U4H.js.map → chunk-NVQB62KF.js.map} +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +3 -1
- package/lib/index.js.map +1 -1
- package/lib/processor-runner.js +3 -2
- package/lib/processor-runner.js.map +1 -1
- package/lib/service-worker.js +1 -1
- package/package.json +1 -1
- package/src/db-context.ts +2 -1
- package/src/service-manager.ts +2 -1
- package/src/utils.ts +12 -5
@@ -37937,12 +37937,16 @@ function mergeProcessResults(results) {
|
|
37937
37937
|
...ProcessResult2.create(),
|
37938
37938
|
states: StateResult.create()
|
37939
37939
|
};
|
37940
|
+
return mergeProcessResultsInPlace(res, results);
|
37941
|
+
}
|
37942
|
+
function mergeProcessResultsInPlace(res, results) {
|
37943
|
+
res.states = res.states || StateResult.create();
|
37940
37944
|
for (const r of results) {
|
37941
|
-
res.counters
|
37942
|
-
res.gauges
|
37943
|
-
res.events
|
37944
|
-
res.exports
|
37945
|
-
res.timeseriesResult
|
37945
|
+
res.counters.push(...r.counters);
|
37946
|
+
res.gauges.push(...r.gauges);
|
37947
|
+
res.events.push(...r.events);
|
37948
|
+
res.exports.push(...r.exports);
|
37949
|
+
res.timeseriesResult.push(...r.timeseriesResult);
|
37946
37950
|
res.states = {
|
37947
37951
|
configUpdated: res.states?.configUpdated || r.states?.configUpdated || false
|
37948
37952
|
};
|
@@ -38341,7 +38345,8 @@ var AbstractStoreContext = class {
|
|
38341
38345
|
unsolved_requests.record(this.defers.size, { processId: this.processId });
|
38342
38346
|
}
|
38343
38347
|
error(processId, e) {
|
38344
|
-
|
38348
|
+
const stack = new Error().stack;
|
38349
|
+
console.error("process error", processId, e, stack);
|
38345
38350
|
const errorResult = ProcessResult.create({
|
38346
38351
|
states: {
|
38347
38352
|
error: e?.toString()
|
@@ -59720,6 +59725,7 @@ import("node:process").then((p) => p.stdout.write(""));
|
|
59720
59725
|
|
59721
59726
|
export {
|
59722
59727
|
mergeProcessResults,
|
59728
|
+
mergeProcessResultsInPlace,
|
59723
59729
|
errorString,
|
59724
59730
|
USER_PROCESSOR,
|
59725
59731
|
makeEthCallKey,
|
@@ -59855,4 +59861,4 @@ long/umd/index.js:
|
|
59855
59861
|
@noble/curves/esm/secp256k1.js:
|
59856
59862
|
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
59857
59863
|
*/
|
59858
|
-
//# sourceMappingURL=chunk-
|
59864
|
+
//# sourceMappingURL=chunk-NVQB62KF.js.map
|