@sentio/runtime 3.0.0-rc.6 → 3.0.0-rc.8
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-N3DTZ2BC.js → chunk-6MZJOWMH.js} +2 -2
- package/lib/{chunk-N3DTZ2BC.js.map → chunk-6MZJOWMH.js.map} +1 -1
- package/lib/{chunk-6XHWJ2VS.js → chunk-N3VEKOPD.js} +7 -2
- package/lib/chunk-N3VEKOPD.js.map +1 -0
- package/lib/{chunk-OFR7W4ZG.js → chunk-QHFSZVR5.js} +19 -13
- package/lib/{chunk-OFR7W4ZG.js.map → chunk-QHFSZVR5.js.map} +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +3 -3
- package/lib/{processor-CIR4erWa.d.ts → processor-CNHsQeJ6.d.ts} +4 -3
- package/lib/processor-runner.js +3 -12
- package/lib/processor-runner.js.map +1 -1
- package/lib/service-worker.js +2 -2
- package/lib/test-processor.test.d.ts +1 -1
- package/package.json +1 -1
- package/src/db-context.ts +1 -1
- package/src/plugin.ts +15 -4
- package/src/service-v3.ts +2 -3
- package/src/state.ts +4 -1
- package/lib/chunk-6XHWJ2VS.js.map +0 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as StoreContext, E as ExecutionConfig } from './processor-
|
|
2
|
-
export { A as AbstractStoreContext, d as DataBindingContext, c as IDataBindingContext, I as IStoreContext, P as Plugin, b as PluginManager, t as timeoutError } from './processor-
|
|
1
|
+
import { S as StoreContext, E as ExecutionConfig } from './processor-CNHsQeJ6.js';
|
|
2
|
+
export { A as AbstractStoreContext, d as DataBindingContext, c as IDataBindingContext, I as IStoreContext, P as Plugin, b as PluginManager, t as timeoutError } from './processor-CNHsQeJ6.js';
|
|
3
3
|
import * as _sentio_protos from '@sentio/protos';
|
|
4
4
|
import { TemplateInstance, ProcessResult, EthCallParam, ProcessorServiceImplementation, ProcessConfigRequest, ProcessConfigResponse, StartRequest, Empty, ProcessBindingsRequest, ProcessBindingResponse, DataBinding, PreparedData, PreprocessResult, ProcessStreamRequest, HandlerType, PreprocessStreamRequest, DeepPartial, PreprocessStreamResponse, ProcessStreamResponse } from '@sentio/protos';
|
|
5
5
|
import { Required } from 'utility-types';
|
package/lib/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
State,
|
|
6
6
|
StateStorage,
|
|
7
7
|
TemplateInstanceState
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-N3VEKOPD.js";
|
|
9
9
|
import {
|
|
10
10
|
AbstractStoreContext,
|
|
11
11
|
DataBindingContext,
|
|
@@ -30,11 +30,11 @@ import {
|
|
|
30
30
|
providerMetrics,
|
|
31
31
|
recordRuntimeInfo,
|
|
32
32
|
timeoutError
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-6MZJOWMH.js";
|
|
34
34
|
import {
|
|
35
35
|
Plugin,
|
|
36
36
|
PluginManager
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-QHFSZVR5.js";
|
|
38
38
|
import "./chunk-MV6JXS2P.js";
|
|
39
39
|
import "./chunk-KVSDPGUI.js";
|
|
40
40
|
|
|
@@ -83,7 +83,7 @@ declare abstract class Plugin {
|
|
|
83
83
|
}
|
|
84
84
|
declare class PluginManager {
|
|
85
85
|
static INSTANCE: PluginManager;
|
|
86
|
-
dbContextLocalStorage: AsyncLocalStorage<IStoreContext | undefined>;
|
|
86
|
+
dbContextLocalStorage: AsyncLocalStorage<IStoreContext | IDataBindingContext | undefined>;
|
|
87
87
|
plugins: Plugin[];
|
|
88
88
|
typesToPlugin: Map<HandlerType$1, Plugin>;
|
|
89
89
|
register(plugin: Plugin): void;
|
|
@@ -95,12 +95,13 @@ declare class PluginManager {
|
|
|
95
95
|
* @deprecated The method should not be used, use ctx.states instead
|
|
96
96
|
*/
|
|
97
97
|
stateDiff(config: ProcessConfigResponse): boolean;
|
|
98
|
-
processBinding(request: DataBinding$1, preparedData: PreparedData | undefined, dbContext?: IStoreContext): Promise<ProcessResult$1>;
|
|
98
|
+
processBinding(request: DataBinding$1, preparedData: PreparedData | undefined, dbContext?: IDataBindingContext | IStoreContext): Promise<ProcessResult$1>;
|
|
99
99
|
partition(request: DataBinding$1): Promise<ProcessStreamResponse_Partitions>;
|
|
100
100
|
preprocessBinding(request: DataBinding$1, preprocessStore: {
|
|
101
101
|
[k: string]: any;
|
|
102
|
-
}, dbContext?:
|
|
102
|
+
}, dbContext?: IDataBindingContext | IStoreContext): Promise<PreprocessResult>;
|
|
103
103
|
updateTemplates(request: UpdateTemplatesRequest): Promise<void>;
|
|
104
|
+
sendTemplateInstance(instance: TemplateInstance): void;
|
|
104
105
|
}
|
|
105
106
|
|
|
106
107
|
declare enum RichValue_NullValue {
|
package/lib/processor-runner.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { createRequire as createRequireShim } from 'module'; const require = createRequireShim(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
TemplateInstanceState
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-N3VEKOPD.js";
|
|
6
6
|
import {
|
|
7
7
|
require_ms,
|
|
8
8
|
setupLogger
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
require_lib4,
|
|
30
30
|
require_src,
|
|
31
31
|
withAbort
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-6MZJOWMH.js";
|
|
33
33
|
import {
|
|
34
34
|
ExecutionConfig,
|
|
35
35
|
HandlerType,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
ProcessorV3Definition,
|
|
41
41
|
StartRequest,
|
|
42
42
|
require_minimal2 as require_minimal
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-QHFSZVR5.js";
|
|
44
44
|
import {
|
|
45
45
|
DiagConsoleLogger,
|
|
46
46
|
DiagLogLevel,
|
|
@@ -32713,15 +32713,6 @@ var ProcessorServiceImplV3 = class {
|
|
|
32713
32713
|
}
|
|
32714
32714
|
});
|
|
32715
32715
|
}
|
|
32716
|
-
if (result.states?.configUpdated) {
|
|
32717
|
-
console.debug("sending tpl updates:");
|
|
32718
|
-
subject.next({
|
|
32719
|
-
processId,
|
|
32720
|
-
tplRequest: {
|
|
32721
|
-
templates: TemplateInstanceState.INSTANCE.getValues()
|
|
32722
|
-
}
|
|
32723
|
-
});
|
|
32724
|
-
}
|
|
32725
32716
|
console.debug("sending binding result", processId);
|
|
32726
32717
|
subject.next({
|
|
32727
32718
|
result: otherResults,
|