@flowrunner/cli 0.1.18-dev.2 → 0.1.18-dev.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.
@@ -320,7 +320,7 @@ converted:
320
320
  ```js
321
321
  limit: z.union([z.number(), z.literal('max')]) // '5' → 5 'max' → 'max'
322
322
  mode : z.union([z.boolean(), z.literal('auto')]) // 'false' → false 'auto' → 'auto'
323
- scope: z.union([z.number(), z.enum(['all', 'none'])]) // '5' → 5 'all' → 'all' 'x' → «Scope» must be a number, or one of: "all", "none"
323
+ scope: z.union([z.number(), z.enum(['all', 'none'])]) // '5' → 5 'all' → 'all' 'x' → «Scope» must be a number, or one of: all, none
324
324
  ```
325
325
 
326
326
  Keep `z.string()` in a union only when free text really is one of the forms, and convert in the handler if
@@ -331,8 +331,8 @@ A constraint is part of "fits": `z.union([z.number().min(10), z.string()])` give
331
331
  because the number branch refuses it and the string branch takes it converted.
332
332
 
333
333
  A value no branch accepts is refused with what **every** branch expects, in declared order: `«Scope» must be a
334
- number, or one of: "all", "none"`. Text values are quoted (`"auto"` is text, `true` a boolean), and a
335
- `z.literal('')` branch is left out, so a `''` union reads like its other branch.
334
+ number, or one of: all, none`. A `z.literal('')` branch is left out, so a `''` union reads like its other
335
+ branch.
336
336
 
337
337
  ### Clearing a value
338
338
 
@@ -466,8 +466,8 @@ field by its `.label()`:
466
466
  ```
467
467
  «Retries» must be at least 1
468
468
  «Site» is invalid — expects a URL, e.g. https://example.com
469
- «Region» must be one of: "us", "eu"
470
- «Scope» must be a number, or one of: "all", "none"
469
+ «Region» must be one of: us, eu
470
+ «Scope» must be a number, or one of: all, none
471
471
  ```
472
472
 
473
473
  The console checks the *same* schema while the form is being filled in, so a config dialog reports the same
package/dist/cli.js CHANGED
@@ -9832,8 +9832,8 @@ var require_get_intrinsic = __commonJS({
9832
9832
  throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
9833
9833
  }
9834
9834
  var result = [];
9835
- $replace(string, rePropName, function(match, number, quote2, subString) {
9836
- result[result.length] = quote2 ? $replace(subString, reEscapeChar, "$1") : number || match;
9835
+ $replace(string, rePropName, function(match, number, quote, subString) {
9836
+ result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match;
9837
9837
  });
9838
9838
  return result;
9839
9839
  };
@@ -14508,7 +14508,7 @@ var require_package = __commonJS({
14508
14508
  "package.json"(exports2, module2) {
14509
14509
  module2.exports = {
14510
14510
  name: "@flowrunner/cli",
14511
- version: "0.1.18-dev.2",
14511
+ version: "0.1.18-dev.3",
14512
14512
  publishConfig: {
14513
14513
  access: "public"
14514
14514
  },
@@ -17082,8 +17082,7 @@ var EXPECTED = {
17082
17082
  record: "an object"
17083
17083
  };
17084
17084
  var requiredMessage = (plan2) => `\xAB${plan2.label}\xBB is required`;
17085
- var quote = (value) => typeof value === "string" ? JSON.stringify(value) : String(value);
17086
- var oneOf = (values) => values.length === 1 ? quote(values[0]) : `one of: ${values.map(quote).join(", ")}`;
17085
+ var oneOf = (values) => `one of: ${values.map(String).join(", ")}`;
17087
17086
  var formatPhrase = (format) => {
17088
17087
  const described = FORMAT_DESCRIPTIONS[format ?? ""];
17089
17088
  return described?.replace(/^Expects (.*?), e\.g\. (.*)$/, "$1 (e.g. $2)").replace(/^Expects /, "");