Skip to content

Commit

Permalink
Merge pull request #3 from mitchhentges/update-deps
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
tomitm committed Feb 27, 2016
2 parents f491364 + 654d7fb commit 7007e13
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions lib/config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
var mkdirp = require( 'mkdirp' ),
fs = require( 'fs' ),
path = require( 'path' ),
package = require( '../package' ),
defaultConfigFile = require( 'osenv' ).home() + '/.config/' + package.name + '/config.json';
packageJson = require( '../package' ),
defaultConfigFile = require( 'osenv' ).home() + '/.config/' + packageJson.name + '/config.json';

exports.defaultConfigFile = defaultConfigFile;

Expand Down
10 changes: 5 additions & 5 deletions lib/detect.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var spawn = require( 'child_process' ).spawn,
name: 'chrome',
re: /Google Chrome (\S+)/,
type: 'chrome',
profile: true,
profile: true
},
'google-chrome-canary': {
name: 'canary',
Expand All @@ -19,26 +19,26 @@ var spawn = require( 'child_process' ).spawn,
name: 'chromium',
re: /Chromium (\S+)/,
type: 'chrome',
profile: true,
profile: true
},
'chromium-browser': {
name: 'chromium',
re: /Chromium (\S+)/,
type: 'chrome',
profile: true,
profile: true
},
'firefox': {
name: 'firefox',
re: /Mozilla Firefox (\S+)/,
type: 'firefox',
profile: true,
profile: true
},
'phantomjs': {
name: 'phantomjs',
re: /(\S+)/,
type: 'phantom',
headless: true,
profile: false,
profile: false
},
'safari': {
name: 'safari',
Expand Down
6 changes: 3 additions & 3 deletions lib/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ setups.firefox = function( browser, uri, options, callback ) {
host = JSON.stringify( match[ 1 ] ),
port = match[ 2 ] || 80;

_.extend( prefs, {
_.assign( prefs, {
'network.proxy.http': host,
'network.proxy.http_port': +port,
'network.proxy.type': 1,
Expand All @@ -53,7 +53,7 @@ setups.firefox = function( browser, uri, options, callback ) {
}

if ( options.prefs ) {
_.extend( prefs, options.prefs );
_.assign( prefs, options.prefs );
}

prefs = Object.keys( prefs ).map( function( name ) {
Expand Down Expand Up @@ -284,7 +284,7 @@ module.exports = function runBrowser( config, name, version ) {

browser.tempDir = options.tempDir;

callback( null, new Instance( _.extend( {}, browser, {
callback( null, new Instance( _.assign( {}, browser, {
args: args,
detached: options.detached,
env: env,
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
"res": "res"
},
"dependencies": {
"headless": "^0.1.7",
"lodash": "^2.4.1",
"headless": "^1.0.0",
"lodash": "^4.5.1",
"mkdirp": "^0.5.0",
"osenv": "^0.1.0",
"plist": "^1.0.1",
"win-detect-browsers": "^1.0.1",
"win-detect-browsers": "^2.1.0",
"uid": "0.0.2",
"rimraf": "~2.2.8"
"rimraf": "~2.5.2"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -49,7 +49,7 @@
"node": ">=0.8"
},
"devDependencies": {
"jscs": "^1.5.8",
"jscs": "^2.10.1",
"jshint": "^2.5.2"
}
}

0 comments on commit 7007e13

Please sign in to comment.