UNPKG

875 BSource Map (JSON)View Raw
1{"version":3,"sources":["../../../src/commands/link/pollParams.ts"],"names":["questions","Promise","resolve","reject","then"],"mappings":";;;;;;;AAOA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;;;AAPA;AACA;AACA;AACA;AACA;AACA;eAIgBA,SAAD,IACb,IAAIC,OAAJ,CAAoB,CAACC,OAAD,EAAUC,MAAV,KAAqB;AACvC,MAAI,CAACH,SAAL,EAAgB;AACdE,IAAAA,OAAO,CAAC,EAAD,CAAP;AACA;AACD;;AAED,0BAAQF,SAAR,EAAmBI,IAAnB,CAAwBF,OAAxB,EAAiCC,MAAjC;AACD,CAPD,C","sourcesContent":["/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport prompts from 'prompts';\n\nexport default (questions: any[]) =>\n new Promise<Object>((resolve, reject) => {\n if (!questions) {\n resolve({});\n return;\n }\n\n prompts(questions).then(resolve, reject);\n });\n"]}
\No newline at end of file