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

@flybywiresim/api-client

Package Overview
Dependencies
Maintainers
4
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flybywiresim/api-client - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

1

lib/index.d.ts

@@ -132,2 +132,3 @@ export declare class MetarResponse {

static get(icao: string): Promise<AirportResponse>;
static getBatch(icaos: string[]): Promise<AirportResponse[]>;
}

@@ -134,0 +135,0 @@ export declare class GitVersions {

@@ -352,2 +352,21 @@ "use strict";

};
Airport.getBatch = function (icaos) {
if (!icaos) {
throw new Error("No ICAOs provided");
}
var body = {
icaos: icaos
};
var headers = {
"Content-Type": "application/json"
};
var url = new URL("/api/v1/airport/_batch", NXApi.url);
return fetch(url.href, { method: "POST", body: JSON.stringify(body), headers: headers })
.then(function (response) {
if (!response.ok) {
throw new HttpError(response.status);
}
return response.json();
});
};
return Airport;

@@ -354,0 +373,0 @@ }());

2

package.json
{
"name": "@flybywiresim/api-client",
"version": "0.6.0",
"version": "0.7.0",
"description": "Client library for the FlyByWire Simulations API",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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