create-prisma-php-app 1.6.47 → 1.6.49
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.js +2 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -349,15 +349,12 @@ async function getAnswer(predefinedAnswers = {}) {
|
|
|
349
349
|
}
|
|
350
350
|
console.log("🚀 ~ questions:", questions);
|
|
351
351
|
const onCancel = () => {
|
|
352
|
-
return
|
|
352
|
+
return null;
|
|
353
353
|
};
|
|
354
354
|
try {
|
|
355
355
|
const response = await prompts(questions, { onCancel });
|
|
356
356
|
console.log("🚀 ~ response:", response);
|
|
357
|
-
if (Object.keys(response).length === 0
|
|
358
|
-
return null;
|
|
359
|
-
}
|
|
360
|
-
if (onCancel()) {
|
|
357
|
+
if (Object.keys(response).length === 0) {
|
|
361
358
|
return null;
|
|
362
359
|
}
|
|
363
360
|
return {
|