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

@2bad/ryanair

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@2bad/ryanair - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

2

build/airports/getActive.d.ts

@@ -1,2 +0,2 @@

import { Airport } from './types.js';
import { Airport } from '../airports/types.js';
/**

@@ -3,0 +3,0 @@ * Retrieves a list of all active airports

import { z } from 'zod';
import { get } from '../client.js';
import { Airport } from './types.js';
import { Airport } from '../airports/types.js';
/**

@@ -5,0 +5,0 @@ * Retrieves a list of all active airports

@@ -1,2 +0,2 @@

import { AirportShort } from './types.js';
import { AirportShort } from '../airports/types.js';
/**

@@ -3,0 +3,0 @@ * Returns information about the closest airport based on the user's IP address.

import { get } from '../client.js';
import { AirportShort } from './types.js';
import { AirportShort } from '../airports/types.js';
/**

@@ -4,0 +4,0 @@ * Returns information about the closest airport based on the user's IP address.

@@ -1,2 +0,2 @@

import { Destination, type IataCode } from './types.js';
import { Destination, type IataCode } from '../airports/types.js';
/**

@@ -3,0 +3,0 @@ * Returns a list of available destinations from an airport

import { z } from 'zod';
import { get } from '../client.js';
import { Destination } from './types.js';
import { Destination } from '../airports/types.js';
/**

@@ -5,0 +5,0 @@ * Returns a list of available destinations from an airport

@@ -1,2 +0,2 @@

import { Airport, type IataCode } from './types.js';
import { Airport, type IataCode } from '../airports/types.js';
/**

@@ -3,0 +3,0 @@ * Returns information about an airport

import { get } from '../client.js';
import { Airport } from './types.js';
import { Airport } from '../airports/types.js';
/**

@@ -4,0 +4,0 @@ * Returns information about an airport

import * as client from '../client.js';
import * as airports from './index.js';
import * as airports from '../airports/index.js';
describe('Airports', () => {

@@ -4,0 +4,0 @@ afterEach(() => {

@@ -1,2 +0,2 @@

import { AirportShort } from './types.js';
import { AirportShort } from '../airports/types.js';
/**

@@ -3,0 +3,0 @@ * Search for airports matching the given phrase

import { z } from 'zod';
import { get } from '../client.js';
import { AirportShort } from './types.js';
import { AirportShort } from '../airports/types.js';
/**

@@ -5,0 +5,0 @@ * Search for airports matching the given phrase

@@ -1,2 +0,2 @@

import { AirportConnection } from './types.js';
import { AirportConnection } from '../airports/types.js';
/**

@@ -3,0 +3,0 @@ * Search for airports with available routes from the departure phrase to the arrival phrase

import { z } from 'zod';
import { get } from '../client.js';
import { AirportConnection } from './types.js';
import { AirportConnection } from '../airports/types.js';
/**

@@ -5,0 +5,0 @@ * Search for airports with available routes from the departure phrase to the arrival phrase

import { got } from 'got';
import { CookieJar } from 'tough-cookie';
import { CookieJar, Cookie } from 'tough-cookie';
/**

@@ -20,2 +20,9 @@ * Extend `got` http client so every time request is made we check if there is a `rid.sig` cookie

// If it doesn't exist, visit the Ryanair site to set the cookie
// @ts-expect-error got is unable to resolve correct type for cookieJar
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
options.cookieJar?.setCookieSync(new Cookie({
key: 'mkt',
value: '/de/de/',
domain: 'ryanair.com'
}), 'https://www.ryanair.com');
await got('https://www.ryanair.com/de/de', {

@@ -28,2 +35,5 @@ cookieJar: options.cookieJar

},
headers: {
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; rv:113.0) Gecko/20100101 Firefox/113.0'
},
resolveBodyOnly: true,

@@ -30,0 +40,0 @@ responseType: 'json',

import { type IataCode } from '../airports/types.js';
import { type StrDate } from '../date.types.js';
import { CheapestFares } from './types.js';
import { CheapestFares } from '../fares/types.js';
/**

@@ -5,0 +5,0 @@ * Returns the cheapest one-way fares between two airports for a given start date

import { get } from '../client.js';
import { CheapestFares } from './types.js';
import { CheapestFares } from '../fares/types.js';
/**

@@ -4,0 +4,0 @@ * Returns the cheapest one-way fares between two airports for a given start date

import * as client from '../client.js';
import { tomorrow } from '../utils/date.js';
import { cheapestPerDay } from './index.js';
import { cheapestPerDay } from '../fares/index.js';
describe('Fares', () => {

@@ -5,0 +5,0 @@ describe('cheapestPerDay', () => {

@@ -1,2 +0,2 @@

import { type AvailabilityOptions, AvailabilityResponse } from './types.js';
import { type AvailabilityOptions, AvailabilityResponse } from '../flights/types.js';
export declare const getAvailable: (params: Partial<AvailabilityOptions>) => Promise<AvailabilityResponse>;
import { get } from '../client.js';
import { tomorrow } from '../utils/date.js';
import { AvailabilityResponse } from './types.js';
import { AvailabilityResponse } from '../flights/types.js';
export const getAvailable = async (params) => {

@@ -5,0 +5,0 @@ const defaults = {

import * as client from '../client.js';
import { tomorrow } from '../utils/date.js';
import { getDates, getAvailable } from './index.js';
import { getDates, getAvailable } from '../flights/index.js';
describe('Flights', () => {

@@ -5,0 +5,0 @@ describe('getDates', () => {

{
"name": "@2bad/ryanair",
"version": "2.0.1",
"version": "2.0.2",
"description": "Unofficial typescript client for the Ryanair API that allows you to easily retrieve information about airports, flights and prices.",

@@ -5,0 +5,0 @@ "keywords": [

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