Produced by Araxis Merge on 7/26/2017 10:13:33 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 | C:\AraxisMergeCompare\Pri_un\TAR\vsa_mrar_source_v1.0.9\resources\node_modules\sync-request\test | fake-server.js | Thu Oct 15 13:37:11 2015 UTC |
| 2 | C:\AraxisMergeCompare\Pri_re\TAR\vsa_mrar_source_v1.0.9\resources\node_modules\sync-request\test | fake-server.js | Wed Jul 26 14:48:37 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 82 |
| 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 | var expres s = requir e('express '), | |
| 3 | bodyPa rser = req uire('body -parser'), | |
| 4 | morgan = require ('morgan') , | |
| 5 | PORT = PORT ; | |
| 6 | ||
| 7 | var app = express(); | |
| 8 | ||
| 9 | // parse a pplication /x-www-for m-urlencod ed | |
| 10 | app.use(bo dyParser.u rlencoded( { extended : false }) ); | |
| 11 | ||
| 12 | // parse a pplication /json | |
| 13 | app.use(bo dyParser.j son()); | |
| 14 | ||
| 15 | // configu re log | |
| 16 | app.use(mo rgan('dev' )); | |
| 17 | ||
| 18 | var starte d = false; | |
| 19 | exports.is Started = function() { return started }; | |
| 20 | ||
| 21 | var server ; | |
| 22 | process.on ('message' , function (m) { | |
| 23 | if (m === 'start ') { | |
| 24 | se rver = app .listen(PO RT, functi on () { | |
| 25 | started = true; | |
| 26 | console. log('fake server sta rted', POR T); | |
| 27 | return p rocess.sen d('started ');// m.cb && setTim eout(m.cb, 1000); | |
| 28 | }) ; | |
| 29 | } els e { | |
| 30 | se rver.close (function () { | |
| 31 | started = false; | |
| 32 | console. log('fake server sto pped', POR T); | |
| 33 | return p rocess.sen d('closed' ) && proce ss.exit(0) ; | |
| 34 | }) ; | |
| 35 | } | |
| 36 | }); | |
| 37 | ||
| 38 | ['get', 'p ost', 'put ', 'delete '].forEach (function( method) { | |
| 39 | app.ro ute('/inte rnal-test' )[method]( function(r eq, res){ | |
| 40 | re s.send('ok '); | |
| 41 | }); | |
| 42 | }); |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.