Socket
Socket
Sign inDemoInstall

nightwatch-commands

Package Overview
Dependencies
69
Maintainers
4
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc