A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/seleniumhq/selenium/commit/f4ce77d24ee364279326c87a5ddc8a3ea386b88b below:

[JS] destructuring exports · SeleniumHQ/selenium@f4ce77d · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+8

-5

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+8

-5

lines changed Original file line number Diff line number Diff line change

@@ -121,7 +121,7 @@ class Command {

121 121

* @param {Options=} opt_options The command options.

122 122

* @return {!Command} The launched command.

123 123

*/

124 -

module.exports = function exec(command, opt_options) {

124 +

function exec(command, opt_options) {

125 125

const options = opt_options || {}

126 126 127 127

let proc = childProcess.spawn(command, options.args || [], {

@@ -158,6 +158,9 @@ module.exports = function exec(command, opt_options) {

158 158 159 159

// Exported to improve generated API documentation.

160 160 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')

23 23 24 24

const httpUtil = require('../http/util')

25 25

const io = require('../io')

26 -

const exec = require('../io/exec')

26 +

const { exec } = require('../io/exec')

27 27

const { Zip } = require('../io/zip')

28 28

const cmd = require('../lib/command')

29 29

const input = require('../lib/input')

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4