@gunshi/plugin 0.29.2 → 0.29.4
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 +2 -2
- package/lib/index.js +3 -7
- package/package.json +6 -6
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/args-tokens@0.24.
|
|
1
|
+
//#region ../../node_modules/.pnpm/args-tokens@0.24.3/node_modules/args-tokens/lib/parser-D95CJBHr.d.ts
|
|
2
2
|
//#region src/parser.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Entry point of argument parser.
|
|
@@ -55,7 +55,7 @@ interface ArgToken {
|
|
|
55
55
|
* Parser Options.
|
|
56
56
|
*/
|
|
57
57
|
//#endregion
|
|
58
|
-
//#region ../../node_modules/.pnpm/args-tokens@0.24.
|
|
58
|
+
//#region ../../node_modules/.pnpm/args-tokens@0.24.3/node_modules/args-tokens/lib/resolver.d.ts
|
|
59
59
|
//#region src/resolver.d.ts
|
|
60
60
|
/**
|
|
61
61
|
* An argument schema definition for command-line argument parsing.
|
package/lib/index.js
CHANGED
|
@@ -21,7 +21,6 @@ const CLI_OPTIONS_DEFAULT = {
|
|
|
21
21
|
plugins: void 0,
|
|
22
22
|
fallbackToEntry: false
|
|
23
23
|
};
|
|
24
|
-
|
|
25
24
|
//#endregion
|
|
26
25
|
//#region ../gunshi/src/utils.ts
|
|
27
26
|
/**
|
|
@@ -66,7 +65,6 @@ function deepFreeze(obj, ignores = []) {
|
|
|
66
65
|
}
|
|
67
66
|
return Object.freeze(obj);
|
|
68
67
|
}
|
|
69
|
-
|
|
70
68
|
//#endregion
|
|
71
69
|
//#region ../gunshi/src/context.ts
|
|
72
70
|
/**
|
|
@@ -151,11 +149,10 @@ async function createCommandContext({ args = {}, explicit = {}, values = {}, pos
|
|
|
151
149
|
return deepFreeze(core, ["extensions"]);
|
|
152
150
|
}
|
|
153
151
|
function getCommandName(cmd) {
|
|
154
|
-
if (isLazyCommand(cmd)) return cmd.commandName || cmd.name ||
|
|
155
|
-
else if (typeof cmd === "object") return cmd.name ||
|
|
152
|
+
if (isLazyCommand(cmd)) return cmd.commandName || cmd.name || "(anonymous)";
|
|
153
|
+
else if (typeof cmd === "object") return cmd.name || "(anonymous)";
|
|
156
154
|
else return ANONYMOUS_COMMAND_NAME;
|
|
157
155
|
}
|
|
158
|
-
|
|
159
156
|
//#endregion
|
|
160
157
|
//#region ../gunshi/src/plugin/core.ts
|
|
161
158
|
const NOOP_EXTENSION = () => {
|
|
@@ -203,6 +200,5 @@ function plugin(options = {}) {
|
|
|
203
200
|
} }
|
|
204
201
|
});
|
|
205
202
|
}
|
|
206
|
-
|
|
207
203
|
//#endregion
|
|
208
|
-
export { ANONYMOUS_COMMAND_NAME, CLI_OPTIONS_DEFAULT, createCommandContext, plugin };
|
|
204
|
+
export { ANONYMOUS_COMMAND_NAME, CLI_OPTIONS_DEFAULT, createCommandContext, plugin };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gunshi/plugin",
|
|
3
3
|
"description": "plugin development kit for gunshi",
|
|
4
|
-
"version": "0.29.
|
|
4
|
+
"version": "0.29.4",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "kazuya kawaguchi",
|
|
7
7
|
"email": "kawakazu80@gmail.com"
|
|
@@ -51,12 +51,12 @@
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"deno": "^2.
|
|
55
|
-
"jsr": "^0.
|
|
56
|
-
"jsr-exports-lint": "^0.4.
|
|
57
|
-
"publint": "^0.3.
|
|
54
|
+
"deno": "^2.7.11",
|
|
55
|
+
"jsr": "^0.14.3",
|
|
56
|
+
"jsr-exports-lint": "^0.4.2",
|
|
57
|
+
"publint": "^0.3.18",
|
|
58
58
|
"tsdown": "0.15.12",
|
|
59
|
-
"gunshi": "0.29.
|
|
59
|
+
"gunshi": "0.29.4"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"build": "tsdown",
|