Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

spm-agent-nodejs

Package Overview
Dependencies
Maintainers
3
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spm-agent-nodejs - npm Package Compare versions

Comparing version 1.29.3 to 1.29.4

16

bin/spm-client-diagnostics.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc