mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
fix(webpack): unit test runner with node 18+ (#9952)
This commit is contained in:
@ -5,9 +5,9 @@ export function getIPS() {
|
|||||||
return Object.keys(interfaces)
|
return Object.keys(interfaces)
|
||||||
.map((name) => {
|
.map((name) => {
|
||||||
return interfaces[name].filter(
|
return interfaces[name].filter(
|
||||||
(binding: any) => binding.family === 'IPv4'
|
(binding: any) => binding.family === 'IPv4' || binding.family === 4
|
||||||
)[0];
|
)[0];
|
||||||
})
|
})
|
||||||
.filter(Boolean)
|
.filter((binding) => !!binding)
|
||||||
.map((binding) => binding.address);
|
.map((binding) => binding.address);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user