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

@findhotel/sapi

Package Overview
Dependencies
Maintainers
3
Versions
192
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@findhotel/sapi - npm Package Compare versions

Comparing version 0.20.1 to 0.20.2

6

CHANGELOG.md

@@ -0,1 +1,7 @@

## [0.20.2](https://github.com/FindHotel/sapi/compare/v0.20.1...v0.20.2) (2021-08-16)
### Changed
- Use first offer instead of cheapest to calculate deal score
### Fixed
- `regularPriceRange` being `[null, null]` changed to `undefined` in case of missing `priceBucketWidth`
## [0.20.1](https://github.com/FindHotel/sapi/compare/v0.19.3...v0.20.1) (2021-08-10)

@@ -2,0 +8,0 @@ ### Changed

2

dist/types/packages/core/src/algolia/geo-search.d.ts

@@ -7,3 +7,3 @@ import { AlgoliaClient } from '..';

requestSize: number;
priceBucketWidth: number;
priceBucketWidth?: number;
priceBucketsCount: number;

@@ -10,0 +10,0 @@ exchangeRate: number;

@@ -5,3 +5,3 @@ interface PriceFilterParameters {

margin?: number;
priceBucketWidth: number;
priceBucketWidth?: number;
priceBucketsCount: number;

@@ -8,0 +8,0 @@ priceMax?: number;

@@ -10,3 +10,3 @@ import { OffersResponse } from './raa';

};
priceBucketWidth: number;
priceBucketWidth?: number;
priceBucketsCount: number;

@@ -22,2 +22,3 @@ exchangeRate: number;

export declare function isOfferInPriceRange(offer: Offer, upperBound: number, priceMin?: number, priceMax?: number): boolean;
export declare function applyPriceFilter(parameters: Parameters, hotelOfferEntity: HotelOfferEntity): HotelOfferEntity;
interface TopOfferDataWithAnchorPriceParameters {

@@ -24,0 +25,0 @@ topOfferData: TopOfferData;

@@ -101,3 +101,3 @@ /**

placeDN: TranslatedArray;
priceBucketWidth: number;
priceBucketWidth?: number;
_geoloc: Location;

@@ -104,0 +104,0 @@ }

@@ -5,3 +5,3 @@ import { HotelId, HotelOfferEntity, Hotel } from '../types';

hotelId: HotelId,
cheapestRate?: number,
rate?: number,
lowerBound?: number,

@@ -8,0 +8,0 @@ upperBound?: number

@@ -6,7 +6,7 @@ import { Hotel } from '../types';

* @param hotel - hotel to augment
* @param exchangeRate - currency exchange rate
* @param priceBucketWidth - price bucked width from search anchor
* @param exchangeRate - currency exchange rate
*
* @returns Hotel
*/
export declare function augmentHotelWithRegularPriceRange(hotel: Hotel, priceBucketWidth: number, exchangeRate: number): Hotel;
export declare function augmentHotelWithRegularPriceRange(hotel: Hotel, exchangeRate: number, priceBucketWidth?: number): Hotel;
{
"name": "@findhotel/sapi",
"version": "0.20.1",
"version": "0.20.2",
"description": "FindHotel Search API",

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

Sorry, the diff of this file is too big to display

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