overtime-utils 0.1.70 → 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/main.js +1 -1
- package/package.json +1 -1
- package/src/constants/marketTypes.ts +18 -0
- package/src/utils/markets.ts +3 -2
- package/webpack.config.js +21 -19
package/package.json
CHANGED
|
@@ -5225,6 +5225,24 @@ 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_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,
|
|
5228
5246
|
];
|
|
5229
5247
|
|
|
5230
5248
|
export const ESPORTS_MARKET_TYPES = [
|
package/src/utils/markets.ts
CHANGED
|
@@ -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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
};
|