| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 48cf984 commit f914bff
43 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -263,10 +263,8 @@ globals: | |||
| 263 | 263 | primordials: false | |
| 264 | 264 | overrides: | |
| 265 | 265 | - files: | |
| 266 | - - ./*/promises.js | ||
| 267 | - - ./_stream_*.js | ||
| 268 | - - ./_tls_common.js | ||
| 269 | - - ./assert/*.js | ||
| 266 | + - ./*/*.js | ||
| 267 | + - ./_*.js | ||
| 270 | 268 | - ./child_process.js | |
| 271 | 269 | - ./cluster.js | |
| 272 | 270 | - ./console.js | |
@@ -288,7 +286,7 @@ overrides: | |||
| 288 | 286 | - ./internal/js_stream_socket.js | |
| 289 | 287 | - ./internal/mime.js | |
| 290 | 288 | - ./internal/modules/*.js | |
| 291 | - - ./internal/per_context/messageport.js | ||
| 289 | + - ./internal/per_context/*.js | ||
| 292 | 290 | - ./internal/perf/*.js | |
| 293 | 291 | - ./internal/policy/*.js | |
| 294 | 292 | - ./internal/priority_queue.js | |
@@ -297,7 +295,7 @@ overrides: | |||
| 297 | 295 | - ./internal/readme.md | |
| 298 | 296 | - ./internal/repl.js | |
| 299 | 297 | - ./internal/repl/*.js | |
| 300 | - - ./internal/source_map/prepare_stack_trace.js | ||
| 298 | + - ./internal/source_map/*.js | ||
| 301 | 299 | - ./internal/streams/*.js | |
| 302 | 300 | - ./internal/structured_clone.js | |
| 303 | 301 | - ./internal/test/*.js | |
@@ -310,15 +308,12 @@ overrides: | |||
| 310 | 308 | - ./internal/webidl.js | |
| 311 | 309 | - ./internal/webstreams/*.js | |
| 312 | 310 | - ./module.js | |
| 313 | - - ./path/*.js | ||
| 314 | 311 | - ./process.js | |
| 315 | 312 | - ./punycode.js | |
| 316 | 313 | - ./repl.js | |
| 317 | - - ./stream/*.js | ||
| 318 | 314 | - ./sys.js | |
| 319 | 315 | - ./test.js | |
| 320 | 316 | - ./tls.js | |
| 321 | 317 | - ./url.js | |
| 322 | - - ./util/*.js | ||
| 323 | 318 | rules: | |
| 324 | 319 | comma-dangle: [error, always-multiline] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -245,7 +245,7 @@ Agent.prototype.addRequest = function addRequest(req, options, port/* legacy */, | |||
| 245 | 245 | __proto__: null, | |
| 246 | 246 | host: options, | |
| 247 | 247 | port, | |
| 248 | - localAddress | ||
| 248 | + localAddress, | ||
| 249 | 249 | }; | |
| 250 | 250 | } | |
| 251 | 251 | ||
@@ -551,5 +551,5 @@ function asyncResetHandle(socket) { | |||
| 551 | 551 | ||
| 552 | 552 | module.exports = { | |
| 553 | 553 | Agent, | |
| 554 | - globalAgent: new Agent({ keepAlive: true, scheduling: 'lifo', timeout: 5000 }) | ||
| 554 | + globalAgent: new Agent({ keepAlive: true, scheduling: 'lifo', timeout: 5000 }), | ||
| 555 | 555 | }; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -58,7 +58,7 @@ const { | |||
| 58 | 58 | const { | |
| 59 | 59 | kUniqueHeaders, | |
| 60 | 60 | parseUniqueHeadersOption, | |
| 61 | - OutgoingMessage | ||
| 61 | + OutgoingMessage, | ||
| 62 | 62 | } = require('_http_outgoing'); | |
| 63 | 63 | const Agent = require('_http_agent'); | |
| 64 | 64 | const { Buffer } = require('buffer'); | |
@@ -78,7 +78,7 @@ const { | |||
| 78 | 78 | ERR_INVALID_ARG_TYPE, | |
| 79 | 79 | ERR_INVALID_HTTP_TOKEN, | |
| 80 | 80 | ERR_INVALID_PROTOCOL, | |
| 81 | - ERR_UNESCAPED_CHARACTERS | ||
| 81 | + ERR_UNESCAPED_CHARACTERS, | ||
| 82 | 82 | } = codes; | |
| 83 | 83 | const { | |
| 84 | 84 | validateInteger, | |
@@ -644,7 +644,7 @@ function parserOnIncomingClient(res, shouldKeepAlive) { | |||
| 644 | 644 | httpVersionMajor: res.httpVersionMajor, | |
| 645 | 645 | httpVersionMinor: res.httpVersionMinor, | |
| 646 | 646 | headers: res.headers, | |
| 647 | - rawHeaders: res.rawHeaders | ||
| 647 | + rawHeaders: res.rawHeaders, | ||
| 648 | 648 | }); | |
| 649 | 649 | ||
| 650 | 650 | return 1; // Skip body but don't treat as Upgrade. | |
@@ -970,5 +970,5 @@ ClientRequest.prototype.clearTimeout = function clearTimeout(cb) { | |||
| 970 | 970 | }; | |
| 971 | 971 | ||
| 972 | 972 | module.exports = { | |
| 973 | - ClientRequest | ||
| 973 | + ClientRequest, | ||
| 974 | 974 | }; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -37,7 +37,7 @@ const incoming = require('_http_incoming'); | |||
| 37 | 37 | const { | |
| 38 | 38 | IncomingMessage, | |
| 39 | 39 | readStart, | |
| 40 | - readStop | ||
| 40 | + readStop, | ||
| 41 | 41 | } = incoming; | |
| 42 | 42 | ||
| 43 | 43 | const kIncomingMessage = Symbol('IncomingMessage'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,7 +27,7 @@ const { | |||
| 27 | 27 | StringPrototypeCharCodeAt, | |
| 28 | 28 | StringPrototypeSlice, | |
| 29 | 29 | StringPrototypeToLowerCase, | |
| 30 | - Symbol | ||
| 30 | + Symbol, | ||
| 31 | 31 | } = primordials; | |
| 32 | 32 | ||
| 33 | 33 | const { Readable, finished } = require('stream'); | |
@@ -55,7 +55,7 @@ function IncomingMessage(socket) { | |||
| 55 | 55 | ||
| 56 | 56 | if (socket) { | |
| 57 | 57 | streamOptions = { | |
| 58 | - highWaterMark: socket.readableHighWaterMark | ||
| 58 | + highWaterMark: socket.readableHighWaterMark, | ||
| 59 | 59 | }; | |
| 60 | 60 | } | |
| 61 | 61 | ||
@@ -104,7 +104,7 @@ ObjectDefineProperty(IncomingMessage.prototype, 'connection', { | |||
| 104 | 104 | }, | |
| 105 | 105 | set: function(val) { | |
| 106 | 106 | this.socket = val; | |
| 107 | - } | ||
| 107 | + }, | ||
| 108 | 108 | }); | |
| 109 | 109 | ||
| 110 | 110 | ObjectDefineProperty(IncomingMessage.prototype, 'headers', { | |
@@ -124,7 +124,7 @@ ObjectDefineProperty(IncomingMessage.prototype, 'headers', { | |||
| 124 | 124 | }, | |
| 125 | 125 | set: function(val) { | |
| 126 | 126 | this[kHeaders] = val; | |
| 127 | - } | ||
| 127 | + }, | ||
| 128 | 128 | }); | |
| 129 | 129 | ||
| 130 | 130 | ObjectDefineProperty(IncomingMessage.prototype, 'headersDistinct', { | |
@@ -144,7 +144,7 @@ ObjectDefineProperty(IncomingMessage.prototype, 'headersDistinct', { | |||
| 144 | 144 | }, | |
| 145 | 145 | set: function(val) { | |
| 146 | 146 | this[kHeadersDistinct] = val; | |
| 147 | - } | ||
| 147 | + }, | ||
| 148 | 148 | }); | |
| 149 | 149 | ||
| 150 | 150 | ObjectDefineProperty(IncomingMessage.prototype, 'trailers', { | |
@@ -164,7 +164,7 @@ ObjectDefineProperty(IncomingMessage.prototype, 'trailers', { | |||
| 164 | 164 | }, | |
| 165 | 165 | set: function(val) { | |
| 166 | 166 | this[kTrailers] = val; | |
| 167 | - } | ||
| 167 | + }, | ||
| 168 | 168 | }); | |
| 169 | 169 | ||
| 170 | 170 | ObjectDefineProperty(IncomingMessage.prototype, 'trailersDistinct', { | |
@@ -184,7 +184,7 @@ ObjectDefineProperty(IncomingMessage.prototype, 'trailersDistinct', { | |||
| 184 | 184 | }, | |
| 185 | 185 | set: function(val) { | |
| 186 | 186 | this[kTrailersDistinct] = val; | |
| 187 | - } | ||
| 187 | + }, | ||
| 188 | 188 | }); | |
| 189 | 189 | ||
| 190 | 190 | IncomingMessage.prototype.setTimeout = function setTimeout(msecs, callback) { | |
@@ -452,5 +452,5 @@ function onError(self, error, cb) { | |||
| 452 | 452 | module.exports = { | |
| 453 | 453 | IncomingMessage, | |
| 454 | 454 | readStart, | |
| 455 | - readStop | ||
| 455 | + readStop, | ||
| 456 | 456 | }; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -52,7 +52,7 @@ const { | |||
| 52 | 52 | } = require('_http_common'); | |
| 53 | 53 | const { | |
| 54 | 54 | defaultTriggerAsyncIdScope, | |
| 55 | - symbols: { async_id_symbol } | ||
| 55 | + symbols: { async_id_symbol }, | ||
| 56 | 56 | } = require('internal/async_hooks'); | |
| 57 | 57 | const { | |
| 58 | 58 | codes: { | |
@@ -69,9 +69,9 @@ const { | |||
| 69 | 69 | ERR_STREAM_ALREADY_FINISHED, | |
| 70 | 70 | ERR_STREAM_WRITE_AFTER_END, | |
| 71 | 71 | ERR_STREAM_NULL_VALUES, | |
| 72 | - ERR_STREAM_DESTROYED | ||
| 72 | + ERR_STREAM_DESTROYED, | ||
| 73 | 73 | }, | |
| 74 | - hideStackFrames | ||
| 74 | + hideStackFrames, | ||
| 75 | 75 | } = require('internal/errors'); | |
| 76 | 76 | const { validateString } = require('internal/validators'); | |
| 77 | 77 | const { isUint8Array } = require('internal/util/types'); | |
@@ -176,36 +176,36 @@ ObjectDefineProperty(OutgoingMessage.prototype, 'writableFinished', { | |||
| 176 | 176 | this.outputSize === 0 && | |
| 177 | 177 | (!this.socket || this.socket.writableLength === 0) | |
| 178 | 178 | ); | |
| 179 | - } | ||
| 179 | + }, | ||
| 180 | 180 | }); | |
| 181 | 181 | ||
| 182 | 182 | ObjectDefineProperty(OutgoingMessage.prototype, 'writableObjectMode', { | |
| 183 | 183 | __proto__: null, | |
| 184 | 184 | get() { | |
| 185 | 185 | return false; | |
| 186 | - } | ||
| 186 | + }, | ||
| 187 | 187 | }); | |
| 188 | 188 | ||
| 189 | 189 | ObjectDefineProperty(OutgoingMessage.prototype, 'writableLength', { | |
| 190 | 190 | __proto__: null, | |
| 191 | 191 | get() { | |
| 192 | 192 | return this.outputSize + (this.socket ? this.socket.writableLength : 0); | |
| 193 | - } | ||
| 193 | + }, | ||
| 194 | 194 | }); | |
| 195 | 195 | ||
| 196 | 196 | ObjectDefineProperty(OutgoingMessage.prototype, 'writableHighWaterMark', { | |
| 197 | 197 | __proto__: null, | |
| 198 | 198 | get() { | |
| 199 | 199 | return this.socket ? this.socket.writableHighWaterMark : HIGH_WATER_MARK; | |
| 200 | - } | ||
| 200 | + }, | ||
| 201 | 201 | }); | |
| 202 | 202 | ||
| 203 | 203 | ObjectDefineProperty(OutgoingMessage.prototype, 'writableCorked', { | |
| 204 | 204 | __proto__: null, | |
| 205 | 205 | get() { | |
| 206 | 206 | const corked = this.socket ? this.socket.writableCorked : 0; | |
| 207 | 207 | return corked + this[kCorked]; | |
| 208 | - } | ||
| 208 | + }, | ||
| 209 | 209 | }); | |
| 210 | 210 | ||
| 211 | 211 | ObjectDefineProperty(OutgoingMessage.prototype, '_headers', { | |
@@ -226,7 +226,7 @@ ObjectDefineProperty(OutgoingMessage.prototype, '_headers', { | |||
| 226 | 226 | headers[StringPrototypeToLowerCase(name)] = [name, val[name]]; | |
| 227 | 227 | } | |
| 228 | 228 | } | |
| 229 | - }, 'OutgoingMessage.prototype._headers is deprecated', 'DEP0066') | ||
| 229 | + }, 'OutgoingMessage.prototype._headers is deprecated', 'DEP0066'), | ||
| 230 | 230 | }); | |
| 231 | 231 | ||
| 232 | 232 | ObjectDefineProperty(OutgoingMessage.prototype, 'connection', { | |
@@ -236,7 +236,7 @@ ObjectDefineProperty(OutgoingMessage.prototype, 'connection', { | |||
| 236 | 236 | }, | |
| 237 | 237 | set: function(val) { | |
| 238 | 238 | this.socket = val; | |
| 239 | - } | ||
| 239 | + }, | ||
| 240 | 240 | }); | |
| 241 | 241 | ||
| 242 | 242 | ObjectDefineProperty(OutgoingMessage.prototype, '_headerNames', { | |
@@ -271,7 +271,7 @@ ObjectDefineProperty(OutgoingMessage.prototype, '_headerNames', { | |||
| 271 | 271 | header[0] = val[keys[i]]; | |
| 272 | 272 | } | |
| 273 | 273 | } | |
| 274 | - }, 'OutgoingMessage.prototype._headerNames is deprecated', 'DEP0066') | ||
| 274 | + }, 'OutgoingMessage.prototype._headerNames is deprecated', 'DEP0066'), | ||
| 275 | 275 | }); | |
| 276 | 276 | ||
| 277 | 277 | ||
@@ -367,7 +367,7 @@ OutgoingMessage.prototype._send = function _send(data, encoding, callback, byteL | |||
| 367 | 367 | this.outputData.unshift({ | |
| 368 | 368 | data: header, | |
| 369 | 369 | encoding: 'latin1', | |
| 370 | - callback: null | ||
| 370 | + callback: null, | ||
| 371 | 371 | }); | |
| 372 | 372 | this.outputSize += header.length; | |
| 373 | 373 | this._onPendingData(header.length); | |
@@ -418,7 +418,7 @@ function _storeHeader(firstLine, headers) { | |||
| 418 | 418 | date: false, | |
| 419 | 419 | expect: false, | |
| 420 | 420 | trailer: false, | |
| 421 | - header: firstLine | ||
| 421 | + header: firstLine, | ||
| 422 | 422 | }; | |
| 423 | 423 | ||
| 424 | 424 | if (headers) { | |
@@ -805,19 +805,19 @@ ObjectDefineProperty(OutgoingMessage.prototype, 'headersSent', { | |||
| 805 | 805 | __proto__: null, | |
| 806 | 806 | configurable: true, | |
| 807 | 807 | enumerable: true, | |
| 808 | - get: function() { return !!this._header; } | ||
| 808 | + get: function() { return !!this._header; }, | ||
| 809 | 809 | }); | |
| 810 | 810 | ||
| 811 | 811 | ObjectDefineProperty(OutgoingMessage.prototype, 'writableEnded', { | |
| 812 | 812 | __proto__: null, | |
| 813 | - get: function() { return this.finished; } | ||
| 813 | + get: function() { return this.finished; }, | ||
| 814 | 814 | }); | |
| 815 | 815 | ||
| 816 | 816 | ObjectDefineProperty(OutgoingMessage.prototype, 'writableNeedDrain', { | |
| 817 | 817 | __proto__: null, | |
| 818 | 818 | get: function() { | |
| 819 | 819 | return !this.destroyed && !this.finished && this[kNeedDrain]; | |
| 820 | - } | ||
| 820 | + }, | ||
| 821 | 821 | }); | |
| 822 | 822 | ||
| 823 | 823 | const crlf_buf = Buffer.from('\r\n'); | |
@@ -1170,5 +1170,5 @@ module.exports = { | |||
| 1170 | 1170 | parseUniqueHeadersOption, | |
| 1171 | 1171 | validateHeaderName, | |
| 1172 | 1172 | validateHeaderValue, | |
| 1173 | - OutgoingMessage | ||
| 1173 | + OutgoingMessage, | ||
| 1174 | 1174 | }; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -51,7 +51,7 @@ const { ConnectionsList } = internalBinding('http_parser'); | |||
| 51 | 51 | const { | |
| 52 | 52 | kUniqueHeaders, | |
| 53 | 53 | parseUniqueHeadersOption, | |
| 54 | - OutgoingMessage | ||
| 54 | + OutgoingMessage, | ||
| 55 | 55 | } = require('_http_outgoing'); | |
| 56 | 56 | const { | |
| 57 | 57 | kOutHeaders, | |
@@ -63,12 +63,12 @@ const { | |||
| 63 | 63 | } = require('internal/http'); | |
| 64 | 64 | const { | |
| 65 | 65 | defaultTriggerAsyncIdScope, | |
| 66 | - getOrSetAsyncId | ||
| 66 | + getOrSetAsyncId, | ||
| 67 | 67 | } = require('internal/async_hooks'); | |
| 68 | 68 | const { IncomingMessage } = require('_http_incoming'); | |
| 69 | 69 | const { | |
| 70 | 70 | connResetException, | |
| 71 | - codes | ||
| 71 | + codes, | ||
| 72 | 72 | } = require('internal/errors'); | |
| 73 | 73 | const { | |
| 74 | 74 | ERR_HTTP_REQUEST_TIMEOUT, | |
@@ -77,13 +77,13 @@ const { | |||
| 77 | 77 | ERR_HTTP_SOCKET_ENCODING, | |
| 78 | 78 | ERR_INVALID_ARG_TYPE, | |
| 79 | 79 | ERR_INVALID_ARG_VALUE, | |
| 80 | - ERR_INVALID_CHAR | ||
| 80 | + ERR_INVALID_CHAR, | ||
| 81 | 81 | } = codes; | |
| 82 | 82 | const { | |
| 83 | 83 | validateInteger, | |
| 84 | 84 | validateBoolean, | |
| 85 | 85 | validateLinkHeaderValue, | |
| 86 | - validateObject | ||
| 86 | + validateObject, | ||
| 87 | 87 | } = require('internal/validators'); | |
| 88 | 88 | const Buffer = require('buffer').Buffer; | |
| 89 | 89 | const { setInterval, clearInterval } = require('timers'); | |
@@ -167,7 +167,7 @@ const STATUS_CODES = { | |||
| 167 | 167 | 508: 'Loop Detected', // RFC 5842 7.2 | |
| 168 | 168 | 509: 'Bandwidth Limit Exceeded', | |
| 169 | 169 | 510: 'Not Extended', // RFC 2774 7 | |
| 170 | - 511: 'Network Authentication Required' // RFC 6585 6 | ||
| 170 | + 511: 'Network Authentication Required', // RFC 6585 6 | ||
| 171 | 171 | }; | |
| 172 | 172 | ||
| 173 | 173 | const kOnExecute = HTTPParser.kOnExecute | 0; | |
@@ -654,7 +654,7 @@ function connectionListenerInternal(server, socket) { | |||
| 654 | 654 | // sent to the client. | |
| 655 | 655 | outgoingData: 0, | |
| 656 | 656 | requestsCount: 0, | |
| 657 | - keepAliveTimeoutSet: false | ||
| 657 | + keepAliveTimeoutSet: false, | ||
| 658 | 658 | }; | |
| 659 | 659 | state.onData = socketOnData.bind(undefined, | |
| 660 | 660 | server, socket, parser, state); | |
@@ -913,7 +913,7 @@ function resOnFinish(req, res, socket, state, server) { | |||
| 913 | 913 | request: req, | |
| 914 | 914 | response: res, | |
| 915 | 915 | socket, | |
| 916 | - server | ||
| 916 | + server, | ||
| 917 | 917 | }); | |
| 918 | 918 | } | |
| 919 | 919 | ||
@@ -1005,7 +1005,7 @@ function parserOnIncoming(server, socket, state, req, keepAlive) { | |||
| 1005 | 1005 | request: req, | |
| 1006 | 1006 | response: res, | |
| 1007 | 1007 | socket, | |
| 1008 | - server | ||
| 1008 | + server, | ||
| 1009 | 1009 | }); | |
| 1010 | 1010 | } | |
| 1011 | 1011 | ||
@@ -1138,5 +1138,5 @@ module.exports = { | |||
| 1138 | 1138 | setupConnectionsTracking, | |
| 1139 | 1139 | storeHTTPOptions, | |
| 1140 | 1140 | _connectionListener: connectionListener, | |
| 1141 | - kServerResponse | ||
| 1141 | + kServerResponse, | ||
| 1142 | 1142 | }; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments