overtime-live-trading-utils 4.0.0-rc.17 → 4.0.0-rc.18

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "overtime-live-trading-utils",
3
- "version": "4.0.0-rc.17",
3
+ "version": "4.0.0-rc.18",
4
4
  "description": "",
5
5
  "main": "main.js",
6
6
  "scripts": {
@@ -14,7 +14,7 @@
14
14
  "dependencies": {
15
15
  "@types/node": "^20.8.10",
16
16
  "oddslib": "^2.1.1",
17
- "overtime-utils": "^0.1.64",
17
+ "overtime-utils": "^0.1.66",
18
18
  "react": "^17.0.1"
19
19
  },
20
20
  "devDependencies": {
package/src/utils/odds.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as oddslib from 'oddslib';
2
- import { isOneSidePlayerPropsMarket, MarketType, MarketTypeMap } from 'overtime-utils';
2
+ import { isOneSideExtendedPlayerPropsMarket, MarketType, MarketTypeMap } from 'overtime-utils';
3
3
  import { DRAW, ZERO } from '../constants/common';
4
4
  import { LAST_POLLED_TOO_OLD, NO_MARKETS_FOR_LEAGUE_ID } from '../constants/errors';
5
5
  import { MoneylineTypes } from '../enums/sports';
@@ -463,7 +463,7 @@ export const groupAndFormatTotalOdds = (oddsArray: any[], commonData: HomeAwayTe
463
463
  acc.push({
464
464
  line: line as any,
465
465
  odds: hasOdds
466
- ? isOneSidePlayerPropsMarket((value as any).typeId)
466
+ ? isOneSideExtendedPlayerPropsMarket(Number((value as any).typeId))
467
467
  ? odds.filter((odd) => odd !== null)
468
468
  : odds.map((odd) => odd || ZERO)
469
469
  : [],