@ionic/utils-network
Advanced tools
Comparing version 2.1.5 to 2.1.6
@@ -6,2 +6,10 @@ # Change Log | ||
## [2.1.6](https://github.com/ionic-team/ionic-cli/compare/@ionic/utils-network@2.1.5...@ionic/utils-network@2.1.6) (2023-03-29) | ||
**Note:** Version bump only for package @ionic/utils-network | ||
## [2.1.5](https://github.com/ionic-team/ionic-cli/compare/@ionic/utils-network@2.1.4...@ionic/utils-network@2.1.5) (2020-08-28) | ||
@@ -8,0 +16,0 @@ |
@@ -15,3 +15,5 @@ "use strict"; | ||
const networkInterface = networkInterfaces[device]; | ||
addresses.push(...networkInterface.map(i => i.address)); | ||
if (networkInterface) { | ||
addresses.push(...networkInterface.map(i => i.address)); | ||
} | ||
} | ||
@@ -29,5 +31,7 @@ } | ||
const networkInterface = networkInterfaces[device]; | ||
for (const networkAddress of networkInterface) { | ||
if (!networkAddress.internal && networkAddress.family === 'IPv4') { | ||
devices.push({ device, ...networkAddress }); | ||
if (networkInterface) { | ||
for (const networkAddress of networkInterface) { | ||
if (!networkAddress.internal && networkAddress.family === 'IPv4') { | ||
devices.push({ device, ...networkAddress }); | ||
} | ||
} | ||
@@ -34,0 +38,0 @@ } |
{ | ||
"name": "@ionic/utils-network", | ||
"version": "2.1.5", | ||
"version": "2.1.6", | ||
"description": "Network utils for Node", | ||
@@ -11,3 +11,3 @@ "main": "dist/index.js", | ||
"engines": { | ||
"node": ">=10.3.0" | ||
"node": ">=16.0.0" | ||
}, | ||
@@ -41,3 +41,3 @@ "files": [ | ||
"@types/jest": "^26.0.10", | ||
"@types/node": "~10.17.13", | ||
"@types/node": "~16.0.0", | ||
"jest": "^26.4.2", | ||
@@ -48,5 +48,5 @@ "jest-cli": "^26.0.1", | ||
"ts-jest": "~26.3.0", | ||
"typescript": "~4.0.2" | ||
"typescript": "~4.8.0" | ||
}, | ||
"gitHead": "f85e6db0eba47c8d97181b52d69c687c100f93fb" | ||
"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
14671
199