@ionic/utils-network
Advanced tools
Comparing version 2.1.6 to 2.1.7
/// <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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
200
9190
5