File tree Expand file tree Collapse file tree
javascript/node/selenium-webdriver Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ class Command {
121121 * @param {Options= } opt_options The command options.
122122 * @return {!Command } The launched command.
123123 */
124- module . exports = function exec ( command , opt_options ) {
124+ function exec ( command , opt_options ) {
125125 const options = opt_options || { }
126126
127127 let proc = childProcess . spawn ( command , options . args || [ ] , {
@@ -158,6 +158,9 @@ module.exports = function exec(command, opt_options) {
158158
159159// Exported to improve generated API documentation.
160160
161- module . exports . Command = Command
162- module . exports . Options = Options
163- module . exports . Result = Result
161+ module . exports = {
162+ Command,
163+ Options,
164+ Result,
165+ exec
166+ }
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ const url = require('url')
2323
2424const httpUtil = require ( '../http/util' )
2525const io = require ( '../io' )
26- const exec = require ( '../io/exec' )
26+ const { exec } = require ( '../io/exec' )
2727const { Zip } = require ( '../io/zip' )
2828const cmd = require ( '../lib/command' )
2929const input = require ( '../lib/input' )
You can’t perform that action at this time.
0 commit comments