Comparing version 1.2.7 to 1.2.8
@@ -62,3 +62,3 @@ #!/usr/bin/env node | ||
} | ||
else if(req.parsedUrl.pathname == '/getlist'){ | ||
else if(req.parsedUrl.pathname === '/getlist'){ | ||
console.log('Reading list'); | ||
@@ -84,4 +84,8 @@ fs.readdir(config.dir, function (err, filenames) { | ||
}); | ||
var ejsStr = fs.readFileSync(__dirname +'/main.ejs', 'utf8'); | ||
res.end(ejs.render(ejsStr, {title:"Express",heapdumpList:heapdump,reportList:report})); | ||
res.writeHead(200, { | ||
'Content-Type' : 'text/html' | ||
}); | ||
console.log(__dirname); | ||
var ejsStr = fs.readFileSync(__dirname+'/main.ejs','utf8'); | ||
res.end(ejs.render(ejsStr,{title:"HEAPDUMP and NODE REPORT FOR NODEJS APPLICATIONS",heapdumpList:heapdump,reportList:report})); | ||
}); | ||
@@ -91,6 +95,5 @@ | ||
else { | ||
next() | ||
next(); | ||
} | ||
} | ||
} | ||
{ | ||
"name": "heapware", | ||
"version": "1.2.7", | ||
"version": "1.2.8", | ||
"description": "trigger and export heap-dumps and nodereport ", | ||
@@ -5,0 +5,0 @@ "main": "my-middleware.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35780
127