Socket
Socket
Sign inDemoInstall

@ionic/utils-network

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ionic/utils-network - npm Package Compare versions

Comparing version 2.1.6 to 2.1.7

2

dist/index.d.ts
/// <reference types="node" />
import * as os from 'os';
import os from 'os';
export declare const DEFAULT_ADDRESSES: readonly string[];

@@ -4,0 +4,0 @@ export declare type NetworkInterface = {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isHostConnectable = exports.isPortAvailableForHost = exports.isPortAvailable = exports.findClosestOpenPort = exports.getExternalIPv4Interfaces = exports.DEFAULT_ADDRESSES = void 0;
const Debug = require("debug");
const net = require("net");
const os = require("os");
const debug = Debug('ionic:utils-network');
const tslib_1 = require("tslib");
const debug_1 = require("debug");
const net = tslib_1.__importStar(require("net"));
const os_1 = tslib_1.__importDefault(require("os"));
const debug = (0, debug_1.debug)('ionic:utils-network');
exports.DEFAULT_ADDRESSES = getDefaultAddresses();

@@ -12,3 +13,3 @@ function getDefaultAddresses() {

try {
const networkInterfaces = os.networkInterfaces();
const networkInterfaces = os_1.default.networkInterfaces();
for (const device of Object.keys(networkInterfaces)) {

@@ -27,3 +28,3 @@ const networkInterface = networkInterfaces[device];

function getExternalIPv4Interfaces() {
const networkInterfaces = os.networkInterfaces();
const networkInterfaces = os_1.default.networkInterfaces();
const devices = [];

@@ -30,0 +31,0 @@ for (const device of Object.keys(networkInterfaces)) {

{
"name": "@ionic/utils-network",
"version": "2.1.6",
"version": "2.1.7",
"description": "Network utils for Node",

@@ -47,4 +47,3 @@ "main": "dist/index.js",

"typescript": "~4.8.0"
},
"gitHead": "15ef6e7da4eace4fd55d16fd9508d156a4bc8203"
}
}
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