Produced by Araxis Merge on 10/24/2017 6:38:26 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | CHAMP_VA1.zip\CHAMP_VA1\node_modules\gulp-nodemon\node_modules\nodemon\node_modules\update-notifier\node_modules\latest-version\node_modules\package-json\node_modules\got\node_modules\infinity-agent | https.js | Mon Oct 16 21:06:50 2017 UTC |
| 2 | CHAMP_VA1.zip\CHAMP_VA1\node_modules\gulp-nodemon\node_modules\nodemon\node_modules\update-notifier\node_modules\latest-version\node_modules\package-json\node_modules\got\node_modules\infinity-agent | https.js | Mon Oct 23 19:45:04 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 162 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | 'use stric t'; | |
| 2 | ||
| 3 | var tls = require('t ls'); | |
| 4 | var http = require(' ./http.js' ); | |
| 5 | var util = require(' util'); | |
| 6 | var inheri ts = util. inherits; | |
| 7 | ||
| 8 | var debug; | |
| 9 | ||
| 10 | if (util.d ebuglog) { | |
| 11 | debug = util.debug log('https '); | |
| 12 | } else { | |
| 13 | debug = function ( x) { | |
| 14 | if (pr ocess.env. NODE_DEBUG && /http/ .test(proc ess.env.NO DE_DEBUG)) { | |
| 15 | cons ole.error( 'HTTPS: %s ', x); | |
| 16 | } | |
| 17 | }; | |
| 18 | } | |
| 19 | function c reateConne ction(port , host, op tions) { | |
| 20 | if (port !== null && typeof port === ' object') { | |
| 21 | option s = port; | |
| 22 | } else i f (host != = null && typeof hos t === 'obj ect') { | |
| 23 | option s = host; | |
| 24 | } else i f (options === null || typeof options != = 'object' ) { | |
| 25 | option s = {}; | |
| 26 | } | |
| 27 | ||
| 28 | if (type of port == = 'number' ) { | |
| 29 | option s.port = p ort; | |
| 30 | } | |
| 31 | ||
| 32 | if (type of host == = 'string' ) { | |
| 33 | option s.host = h ost; | |
| 34 | } | |
| 35 | ||
| 36 | debug('c reateConne ction', op tions); | |
| 37 | return t ls.connect (options); | |
| 38 | } | |
| 39 | ||
| 40 | ||
| 41 | function A gent(optio ns) { | |
| 42 | http.Age nt.call(th is, option s); | |
| 43 | this.defau ltPort = PORT ; | |
| 44 | this.pro tocol = 'h ttps:'; | |
| 45 | } | |
| 46 | inherits(A gent, http .Agent); | |
| 47 | Agent.prot otype.crea teConnecti on = creat eConnectio n; | |
| 48 | ||
| 49 | Agent.prot otype.getN ame = func tion(optio ns) { | |
| 50 | var name = http.Ag ent.protot ype.getNam e.call(thi s, options ); | |
| 51 | ||
| 52 | name += ':'; | |
| 53 | if (opti ons.ca) | |
| 54 | name + = options. ca; | |
| 55 | ||
| 56 | name += ':'; | |
| 57 | if (opti ons.cert) | |
| 58 | name + = options. cert; | |
| 59 | ||
| 60 | name += ':'; | |
| 61 | if (opti ons.cipher s) | |
| 62 | name + = options. ciphers; | |
| 63 | ||
| 64 | name += ':'; | |
| 65 | if (opti ons.key) | |
| 66 | name + = options. key; | |
| 67 | ||
| 68 | name += ':'; | |
| 69 | if (opti ons.pfx) | |
| 70 | name + = options. pfx; | |
| 71 | ||
| 72 | name += ':'; | |
| 73 | if (opti ons.reject Unauthoriz ed !== und efined) | |
| 74 | name + = options. rejectUnau thorized; | |
| 75 | ||
| 76 | return n ame; | |
| 77 | }; | |
| 78 | ||
| 79 | var global Agent = ne w Agent(); | |
| 80 | ||
| 81 | exports.gl obalAgent = globalAg ent; | |
| 82 | exports.Ag ent = Agen t; |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.