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

corifeus-utils

Package Overview
Dependencies
Maintainers
1
Versions
482
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

corifeus-utils - npm Package Compare versions

Comparing version 2021.10.135 to 2021.10.139

4

package.json
{
"name": "corifeus-utils",
"version": "2021.10.135",
"version": "2021.10.139",
"corifeus": {

@@ -39,3 +39,3 @@ "icon": "far fa-lightbulb",

"devDependencies": {
"corifeus-builder": "^2021.10.131"
"corifeus-builder": "^2021.10.136"
},

@@ -42,0 +42,0 @@ "peerDependencies": {

@@ -13,3 +13,3 @@ [//]: #@corifeus-header

---
# ❤️ Corifeus Utils v2021.10.135
# ❤️ Corifeus Utils v2021.10.139

@@ -115,3 +115,3 @@

[**CORIFEUS-UTILS**](https://corifeus.com/corifeus-utils) Build v2021.10.135
[**CORIFEUS-UTILS**](https://corifeus.com/corifeus-utils) Build v2021.10.139

@@ -118,0 +118,0 @@ [![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)

@@ -57,1 +57,29 @@ const utilsPromise = require('./promise');

}
module.exports.isPortReachable = async (port, {timeout = 1000, host} = {}) => {
const net = require('net');
const promise = new Promise(((resolve, reject) => {
const socket = new net.Socket();
const onError = () => {
socket.destroy();
reject();
};
socket.setTimeout(timeout);
socket.once('error', onError);
socket.once('timeout', onError);
socket.connect(port, host, () => {
socket.end();
resolve();
});
}));
try {
await promise;
return true;
} catch (_) {
return false;
}
};

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