@sentio/runtime 2.40.0-rc.15 → 2.40.0-rc.16

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.
@@ -78589,6 +78589,7 @@ var ProcessorServiceImpl = class {
78589
78589
  }
78590
78590
  const subject = new import_rxjs.Subject();
78591
78591
  this.handleRequests(requests, subject).then(() => {
78592
+ this.preparedData = { ethCallResults: {} };
78592
78593
  subject.complete();
78593
78594
  }).catch((e) => {
78594
78595
  console.error(e);
@@ -78606,7 +78607,12 @@ var ProcessorServiceImpl = class {
78606
78607
  const dbContext = contexts.new(request.processId, subject);
78607
78608
  const start = Date.now();
78608
78609
  this.preprocessBindings(bindings, dbContext).then((preparedData) => {
78609
- this.preparedData = preparedData;
78610
+ this.preparedData = {
78611
+ ethCallResults: {
78612
+ ...this.preparedData?.ethCallResults,
78613
+ ...preparedData.ethCallResults
78614
+ }
78615
+ };
78610
78616
  subject.next({
78611
78617
  processId: request.processId
78612
78618
  });
package/lib/index.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  makeEthCallKey,
13
13
  mergeProcessResults,
14
14
  timeoutError
15
- } from "./chunk-IO6D7U2E.js";
15
+ } from "./chunk-K6CPN5YU.js";
16
16
 
17
17
  // src/state.ts
18
18
  var _State = class {
@@ -40,7 +40,7 @@ import {
40
40
  require_minimal,
41
41
  require_src,
42
42
  trace
43
- } from "./chunk-IO6D7U2E.js";
43
+ } from "./chunk-K6CPN5YU.js";
44
44
 
45
45
  // ../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js
46
46
  var require_universalify = __commonJS({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentio/runtime",
3
- "version": "2.40.0-rc.15",
3
+ "version": "2.40.0-rc.16",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
package/src/service.ts CHANGED
@@ -280,6 +280,7 @@ export class ProcessorServiceImpl implements ProcessorServiceImplementation {
280
280
  const subject = new Subject<DeepPartial<ProcessStreamResponse>>()
281
281
  this.handleRequests(requests, subject)
282
282
  .then(() => {
283
+ this.preparedData = { ethCallResults: {} }
283
284
  subject.complete()
284
285
  })
285
286
  .catch((e) => {
@@ -305,7 +306,12 @@ export class ProcessorServiceImpl implements ProcessorServiceImplementation {
305
306
  this.preprocessBindings(bindings, dbContext)
306
307
  .then((preparedData) => {
307
308
  // TODO maybe not proper to pass data in this way
308
- this.preparedData = preparedData
309
+ this.preparedData = {
310
+ ethCallResults: {
311
+ ...this.preparedData?.ethCallResults,
312
+ ...preparedData.ethCallResults
313
+ }
314
+ }
309
315
  subject.next({
310
316
  processId: request.processId
311
317
  })