overtime-utils 0.1.69 → 0.1.71

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.69",
3
+ "version": "0.1.71",
4
4
  "description": "",
5
5
  "main": "main.js",
6
6
  "scripts": {
@@ -5065,6 +5065,18 @@ export const HOME_TEAM_MARKET_TYPES = [
5065
5065
  MarketType.TOTAL_HOME_TEAM_ODD_EVEN,
5066
5066
  MarketType.HOME_TEAM_TO_SCORE,
5067
5067
  MarketType.HOME_TEAM_TO_WIN_TO_NIL,
5068
+
5069
+ MarketType.HOME_TEAM_TO_WIN_BOTH_HALVES,
5070
+ MarketType.HOME_TEAM_TO_WIN_EITHER_HALF,
5071
+ MarketType.HOME_TEAM_TO_SCORE_BOTH_HALVES,
5072
+
5073
+ MarketType.HOME_TEAM_TOTAL_SHOTS,
5074
+ MarketType.HOME_TEAM_TOTAL_SHOTS_ON_TARGET,
5075
+
5076
+ MarketType.HOME_TEAM_TOTAL_BLOCKS,
5077
+ MarketType.HOME_TEAM_TOTAL_STEALS,
5078
+ MarketType.HOME_TEAM_TOTAL_ASSISTS,
5079
+ MarketType.HOME_TEAM_TOTAL_FAULS,
5068
5080
  ];
5069
5081
 
5070
5082
  export const AWAY_TEAM_MARKET_TYPES = [
@@ -5124,6 +5136,18 @@ export const AWAY_TEAM_MARKET_TYPES = [
5124
5136
  MarketType.TOTAL_AWAY_TEAM_ODD_EVEN,
5125
5137
  MarketType.AWAY_TEAM_TO_SCORE,
5126
5138
  MarketType.AWAY_TEAM_TO_WIN_TO_NIL,
5139
+
5140
+ MarketType.AWAY_TEAM_TO_WIN_BOTH_HALVES,
5141
+ MarketType.AWAY_TEAM_TO_WIN_EITHER_HALF,
5142
+ MarketType.AWAY_TEAM_TO_SCORE_BOTH_HALVES,
5143
+
5144
+ MarketType.AWAY_TEAM_TOTAL_SHOTS,
5145
+ MarketType.AWAY_TEAM_TOTAL_SHOTS_ON_TARGET,
5146
+
5147
+ MarketType.AWAY_TEAM_TOTAL_BLOCKS,
5148
+ MarketType.AWAY_TEAM_TOTAL_STEALS,
5149
+ MarketType.AWAY_TEAM_TOTAL_ASSISTS,
5150
+ MarketType.AWAY_TEAM_TOTAL_FAULS,
5127
5151
  ];
5128
5152
 
5129
5153
  export const SCORE_MARKET_TYPES = [MarketType.FIRST_SCORE, MarketType.LAST_SCORE];
@@ -5201,6 +5225,24 @@ export const BASKETBALL_MARKET_TYPES = [
5201
5225
  MarketType.TOTAL_MADE_THREES,
5202
5226
  MarketType.TOTAL_MADE_THREES_HOME_TEAM,
5203
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_SHOTS,
5241
+ MarketType.TOTAL_SHOTS_ON_TARGET,
5242
+ MarketType.HOME_TEAM_TOTAL_SHOTS,
5243
+ MarketType.AWAY_TEAM_TOTAL_SHOTS,
5244
+ MarketType.HOME_TEAM_TOTAL_SHOTS_ON_TARGET,
5245
+ MarketType.AWAY_TEAM_TOTAL_SHOTS_ON_TARGET,
5204
5246
  ];
5205
5247
 
5206
5248
  export const ESPORTS_MARKET_TYPES = [
@@ -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
  };