New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pm2/agent

Package Overview
Dependencies
Maintainers
3
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pm2/agent - npm Package Compare versions

Comparing version 0.5.24 to 0.5.25

1

constants.js

@@ -56,2 +56,3 @@ /**

PACKET_QUEUE_SIZE: 200,
PROXY: process.env.PM2_PROXY,

@@ -58,0 +59,0 @@ LOGS_BUFFER: 8,

12

package.json
{
"name": "@pm2/agent",
"version": "0.5.24",
"version": "0.5.25",
"description": "PM2.io Agent Daemon",

@@ -20,2 +20,3 @@ "main": "index.js",

"async": "^2.6.0",
"chalk": "^2.3.2",
"eventemitter2": "^5.0.1",

@@ -27,5 +28,5 @@ "fclone": "^1.0.11",

"pm2-axon-rpc": "^0.5.0",
"ws": "^5.1.0",
"proxy-agent": "^3.1.0",
"semver": "^5.5.0",
"chalk": "^2.3.2"
"ws": "^5.1.0"
},

@@ -35,4 +36,5 @@ "devDependencies": {

"mocha": "^3.2",
"v8-coverage": "^1.0.4",
"nock": "^9.2.3"
"nock": "^9.2.3",
"simple-socks": "^1.0.2",
"v8-coverage": "^1.0.4"
},

@@ -39,0 +41,0 @@ "author": "Keymetrics Team",

@@ -370,3 +370,10 @@ 'use strict'

// start workers
this._workerEndpoint = setInterval(this._verifyEndpoint.bind(this), 60000)
this._workerEndpoint = setInterval(this._verifyEndpoint.bind(this, (err, result) => {
if (err) return
// We need to exit agent if bucket is disabled (trialing)
if (result && typeof result === 'object' && result.error === true && result.active === false) {
log(`Error when connecting: ${result.msg}`)
return this.exit(new Error(`Error when connecting: ${result.msg}`))
}
}), 60000)
// start interactors

@@ -373,0 +380,0 @@ this.watchDog = WatchDog

'use strict'
const WebSocket = require('ws')
const ProxyAgent = require('proxy-agent')
const log = require('debug')('interactor:websocket')

@@ -57,3 +58,4 @@ const cst = require('../../constants.js')

'User-Agent': `PM2 Agent v${pkg.version}`
}
},
agent: cst.PROXY ? new ProxyAgent(cst.PROXY) : undefined
})

@@ -60,0 +62,0 @@

@@ -7,2 +7,4 @@ 'use strict'

const url = require('url')
const ProxyAgent = require('proxy-agent')
const cst = require('../constants.js')

@@ -344,3 +346,4 @@ const interfaceType = {

method: opts.method,
headers: opts.headers
headers: opts.headers,
agent: cst.PROXY ? new ProxyAgent(cst.PROXY) : undefined
}

@@ -347,0 +350,0 @@

Sorry, the diff of this file is not supported yet

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