@sentio/runtime 2.59.0-rc.36 → 2.59.0-rc.38
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-OS67OWYG.js → chunk-C4IDZGJI.js} +13 -7
- package/lib/{chunk-OS67OWYG.js.map → chunk-C4IDZGJI.js.map} +1 -1
- package/lib/index.js +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 +13 -5
@@ -37942,17 +37942,22 @@ function mergeProcessResults(results) {
|
|
37942
37942
|
function mergeProcessResultsInPlace(res, results) {
|
37943
37943
|
res.states = res.states || StateResult.create();
|
37944
37944
|
for (const r of results) {
|
37945
|
-
res.counters
|
37946
|
-
res.gauges
|
37947
|
-
res.events
|
37948
|
-
res.exports
|
37949
|
-
res.timeseriesResult
|
37945
|
+
mergeArrayInPlace(res.counters, r.counters);
|
37946
|
+
mergeArrayInPlace(res.gauges, r.gauges);
|
37947
|
+
mergeArrayInPlace(res.events, r.events);
|
37948
|
+
mergeArrayInPlace(res.exports, r.exports);
|
37949
|
+
mergeArrayInPlace(res.timeseriesResult, r.timeseriesResult);
|
37950
37950
|
res.states = {
|
37951
37951
|
configUpdated: res.states?.configUpdated || r.states?.configUpdated || false
|
37952
37952
|
};
|
37953
37953
|
}
|
37954
37954
|
return res;
|
37955
37955
|
}
|
37956
|
+
function mergeArrayInPlace(dst, src) {
|
37957
|
+
for (const r of src) {
|
37958
|
+
dst.push(r);
|
37959
|
+
}
|
37960
|
+
}
|
37956
37961
|
function errorString(e) {
|
37957
37962
|
return e.message + "\n" + e.stack;
|
37958
37963
|
}
|
@@ -38345,7 +38350,8 @@ var AbstractStoreContext = class {
|
|
38345
38350
|
unsolved_requests.record(this.defers.size, { processId: this.processId });
|
38346
38351
|
}
|
38347
38352
|
error(processId, e) {
|
38348
|
-
|
38353
|
+
const stack = new Error().stack;
|
38354
|
+
console.error("process error", processId, e, stack);
|
38349
38355
|
const errorResult = ProcessResult.create({
|
38350
38356
|
states: {
|
38351
38357
|
error: e?.toString()
|
@@ -59860,4 +59866,4 @@ long/umd/index.js:
|
|
59860
59866
|
@noble/curves/esm/secp256k1.js:
|
59861
59867
|
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
59862
59868
|
*/
|
59863
|
-
//# sourceMappingURL=chunk-
|
59869
|
+
//# sourceMappingURL=chunk-C4IDZGJI.js.map
|