Socket
Socket
Sign inDemoInstall

pmj-static-data

Package Overview
Dependencies
0
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.1.2

4

dist/index.d.ts

@@ -118,3 +118,3 @@ interface CountryCode {

};
} | undefined;
};
export declare function GetCityDetails(options: CityLookup): {

@@ -126,3 +126,3 @@ city: CityDetails;

};
} | undefined;
};
export declare function SearchCity(options: CitySearch): CityDetails[];

@@ -129,0 +129,0 @@ export declare function GetTopAirportsInCountry(options: TopAirports): AirportDetails[];

@@ -147,22 +147,22 @@ "use strict";

return { response: { status: "ERROR", message: "IATA CODE must be exactly 3 letters. E.X. (BLR)" }, airport: {
pmj_airport_id: undefined,
name: undefined,
type: undefined,
iata_code: undefined,
icao_code: undefined,
altitude: undefined,
country_code: undefined,
country_name: undefined,
lat: undefined,
lon: undefined,
airline_routes_count: undefined,
destinations_count: undefined,
website: undefined,
wiki_link: undefined,
city_name: undefined,
state: undefined,
pmj_city_id: undefined,
pmj_country_id: undefined,
pmj_state_id: undefined,
top_location_in_country: undefined
pmj_airport_id: '',
name: '',
type: '',
iata_code: '',
icao_code: '',
altitude: '',
country_code: '',
country_name: '',
lat: '',
lon: '',
airline_routes_count: '',
destinations_count: '',
website: '',
wiki_link: '',
city_name: '',
state: '',
pmj_city_id: '',
pmj_country_id: '',
pmj_state_id: '',
top_location_in_country: false
} };

@@ -179,22 +179,22 @@ }

return { response: { status: "ERROR", message: `Could not find airport with that IATA CODE. Try GetCityDetails({iata_code: ${iata_code}}).` }, airport: {
pmj_airport_id: undefined,
name: undefined,
type: undefined,
iata_code: undefined,
icao_code: undefined,
altitude: undefined,
country_code: undefined,
country_name: undefined,
lat: undefined,
lon: undefined,
airline_routes_count: undefined,
destinations_count: undefined,
website: undefined,
wiki_link: undefined,
city_name: undefined,
state: undefined,
pmj_city_id: undefined,
pmj_country_id: undefined,
pmj_state_id: undefined,
top_location_in_country: undefined
pmj_airport_id: '',
name: '',
type: '',
iata_code: '',
icao_code: '',
altitude: '',
country_code: '',
country_name: '',
lat: '',
lon: '',
airline_routes_count: '',
destinations_count: '',
website: '',
wiki_link: '',
city_name: '',
state: '',
pmj_city_id: '',
pmj_country_id: '',
pmj_state_id: '',
top_location_in_country: false
} };

@@ -205,22 +205,22 @@ }

return { response: { status: "ERROR", message: "Invalid Airport ID. Airport ID should be minimum of 8 charaters." }, airport: {
pmj_airport_id: undefined,
name: undefined,
type: undefined,
iata_code: undefined,
icao_code: undefined,
altitude: undefined,
country_code: undefined,
country_name: undefined,
lat: undefined,
lon: undefined,
airline_routes_count: undefined,
destinations_count: undefined,
website: undefined,
wiki_link: undefined,
city_name: undefined,
state: undefined,
pmj_city_id: undefined,
pmj_country_id: undefined,
pmj_state_id: undefined,
top_location_in_country: undefined
pmj_airport_id: '',
name: '',
type: '',
iata_code: '',
icao_code: '',
altitude: '',
country_code: '',
country_name: '',
lat: '',
lon: '',
airline_routes_count: '',
destinations_count: '',
website: '',
wiki_link: '',
city_name: '',
state: '',
pmj_city_id: '',
pmj_country_id: '',
pmj_state_id: '',
top_location_in_country: false
} };

@@ -244,24 +244,25 @@ }

return { response: { status: "ERROR", message: `Invalid Airport ID or Not found` }, airport: {
pmj_airport_id: undefined,
name: undefined,
type: undefined,
iata_code: undefined,
icao_code: undefined,
altitude: undefined,
country_code: undefined,
country_name: undefined,
lat: undefined,
lon: undefined,
airline_routes_count: undefined,
destinations_count: undefined,
website: undefined,
wiki_link: undefined,
city_name: undefined,
state: undefined,
pmj_city_id: undefined,
pmj_country_id: undefined,
pmj_state_id: undefined,
top_location_in_country: undefined
pmj_airport_id: '',
name: '',
type: '',
iata_code: '',
icao_code: '',
altitude: '',
country_code: '',
country_name: '',
lat: '',
lon: '',
airline_routes_count: '',
destinations_count: '',
website: '',
wiki_link: '',
city_name: '',
state: '',
pmj_city_id: '',
pmj_country_id: '',
pmj_state_id: '',
top_location_in_country: false
} };
}
return { airport, response: { status: "SUCCESS", message: "OK" } };
}

@@ -305,2 +306,3 @@ exports.GetAirportDetails = GetAirportDetails;

}
return { response: { status: "ERROR", message: `Could not find airport with that IATA CODE. Try GetAirportDetails({iata_code: ${iata_code}}).` }, city };
}

@@ -307,0 +309,0 @@ exports.GetCityDetails = GetCityDetails;

{
"name": "pmj-static-data",
"version": "1.1.0",
"version": "1.1.2",
"description": "Search Airports, Cities, Countries and many other data in Plan My Journey DATABASE.",

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc