@@ -3,22 +3,36 @@ module.exports = function() {
33 var pub = { } ;
44
55 pub . parse = function ( req ) {
6- return {
6+ if ( process . env [ "DEV" ] == 'True' ) {
7+ return {
8+ trusted : process . env [ "DEV_TRUSTED" ] ,
9+ id : process . env [ "DEV_CHARID" ] ,
10+ name : process . env [ "DEV_CHARNAME" ] ,
711
8- trusted : req . get ( 'EVE_TRUSTED' ) ,
9- id : req . get ( 'EVE_CHARID' ) ,
10- name : req . get ( 'EVE_CHARNAME' ) ,
12+ shipType : process . env [ "DEV_SHIPTYPE" ] ,
13+ shipTypeId : process . env [ "DEV_SHIPTYPEID" ] ,
14+ shipName : process . env [ "DEV_SHIPNAME" ] ,
1115
12- shipType : req . get ( 'EVE_SHIPTYPENAME' ) ,
13- shipTypeId : req . get ( 'EVE_SHIPTYPEID' ) ,
14- shipName : req . get ( 'EVE_SHIPNAME' ) ,
16+ systemName : process . env [ "DEV_SYSTEMNAME" ] ,
17+ systemId : process . env [ "DEV_SYSTEMID" ] ,
18+ isDocked : ! ! req . get ( 'EVE_STATIONID' ) ,
19+ } ;
20+ } else {
21+ return {
22+ trusted : req . get ( 'EVE_TRUSTED' ) ,
23+ id : req . get ( 'EVE_CHARID' ) ,
24+ name : req . get ( 'EVE_CHARNAME' ) ,
1525
16- systemName : req . get ( 'EVE_SOLARSYSTEMNAME ' ) ,
17- systemId : req . get ( 'EVE_SOLARSYSTEMID ' ) ,
18- isDocked : ! ! req . get ( 'EVE_STATIONID ' ) ,
26+ shipType : req . get ( 'EVE_SHIPTYPENAME ' ) ,
27+ shipTypeId : req . get ( 'EVE_SHIPTYPEID ' ) ,
28+ shipName : req . get ( 'EVE_SHIPNAME ' ) ,
1929
20- } ;
30+ systemName : req . get ( 'EVE_SOLARSYSTEMNAME' ) ,
31+ systemId : req . get ( 'EVE_SOLARSYSTEMID' ) ,
32+ isDocked : ! ! req . get ( 'EVE_STATIONID' ) ,
33+ } ;
34+ }
2135 } ;
22-
36+
2337 return pub ;
24- } ;
38+ } ;
0 commit comments