@devicecloud.dev/dcd 5.6.0 → 5.7.0

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.
@@ -0,0 +1,8 @@
1
+ /** `cmd` with its hidden args left out, for rendering `--help` only. */
2
+ export async function withoutHiddenArgs(cmd) {
3
+ const args = typeof cmd.args === 'function' ? await cmd.args() : await cmd.args;
4
+ if (!args)
5
+ return cmd;
6
+ const visible = Object.fromEntries(Object.entries(args).filter(([, def]) => !def.hidden));
7
+ return { ...cmd, args: visible };
8
+ }
package/package.json CHANGED
@@ -69,7 +69,7 @@
69
69
  "test:unit": "node scripts/test-runner.mjs --unit",
70
70
  "typecheck": "tsc --noEmit -p tsconfig.test.json"
71
71
  },
72
- "version": "5.6.0",
72
+ "version": "5.7.0",
73
73
  "bugs": {
74
74
  "url": "https://discord.gg/gm3mJwcNw8"
75
75
  },
@@ -106,12 +106,12 @@
106
106
  "diff@>=6.0.0": "8.0.3",
107
107
  "brace-expansion@<1.1.16": "1.1.16",
108
108
  "brace-expansion@>=2.0.0 <2.0.3": "2.0.3",
109
- "brace-expansion@>=3.0.0 <5.0.9": "5.0.9",
109
+ "brace-expansion@>=3.0.0 <5.0.12": "5.0.12",
110
110
  "ws@>=8.0.0 <8.21.0": "8.21.0",
111
111
  "esbuild@<0.28.1": ">=0.28.1",
112
112
  "qs@<6.16.0": "6.16.0",
113
- "fast-uri@>=3.0.0 <3.1.6": "3.1.6",
114
- "hono@>=4.0.0 <4.13.5": "4.13.5",
113
+ "fast-uri@>=3.0.0 <3.1.8": "3.1.8",
114
+ "hono@>=4.0.0 <4.13.7": "4.13.7",
115
115
  "micromatch>picomatch": "^2.3.2",
116
116
  "tinyglobby>picomatch": "^4.0.4"
117
117
  },