overtime-utils 0.2.47 → 0.2.49

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.
@@ -84,6 +84,7 @@ export const INTERNATIONAL_LEAGUES = [
84
84
  League.WORLD_BASEBALL_CLASSIC,
85
85
  League.FIBA_EUROBASKET_QUALIFIERS_WOMEN,
86
86
  League.FIBA_WORLD_CUP_QUALIFIERS_WOMEN,
87
+ League.FIBA_WORLD_CUP_WOMEN,
87
88
  League.FIFA_WC_QUALIFIERS_WOMEN,
88
89
  League.AFC_ASIAN_CUP_WOMEN,
89
90
  League.AFC_ASIAN_CUP_WOMEN_QUALIFIERS,
@@ -688,6 +688,7 @@ export enum League {
688
688
  INTERNATIONAL_BNXT_LEAGUE = 21307,
689
689
  GERMANY_PRO_A = 21401,
690
690
  AUSTRALIA_WNBL = 21471,
691
+ FIBA_WORLD_CUP_WOMEN = 21488,
691
692
 
692
693
  ITALY_SERIE_C_CUP = 21517,
693
694
  AUSTRALIA_WESTERN_AUSTRALIA_NPL = 21518,
@@ -0,0 +1,4 @@
1
+ export type FeedbackCodeEntry = {
2
+ code: string;
3
+ text: string;
4
+ };
@@ -0,0 +1,8 @@
1
+ import { FeedbackCodeEntry } from '../types/feedbackCodes';
2
+
3
+ export const formatFeedbackMessage = (entry: FeedbackCodeEntry, params?: Record<string, string | number>): string => {
4
+ if (!params) return entry.text;
5
+ return entry.text.replace(/\{(\w+)\}/g, (match, key) =>
6
+ Object.prototype.hasOwnProperty.call(params, key) ? String(params[key]) : match
7
+ );
8
+ };