| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4f2bf8c commit 81592ff
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -267,11 +267,13 @@ overrides: | |||
| 267 | 267 | - ./_stream_*.js | |
| 268 | 268 | - ./_tls_common.js | |
| 269 | 269 | - ./assert/*.js | |
| 270 | + - ./child_process.js | ||
| 270 | 271 | - ./cluster.js | |
| 271 | 272 | - ./console.js | |
| 272 | 273 | - ./constants.js | |
| 273 | 274 | - ./fs.js | |
| 274 | 275 | - ./internal/assert.js | |
| 276 | + - ./internal/child_process.js | ||
| 275 | 277 | - ./internal/child_process/*.js | |
| 276 | 278 | - ./internal/cli_table.js | |
| 277 | 279 | - ./internal/cluster/*.js | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -89,7 +89,7 @@ const { | |||
| 89 | 89 | getValidStdio, | |
| 90 | 90 | setupChannel, | |
| 91 | 91 | ChildProcess, | |
| 92 | - stdioStringToArray | ||
| 92 | + stdioStringToArray, | ||
| 93 | 93 | } = child_process; | |
| 94 | 94 | ||
| 95 | 95 | const MAX_BUFFER = 1024 * 1024; | |
@@ -200,7 +200,7 @@ function normalizeExecArgs(command, options, callback) { | |||
| 200 | 200 | return { | |
| 201 | 201 | file: command, | |
| 202 | 202 | options: options, | |
| 203 | - callback: callback | ||
| 203 | + callback: callback, | ||
| 204 | 204 | }; | |
| 205 | 205 | } | |
| 206 | 206 | ||
@@ -255,7 +255,7 @@ const customPromiseExecFunction = (orig) => { | |||
| 255 | 255 | ObjectDefineProperty(exec, promisify.custom, { | |
| 256 | 256 | __proto__: null, | |
| 257 | 257 | enumerable: false, | |
| 258 | - value: customPromiseExecFunction(exec) | ||
| 258 | + value: customPromiseExecFunction(exec), | ||
| 259 | 259 | }); | |
| 260 | 260 | ||
| 261 | 261 | function normalizeExecFileArgs(file, args, options, callback) { | |
@@ -334,7 +334,7 @@ function execFile(file, args, options, callback) { | |||
| 334 | 334 | cwd: null, | |
| 335 | 335 | env: null, | |
| 336 | 336 | shell: false, | |
| 337 | - ...options | ||
| 337 | + ...options, | ||
| 338 | 338 | }; | |
| 339 | 339 | ||
| 340 | 340 | // Validate the timeout, if present. | |
@@ -353,7 +353,7 @@ function execFile(file, args, options, callback) { | |||
| 353 | 353 | signal: options.signal, | |
| 354 | 354 | uid: options.uid, | |
| 355 | 355 | windowsHide: !!options.windowsHide, | |
| 356 | - windowsVerbatimArguments: !!options.windowsVerbatimArguments | ||
| 356 | + windowsVerbatimArguments: !!options.windowsVerbatimArguments, | ||
| 357 | 357 | }); | |
| 358 | 358 | ||
| 359 | 359 | let encoding; | |
@@ -419,7 +419,7 @@ function execFile(file, args, options, callback) { | |||
| 419 | 419 | ex = genericNodeError(`Command failed: ${cmd}\n${stderr}`, { | |
| 420 | 420 | code: code < 0 ? getSystemErrorName(code) : code, | |
| 421 | 421 | killed: child.killed || killed, | |
| 422 | - signal: signal | ||
| 422 | + signal: signal, | ||
| 423 | 423 | }); | |
| 424 | 424 | } | |
| 425 | 425 | ||
@@ -530,7 +530,7 @@ function execFile(file, args, options, callback) { | |||
| 530 | 530 | ObjectDefineProperty(execFile, promisify.custom, { | |
| 531 | 531 | __proto__: null, | |
| 532 | 532 | enumerable: false, | |
| 533 | - value: customPromiseExecFunction(execFile) | ||
| 533 | + value: customPromiseExecFunction(execFile), | ||
| 534 | 534 | }); | |
| 535 | 535 | ||
| 536 | 536 | function copyProcessEnvToEnv(env, name, optionEnv) { | |
@@ -827,7 +827,7 @@ function spawn(file, args, options) { | |||
| 827 | 827 | function spawnSync(file, args, options) { | |
| 828 | 828 | options = { | |
| 829 | 829 | maxBuffer: MAX_BUFFER, | |
| 830 | - ...normalizeSpawnArguments(file, args, options) | ||
| 830 | + ...normalizeSpawnArguments(file, args, options), | ||
| 831 | 831 | }; | |
| 832 | 832 | ||
| 833 | 833 | debug('spawnSync', options); | |
@@ -1012,5 +1012,5 @@ module.exports = { | |||
| 1012 | 1012 | execSync, | |
| 1013 | 1013 | fork, | |
| 1014 | 1014 | spawn, | |
| 1015 | - spawnSync | ||
| 1015 | + spawnSync, | ||
| 1016 | 1016 | }; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,8 +26,8 @@ const { | |||
| 26 | 26 | ERR_IPC_DISCONNECTED, | |
| 27 | 27 | ERR_IPC_ONE_PIPE, | |
| 28 | 28 | ERR_IPC_SYNC_FORK, | |
| 29 | - ERR_MISSING_ARGS | ||
| 30 | - } | ||
| 29 | + ERR_MISSING_ARGS, | ||
| 30 | + }, | ||
| 31 | 31 | } = require('internal/errors'); | |
| 32 | 32 | const { | |
| 33 | 33 | validateArray, | |
@@ -47,7 +47,7 @@ const { | |||
| 47 | 47 | kReadBytesOrError, | |
| 48 | 48 | kArrayBufferOffset, | |
| 49 | 49 | kLastWriteWasAsync, | |
| 50 | - streamBaseState | ||
| 50 | + streamBaseState, | ||
| 51 | 51 | } = internalBinding('stream_wrap'); | |
| 52 | 52 | const { Pipe, constants: PipeConstants } = internalBinding('pipe_wrap'); | |
| 53 | 53 | const { TCP } = internalBinding('tcp_wrap'); | |
@@ -70,7 +70,7 @@ const { | |||
| 70 | 70 | UV_ENFILE, | |
| 71 | 71 | UV_ENOENT, | |
| 72 | 72 | UV_ENOSYS, | |
| 73 | - UV_ESRCH | ||
| 73 | + UV_ESRCH, | ||
| 74 | 74 | } = internalBinding('uv'); | |
| 75 | 75 | ||
| 76 | 76 | const { SocketListSend, SocketListReceive } = SocketList; | |
@@ -97,7 +97,7 @@ const handleConversion = { | |||
| 97 | 97 | ||
| 98 | 98 | got(message, handle, emit) { | |
| 99 | 99 | emit(handle); | |
| 100 | - } | ||
| 100 | + }, | ||
| 101 | 101 | }, | |
| 102 | 102 | ||
| 103 | 103 | 'net.Server': { | |
@@ -112,7 +112,7 @@ const handleConversion = { | |||
| 112 | 112 | server.listen(handle, () => { | |
| 113 | 113 | emit(server); | |
| 114 | 114 | }); | |
| 115 | - } | ||
| 115 | + }, | ||
| 116 | 116 | }, | |
| 117 | 117 | ||
| 118 | 118 | 'net.Socket': { | |
@@ -186,7 +186,7 @@ const handleConversion = { | |||
| 186 | 186 | const socket = new net.Socket({ | |
| 187 | 187 | handle: handle, | |
| 188 | 188 | readable: true, | |
| 189 | - writable: true | ||
| 189 | + writable: true, | ||
| 190 | 190 | }); | |
| 191 | 191 | ||
| 192 | 192 | // If the socket was created by net.Server we will track the socket | |
@@ -195,12 +195,12 @@ const handleConversion = { | |||
| 195 | 195 | // Add socket to connections list | |
| 196 | 196 | const socketList = getSocketList('got', this, message.key); | |
| 197 | 197 | socketList.add({ | |
| 198 | - socket: socket | ||
| 198 | + socket: socket, | ||
| 199 | 199 | }); | |
| 200 | 200 | } | |
| 201 | 201 | ||
| 202 | 202 | emit(socket); | |
| 203 | - } | ||
| 203 | + }, | ||
| 204 | 204 | }, | |
| 205 | 205 | ||
| 206 | 206 | 'dgram.Native': { | |
@@ -212,7 +212,7 @@ const handleConversion = { | |||
| 212 | 212 | ||
| 213 | 213 | got(message, handle, emit) { | |
| 214 | 214 | emit(handle); | |
| 215 | - } | ||
| 215 | + }, | ||
| 216 | 216 | }, | |
| 217 | 217 | ||
| 218 | 218 | 'dgram.Socket': { | |
@@ -230,8 +230,8 @@ const handleConversion = { | |||
| 230 | 230 | socket.bind(handle, () => { | |
| 231 | 231 | emit(socket); | |
| 232 | 232 | }); | |
| 233 | - } | ||
| 234 | - } | ||
| 233 | + }, | ||
| 234 | + }, | ||
| 235 | 235 | }; | |
| 236 | 236 | ||
| 237 | 237 | function stdioStringToArray(stdio, channel) { | |
@@ -587,7 +587,7 @@ function setupChannel(target, channel, serializationMode) { | |||
| 587 | 587 | target.channel = val; | |
| 588 | 588 | }, channelDeprecationMsg, 'DEP0129'), | |
| 589 | 589 | configurable: true, | |
| 590 | - enumerable: false | ||
| 590 | + enumerable: false, | ||
| 591 | 591 | }); | |
| 592 | 592 | ||
| 593 | 593 | target._handleQueue = null; | |
@@ -598,7 +598,7 @@ function setupChannel(target, channel, serializationMode) { | |||
| 598 | 598 | const { | |
| 599 | 599 | initMessageChannel, | |
| 600 | 600 | parseChannelMessages, | |
| 601 | - writeChannelMessage | ||
| 601 | + writeChannelMessage, | ||
| 602 | 602 | } = serialization[serializationMode]; | |
| 603 | 603 | ||
| 604 | 604 | let pendingHandle = null; | |
@@ -784,7 +784,7 @@ function setupChannel(target, channel, serializationMode) { | |||
| 784 | 784 | message = { | |
| 785 | 785 | cmd: 'NODE_HANDLE', | |
| 786 | 786 | type: null, | |
| 787 | - msg: message | ||
| 787 | + msg: message, | ||
| 788 | 788 | }; | |
| 789 | 789 | ||
| 790 | 790 | if (handle instanceof net.Socket) { | |
@@ -1015,7 +1015,7 @@ function getValidStdio(stdio, sync) { | |||
| 1015 | 1015 | const a = { | |
| 1016 | 1016 | type: stdio === 'overlapped' ? 'overlapped' : 'pipe', | |
| 1017 | 1017 | readable: i === 0, | |
| 1018 | - writable: i !== 0 | ||
| 1018 | + writable: i !== 0, | ||
| 1019 | 1019 | }; | |
| 1020 | 1020 | ||
| 1021 | 1021 | if (!sync) | |
@@ -1038,17 +1038,17 @@ function getValidStdio(stdio, sync) { | |||
| 1038 | 1038 | ArrayPrototypePush(acc, { | |
| 1039 | 1039 | type: 'pipe', | |
| 1040 | 1040 | handle: ipc, | |
| 1041 | - ipc: true | ||
| 1041 | + ipc: true, | ||
| 1042 | 1042 | }); | |
| 1043 | 1043 | } else if (stdio === 'inherit') { | |
| 1044 | 1044 | ArrayPrototypePush(acc, { | |
| 1045 | 1045 | type: 'inherit', | |
| 1046 | - fd: i | ||
| 1046 | + fd: i, | ||
| 1047 | 1047 | }); | |
| 1048 | 1048 | } else if (typeof stdio === 'number' || typeof stdio.fd === 'number') { | |
| 1049 | 1049 | ArrayPrototypePush(acc, { | |
| 1050 | 1050 | type: 'fd', | |
| 1051 | - fd: typeof stdio === 'number' ? stdio : stdio.fd | ||
| 1051 | + fd: typeof stdio === 'number' ? stdio : stdio.fd, | ||
| 1052 | 1052 | }); | |
| 1053 | 1053 | } else if (getHandleWrapType(stdio) || getHandleWrapType(stdio.handle) || | |
| 1054 | 1054 | getHandleWrapType(stdio._handle)) { | |
@@ -1060,7 +1060,7 @@ function getValidStdio(stdio, sync) { | |||
| 1060 | 1060 | type: 'wrap', | |
| 1061 | 1061 | wrapType: getHandleWrapType(handle), | |
| 1062 | 1062 | handle: handle, | |
| 1063 | - _stdio: stdio | ||
| 1063 | + _stdio: stdio, | ||
| 1064 | 1064 | }); | |
| 1065 | 1065 | } else if (isArrayBufferView(stdio) || typeof stdio === 'string') { | |
| 1066 | 1066 | if (!sync) { | |
@@ -1128,5 +1128,5 @@ module.exports = { | |||
| 1128 | 1128 | setupChannel, | |
| 1129 | 1129 | getValidStdio, | |
| 1130 | 1130 | stdioStringToArray, | |
| 1131 | - spawnSync | ||
| 1131 | + spawnSync, | ||
| 1132 | 1132 | }; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments