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.1

README.md

17

index.js
const https = require('https');
const debug = require('debug')('pm2:version-check')
const qs = require('querystring')
var VersionCheck = {}
VersionCheck.runCheck = function(type, cb) {
if (!cb) {
cb = type
type = '/check'
VersionCheck.runCheck = function(params, cb) {
var path = null
if (cb == null) {
cb = params
path = '/check'
} else {
path = '/check?' + qs.stringify(params)
}

@@ -15,3 +20,3 @@

host: 'version.pm2.io',
path: type || '/check',
path: path,
strictSSL: false,

@@ -43,3 +48,3 @@ rejectUnauthorized: false

module.export = VersionCheck
module.exports = VersionCheck

@@ -46,0 +51,0 @@ if (require.main === module) {

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

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