msfs-simconnect-api-wrapper
Advanced tools
Comparing version 2.0.3 to 2.0.4
{ | ||
"name": "msfs-simconnect-api-wrapper", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "A convenient SimConnect API for playing with Microsoft Flight Simulator 2020", | ||
@@ -5,0 +5,0 @@ "main": "msfs-api.js", |
@@ -250,3 +250,5 @@ /** | ||
const handler = ({ data, type }) => { | ||
const handler = ({ data, type, userRequestId }) => { | ||
if (userRequestId !== getID) return; | ||
// airport | ||
@@ -342,3 +344,5 @@ if (type === 0) { | ||
handle.off("facilityData", handler); | ||
resolve(airportData); | ||
resolve({ | ||
[propName]: airportData, | ||
}); | ||
} | ||
@@ -345,0 +349,0 @@ }; |
218697
6561