Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

derby-webdriverio

Package Overview
Dependencies
Maintainers
5
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

derby-webdriverio - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

32

index.js

@@ -1,12 +0,15 @@

// Generated by CoffeeScript 1.10.0
// Generated by CoffeeScript 1.12.7
(function() {
var _, webdriverDefaultConf;
var defaults, defaultsDeep, webdriverDefaultConf;
webdriverDefaultConf = require('./webdriver.default');
_ = require('lodash');
defaults = require('lodash/defaults');
defaultsDeep = require('lodash/defaultsDeep');
module.exports = function(customConfig) {
var base, base1, base2, config, e, error, hasCoffee, ref;
config = _.defaults({}, customConfig, webdriverDefaultConf, {
var SS_HOST, SS_PATH, SS_PORT, TRAVIS, base, base1, base2, config, e, hasCoffee, ref, ref1;
ref = process.env, TRAVIS = ref.TRAVIS, SS_HOST = ref.SS_HOST, SS_PORT = ref.SS_PORT, SS_PATH = ref.SS_PATH;
config = defaults({}, customConfig, webdriverDefaultConf, {
specs: ['./test/e2e/**/*.js', './test/e2e/**/*.coffee'],

@@ -19,7 +22,7 @@ exclude: ['./test/e2e/**/_*.js', './test/e2e/**/_*.coffee'],

}
_.defaultsDeep(config.server, {
defaultsDeep(config.server, {
startCommand: 'npm start',
env: {
MONGO_URL: 'mongodb://localhost:27017/test',
PORT: ((ref = config.baseUrl.match(/:(\d+)/)) != null ? ref[1] : void 0) || 80
PORT: ((ref1 = config.baseUrl.match(/:(\d+)/)) != null ? ref1[1] : void 0) || 80
},

@@ -40,3 +43,3 @@ waitServer: {

}
_.defaults(config, {
defaults(config, {
framework: 'mocha',

@@ -51,3 +54,3 @@ reporter: 'spec',

});
if (process.env.TRAVIS) {
if (TRAVIS) {
if ((base = config.desiredCapabilities).chromeOptions == null) {

@@ -60,6 +63,15 @@ base.chromeOptions = {};

if ((base2 = config.desiredCapabilities.chromeOptions).binary == null) {
base2.binary = __dirname + '/chrome-linux/chrome';
base2.binary = '/usr/bin/chromium-browser';
}
config.desiredCapabilities.firefox_binary = '/usr/local/bin/firefox';
}
if (SS_HOST) {
config.host = SS_HOST;
}
if (SS_PORT) {
config.port = SS_PORT;
}
if (SS_PATH) {
config.path = SS_PATH;
}
config.before = require('./lib/before')(config, config.before);

@@ -66,0 +78,0 @@ config.after = require('./lib/after')(config, config.after);

@@ -1,7 +0,11 @@

// Generated by CoffeeScript 1.10.0
// Generated by CoffeeScript 1.12.7
(function() {
var Bluebird;
var Bluebird, natural, nounInflector;
Bluebird = require('bluebird');
natural = require('natural');
nounInflector = new natural.NounInflector();
module.exports = function(webdriverConf, customAfter) {

@@ -11,3 +15,16 @@ return function(failures, pid) {

return Bluebird.mapSeries(Object.keys(webdriverConf.browsers), function(groupName) {
return global[groupName].end();
var amount, j, results, singularName;
amount = webdriverConf.browsers[groupName];
if (amount === 1 || amount === true) {
return global[groupName].end();
} else {
singularName = nounInflector.singularize(groupName);
return Bluebird.mapSeries((function() {
results = [];
for (var j = 0; 0 <= amount ? j < amount : j > amount; 0 <= amount ? j++ : j--){ results.push(j); }
return results;
}).apply(this), function(i) {
return global[groupName].select(singularName + i).end();
});
}
});

@@ -14,0 +31,0 @@ }).then(function() {

@@ -1,4 +0,4 @@

// Generated by CoffeeScript 1.10.0
// Generated by CoffeeScript 1.12.7
(function() {
var Bluebird, _, addCustomCommands, chai, chaiAsPromised, exec, natural, nounInflector, spawn, waitServer, webdriverio,
var Bluebird, addCustomCommands, chai, chaiAsPromised, exec, isNumber, natural, nounInflector, spawn, waitServer, webdriverio,
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };

@@ -12,3 +12,3 @@

_ = require('lodash');
isNumber = require('lodash/isNumber');

@@ -37,3 +37,3 @@ chai = require('chai');

global[groupName] = webdriverio.remote(webdriverConf);
} else if (_.isNumber(value) && value > 0) {
} else if (isNumber(value) && value > 0) {
global[groupName] = webdriverio.multiremote((function() {

@@ -104,3 +104,16 @@ var i, j, ref1, res, singularName;

return Bluebird.mapSeries(Object.keys(webdriverConf.browsers), function(groupName) {
return global[groupName].init().timeoutsAsyncScript(webdriverConf.waitforTimeout);
var amount, j, results, singularName;
amount = webdriverConf.browsers[groupName];
if (amount === 1 || amount === true) {
return global[groupName].init().timeoutsAsyncScript(webdriverConf.waitforTimeout);
} else {
singularName = nounInflector.singularize(groupName);
return Bluebird.mapSeries((function() {
results = [];
for (var j = 0; 0 <= amount ? j < amount : j > amount; 0 <= amount ? j++ : j--){ results.push(j); }
return results;
}).apply(this), function(i) {
return global[groupName].select(singularName + i).init().timeoutsAsyncScript(webdriverConf.waitforTimeout);
});
}
});

@@ -107,0 +120,0 @@ });

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.10.0
// Generated by CoffeeScript 1.12.7
(function() {

@@ -118,2 +118,6 @@ module.exports = function(browser) {

browser.addCommand('submitFormAndWait', makeWaitForPageLoad('submitForm'));
browser.addCommand('selectByVisibleTextAndWait', makeWaitForPageLoad('selectByVisibleText'));
browser.addCommand('selectByValueAndWait', makeWaitForPageLoad('selectByValue'));
browser.addCommand('selectByIndexAndWait', makeWaitForPageLoad('selectByIndex'));
browser.addCommand('selectByAttributeAndWait', makeWaitForPageLoad('selectByAttribute'));
modelMethod = function(method, isAsync) {

@@ -120,0 +124,0 @@ return function() {

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.10.0
// Generated by CoffeeScript 1.12.7

@@ -9,3 +9,3 @@ /*

(function() {
var Bluebird, _, net, once, request;
var Bluebird, defaults, net, once, request;

@@ -18,3 +18,3 @@ net = require('net');

_ = require('lodash');
defaults = require('lodash/defaults');

@@ -26,3 +26,3 @@ Bluebird = require('bluebird');

var callback, client, err, wait;
options = _.defaults({}, options, {
options = defaults({}, options, {
timeout: 10 * 1000,

@@ -29,0 +29,0 @@ interval: 800,

{
"name": "derby-webdriverio",
"version": "4.0.0",
"version": "4.0.1",
"description": "Webdriver.io for Derby.js",

@@ -34,3 +34,3 @@ "main": "index.js",

"css-to-xpath": "0.0.3",
"lodash": "^3.8.0",
"lodash": "^4.17.10",
"natural": "^0.2.1",

@@ -44,3 +44,3 @@ "once": "^1.3.2",

"peerDependencies": {
"webdriverio": ">=4.0.0 <5.0.0 || >=400.0.0 <500.0.0",
"webdriverio": "^3.3",
"mocha": "^2.3",

@@ -47,0 +47,0 @@ "chai": "^3.4"

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.10.0
// Generated by CoffeeScript 1.12.7
(function() {

@@ -3,0 +3,0 @@ module.exports = function(app, waitTimeout) {

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc