cloudron 5.9.0 → 5.10.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudron",
3
- "version": "5.9.0",
3
+ "version": "5.10.0",
4
4
  "license": "MIT",
5
5
  "description": "Cloudron Commandline Tool",
6
6
  "main": "main.js",
@@ -72,7 +72,7 @@ async function authenticate(options) {
72
72
 
73
73
  config.setAppStoreToken(null);
74
74
 
75
- const response = await superagent.post(createUrl('/api/v1/login')).auth(email, password).send({ totpToken: options.totpToken });
75
+ const response = await superagent.post(createUrl('/api/v1/login')).auth(email, password).send({ totpToken: options.totpToken }).ok(() => true);
76
76
  if (response.statusCode === 401 && response.body.message.indexOf('TOTP') !== -1) {
77
77
  if (response.body.message === 'TOTP token missing') console.log('A 2FA TOTP Token is required for this account.');
78
78
 
@@ -323,7 +323,7 @@ function build(options) {
323
323
  url = readlineSync.question('Enter build service URL: ', { });
324
324
  }
325
325
 
326
- if (!url.startsWith('https://')) url = `https://${url}`;
326
+ if (url.indexOf('://') === -1) url = `https://${url}`;
327
327
  buildService.url = url;
328
328
  }
329
329