nightwatch-commands
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "nightwatch-commands", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "A set of Mobify specific custom commands for Nightwatch.js", | ||
@@ -30,4 +30,4 @@ "repository": { | ||
"mkdirp": "0.5.1", | ||
"selenium-download": "2.0.6" | ||
"selenium-download": "2.0.10" | ||
} | ||
} |
@@ -14,2 +14,6 @@ nightwatch-commands | ||
Currently Using https://www.npmjs.com/package/selenium-download version: 2.0.10 | ||
- selenium chromedriver 2.29 | ||
- selenium standalone server 3.4.0 | ||
### Linting | ||
@@ -16,0 +20,0 @@ JavaScript in this tool is linted with [ESLint](http://eslint.org/) according to our code [syntax and style standards](https://github.com/mobify/mobify-code-style) here at Mobify. |
@@ -1,29 +0,29 @@ | ||
const fs = require('fs') | ||
const mkdirp = require('mkdirp') | ||
const path = require('path') | ||
const selenium = require('selenium-download') | ||
var fs = require('fs'); | ||
var mkdirp = require('mkdirp'); | ||
var path = require('path'); | ||
var selenium = require('selenium-download'); | ||
// Download Selenium server and Chromedriver | ||
selenium.ensure(__dirname, error => { | ||
selenium.ensure(__dirname, function(error) { | ||
if (error) { | ||
console.error(error.stack) | ||
console.error(error.stack); | ||
} else { | ||
// Rename so that we don't need to update paths in project configs | ||
const oldSeleniumPath = path.join(__dirname, 'selenium.jar') | ||
const newSeleniumPath = path.join(__dirname, 'selenium-server.jar') | ||
// Rename so that we don't need to update paths in project configs | ||
var oldSeleniumPath = path.join(__dirname, 'selenium.jar'); | ||
var newSeleniumPath = path.join(__dirname, 'selenium-server.jar'); | ||
fs.rename(oldSeleniumPath, newSeleniumPath, error => { | ||
if (error) console.log(error) | ||
return | ||
}) | ||
fs.rename(oldSeleniumPath, newSeleniumPath, function(error) { | ||
if (error) console.log(error); | ||
return; | ||
}); | ||
mkdirp(path.join(__dirname, 'drivers')) | ||
const oldChromedriverPath = path.join(__dirname, 'chromedriver') | ||
const newChromedriverPath = path.join(__dirname, 'drivers', 'chromedriver') | ||
mkdirp(path.join(__dirname, 'drivers')); | ||
var oldChromedriverPath = path.join(__dirname, 'chromedriver'); | ||
var newChromedriverPath = path.join(__dirname, 'drivers', 'chromedriver'); | ||
fs.rename(oldChromedriverPath, newChromedriverPath, error => { | ||
if (error) console.log(error) | ||
return | ||
}) | ||
fs.rename(oldChromedriverPath, newChromedriverPath, function(error) { | ||
if (error) console.log(error); | ||
return; | ||
}); | ||
} | ||
}) | ||
}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
408
32727078
52
2
+ Addedasync@2.6.4(transitive)
+ Addedselenium-download@2.0.10(transitive)
- Removedselenium-download@2.0.6(transitive)
Updatedselenium-download@2.0.10