mirror of https://github.com/lukechilds/docs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
340 B
17 lines
340 B
'use strict';
|
|
|
|
var util = require('../util');
|
|
var info = require('../tasks/info');
|
|
|
|
var getVersions = function getVersions() {
|
|
return info.getInstalledVersion().then(function (binary) {
|
|
return {
|
|
package: util.pkgVersion(),
|
|
binary: binary || 'not installed'
|
|
};
|
|
});
|
|
};
|
|
|
|
module.exports = {
|
|
getVersions: getVersions
|
|
};
|