@skypath-io/web-sdk 0.5.10 → 0.5.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -60,13 +60,12 @@ export function parseDataKeyToComponents({ dataKey, separator, }: {
60
60
  }): string[];
61
61
  /**
62
62
  * Maps an aircraft ICAO code to an aircraft type.
63
- * @param {object} options
64
- * @param {string} options.icao - The aircraft ICAO code.
65
- * @param {object[]} options.mapping - The aircraft mapping.
66
- * @returns {string} - The aircraft type.
67
- * @throws {Error} - Throws an error if the aircraft type is not found.
68
- */
69
- export function mapAircraftIcaoToAircraftType({ icao, mapping }: {
63
+ * @param {object} [props={ icao: "", mapping: [] }] - The props object with defaults.
64
+ * @param {string} props.icao - The aircraft ICAO code.
65
+ * @param {object[]} props.mapping - The aircraft mapping.
66
+ * @returns {string} - The aircraft type, or AIRCRAFT_CATEGORY.C60 as fallback if icao/mapping is missing or no match is found.
67
+ * */
68
+ export function mapAircraftIcaoToAircraftType(props?: {
70
69
  icao: string;
71
70
  mapping: object[];
72
71
  }): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skypath-io/web-sdk",
3
- "version": "0.5.10",
3
+ "version": "0.5.11",
4
4
  "type": "module",
5
5
  "main": "dist/bundle.cjs.js",
6
6
  "module": "dist/bundle.es.js",