PATH:
usr
/
lib
/
node_modules
/
pm2
/
node_modules
/
pac-resolver
/
dist
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ip = void 0; const os_1 = __importDefault(require("os")); exports.ip = { address() { const interfaces = os_1.default.networkInterfaces(); // Default to `ipv4` const family = normalizeFamily(); const all = Object.values(interfaces).map((addrs = []) => { const addresses = addrs.filter((details) => { const detailsFamily = normalizeFamily(details.family); if (detailsFamily !== family || exports.ip.isLoopback(details.address)) { return false; } return true; }); return addresses.length ? addresses[0].address : undefined; }).filter(Boolean); return !all.length ? exports.ip.loopback(family) : all[0]; }, isLoopback(addr) { return /^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/ .test(addr) || /^fe80::1$/.test(addr) || /^::1$/.test(addr) || /^::$/.test(addr); }, loopback(family) { // Default to `ipv4` family = normalizeFamily(family); if (family !== 'ipv4' && family !== 'ipv6') { throw new Error('family must be ipv4 or ipv6'); } return family === 'ipv4' ? '127.0.0.1' : 'fe80::1'; } }; function normalizeFamily(family) { if (family === 4) { return 'ipv4'; } if (family === 6) { return 'ipv6'; } return family ? family.toLowerCase() : 'ipv4'; } //# sourceMappingURL=ip.js.map
[-] dnsDomainLevels.js
[edit]
[-] util.d.ts.map
[edit]
[-] myIpAddress.d.ts
[edit]
[-] isInNet.js
[edit]
[-] localHostOrDomainIs.d.ts
[edit]
[-] dnsResolve.d.ts
[edit]
[-] myIpAddress.d.ts.map
[edit]
[-] isInNet.js.map
[edit]
[-] weekdayRange.d.ts.map
[edit]
[-] isResolvable.js.map
[edit]
[-] myIpAddress.js.map
[edit]
[-] dnsResolve.js
[edit]
[-] dateRange.d.ts
[edit]
[-] ip.js.map
[edit]
[-] isResolvable.js
[edit]
[-] dnsDomainLevels.js.map
[edit]
[-] ip.js
[edit]
[-] shExpMatch.js.map
[edit]
[-] dnsDomainLevels.d.ts
[edit]
[-] isResolvable.d.ts
[edit]
[-] shExpMatch.d.ts.map
[edit]
[-] util.js.map
[edit]
[-] timeRange.js
[edit]
[-] shExpMatch.d.ts
[edit]
[-] dateRange.js.map
[edit]
[-] index.js.map
[edit]
[-] dnsDomainIs.js.map
[edit]
[-] ip.d.ts.map
[edit]
[-] dnsResolve.d.ts.map
[edit]
[-] timeRange.js.map
[edit]
[-] isPlainHostName.js.map
[edit]
[-] localHostOrDomainIs.js
[edit]
[-] isPlainHostName.d.ts.map
[edit]
[-] isInNet.d.ts
[edit]
[-] timeRange.d.ts
[edit]
[-] util.js
[edit]
[-] dnsDomainIs.d.ts
[edit]
[+]
..
[-] shExpMatch.js
[edit]
[-] util.d.ts
[edit]
[-] weekdayRange.js.map
[edit]
[-] dnsResolve.js.map
[edit]
[-] index.d.ts.map
[edit]
[-] dnsDomainIs.js
[edit]
[-] timeRange.d.ts.map
[edit]
[-] isPlainHostName.d.ts
[edit]
[-] ip.d.ts
[edit]
[-] isPlainHostName.js
[edit]
[-] index.d.ts
[edit]
[-] weekdayRange.js
[edit]
[-] myIpAddress.js
[edit]
[-] dnsDomainLevels.d.ts.map
[edit]
[-] isResolvable.d.ts.map
[edit]
[-] dateRange.js
[edit]
[-] dnsDomainIs.d.ts.map
[edit]
[-] dateRange.d.ts.map
[edit]
[-] isInNet.d.ts.map
[edit]
[-] weekdayRange.d.ts
[edit]
[-] index.js
[edit]
[-] localHostOrDomainIs.d.ts.map
[edit]
[-] localHostOrDomainIs.js.map
[edit]