@cadenza.io/core 1.7.8 → 1.7.9
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/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -489,6 +489,9 @@ var GraphContext = class _GraphContext {
|
|
|
489
489
|
getFullContext() {
|
|
490
490
|
return this.fullContext;
|
|
491
491
|
}
|
|
492
|
+
getClonedFullContext() {
|
|
493
|
+
return deepCloneFilter(this.fullContext);
|
|
494
|
+
}
|
|
492
495
|
/**
|
|
493
496
|
* Gets frozen metadata (read-only).
|
|
494
497
|
* @returns Frozen metadata object.
|
|
@@ -733,7 +736,7 @@ var GraphNode = class _GraphNode extends SignalEmitter {
|
|
|
733
736
|
if (!this.divided && !this.processing) {
|
|
734
737
|
this.processing = true;
|
|
735
738
|
const inputValidation = this.task.validateInput(
|
|
736
|
-
this.context.getContext()
|
|
739
|
+
this.isMeta() ? this.context.getMetaData() : this.context.getContext()
|
|
737
740
|
);
|
|
738
741
|
if (inputValidation !== true) {
|
|
739
742
|
this.onError(inputValidation.__validationErrors);
|
|
@@ -1438,7 +1441,10 @@ var Task = class extends SignalParticipant {
|
|
|
1438
1441
|
* @edge If validateOutputContext is true, validates output; on failure, emits 'meta.task.outputValidationFailed' with detailed errors.
|
|
1439
1442
|
*/
|
|
1440
1443
|
execute(context, progressCallback) {
|
|
1441
|
-
return this.taskFunction(
|
|
1444
|
+
return this.taskFunction(
|
|
1445
|
+
this.isMeta ? context.getClonedFullContext() : context.getClonedContext(),
|
|
1446
|
+
progressCallback
|
|
1447
|
+
);
|
|
1442
1448
|
}
|
|
1443
1449
|
doAfter(...tasks) {
|
|
1444
1450
|
for (const pred of tasks) {
|