overtime-utils 0.1.74-rc.0 → 0.1.75-rc.0
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/main.js +1 -1
- package/package.json +1 -1
- package/src/constants/marketTypes.ts +1 -1
- package/src/utils/odds.ts +3 -2
package/package.json
CHANGED
|
@@ -3836,7 +3836,6 @@ export const MarketTypeMap: Record<MarketType, MarketTypeInfo> = {
|
|
|
3836
3836
|
name: 'Total fouls',
|
|
3837
3837
|
resultType: ResultType.OVER_UNDER,
|
|
3838
3838
|
},
|
|
3839
|
-
|
|
3840
3839
|
};
|
|
3841
3840
|
|
|
3842
3841
|
export const WINNER_MARKET_TYPES = [
|
|
@@ -4431,6 +4430,7 @@ export const PLAYER_PROPS_MARKET_TYPES = [
|
|
|
4431
4430
|
MarketType.PLAYER_PROPS_MAN_OF_THE_MATCH,
|
|
4432
4431
|
MarketType.PLAYER_PROPS_WICKETS_TAKEN,
|
|
4433
4432
|
MarketType.PLAYER_PROPS_SIXES,
|
|
4433
|
+
MarketType.PLAYER_PROPS_FOURS,
|
|
4434
4434
|
MarketType.PLAYER_PROPS_THREE_DART_AVERAGE,
|
|
4435
4435
|
MarketType.PLAYER_PROPS_180,
|
|
4436
4436
|
MarketType.PLAYER_PROPS_100_PLUS_CHECKOUTS,
|
package/src/utils/odds.ts
CHANGED
|
@@ -2,12 +2,13 @@ const ZERO = 0;
|
|
|
2
2
|
const MULTIPLIER_100 = 100;
|
|
3
3
|
const MINIMAL_PROBABILITY_SUM = 1.02;
|
|
4
4
|
|
|
5
|
+
let GLOBAL_LOG_ENABLED = false;
|
|
5
6
|
const log = (...args: any[]) => {
|
|
6
|
-
|
|
7
|
-
if (isTest) {
|
|
7
|
+
if (GLOBAL_LOG_ENABLED) {
|
|
8
8
|
console.log(...args);
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
|
+
export const setLogEnabled = (enabled: boolean) => (GLOBAL_LOG_ENABLED = enabled);
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
14
|
* Checks if the sum of odds is greater than MINIMAL_PROBABILITY_SUM.
|