@hardfin/cli 0.1.1-dev.64 → 0.1.1-dev.66

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
@@ -92,6 +92,10 @@ An amount of money always names its currency. `--salvage-value-value` is refused
92
92
  Inside an element, `unitPrice.amount=` and `unitPrice.isoCode=` are given together the same way.
93
93
  To clear an amount, send the object as null, such as `--salvage-value null`.
94
94
 
95
+ A negative amount is refused before it is sent, and so is a currency code the document does not
96
+ list. Inside an element, a field with a fixed set of values, such as `billingFrequency=`, is
97
+ checked the same way, and `monthly` is sent as `MONTHLY`.
98
+
95
99
  Inside a `key=value` flag, `=` gives a value as you typed it and `:=` gives it as JSON.
96
100
 
97
101
  | You type | Is sent as |
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="aacd0112-e361-5290-9a4f-2ad41bcf2520")}catch(e){}}();
3
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="469aeda4-a28c-568b-8bc1-c8b2e851cef6")}catch(e){}}();
4
4
  import module from "node:module";
5
5
  //#region src/cli.ts
6
6
  module.enableCompileCache?.();
@@ -14,7 +14,7 @@ process.on("unhandledRejection", (error) => void toCrash(error));
14
14
  try {
15
15
  const answer = await toQuickAnswer(process.argv.slice(2));
16
16
  if (answer === void 0) {
17
- const { toCli, toParseExitCode, wasReportAttempted } = await import("./program-Bok0tZ8p.js");
17
+ const { toCli, toParseExitCode, wasReportAttempted } = await import("./program-Dn5_vLMu.js");
18
18
  try {
19
19
  await toCli().parseAsync(process.argv);
20
20
  } catch (error) {
@@ -33,7 +33,7 @@ async function toCrash(error) {
33
33
  isCrashing = true;
34
34
  const isJSON = process.argv.includes("--json") || !process.stdout.isTTY;
35
35
  try {
36
- const { toReported, writeCrash } = await import("./program-Bok0tZ8p.js");
36
+ const { toReported, writeCrash } = await import("./program-Dn5_vLMu.js");
37
37
  writeCrash(error, isJSON);
38
38
  await toReported(error, isJSON, void 0, "fatal");
39
39
  } catch {
@@ -54,4 +54,4 @@ async function toQuickAnswer(args) {
54
54
  export {};
55
55
 
56
56
  //# sourceMappingURL=cli.js.map
57
- //# debugId=aacd0112-e361-5290-9a4f-2ad41bcf2520
57
+ //# debugId=469aeda4-a28c-568b-8bc1-c8b2e851cef6