@wdio/sync
Advanced tools
Comparing version 5.4.1 to 5.4.2
@@ -17,12 +17,9 @@ "use strict"; | ||
*/ | ||
function runFnInFiberContext(fn, done) { | ||
function runFnInFiberContext(fn) { | ||
return function (...args) { | ||
return (0, _fibers.default)(() => { | ||
return new Promise(resolve => (0, _fibers.default)(() => { | ||
const result = fn.apply(this, args); | ||
if (typeof done === 'function') { | ||
done(result); | ||
} | ||
}).run(); | ||
resolve(result); | ||
}).run()); | ||
}; | ||
} |
{ | ||
"name": "@wdio/sync", | ||
"version": "5.4.1", | ||
"version": "5.4.2", | ||
"description": "A WebdriverIO plugin. Helper module to run WebdriverIO commands synchronously", | ||
@@ -35,3 +35,3 @@ "author": "Christian Bromann <christian@saucelabs.com>", | ||
"dependencies": { | ||
"@wdio/config": "^5.4.1", | ||
"@wdio/config": "^5.4.2", | ||
"@wdio/logger": "^5.4.1", | ||
@@ -43,3 +43,3 @@ "fibers": "^3.1.1" | ||
}, | ||
"gitHead": "7e099b188e163f06dfa4c7be21f0468477e2fe94" | ||
"gitHead": "f0341fd33304e28ab8d2827f64dfa9dad94b312d" | ||
} |
16970
413
Updated@wdio/config@^5.4.2