GeezerVison is showing github.com — tls: add trailing commas in source files · nodejs/node@6ff9027
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: lib/.eslintrc.yaml +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -287,7 +287,7 @@ overrides: | 287 | 287 | - ./internal/structured_clone.js | 288 | 288 | - ./internal/test/*.js | 289 | 289 | - ./internal/test_runner/**/*.js | 290 | | - - ./internal/tls/secure-context.js | | 290 | + - ./internal/tls/*.js | 291 | 291 | - ./internal/util/parse_args/*.js | 292 | 292 | - ./internal/v8_prof_processor.js | 293 | 293 | - ./internal/vm.js | @@ -301,6 +301,7 @@ overrides: | 301 | 301 | - ./stream/*.js | 302 | 302 | - ./sys.js | 303 | 303 | - ./test.js | | 304 | + - ./tls.js | 304 | 305 | - ./url.js | 305 | 306 | - ./util/*.js | 306 | 307 | rules: | |
Collapse file Copy file name to clipboardExpand all lines: lib/_tls_wrap.js +5-5Lines changed: 5 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -79,7 +79,7 @@ const { | 79 | 79 | ERR_TLS_REQUIRED_SERVER_NAME, | 80 | 80 | ERR_TLS_SESSION_ATTACK, | 81 | 81 | ERR_TLS_SNI_FROM_SERVER, | 82 | | - ERR_TLS_INVALID_STATE | | 82 | + ERR_TLS_INVALID_STATE, | 83 | 83 | } = codes; | 84 | 84 | const { onpskexchange: kOnPskExchange } = internalBinding('symbols'); | 85 | 85 | const { | @@ -97,7 +97,7 @@ const { | 97 | 97 | validateUint32, | 98 | 98 | } = require('internal/validators'); | 99 | 99 | const { | 100 | | - InternalX509Certificate | | 100 | + InternalX509Certificate, | 101 | 101 | } = require('internal/crypto/x509'); | 102 | 102 | const traceTls = getOptionValue('--trace-tls'); | 103 | 103 | const tlsKeylog = getOptionValue('--tls-keylog'); | @@ -653,7 +653,7 @@ function defineHandleReading(socket, handle) { | 653 | 653 | }, | 654 | 654 | set: (value) => { | 655 | 655 | socket[kRes].reading = value; | 656 | | - } | | 656 | + }, | 657 | 657 | }); | 658 | 658 | } | 659 | 659 |
| @@ -1379,7 +1379,7 @@ Server.prototype.setSecureContext = function(options) { | 1379 | 1379 |
| 1380 | 1380 | Server.prototype._getServerData = function() { | 1381 | 1381 | return { | 1382 | | - ticketKeys: this.getTicketKeys().toString('hex') | | 1382 | + ticketKeys: this.getTicketKeys().toString('hex'), | 1383 | 1383 | }; | 1384 | 1384 | }; | 1385 | 1385 |
| @@ -1615,7 +1615,7 @@ exports.connect = function connect(...args) { | 1615 | 1615 | ciphers: tls.DEFAULT_CIPHERS, | 1616 | 1616 | checkServerIdentity: tls.checkServerIdentity, | 1617 | 1617 | minDHSize: 1024, | 1618 | | - ...options | | 1618 | + ...options, | 1619 | 1619 | }; | 1620 | 1620 |
| 1621 | 1621 | if (!options.keepAlive) | |
Collapse file Copy file name to clipboardExpand all lines: lib/internal/tls/secure-pair.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -71,7 +71,7 @@ class SecurePair extends EventEmitter { | 71 | 71 | isServer, | 72 | 72 | requestCert, | 73 | 73 | rejectUnauthorized, | 74 | | - ...options | | 74 | + ...options, | 75 | 75 | }); | 76 | 76 | this.cleartext.once('secure', () => this.emit('secure')); | 77 | 77 | } | |
Collapse file Copy file name to clipboardExpand all lines: lib/tls.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -49,7 +49,7 @@ const { | 49 | 49 | const { | 50 | 50 | ERR_TLS_CERT_ALTNAME_FORMAT, | 51 | 51 | ERR_TLS_CERT_ALTNAME_INVALID, | 52 | | - ERR_OUT_OF_RANGE | | 52 | + ERR_OUT_OF_RANGE, | 53 | 53 | } = require('internal/errors').codes; | 54 | 54 | const internalUtil = require('internal/util'); | 55 | 55 | internalUtil.assertCrypto(); | |
|