@@ -33,12 +33,12 @@ const portprober = require('../net/portprober')
3333/**
3434 * @typedef {(string|!Array<string|number|!stream.Stream|null|undefined>) }
3535 */
36- var StdIoOptions // eslint-disable-line
36+ let StdIoOptions // eslint-disable-line
3737
3838/**
3939 * @typedef {(string|!IThenable<string>) }
4040 */
41- var CommandLineFlag // eslint-disable-line
41+ let CommandLineFlag // eslint-disable-line
4242
4343/**
4444 * A record object that defines the configuration options for a DriverService
@@ -196,8 +196,8 @@ class DriverService {
196196 return this . address_
197197 }
198198
199- var timeout = opt_timeoutMs || DriverService . DEFAULT_START_TIMEOUT_MS
200- var self = this
199+ const timeout = opt_timeoutMs || DriverService . DEFAULT_START_TIMEOUT_MS
200+ const self = this
201201
202202 let resolveCommand
203203 this . command_ = new Promise ( ( resolve ) => ( resolveCommand = resolve ) )
@@ -567,7 +567,7 @@ SeleniumServer.Options = class {
567567 * When a file path on the local machine running this script is entered with
568568 * {@link webdriver.WebElement#sendKeys WebElement#sendKeys}, this file detector
569569 * will transfer the specified file to the Selenium server's host; the sendKeys
570- * command will be updated to use the transfered file's path.
570+ * command will be updated to use the transferred file's path.
571571 *
572572 * __Note:__ This class depends on a non-standard command supported on the
573573 * Java Selenium server. The file detector will fail if used with a server that
@@ -618,7 +618,10 @@ class FileDetector extends input.FileDetector {
618618
619619// PUBLIC API
620620
621- exports . DriverService = DriverService
622- exports . FileDetector = FileDetector
623- exports . SeleniumServer = SeleniumServer
624- exports . ServiceOptions = ServiceOptions // Exported for API docs.
621+ module . exports = {
622+ DriverService,
623+ FileDetector,
624+ SeleniumServer,
625+ // Exported for API docs.
626+ ServiceOptions
627+ }
0 commit comments