Skip to content

Commit

Permalink
Fix npm test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilkh committed May 15, 2016
1 parent 0048aac commit 0772ea0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
'use strict';
var lazyRequire = require('lazy-req')(require);
var spawn = require('child_process').spawn;
var path = require('path');
var format = require('util').format;
var Configstore = lazyRequire('configstore');
var lazyRequire = require('lazy-req')(require);
var configstore = lazyRequire('configstore');
var chalk = lazyRequire('chalk');
var semverDiff = lazyRequire('semver-diff');
var latestVersion = lazyRequire('latest-version');
Expand Down Expand Up @@ -36,7 +36,8 @@ function UpdateNotifier(options) {

if (!this.hasCallback) {
try {
this.config = new (Configstore())('update-notifier-' + this.packageName, {
var ConfigStore = configstore();
this.config = new ConfigStore('update-notifier-' + this.packageName, {
optOut: false,
// init with the current time so the first check is only
// after the set interval, so not to bother users right away
Expand Down

0 comments on commit 0772ea0

Please sign in to comment.