@gunshi/definition 0.29.5 → 0.30.1

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/lib/index.d.ts CHANGED
@@ -1677,5 +1677,12 @@ type LazyWithTypesReturn<FullG extends GunshiParamsConstraint> = <D extends Part
1677
1677
  * @since v0.27.0
1678
1678
  */
1679
1679
  declare function lazyWithTypes<G extends GunshiParamsConstraint>(): LazyWithTypesReturn<NormalizeGunshiParams<G>>;
1680
+ //#endregion
1681
+ //#region src/index.d.ts
1682
+ /**
1683
+ * @author kazuya kawaguchi (a.k.a. kazupon)
1684
+ * @license MIT
1685
+ */
1686
+
1680
1687
  //#endregion
1681
1688
  export { type ArgSchema, type ArgValues, type Args, type Command, type CommandContextParams, type CommandLoader, type CommandRunner, type DefaultGunshiParams, type ExtendContext, type GunshiParams, type LazyCommand, createCommandContext, define, defineWithTypes, lazy, lazyWithTypes };
package/lib/index.js CHANGED
@@ -1,4 +1,8 @@
1
1
  //#region ../gunshi/src/constants.ts
2
+ /**
3
+ * @author kazuya kawaguchi (a.k.a. kazupon)
4
+ * @license MIT
5
+ */
2
6
  const ANONYMOUS_COMMAND_NAME = "(anonymous)";
3
7
  /**
4
8
  * A no-operation function.
@@ -24,6 +28,10 @@ const CLI_OPTIONS_DEFAULT = {
24
28
  //#endregion
25
29
  //#region ../gunshi/src/utils.ts
26
30
  /**
31
+ * @author kazuya kawaguchi (a.k.a. kazupon)
32
+ * @license MIT
33
+ */
34
+ /**
27
35
  * Check if the given command is a {@link LazyCommand}.
28
36
  *
29
37
  * @param cmd - A command to check
@@ -88,7 +96,7 @@ function deepFreeze(obj, ignores = []) {
88
96
  * @param param - A {@link CommandContextParams | parameters} to create a command context.
89
97
  * @returns A {@link CommandContext | command context}, which is readonly.
90
98
  */
91
- async function createCommandContext({ args = {}, explicit = {}, values = {}, positionals = [], rest = [], argv = [], tokens = [], command = {}, extensions = {}, cliOptions = {}, callMode = "entry", commandPath = [], omitted = false, validationError = void 0 }) {
99
+ async function createCommandContext({ args = {}, explicit = {}, values = {}, positionals = [], rest = [], argv = [], tokens = [], command = {}, extensions = {}, cliOptions = {}, callMode = "entry", commandPath = [], omitted = false, validationError }) {
92
100
  /**
93
101
  * normailize the options schema and values, to avoid prototype pollution
94
102
  */
@@ -156,6 +164,10 @@ function getCommandName(cmd) {
156
164
  //#endregion
157
165
  //#region ../gunshi/src/definition.ts
158
166
  /**
167
+ * @author kazuya kawaguchi (a.k.a. kazupon)
168
+ * @license MIT
169
+ */
170
+ /**
159
171
  * Define a {@link Command | command}.
160
172
  *
161
173
  * @typeParam G - A {@link GunshiParamsConstraint} type
@@ -262,4 +274,10 @@ function lazyWithTypes() {
262
274
  };
263
275
  }
264
276
  //#endregion
277
+ //#region src/index.ts
278
+ /**
279
+ * @author kazuya kawaguchi (a.k.a. kazupon)
280
+ * @license MIT
281
+ */
282
+ //#endregion
265
283
  export { createCommandContext, define, defineWithTypes, lazy, lazyWithTypes };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gunshi/definition",
3
3
  "description": "utilities for gunshi command definition",
4
- "version": "0.29.5",
4
+ "version": "0.30.1",
5
5
  "author": {
6
6
  "name": "kazuya kawaguchi",
7
7
  "email": "kawakazu80@gmail.com"
@@ -26,7 +26,7 @@
26
26
  "access": "public"
27
27
  },
28
28
  "engines": {
29
- "node": ">= 20"
29
+ "node": ">= 22"
30
30
  },
31
31
  "type": "module",
32
32
  "files": [
@@ -52,12 +52,12 @@
52
52
  }
53
53
  },
54
54
  "devDependencies": {
55
- "deno": "^2.7.11",
55
+ "deno": "^2.7.14",
56
56
  "jsr": "^0.14.3",
57
57
  "jsr-exports-lint": "^0.4.2",
58
- "publint": "^0.3.18",
59
- "tsdown": "0.15.12",
60
- "gunshi": "0.29.5"
58
+ "publint": "^0.3.20",
59
+ "tsdown": "0.21.0",
60
+ "gunshi": "0.30.1"
61
61
  },
62
62
  "scripts": {
63
63
  "build": "tsdown",