@devicecloud.dev/dcd 4.2.2 → 4.2.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.
@@ -259,7 +259,8 @@ async function plan(options) {
259
259
  if (workspaceConfig.executionOrder?.flowsOrder &&
260
260
  workspaceConfig.executionOrder.flowsOrder.length > 0 &&
261
261
  flowsToRunInSequence.length === 0) {
262
- throw new Error(`executionOrder specified ${workspaceConfig.executionOrder.flowsOrder.length} flow(s) but none were found.\n\n` +
262
+ console.warn(`Warning: executionOrder specified ${workspaceConfig.executionOrder.flowsOrder.length} flow(s) but none were found.\n` +
263
+ `This may be intentional if flows were excluded by tags.\n\n` +
263
264
  `Expected flows: ${workspaceConfig.executionOrder.flowsOrder.join(', ')}\n` +
264
265
  `Available flow names: ${Object.keys(pathsByName).join(', ')}\n\n` +
265
266
  `Hint: Flow names come from either the 'name' field in the flow config or the filename without extension.`);
@@ -27,15 +27,20 @@ function getFlowsToRunInSequence(paths, flowOrder, debug = false) {
27
27
  }
28
28
  if (namesInOrder.length === 0) {
29
29
  const notFound = [...orderSet].filter((item) => !availableNames.includes(item));
30
- throw new Error(`Could not find flows specified in executionOrder.flowsOrder: ${notFound.join(', ')}\n\n` +
30
+ console.warn(`Warning: Could not find flows specified in executionOrder.flowsOrder: ${notFound.join(', ')}\n` +
31
+ `This may be intentional if flows were excluded by tags.\n` +
31
32
  `Available flow names:\n${availableNames.join('\n')}`);
33
+ return [];
32
34
  }
33
35
  const result = [...orderSet].filter((item) => namesInOrder.includes(item));
34
36
  if (result.length === 0) {
35
37
  const notFound = [...orderSet].filter((item) => !namesInOrder.includes(item));
36
- throw new Error(`Could not find flows needed for execution in order: ${notFound.join(', ')}\n\nAvailable flow names:\n${availableNames.join('\n')}`);
38
+ console.warn(`Warning: Could not find flows needed for execution in order: ${notFound.join(', ')}\n` +
39
+ `This may be intentional if flows were excluded by tags.\n` +
40
+ `Available flow names:\n${availableNames.join('\n')}`);
41
+ return [];
37
42
  }
38
- else if (flowOrder
43
+ if (flowOrder
39
44
  .slice(0, result.length)
40
45
  .every((value, index) => value === result[index])) {
41
46
  const resolvedPaths = result.map((item) => paths[item]);
@@ -44,12 +49,10 @@ function getFlowsToRunInSequence(paths, flowOrder, debug = false) {
44
49
  }
45
50
  return resolvedPaths;
46
51
  }
47
- else {
48
- throw new Error(`Flow order mismatch in executionOrder.flowsOrder.\n\n` +
49
- `Expected order: [${flowOrder.slice(0, result.length).join(', ')}]\n` +
50
- `Actual order: [${result.join(', ')}]\n\n` +
51
- `Please ensure flows are specified in the correct order.`);
52
- }
52
+ throw new Error(`Flow order mismatch in executionOrder.flowsOrder.\n\n` +
53
+ `Expected order: [${flowOrder.slice(0, result.length).join(', ')}]\n` +
54
+ `Actual order: [${result.join(', ')}]\n\n` +
55
+ `Please ensure flows are specified in the correct order.`);
53
56
  }
54
57
  function isFlowFile(filePath) {
55
58
  // Exclude files inside .app bundles
@@ -661,5 +661,5 @@
661
661
  ]
662
662
  }
663
663
  },
664
- "version": "4.2.2"
664
+ "version": "4.2.3"
665
665
  }
package/package.json CHANGED
@@ -67,7 +67,7 @@
67
67
  "type": "git",
68
68
  "url": "https://devicecloud.dev"
69
69
  },
70
- "version": "4.2.2",
70
+ "version": "4.2.3",
71
71
  "bugs": {
72
72
  "url": "https://discord.gg/gm3mJwcNw8"
73
73
  },