@sensiblestats/widget-react 0.165.3 → 0.166.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/CHANGELOG.md +11 -0
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1383,7 +1383,7 @@ function parseCustomTotal(text2, format2) {
|
|
|
1383
1383
|
}
|
|
1384
1384
|
|
|
1385
1385
|
// src/version.generated.ts
|
|
1386
|
-
var WIDGET_REACT_VERSION = "0.
|
|
1386
|
+
var WIDGET_REACT_VERSION = "0.166.0";
|
|
1387
1387
|
|
|
1388
1388
|
// src/config.ts
|
|
1389
1389
|
var COLOR_KEYS = ["accent", "cta", "surface", "ink"];
|
|
@@ -2278,6 +2278,8 @@ function toComboLegVM(leg) {
|
|
|
2278
2278
|
const hasStat = !!insightId && !!statText;
|
|
2279
2279
|
if (price === void 0 || matchOddsId === void 0 || matchId === void 0 || !home || !away || !selectionLabel) return null;
|
|
2280
2280
|
const line = str(leg.line);
|
|
2281
|
+
const sport = slipSportOf(str(leg.sport));
|
|
2282
|
+
const player = str(leg.player);
|
|
2281
2283
|
const rawFact = leg.fact && typeof leg.fact === "object" ? leg.fact : void 0;
|
|
2282
2284
|
const direction2 = leg.direction === "over" || leg.direction === "under" ? leg.direction : void 0;
|
|
2283
2285
|
const fact = rawFact && direction2 && Number.isInteger(rawFact.hits) && Number.isInteger(rawFact.games) && Number.isInteger(rawFact.window) && rawFact.games >= 5 && rawFact.hits >= 0 && rawFact.hits <= rawFact.games && rawFact.games <= rawFact.window ? { hits: rawFact.hits, games: rawFact.games, window: rawFact.window, direction: direction2 } : void 0;
|
|
@@ -2302,6 +2304,8 @@ function toComboLegVM(leg) {
|
|
|
2302
2304
|
quotedAtUtc: str(leg.quotedAtUtc),
|
|
2303
2305
|
...hasStat ? { insightId, statText } : {},
|
|
2304
2306
|
...fact ? { fact } : {},
|
|
2307
|
+
...sport ? { sport } : {},
|
|
2308
|
+
...player ? { player } : {},
|
|
2305
2309
|
pinEnabled: leg.pinEnabled === true
|
|
2306
2310
|
};
|
|
2307
2311
|
}
|