@optique/core 1.1.5 → 1.1.7

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/dist/message.cjs CHANGED
@@ -385,7 +385,7 @@ function formatMessage(msg, options = {}) {
385
385
  };
386
386
  const value$1 = useQuotes ? JSON.stringify(term.values[i]) : term.values[i];
387
387
  yield {
388
- text: useColors ? i <= 0 ? `\x1b[32m${value$1}` : i + 1 >= term.values.length ? `${value$1}${resetSequence}` : value$1 : value$1,
388
+ text: useColors ? `${i === 0 ? "\x1B[32m" : ""}${value$1}${i + 1 === term.values.length ? resetSequence : ""}` : value$1,
389
389
  width: require_displaywidth.getDisplayWidth(value$1)
390
390
  };
391
391
  }
package/dist/message.js CHANGED
@@ -385,7 +385,7 @@ function formatMessage(msg, options = {}) {
385
385
  };
386
386
  const value$1 = useQuotes ? JSON.stringify(term.values[i]) : term.values[i];
387
387
  yield {
388
- text: useColors ? i <= 0 ? `\x1b[32m${value$1}` : i + 1 >= term.values.length ? `${value$1}${resetSequence}` : value$1 : value$1,
388
+ text: useColors ? `${i === 0 ? "\x1B[32m" : ""}${value$1}${i + 1 === term.values.length ? resetSequence : ""}` : value$1,
389
389
  width: getDisplayWidth(value$1)
390
390
  };
391
391
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/core",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "Type-safe combinatorial command-line interface parser",
5
5
  "keywords": [
6
6
  "CLI",
@@ -196,7 +196,7 @@
196
196
  },
197
197
  "sideEffects": false,
198
198
  "devDependencies": {
199
- "@optique/env": "1.1.5",
199
+ "@optique/env": "1.1.7",
200
200
  "@types/node": "^24.0.0",
201
201
  "fast-check": "^4.7.0",
202
202
  "tsdown": "^0.13.0",