@openfn/cli 0.4.10 → 0.4.12

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/README.md CHANGED
@@ -237,7 +237,7 @@ If something unexpected happens during a command, your first step should be to r
237
237
 
238
238
  `debug` level logging is highly verbose and aims to tell you everything that's going on under-the hood. This is aimed mostly at CLI/runtime developers and can be very useful for debugging problems.
239
239
 
240
- ### Structred/JSON logging
240
+ ### Structured/JSON logging
241
241
 
242
242
  By default all logs will be printed as human-readable strings.
243
243
 
@@ -277,7 +277,7 @@ A workflow has a structure like this (better documentation is coming soon):
277
277
  // If there are no next edges, the workflow will end
278
278
  "b": true,
279
279
  "c": {
280
- "condition": "!state.error" // Not that this is an expression, not a function
280
+ "condition": "!state.error" // Note that this is an expression, not a function
281
281
  }
282
282
  }
283
283
  }
@@ -638,12 +638,12 @@ var executeHandler = async (options, logger) => {
638
638
  const result = await execute_default(input, state, options);
639
639
  await serialize_output_default(options, result, logger);
640
640
  const duration = printDuration((/* @__PURE__ */ new Date()).getTime() - start);
641
- if (result.errors) {
641
+ if (result?.errors) {
642
642
  logger.warn(
643
643
  `Errors reported in ${Object.keys(result.errors).length} jobs`
644
644
  );
645
645
  }
646
- logger.success(`Finished in ${duration}${result.errors ? "" : " \u2728"}`);
646
+ logger.success(`Finished in ${duration}${result?.errors ? "" : " \u2728"}`);
647
647
  return result;
648
648
  } catch (err) {
649
649
  if (!err.handled) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfn/cli",
3
- "version": "0.4.10",
3
+ "version": "0.4.12",
4
4
  "description": "CLI devtools for the openfn toolchain.",
5
5
  "engines": {
6
6
  "node": ">=18",
@@ -45,10 +45,10 @@
45
45
  "treeify": "^1.1.0",
46
46
  "yargs": "^17.7.2",
47
47
  "@openfn/compiler": "0.0.38",
48
- "@openfn/describe-package": "0.0.18",
48
+ "@openfn/deploy": "0.2.10",
49
+ "@openfn/runtime": "0.2.3",
49
50
  "@openfn/logger": "0.0.19",
50
- "@openfn/runtime": "0.2.1",
51
- "@openfn/deploy": "0.2.10"
51
+ "@openfn/describe-package": "0.0.18"
52
52
  },
53
53
  "files": [
54
54
  "dist",