Comparing version 0.5.0 to 0.5.1
15
app.js
@@ -348,5 +348,8 @@ /** | ||
init: function() { | ||
// Get the theme, it defaults to parallax | ||
var theme = cli.theme; | ||
var theme; | ||
if (typeof process.theme != 'undefined') { | ||
theme = process.theme; | ||
} else { | ||
theme = cli.theme; | ||
} | ||
/** | ||
@@ -449,3 +452,7 @@ * Quits running vtop after so many seconds | ||
// @todo: show changelog AND smush existing data into it :D | ||
upgrade.install('vtop'); | ||
upgrade.install('vtop', [ | ||
{ | ||
'theme': theme | ||
} | ||
]); | ||
} | ||
@@ -452,0 +459,0 @@ }); |
{ | ||
"name": "vtop", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Wow such top. So stats", | ||
@@ -5,0 +5,0 @@ "homepage": "http://parall.ax/vtop", |
@@ -37,3 +37,3 @@ /** | ||
*/ | ||
install: function(package) { | ||
install: function(package, vars) { | ||
var blessed = require('blessed'), | ||
@@ -67,3 +67,3 @@ program = blessed.program(), | ||
path = data.toString().trim().split(' ')[2]; | ||
} | ||
} | ||
}); | ||
@@ -80,2 +80,5 @@ child.stderr.on('data', function (data) { | ||
setTimeout(function() { | ||
for (var v in vars) { | ||
process[v] = vars[v]; | ||
} | ||
require(path); | ||
@@ -82,0 +85,0 @@ }, 1000); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1941671
973