Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

msfs-simconnect-api-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

msfs-simconnect-api-wrapper - npm Package Compare versions

Comparing version 2.0.4 to 2.1.0

simvars/aircraft-fuel-variables.js

5

CHANGELOG.md

@@ -0,1 +1,6 @@

v2.1
- added fuel variables. They were missing despite the readme saying they were implemented.
- added a catch for unknown vars so the code doesn't actually crash.
v2.0.1

@@ -2,0 +7,0 @@

18

msfs-api.js

@@ -204,9 +204,13 @@ import {

handle.mapClientEventToSimEvent(eventID, triggerName);
handle.transmitClientEvent(
SimConnectConstants.OBJECT_ID_USER,
eventID,
value,
1, // highest priority
16 // group id is priority
);
try {
handle.transmitClientEvent(
SimConnectConstants.OBJECT_ID_USER,
eventID,
value,
1, // highest priority
16 // group id is priority
);
} catch (e) {
console.warn(e);
}
}

@@ -213,0 +217,0 @@

{
"name": "msfs-simconnect-api-wrapper",
"version": "2.0.4",
"version": "2.1.0",
"description": "A convenient SimConnect API for playing with Microsoft Flight Simulator 2020",

@@ -5,0 +5,0 @@ "main": "msfs-api.js",

@@ -9,2 +9,3 @@ // See https://docs.flightsimulator.com/html/Programming_Tools/SimVars/Simulation_Variables.htm

import { AircraftFlightModelVariables } from "./aircraft-flight-model-variables.js";
import { AircraftFuelVariables } from "./aircraft-fuel-variables.js";
import { AircraftMiscVariables } from "./aircraft-misc-variables.js";

@@ -19,2 +20,3 @@ import { AircraftRadioNavigationVariables } from "./aircraft-radio-navigation-variables.js";

const SimVars = {

@@ -27,2 +29,3 @@ ...AircraftAutopilotAssistantVariables,

...AircraftFlightModelVariables,
...AircraftFuelVariables,
...AircraftMiscVariables,

@@ -29,0 +32,0 @@ ...AircraftRadioNavigationVariables,

@@ -93,1 +93,2 @@ import { SimConnectDataType } from "node-simconnect";

export const MillimetersOfWater = { units: `millimeters of water` };
export const KiloPascal = { units: `kilopascal` };
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc