Skip to content

Commit

Permalink
Fix #303 (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
Don Goodman-Wilson authored Dec 21, 2016
1 parent d19aadb commit 4169978
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var ConsoleTransport = require('winston').transports.Console;
var bind = require('lodash').bind;
var winston = require('winston');
var os = require('os');
var pkginfo = require('pkginfo')(module, 'version', 'repository'); // eslint-disable-line no-unused-vars
var pkginfo = require('pkginfo')(module, 'version', 'name'); // eslint-disable-line no-unused-vars


/**
Expand All @@ -24,7 +24,7 @@ var getLogger = function getLogger(optLogLevel, optTransport) {
};

// TODO we can do this better
var versionStr = module.exports.repository.replace('/', ':') + '/' + module.exports.version + ' '
var versionStr = module.exports.name.replace('/', ':') + '/' + module.exports.version + ' '
+ os.platform() + '/' + os.release() + ' '
+ 'node/' + process.version.replace('v', '');

Expand Down
4 changes: 2 additions & 2 deletions test/helpers.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
var expect = require('chai').expect;
var helpers = require('../lib/helpers');
var os = require('os');
var pkginfo = require('pkginfo')(module, 'version', 'repository'); // eslint-disable-line no-unused-vars
var pkginfo = require('pkginfo')(module, 'version', 'name'); // eslint-disable-line no-unused-vars

var userAgent = module.exports.repository.replace('/', ':') + '/' + module.exports.version
var userAgent = module.exports.name.replace('/', ':') + '/' + module.exports.version
+ ' ' + os.platform() + '/' + os.release()
+ ' node/' + process.version.replace('v', '');

Expand Down

0 comments on commit 4169978

Please sign in to comment.