@optique/inquirer 1.2.0-dev.2192 → 1.2.0-dev.2196

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/index.cjs CHANGED
@@ -109,7 +109,7 @@ async function executePromptRaw(config) {
109
109
  const cfg = config;
110
110
  const prompts = getPromptFunctions();
111
111
  try {
112
- if (!validPromptTypes.has(cfg.type)) throw new TypeError(`Unsupported prompt type: ${cfg.type}`);
112
+ if (!validPromptTypes.has(cfg.type)) throw new TypeError(`Unsupported prompt type: ${String(cfg.type)}.`);
113
113
  if ("prompter" in cfg && cfg.prompter != null) {
114
114
  const value = await cfg.prompter();
115
115
  if (cfg.type === "number" && value === void 0) return {
package/dist/index.js CHANGED
@@ -86,7 +86,7 @@ async function executePromptRaw(config) {
86
86
  const cfg = config;
87
87
  const prompts = getPromptFunctions();
88
88
  try {
89
- if (!validPromptTypes.has(cfg.type)) throw new TypeError(`Unsupported prompt type: ${cfg.type}`);
89
+ if (!validPromptTypes.has(cfg.type)) throw new TypeError(`Unsupported prompt type: ${String(cfg.type)}.`);
90
90
  if ("prompter" in cfg && cfg.prompter != null) {
91
91
  const value = await cfg.prompter();
92
92
  if (cfg.type === "number" && value === void 0) return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/inquirer",
3
- "version": "1.2.0-dev.2192",
3
+ "version": "1.2.0-dev.2196",
4
4
  "description": "Inquirer.js prompt support for Optique",
5
5
  "keywords": [
6
6
  "CLI",
@@ -62,17 +62,17 @@
62
62
  "sideEffects": false,
63
63
  "dependencies": {
64
64
  "@inquirer/prompts": "^8.3.0",
65
- "@optique/core": "1.2.0-dev.2192+fbd9db90",
66
- "@optique/prompt": "1.2.0-dev.2192+fbd9db90"
65
+ "@optique/core": "1.2.0-dev.2196+93daad17",
66
+ "@optique/prompt": "1.2.0-dev.2196+93daad17"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@types/node": "^24.0.0",
70
70
  "fast-check": "^4.7.0",
71
71
  "tsdown": "^0.13.0",
72
72
  "typescript": "^5.8.3",
73
- "@optique/env": "1.2.0-dev.2192+fbd9db90",
74
- "@optique/config": "1.2.0-dev.2192+fbd9db90",
75
- "@optique/run": "1.2.0-dev.2192+fbd9db90"
73
+ "@optique/config": "1.2.0-dev.2196+93daad17",
74
+ "@optique/run": "1.2.0-dev.2196+93daad17",
75
+ "@optique/env": "1.2.0-dev.2196+93daad17"
76
76
  },
77
77
  "scripts": {
78
78
  "build": "tsdown",