Skip to content

Commit

Permalink
remove deprecated npmconf
Browse files Browse the repository at this point in the history
  • Loading branch information
jung-kim committed May 22, 2016
1 parent 09a8b1c commit 294fa6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"mkdirp": "~0.5.1",
"moment": "~2.13.0",
"npm-registry-client": "~7.1.0",
"npmconf": "~2.1.2",
"octicons": "~3.5.0",
"open": "~0.0.5",
"os-homedir": "~1.0.1",
Expand Down
5 changes: 2 additions & 3 deletions source/sysinfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ var cache = require('./utils/cache');
var getmac = require('getmac');
var md5 = require('blueimp-md5');
var semver = require('semver');
var npmconf = require('npmconf');
var RegClient = require('npm-registry-client');

var sysinfo = exports;

Expand All @@ -31,10 +33,7 @@ sysinfo.getUngitPackageJsonVersion = function(callback) {

function noop() {}

var npmconf, RegClient;
sysinfo.getUngitLatestVersion = function(callback) {
if (!npmconf) npmconf = require('npmconf');
if (!RegClient) RegClient = require('npm-registry-client');
npmconf.load({}, function(err, config) {
if (err) return callback(err);
config.log = { error: noop, warn: noop, info: noop,
Expand Down

0 comments on commit 294fa6b

Please sign in to comment.