@renbostudios/edge-ota 0.2.5 → 0.2.6
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 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -228,18 +228,8 @@ program
|
|
|
228
228
|
let projectId = options.project;
|
|
229
229
|
if (!serverUrl) {
|
|
230
230
|
console.log(` ${colors.dim}no --server flag provided${colors.reset}`);
|
|
231
|
-
const answer = await askQuestion(` server url [
|
|
232
|
-
|
|
233
|
-
serverUrl = "http://localhost:3000";
|
|
234
|
-
}
|
|
235
|
-
else if (answer.toLowerCase().includes("host")) {
|
|
236
|
-
console.log(` ${colors.yellow}hint${colors.reset} use your hosted EdgeOTA instance (e.g. https://api.edge-ota.renbo.site)`);
|
|
237
|
-
const hostedAnswer = await askQuestion(` hosted server url: `);
|
|
238
|
-
serverUrl = hostedAnswer.trim() || "http://localhost:3000";
|
|
239
|
-
}
|
|
240
|
-
else {
|
|
241
|
-
serverUrl = answer;
|
|
242
|
-
}
|
|
231
|
+
const answer = await askQuestion(` server url [https://api.edge-ota.renbo.site]: `);
|
|
232
|
+
serverUrl = answer.trim() || "https://api.edge-ota.renbo.site";
|
|
243
233
|
}
|
|
244
234
|
if (!projectId && !options.server) {
|
|
245
235
|
const pAnswer = await askQuestion(` project id (optional, press Enter to skip): `);
|
package/package.json
CHANGED