spm-agent-nodejs
Advanced tools
Comparing version 1.29.3 to 1.29.4
@@ -12,7 +12,6 @@ #!/usr/bin/env node | ||
var fs = require('fs') | ||
var AdmZip = require('adm-zip') | ||
var zip = new AdmZip() | ||
var ZipZipTop = require('zip-zip-top') | ||
var zip = new ZipZipTop() | ||
var config = require('spm-agent').Config | ||
var util = require('util') | ||
var ls = require('ls') | ||
var os = require('os') | ||
@@ -29,13 +28,8 @@ var path = require ('path') | ||
fs.writeFileSync(cfgDumpFileName, util.inspect(config).toString() + '\nSystem-Info:\n' + util.inspect(systemInfo)) | ||
var logfiles = ls(config.logger.dir + '/*') | ||
zip.addLocalFile(cfgDumpFileName) | ||
// console.log ('Adding file ' + cfgDumpFileName) | ||
logfiles.forEach(function (f) { | ||
// console.log ('Adding file ' + f.file ) | ||
zip.addLocalFile(f.full) | ||
}) | ||
zip.folder(config.logger.dir) | ||
var archFileName = path.join(os.tmpdir(), 'spm-diagnose.zip') | ||
zip.writeZip(archFileName) | ||
zip.writeToFile(archFileName) | ||
console.log('SPM diagnostics info is in ' + archFileName) | ||
console.log('Please e-mail the file to spm-support@sematext.com') | ||
fs.unlink(cfgDumpFileName, function () {}) | ||
{ | ||
"name": "spm-agent-nodejs", | ||
"version": "1.29.3", | ||
"version": "1.29.4", | ||
"description": "Node.js monitoring agent for SPM by Sematext", | ||
@@ -45,5 +45,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"adm-zip": "^0.4.7", | ||
"gc-stats": "^1.0.0", | ||
"ls": "^0.1.0", | ||
"measured": "^1.0.2", | ||
@@ -53,3 +51,4 @@ "node-df": "^0.1.1", | ||
"spm-agent": "^1.29.0", | ||
"which": "^1.2.0" | ||
"which": "^1.2.0", | ||
"zip-zip-top": "^0.1.1" | ||
}, | ||
@@ -56,0 +55,0 @@ "devDependencies": { |
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
7
63652
1072
+ Addedzip-zip-top@^0.1.1
+ Addedasync@3.2.6(transitive)
+ Addedjszip@2.7.0(transitive)
+ Addedpako@1.0.11(transitive)
+ Addedzip-zip-top@0.1.1(transitive)
- Removedadm-zip@^0.4.7
- Removedls@^0.1.0
- Removedadm-zip@0.4.16(transitive)
- Removedglob@4.0.6(transitive)
- Removedgraceful-fs@3.0.12(transitive)
- Removedlru-cache@2.7.3(transitive)
- Removedls@0.1.0(transitive)
- Removedminimatch@1.0.0(transitive)
- Removednatives@1.1.6(transitive)
- Removedonce@1.4.0(transitive)
- Removedsigmund@1.0.1(transitive)
- Removedwrappy@1.0.2(transitive)