@gunshi/shared 0.35.3 → 0.37.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.
Files changed (2) hide show
  1. package/lib/index.js +2 -3
  2. package/package.json +3 -3
package/lib/index.js CHANGED
@@ -179,7 +179,6 @@ const COMMAND_ERROR_RESOURCE_KEYS = ["err:cmd:not-found"];
179
179
  const SUGGESTION_ERROR_RESOURCE_KEYS = ["err:suggestion:did-you-mean"];
180
180
  //#endregion
181
181
  //#region ../resources/locales/en-US.json
182
- var NEGATABLE = "Negatable of";
183
182
  var en_US_default = {
184
183
  COMMAND: "COMMAND",
185
184
  COMMANDS: "COMMANDS",
@@ -189,7 +188,7 @@ var en_US_default = {
189
188
  OPTIONS: "OPTIONS",
190
189
  EXAMPLES: "EXAMPLES",
191
190
  FORMORE: "For more info, run any command with the `--help` flag",
192
- NEGATABLE,
191
+ NEGATABLE: "Negatable of",
193
192
  DEFAULT: "default",
194
193
  CHOICES: "choices",
195
194
  help: "Display this help message",
@@ -322,7 +321,7 @@ function localizable(ctx, cmd, translate) {
322
321
  }
323
322
  const schema = ctx.args[argKey];
324
323
  if (!schema) return argKey;
325
- return negatable && schema.type === "boolean" && schema.negatable ? `${NEGATABLE} ${makeShortLongOptionPair(schema, argKey, ctx.toKebab)}` : schema.description || "";
324
+ return negatable && schema.type === "boolean" && schema.negatable ? `${en_US_default["NEGATABLE"]} ${makeShortLongOptionPair(schema, argKey, ctx.toKebab)}` : schema.description || "";
326
325
  }
327
326
  if (key === resolveKey("description", ctx.name)) return "";
328
327
  else if (key === resolveKey("examples", ctx.name)) return await resolveExamples(ctx, cmd.examples);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gunshi/shared",
3
3
  "description": "shared utils for gunshi",
4
- "version": "0.35.3",
4
+ "version": "0.37.0",
5
5
  "author": {
6
6
  "name": "kazuya kawaguchi",
7
7
  "email": "kawakazu80@gmail.com"
@@ -55,8 +55,8 @@
55
55
  "jsr-exports-lint": "^0.4.2",
56
56
  "publint": "^0.3.20",
57
57
  "tsdown": "0.21.0",
58
- "@gunshi/resources": "0.35.3",
59
- "gunshi": "0.35.3"
58
+ "@gunshi/resources": "0.37.0",
59
+ "gunshi": "0.37.0"
60
60
  },
61
61
  "scripts": {
62
62
  "build": "tsdown",