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

probe

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

probe - npm Package Compare versions

Comparing version 2.0.0-beta.0 to 2.0.0-beta.1

19

lib/ping.js

@@ -14,4 +14,21 @@ const https= require('https')

const self = this
// this will foolishly expect a SSL service as sweet path
if ((target.port && target.port !== 80) || (target.useHttps !== undefined && target.useHttps === true)) {
self.makeFallbackRequest(target, expects, true, cb)
self.makeFallbackRequest(target, expects, true, (err) => {
// when the user has actually used the wrong protocol or there was a
// protocol redirect. May easily happen when one does not use 80 or 443
// as port, e.g. 22 or any other random
if (err === 'EPROTO') {
this.makeFallbackRequest(target, expects, false, (err) => {
if (err) {
return cb(err, self.end())
}
return cb(null, self.end())
})
} else if (err) {
return cb(err)
} else {
return cb(null, self.end())
}
})
} else if (target.useHttps === false) {

@@ -18,0 +35,0 @@ self.makeFallbackRequest(target, expects, false, cb)

2

package.json
{
"name": "probe",
"version": "2.0.0-beta.0",
"version": "2.0.0-beta.1",
"description": "Ping and probe stuff.",

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

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