Comparing version 0.6.2 to 0.6.3
@@ -37,3 +37,3 @@ /* | ||
'colors': true, | ||
'analyze': 'true', | ||
'analyze': true, | ||
'gzipbin': 'gzip' | ||
@@ -40,0 +40,0 @@ }; |
@@ -515,10 +515,21 @@ /* | ||
jitsu.apps.available(result, function (err, isAvailable) { | ||
var props, fields = []; | ||
if (err) { | ||
winston.error('Unable to determine if application is deployable.'); | ||
winston.error('There was an error while checking app name / subdomain availability.'); | ||
return callback(err); | ||
} | ||
if (!isAvailable.available) { | ||
if (isAvailable.appname === false) { | ||
delete result.name; | ||
fields.push('name'); | ||
} | ||
if (isAvailable.subdomain === false) { | ||
delete result.subdomain; | ||
fields.push('subdomain'); | ||
} | ||
props = descriptors.filter(function (d) { | ||
return fields.indexOf(d.name) !== -1; | ||
}); | ||
winston.error(isAvailable.message); | ||
jitsu.prompt.addProperties(result, [subdomain], createPackage) | ||
jitsu.prompt.addProperties(result, props, createPackage); | ||
return; | ||
@@ -525,0 +536,0 @@ } |
@@ -161,8 +161,5 @@ /* | ||
if (semver.gt(pkg.version, jitsu.version)) { | ||
winston.warn('A newer version of jitsu is available. ' + | ||
'You should update immediately.'); | ||
winston.warn('If you wish to ' + 'continue'.bold + | ||
' without an update you must ' + 'type'.cyan + ' ' + | ||
'\'yes\''.magenta); | ||
winston.warn('A newer version of ' + 'jitsu'.magenta + ' is available. ' + 'You should update immediately.'); | ||
winston.help('To install the latest ' + 'jitsu'.magenta + ' type `[sudo] npm install jitsu -g`'); | ||
winston.warn('If you wish to ' + 'continue'.bold + ' without an update you must ' + 'type'.cyan + ' ' + '\'yes\''.magenta); | ||
var question = [{ | ||
@@ -169,0 +166,0 @@ message: 'Continue without updating? Bad things might happen (no)', |
@@ -11,3 +11,3 @@ { | ||
], | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"author": "Nodejitsu Inc. <support@nodejitsu.com>", | ||
@@ -18,2 +18,3 @@ "repository": { | ||
}, | ||
"preferGlobal": true, | ||
"dependencies": { | ||
@@ -31,3 +32,3 @@ "async": "0.1.x", | ||
"prompt": "0.1.x >=0.1.7", | ||
"request": "2.1.x", | ||
"request": "2.2.x", | ||
"require-analyzer": "0.4.x", | ||
@@ -34,0 +35,0 @@ "rimraf": "1.0.x", |
820011
4448
+ Addedrequest@2.2.9(transitive)
- Removedrequest@2.1.1(transitive)
Updatedrequest@2.2.x