overtime-utils 0.1.70 → 0.1.72

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-utils",
3
- "version": "0.1.70",
3
+ "version": "0.1.72",
4
4
  "description": "",
5
5
  "main": "main.js",
6
6
  "scripts": {
@@ -1204,6 +1204,13 @@ export const SOCCER_LEAGUES: Partial<Record<League, LeagueInfo>> = {
1204
1204
  opticOddsName: 'FIFA - Arab Nations Cup',
1205
1205
  priority: 100,
1206
1206
  },
1207
+ [League.FIFA_INTERCONTINENTAL_CUP]: {
1208
+ ...SOCCER_DEFAULTS,
1209
+ id: League.FIFA_INTERCONTINENTAL_CUP,
1210
+ label: 'FIFA Intercontinental Cup',
1211
+ opticOddsName: 'FIFA - Intercontinental Cup',
1212
+ priority: 100,
1213
+ },
1207
1214
  [League.CAF_AFRICA_CUP_OF_NATIONS]: {
1208
1215
  ...SOCCER_DEFAULTS,
1209
1216
  id: League.CAF_AFRICA_CUP_OF_NATIONS,
@@ -5225,6 +5225,25 @@ export const BASKETBALL_MARKET_TYPES = [
5225
5225
  MarketType.TOTAL_MADE_THREES,
5226
5226
  MarketType.TOTAL_MADE_THREES_HOME_TEAM,
5227
5227
  MarketType.TOTAL_MADE_THREES_AWAY_TEAM,
5228
+ MarketType.TOTAL_FAULS,
5229
+ MarketType.HOME_TEAM_TOTAL_BLOCKS,
5230
+ MarketType.AWAY_TEAM_TOTAL_BLOCKS,
5231
+ MarketType.HOME_TEAM_TOTAL_STEALS,
5232
+ MarketType.AWAY_TEAM_TOTAL_STEALS,
5233
+ MarketType.HOME_TEAM_TOTAL_ASSISTS,
5234
+ MarketType.AWAY_TEAM_TOTAL_ASSISTS,
5235
+ MarketType.HOME_TEAM_TOTAL_FAULS,
5236
+ MarketType.AWAY_TEAM_TOTAL_FAULS,
5237
+ ];
5238
+
5239
+ export const SOCCER_TOTAL_MARKET_TYPES = [
5240
+ MarketType.TOTAL_OFFSIDES,
5241
+ MarketType.TOTAL_SHOTS,
5242
+ MarketType.TOTAL_SHOTS_ON_TARGET,
5243
+ MarketType.HOME_TEAM_TOTAL_SHOTS,
5244
+ MarketType.AWAY_TEAM_TOTAL_SHOTS,
5245
+ MarketType.HOME_TEAM_TOTAL_SHOTS_ON_TARGET,
5246
+ MarketType.AWAY_TEAM_TOTAL_SHOTS_ON_TARGET,
5228
5247
  ];
5229
5248
 
5230
5249
  export const ESPORTS_MARKET_TYPES = [
@@ -64,6 +64,7 @@ export const INTERNATIONAL_LEAGUES = [
64
64
  League.INTERNATIONAL_FRIENDLIES,
65
65
  League.INTERNATIONAL_FRIENDLIES_WOMEN,
66
66
  League.FIFA_ARAB_NATIONS_CUP,
67
+ League.FIFA_INTERCONTINENTAL_CUP,
67
68
  League.CAF_AFRICA_CUP_OF_NATIONS,
68
69
  ];
69
70
 
@@ -414,6 +414,7 @@ export enum League {
414
414
  BOLIVIA_DIVISION_PROFESSIONAL = 20721,
415
415
  VENEZUELA_PRIMERA_DIVISION = 20722,
416
416
  FIFA_ARAB_NATIONS_CUP = 20723,
417
+ FIFA_INTERCONTINENTAL_CUP = 20558,
417
418
 
418
419
  CAF_AFRICA_CUP_OF_NATIONS = 20724,
419
420
  FINLAND_YKKOSLIIGA = 20725,
@@ -34,7 +34,7 @@ import {
34
34
  SEVENTH_PERIOD_MARKET_TYPES,
35
35
  SGP_BUILDER_MARKET_TYPES,
36
36
  SGP_NOT_SUPPORTED_MARKET_TYPES,
37
- SIXTH_PERIOD_MARKET_TYPES,
37
+ SIXTH_PERIOD_MARKET_TYPES, SOCCER_TOTAL_MARKET_TYPES,
38
38
  SPREAD_MARKET_TYPES,
39
39
  THIRD_PERIOD_MARKET_TYPES,
40
40
  TOTAL_EXACT_MARKET_TYPES,
@@ -130,7 +130,8 @@ export const isContractResultView = (marketType: MarketType) =>
130
130
  CRICKET_MARKET_TYPES.includes(marketType) ||
131
131
  DARTS_MARKET_TYPES.includes(marketType) ||
132
132
  BASKETBALL_MARKET_TYPES.includes(marketType) ||
133
- ESPORTS_MARKET_TYPES.includes(marketType);
133
+ ESPORTS_MARKET_TYPES.includes(marketType) ||
134
+ SOCCER_TOTAL_MARKET_TYPES.includes(marketType);
134
135
 
135
136
  export const isTotalOrSpreadWithWholeLine = (marketType: MarketType, line: number) =>
136
137
  (isTotalMarket(marketType) || isSpreadMarket(marketType)) && line % 1 === 0;
package/webpack.config.js CHANGED
@@ -1,24 +1,26 @@
1
1
  const path = require('path');
2
2
 
3
3
  module.exports = {
4
- entry: './index.ts',
5
- module: {
6
- rules: [
7
- {
8
- test: /\.ts?$/,
9
- use: 'ts-loader',
10
- exclude: /node_modules/,
11
- },
12
- ],
13
- },
14
- resolve: {
15
- extensions: ['.tsx', '.ts', '.js'],
16
- },
17
- output: {
18
- filename: 'main.js',
19
- path: path.resolve(__dirname),
20
- library: 'overtimeUtils',
21
- libraryTarget: 'umd',
4
+ entry: './index.ts',
5
+ mode: 'production', // ensures minification + tree-shaking
6
+ performance: { hints: false }, // Webpack’s size limits are for web apps, not shared libraries
7
+ module: {
8
+ rules: [
9
+ {
10
+ test: /\.ts?$/,
11
+ use: 'ts-loader',
12
+ exclude: /node_modules/,
13
+ },
14
+ ],
15
+ },
16
+ resolve: {
17
+ extensions: ['.tsx', '.ts', '.js'],
18
+ },
19
+ output: {
20
+ filename: 'main.js',
21
+ path: path.resolve(__dirname),
22
+ library: 'overtimeUtils',
23
+ libraryTarget: 'umd',
22
24
  globalObject: 'this',
23
- },
25
+ },
24
26
  };