@cynodia/axiom-runtime 0.16.0-alpha.1 → 0.16.0-alpha.3
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/runtime.js +4 -4
- package/package.json +2 -2
package/dist/runtime.js
CHANGED
|
@@ -1046,7 +1046,7 @@ export function createAxiomRuntime(options) {
|
|
|
1046
1046
|
const members = requireCollection(evaluate(operation.collection, scope), 'for-each');
|
|
1047
1047
|
for (const member of members) {
|
|
1048
1048
|
const iteration = childScope(scope, operation.scopeId, member);
|
|
1049
|
-
for (const nested of operation.operations
|
|
1049
|
+
for (const nested of Array.isArray(operation.operations) ? operation.operations : []) {
|
|
1050
1050
|
executeOperation(nested, iteration, context, result);
|
|
1051
1051
|
}
|
|
1052
1052
|
}
|
|
@@ -1313,7 +1313,7 @@ export function createAxiomRuntime(options) {
|
|
|
1313
1313
|
});
|
|
1314
1314
|
}
|
|
1315
1315
|
function actionHasAsyncQuery(action) {
|
|
1316
|
-
return (action.operations
|
|
1316
|
+
return (Array.isArray(action.operations) ? action.operations : []).some((operation) => operation.kind === 'integration-query' ||
|
|
1317
1317
|
operation.kind === 'blob-metadata' ||
|
|
1318
1318
|
operation.kind === 'query');
|
|
1319
1319
|
}
|
|
@@ -1343,7 +1343,7 @@ export function createAxiomRuntime(options) {
|
|
|
1343
1343
|
renderApplication();
|
|
1344
1344
|
return { ok: false, diagnostics: [diagnostic] };
|
|
1345
1345
|
};
|
|
1346
|
-
for (const operation of action.operations
|
|
1346
|
+
for (const operation of Array.isArray(action.operations) ? action.operations : []) {
|
|
1347
1347
|
if (operation.kind === 'blob-metadata') {
|
|
1348
1348
|
// A metadata lookup is the storage half of the same pre-transaction phase: a finite
|
|
1349
1349
|
// question, answered before anything is mutated, whose result later operations read.
|
|
@@ -1557,7 +1557,7 @@ export function createAxiomRuntime(options) {
|
|
|
1557
1557
|
};
|
|
1558
1558
|
const operationDiagnostics = [];
|
|
1559
1559
|
const reportedBefore = collected.length;
|
|
1560
|
-
for (const operation of action.operations
|
|
1560
|
+
for (const operation of Array.isArray(action.operations) ? action.operations : []) {
|
|
1561
1561
|
executeOperation(operation, scope, context, operationDiagnostics);
|
|
1562
1562
|
}
|
|
1563
1563
|
// Anything reported while the operations ran — an expression that could not be
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cynodia/axiom-runtime",
|
|
3
|
-
"version": "0.16.0-alpha.
|
|
3
|
+
"version": "0.16.0-alpha.3",
|
|
4
4
|
"description": "Domain-independent runtime that executes an Axiom application graph.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "AskTech AS",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@cynodia/axiom-core": "0.16.0-alpha.
|
|
34
|
+
"@cynodia/axiom-core": "0.16.0-alpha.3"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "tsc -b tsconfig.json tsconfig.test.json",
|