Comparing version 1.2.6 to 1.2.7
@@ -10,2 +10,3 @@ #!/usr/bin/env node | ||
var url = require('url'); | ||
var ejs = require('ejs'); | ||
@@ -60,3 +61,3 @@ fs.watchFile(configfilePath, function(event, filename) { | ||
console.log('In download'); | ||
res.download(config.url+req.query.file.replace(/['"]+/g, '')); | ||
res.download(config.dir+req.query.file.replace(/['"]+/g, '')); | ||
} | ||
@@ -84,3 +85,4 @@ else if(req.parsedUrl.pathname == '/getlist'){ | ||
}); | ||
res.render('index',{title:"Express from heapware",heapdumpList:heapdump,reportList:report}) | ||
var ejsStr = fs.readFileSync(__dirname +'/main.ejs', 'utf8'); | ||
res.end(ejs.render(ejsStr, {title:"Express",heapdumpList:heapdump,reportList:report})); | ||
}); | ||
@@ -87,0 +89,0 @@ |
{ | ||
"name": "heapware", | ||
"version": "1.2.6", | ||
"version": "1.2.7", | ||
"description": "trigger and export heap-dumps and nodereport ", | ||
@@ -10,2 +10,3 @@ "main": "my-middleware.js", | ||
"dependencies": { | ||
"ejs": "^2.5.6", | ||
"json-update": "^3.0.0", | ||
@@ -12,0 +13,0 @@ "jsonfile": "^3.0.1", |
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
35536
8
123
4
+ Addedejs@^2.5.6
+ Addedejs@2.7.4(transitive)