inquirerer 2.1.6 → 2.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/esm/prompt.js CHANGED
@@ -124,7 +124,7 @@ function generatePromptMessageSuccinct(question, ctx) {
124
124
  return lines.join('\n');
125
125
  }
126
126
  function generatePromptMessage(question, ctx) {
127
- const { message, name, type, default: def, options = [], description } = question;
127
+ const { message, name, type = 'text', default: def, options = [], description } = question;
128
128
  const lines = [];
129
129
  // 1. Title Message
130
130
  lines.push(whiteBright.bold(message || `${name}?`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inquirerer",
3
- "version": "2.1.6",
3
+ "version": "2.1.7",
4
4
  "author": "Dan Lynch <pyramation@gmail.com>",
5
5
  "description": "TypeScript-first library for building beautiful CLI interfaces with interactive prompts",
6
6
  "main": "index.js",
@@ -40,5 +40,5 @@
40
40
  "clean-ansi": "0.1.1",
41
41
  "makage": "0.1.5"
42
42
  },
43
- "gitHead": "08a44d9405de1ccb8b08757e15d1551122ad3073"
43
+ "gitHead": "fe43943672d75bc87cda91bea887c999eff46246"
44
44
  }
package/prompt.js CHANGED
@@ -131,7 +131,7 @@ function generatePromptMessageSuccinct(question, ctx) {
131
131
  return lines.join('\n');
132
132
  }
133
133
  function generatePromptMessage(question, ctx) {
134
- const { message, name, type, default: def, options = [], description } = question;
134
+ const { message, name, type = 'text', default: def, options = [], description } = question;
135
135
  const lines = [];
136
136
  // 1. Title Message
137
137
  lines.push(yanse_1.whiteBright.bold(message || `${name}?`));