overtime-live-trading-utils 2.1.16 → 2.1.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.
Files changed (38) hide show
  1. package/.circleci/config.yml +32 -32
  2. package/.prettierrc +9 -9
  3. package/CLAUDE.md +77 -0
  4. package/codecov.yml +20 -20
  5. package/index.ts +26 -16
  6. package/jest.config.ts +16 -16
  7. package/main.js +1 -1
  8. package/package.json +30 -30
  9. package/resolution_live_markets.md +351 -0
  10. package/src/constants/common.ts +7 -7
  11. package/src/constants/errors.ts +6 -6
  12. package/src/constants/sports.ts +78 -78
  13. package/src/enums/sports.ts +109 -109
  14. package/src/tests/mock/MockLeagueMap.ts +170 -159
  15. package/src/tests/mock/MockOpticOddsEvents.ts +518 -0
  16. package/src/tests/mock/MockOpticSoccer.ts +9378 -9342
  17. package/src/tests/mock/MockSoccerRedis.ts +2308 -2308
  18. package/src/tests/unit/bookmakers.test.ts +79 -79
  19. package/src/tests/unit/markets.test.ts +156 -152
  20. package/src/tests/unit/odds.test.ts +92 -92
  21. package/src/tests/unit/resolution.test.ts +1043 -0
  22. package/src/tests/unit/sports.test.ts +58 -58
  23. package/src/tests/unit/spread.test.ts +131 -131
  24. package/src/types/missing-types.d.ts +2 -2
  25. package/src/types/odds.ts +61 -61
  26. package/src/types/resolution.ts +78 -0
  27. package/src/types/sports.ts +19 -19
  28. package/src/utils/bookmakers.ts +159 -159
  29. package/src/utils/constraints.ts +210 -210
  30. package/src/utils/gameMatching.ts +81 -81
  31. package/src/utils/markets.ts +119 -119
  32. package/src/utils/odds.ts +674 -674
  33. package/src/utils/opticOdds.ts +71 -71
  34. package/src/utils/resolution.ts +221 -0
  35. package/src/utils/sports.ts +51 -51
  36. package/src/utils/spread.ts +97 -97
  37. package/tsconfig.json +16 -16
  38. package/webpack.config.js +24 -24
package/tsconfig.json CHANGED
@@ -1,17 +1,17 @@
1
- {
2
- "compilerOptions": {
3
- "module": "esnext",
4
- "esModuleInterop": true,
5
- "target": "es5",
6
- "lib": [
7
- "dom",
8
- "dom.iterable",
9
- "esnext"
10
- ],
11
- "moduleResolution": "node",
12
- "sourceMap": true,
13
- "outDir": "build",
14
- "declaration": true,
15
- "strict": true,
16
- }
1
+ {
2
+ "compilerOptions": {
3
+ "module": "esnext",
4
+ "esModuleInterop": true,
5
+ "target": "es5",
6
+ "lib": [
7
+ "dom",
8
+ "dom.iterable",
9
+ "esnext"
10
+ ],
11
+ "moduleResolution": "node",
12
+ "sourceMap": true,
13
+ "outDir": "build",
14
+ "declaration": true,
15
+ "strict": true,
16
+ }
17
17
  }
package/webpack.config.js CHANGED
@@ -1,24 +1,24 @@
1
- const path = require('path');
2
-
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: 'thalesUtils',
21
- libraryTarget: 'umd',
22
- globalObject: 'this',
23
- },
24
- };
1
+ const path = require('path');
2
+
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: 'thalesUtils',
21
+ libraryTarget: 'umd',
22
+ globalObject: 'this',
23
+ },
24
+ };