@immjs/nat-api
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -41,3 +41,3 @@ import dgram, { RemoteInfo, Socket } from 'dgram'; | ||
const socket = await Object.entries(interfaces) | ||
const socket = await Promise.any(Object.entries(interfaces) | ||
.flatMap( | ||
@@ -48,3 +48,3 @@ ([iface, infos]) => | ||
.map((item) => createSocket(item)) || [], | ||
)[0]; | ||
)); | ||
@@ -51,0 +51,0 @@ return new Ssdp( |
{ | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"name": "@immjs/nat-api", | ||
@@ -12,14 +12,11 @@ "description": "Port mapping with UPnP and NAT-PMP", | ||
}, | ||
"engines": { | ||
"node": ">=10.0.0" | ||
}, | ||
"dependencies": { | ||
"fast-xml-parser": "^4.0.1" | ||
"fast-xml-parser": "^4.4.1" | ||
}, | ||
"devDependencies": { | ||
"@types/default-gateway": "^7.2.2", | ||
"@types/node": "^17.0.8", | ||
"@types/node": "^22.3.0", | ||
"default-gateway": "^7.2.2", | ||
"typescript": "^4.5.4", | ||
"uvu": "^0.5.3" | ||
"typescript": "^5.5.4", | ||
"uvu": "^0.5.6" | ||
}, | ||
@@ -26,0 +23,0 @@ "author": { |
54803
Updatedfast-xml-parser@^4.4.1