Comparing version 2.0.3 to 2.0.4
@@ -109,3 +109,3 @@ module.exports = chainit; | ||
if (typeof args[args.length - 1] === 'function') { | ||
if((typeof args[args.length - 1] === 'function') && (!ctx.constructor || ctx.constructor.name !== 'WebdriverJs' || fnName.indexOf('execute') === -1 || args.length > 1)) { | ||
customCb = args.pop(); | ||
@@ -112,0 +112,0 @@ } |
{ | ||
"name": "chainit", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "Turn an asynchronous JavaScript api into an asynchronous chainable JavaScript api.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
22528
1