@telorun/kernel 0.17.3 → 0.19.0
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/dist/evaluation-context.d.ts +4 -4
- package/dist/evaluation-context.d.ts.map +1 -1
- package/dist/evaluation-context.js +55 -10
- package/dist/evaluation-context.js.map +1 -1
- package/dist/kernel.d.ts +13 -2
- package/dist/kernel.d.ts.map +1 -1
- package/dist/kernel.js +54 -4
- package/dist/kernel.js.map +1 -1
- package/dist/module-context.d.ts +4 -4
- package/dist/module-context.d.ts.map +1 -1
- package/dist/module-context.js +21 -15
- package/dist/module-context.js.map +1 -1
- package/dist/resource-context.d.ts +3 -2
- package/dist/resource-context.d.ts.map +1 -1
- package/dist/resource-context.js +6 -3
- package/dist/resource-context.js.map +1 -1
- package/package.json +3 -3
- package/src/evaluation-context.ts +71 -6
- package/src/kernel.ts +63 -2
- package/src/module-context.ts +30 -14
- package/src/resource-context.ts +9 -1
package/src/resource-context.ts
CHANGED
|
@@ -5,9 +5,12 @@ import {
|
|
|
5
5
|
ResourceManifest,
|
|
6
6
|
RuntimeError,
|
|
7
7
|
RuntimeResource,
|
|
8
|
+
createCancellationSource,
|
|
8
9
|
isCompiledValue,
|
|
10
|
+
type CancellationSource,
|
|
9
11
|
type ControllerPolicy,
|
|
10
12
|
type EvaluationContext as IEvaluationContext,
|
|
13
|
+
type InvokeContext,
|
|
11
14
|
type LoadOptions,
|
|
12
15
|
type ModuleContext,
|
|
13
16
|
type ParsedArgs,
|
|
@@ -148,6 +151,10 @@ export class ResourceContextImpl implements ResourceContext {
|
|
|
148
151
|
}
|
|
149
152
|
}
|
|
150
153
|
|
|
154
|
+
createCancellationSource(): CancellationSource {
|
|
155
|
+
return createCancellationSource();
|
|
156
|
+
}
|
|
157
|
+
|
|
151
158
|
invoke<TInputs>(kind: string, name: string, inputs: TInputs): Promise<any> {
|
|
152
159
|
return this.moduleContext.invoke(kind, name, inputs);
|
|
153
160
|
}
|
|
@@ -157,8 +164,9 @@ export class ResourceContextImpl implements ResourceContext {
|
|
|
157
164
|
name: string,
|
|
158
165
|
instance: ResourceInstance,
|
|
159
166
|
inputs: TInputs,
|
|
167
|
+
ctx?: InvokeContext,
|
|
160
168
|
): Promise<any> {
|
|
161
|
-
return this.moduleContext.invokeResolved(kind, name, instance, inputs);
|
|
169
|
+
return this.moduleContext.invokeResolved(kind, name, instance, inputs, ctx);
|
|
162
170
|
}
|
|
163
171
|
|
|
164
172
|
resolveImportedInstance(alias: string, name: string): ResourceInstance | undefined {
|