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

@pm2/pm2-version-check

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pm2/pm2-version-check - npm Package Compare versions

Comparing version

to
1.0.2

8

index.js

@@ -11,3 +11,3 @@

if (cb == null) {
if (cb == null && typeof(params) == 'function') {
cb = params

@@ -35,5 +35,5 @@ path = '/check'

var data = JSON.parse(body)
return cb(null, data)
return cb ? cb(null, data) : null
} catch(e) {
return cb(new Error('Could not parse result'))
return cb ? cb(new Error('Could not parse result')) : null
}

@@ -45,3 +45,3 @@ })

debug('ERROR: ' + e.message)
return cb(e)
return cb ? cb(e) : null
})

@@ -48,0 +48,0 @@ }

{
"name": "@pm2/pm2-version-check",
"version": "1.0.1",
"version": "1.0.2",
"description": "Module to check latest PM2 version",

@@ -5,0 +5,0 @@ "main": "index.js",