Comparing version 1.0.3 to 1.0.5
@@ -42,3 +42,2 @@ #!/usr/bin/env node | ||
/* | ||
json.update('./config.json',{"defaultpath": at.filepath }) | ||
@@ -48,3 +47,2 @@ .then(function(dat) { | ||
}); | ||
*/ | ||
@@ -51,0 +49,0 @@ |
{ | ||
"defaultpath": "/Users/ssjain" | ||
"defaultpath": "/Users/ssjain/WebstormProjects/untitled1" | ||
} |
@@ -8,3 +8,5 @@ #!/usr/bin/env node | ||
var jsonfile = require('jsonfile'); | ||
var storedir = require('./config.json'); | ||
fs.watchFile(filePath, function(event, filename) { | ||
@@ -24,3 +26,3 @@ if(filename){ | ||
nodereport.setFileName("myreport" +Date.now() +"taken "); | ||
nodereport.setDirectory('./'); | ||
nodereport.setDirectory(storedir); | ||
nodereport.triggerReport(); | ||
@@ -45,3 +47,3 @@ console.log('take report'); | ||
console.log('Took heapdump'); | ||
heapdump.writeSnapshot('/Users/ssjain/WebstormProjects/untitled1/foo' + Date.now() + '.heapsnapshot'); | ||
heapdump.writeSnapshot(storedir+'foo' + Date.now() + '.heapsnapshot'); | ||
} | ||
@@ -48,0 +50,0 @@ ///Users/ssjain/WebstormProjects/untitled1 |
{ | ||
"name": "heapware", | ||
"version": "1.0.3", | ||
"description": "trigger and export heap dumps", | ||
"version": "1.0.5", | ||
"description": "trigger and export heap dumps , path for config file", | ||
"main": "my-middleware.js", | ||
@@ -6,0 +6,0 @@ "bin": { |
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
24676
92