Comparing version 0.7.6 to 0.7.7-1
@@ -239,6 +239,11 @@ /* | ||
// | ||
apps.list = function (callback) { | ||
apps.list = function (username, callback) { | ||
winston.info('Listing apps'); | ||
jitsu.apps.list(function (err, apps) { | ||
if (!callback) { | ||
callback = username; | ||
username = jitsu.config.get('username'); | ||
} | ||
jitsu.apps.list(username, function (err, apps) { | ||
if (err) { | ||
@@ -245,0 +250,0 @@ console.log(err); |
@@ -187,3 +187,4 @@ /* | ||
winston.info('Database type: ' + database.type); | ||
winston.info('Connection url: ' + ('http://' + subdomain + '.couchone.com:5984').grey); | ||
winston.info('Connection url: ' + ('http://' + subdomain + '.iriscouch.com:5984').grey); | ||
winston.info('SSL connection url: ' + ('https://' + subdomain + '.iriscouch.com:6984').grey); | ||
break; | ||
@@ -190,0 +191,0 @@ |
@@ -46,3 +46,3 @@ /* | ||
jitsu.apps.update(jitsu.config.get('username') + '/' + app.name, { env: app.env }, callback); | ||
jitsu.apps.update(app.name, { env: app.env }, callback); | ||
}); | ||
@@ -81,6 +81,2 @@ }; | ||
if(app.name.search('/') === -1){ | ||
app.name = jitsu.config.get('username') + '/' + app.name; | ||
} | ||
winston.data([key.yellow, app.env[key].toString().magenta].join(' ')); | ||
@@ -115,8 +111,2 @@ callback(); | ||
var value = jitsu.config.get(key); | ||
if (!value) { | ||
winston.warn('No configuration value for ' + key.yellow); | ||
return callback(); | ||
} | ||
viewApp(callback, function (err, app) { | ||
@@ -165,6 +155,2 @@ if (!app.env[key]) { | ||
} | ||
if(app.name.search('/') === -1){ | ||
app.name = jitsu.config.get('username') + '/' + app.name; | ||
} | ||
@@ -213,6 +199,2 @@ winston.info('Listing all environment variables for: ' + app.name.magenta); | ||
if(pkg.name.search('/') === -1){ | ||
pkg.name = jitsu.config.get('username') + '/' + pkg.name; | ||
} | ||
jitsu.apps.view(pkg.name, function (err, app) { | ||
@@ -231,5 +213,2 @@ return err ? callback(err) : success(null, app); | ||
function viewAppByName (appName, callback, success) { | ||
if (appName.search('/') === -1) { | ||
appName = jitsu.config.get('username') + '/' + appName; | ||
} | ||
jitsu.apps.view(appName, function (err, app) { | ||
@@ -236,0 +215,0 @@ return err ? callback(err) : success(null, app); |
@@ -35,3 +35,3 @@ /* | ||
jitsu.logs.byUser(amount, function (err, apps) { | ||
jitsu.logs.byUser(jitsu.config.get('username'), amount, function (err, apps) { | ||
if (err) { | ||
@@ -38,0 +38,0 @@ return callback(err); |
@@ -383,3 +383,3 @@ /* | ||
jitsu.users.update(options, function (err) { | ||
jitsu.users.update(jitsu.config.get('username'), options, function (err) { | ||
if(err) { | ||
@@ -386,0 +386,0 @@ callback(err) |
@@ -11,3 +11,3 @@ { | ||
], | ||
"version": "0.7.6", | ||
"version": "0.7.7-1", | ||
"author": "Nodejitsu Inc. <support@nodejitsu.com>", | ||
@@ -31,3 +31,3 @@ "repository": { | ||
"prompt": "0.1.x >=0.1.7", | ||
"request": "2.2.x", | ||
"request": "2.9.x", | ||
"require-analyzer": "0.4.x", | ||
@@ -34,0 +34,0 @@ "rimraf": "1.0.x", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
4
832026
12
4752
Updatedrequest@2.9.x