@wise-old-man/utils 4.0.4 → 4.0.6

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.
@@ -916,7 +916,8 @@ const Skill = {
916
916
  FARMING: 'farming',
917
917
  RUNECRAFTING: 'runecrafting',
918
918
  HUNTER: 'hunter',
919
- CONSTRUCTION: 'construction'
919
+ CONSTRUCTION: 'construction',
920
+ SAILING: 'sailing'
920
921
  };
921
922
  const Activity = {
922
923
  LEAGUE_POINTS: 'league_points',
@@ -979,6 +980,7 @@ const Boss = {
979
980
  SARACHNIS: 'sarachnis',
980
981
  SCORPIA: 'scorpia',
981
982
  SCURRIUS: 'scurrius',
983
+ SHELLBANE_GRYPHON: 'shellbane_gryphon',
982
984
  SKOTIZO: 'skotizo',
983
985
  SOL_HEREDIT: 'sol_heredit',
984
986
  SPINDEL: 'spindel',
@@ -2092,7 +2094,8 @@ const SkillProps = mapValues({
2092
2094
  [Skill.FARMING]: { name: 'Farming', isMembers: true },
2093
2095
  [Skill.RUNECRAFTING]: { name: 'Runecrafting' },
2094
2096
  [Skill.HUNTER]: { name: 'Hunter', isMembers: true },
2095
- [Skill.CONSTRUCTION]: { name: 'Construction', isMembers: true }
2097
+ [Skill.CONSTRUCTION]: { name: 'Construction', isMembers: true },
2098
+ [Skill.SAILING]: { name: 'Sailing', isMembers: true }
2096
2099
  }, props => (Object.assign(Object.assign({}, props), { type: exports.MetricType.SKILL, measure: exports.MetricMeasure.EXPERIENCE, isCombat: 'isCombat' in props ? props.isCombat : false, isMembers: 'isMembers' in props ? props.isMembers : false })));
2097
2100
  const BossProps = mapValues({
2098
2101
  [Boss.ABYSSAL_SIRE]: { name: 'Abyssal Sire' },
@@ -2138,6 +2141,7 @@ const BossProps = mapValues({
2138
2141
  [Boss.SARACHNIS]: { name: 'Sarachnis' },
2139
2142
  [Boss.SCORPIA]: { name: 'Scorpia' },
2140
2143
  [Boss.SCURRIUS]: { name: 'Scurrius' },
2144
+ [Boss.SHELLBANE_GRYPHON]: { name: 'Shellbane Gryphon' },
2141
2145
  [Boss.SKOTIZO]: { name: 'Skotizo' },
2142
2146
  [Boss.SOL_HEREDIT]: { name: 'Sol Heredit' },
2143
2147
  [Boss.SPINDEL]: { name: 'Spindel' },
package/dist/es/index.js CHANGED
@@ -914,7 +914,8 @@ const Skill = {
914
914
  FARMING: 'farming',
915
915
  RUNECRAFTING: 'runecrafting',
916
916
  HUNTER: 'hunter',
917
- CONSTRUCTION: 'construction'
917
+ CONSTRUCTION: 'construction',
918
+ SAILING: 'sailing'
918
919
  };
919
920
  const Activity = {
920
921
  LEAGUE_POINTS: 'league_points',
@@ -977,6 +978,7 @@ const Boss = {
977
978
  SARACHNIS: 'sarachnis',
978
979
  SCORPIA: 'scorpia',
979
980
  SCURRIUS: 'scurrius',
981
+ SHELLBANE_GRYPHON: 'shellbane_gryphon',
980
982
  SKOTIZO: 'skotizo',
981
983
  SOL_HEREDIT: 'sol_heredit',
982
984
  SPINDEL: 'spindel',
@@ -2090,7 +2092,8 @@ const SkillProps = mapValues({
2090
2092
  [Skill.FARMING]: { name: 'Farming', isMembers: true },
2091
2093
  [Skill.RUNECRAFTING]: { name: 'Runecrafting' },
2092
2094
  [Skill.HUNTER]: { name: 'Hunter', isMembers: true },
2093
- [Skill.CONSTRUCTION]: { name: 'Construction', isMembers: true }
2095
+ [Skill.CONSTRUCTION]: { name: 'Construction', isMembers: true },
2096
+ [Skill.SAILING]: { name: 'Sailing', isMembers: true }
2094
2097
  }, props => (Object.assign(Object.assign({}, props), { type: MetricType.SKILL, measure: MetricMeasure.EXPERIENCE, isCombat: 'isCombat' in props ? props.isCombat : false, isMembers: 'isMembers' in props ? props.isMembers : false })));
2095
2098
  const BossProps = mapValues({
2096
2099
  [Boss.ABYSSAL_SIRE]: { name: 'Abyssal Sire' },
@@ -2136,6 +2139,7 @@ const BossProps = mapValues({
2136
2139
  [Boss.SARACHNIS]: { name: 'Sarachnis' },
2137
2140
  [Boss.SCORPIA]: { name: 'Scorpia' },
2138
2141
  [Boss.SCURRIUS]: { name: 'Scurrius' },
2142
+ [Boss.SHELLBANE_GRYPHON]: { name: 'Shellbane Gryphon' },
2139
2143
  [Boss.SKOTIZO]: { name: 'Skotizo' },
2140
2144
  [Boss.SOL_HEREDIT]: { name: 'Sol Heredit' },
2141
2145
  [Boss.SPINDEL]: { name: 'Spindel' },
package/dist/es/index.mjs CHANGED
@@ -914,7 +914,8 @@ const Skill = {
914
914
  FARMING: 'farming',
915
915
  RUNECRAFTING: 'runecrafting',
916
916
  HUNTER: 'hunter',
917
- CONSTRUCTION: 'construction'
917
+ CONSTRUCTION: 'construction',
918
+ SAILING: 'sailing'
918
919
  };
919
920
  const Activity = {
920
921
  LEAGUE_POINTS: 'league_points',
@@ -977,6 +978,7 @@ const Boss = {
977
978
  SARACHNIS: 'sarachnis',
978
979
  SCORPIA: 'scorpia',
979
980
  SCURRIUS: 'scurrius',
981
+ SHELLBANE_GRYPHON: 'shellbane_gryphon',
980
982
  SKOTIZO: 'skotizo',
981
983
  SOL_HEREDIT: 'sol_heredit',
982
984
  SPINDEL: 'spindel',
@@ -2090,7 +2092,8 @@ const SkillProps = mapValues({
2090
2092
  [Skill.FARMING]: { name: 'Farming', isMembers: true },
2091
2093
  [Skill.RUNECRAFTING]: { name: 'Runecrafting' },
2092
2094
  [Skill.HUNTER]: { name: 'Hunter', isMembers: true },
2093
- [Skill.CONSTRUCTION]: { name: 'Construction', isMembers: true }
2095
+ [Skill.CONSTRUCTION]: { name: 'Construction', isMembers: true },
2096
+ [Skill.SAILING]: { name: 'Sailing', isMembers: true }
2094
2097
  }, props => (Object.assign(Object.assign({}, props), { type: MetricType.SKILL, measure: MetricMeasure.EXPERIENCE, isCombat: 'isCombat' in props ? props.isCombat : false, isMembers: 'isMembers' in props ? props.isMembers : false })));
2095
2098
  const BossProps = mapValues({
2096
2099
  [Boss.ABYSSAL_SIRE]: { name: 'Abyssal Sire' },
@@ -2136,6 +2139,7 @@ const BossProps = mapValues({
2136
2139
  [Boss.SARACHNIS]: { name: 'Sarachnis' },
2137
2140
  [Boss.SCORPIA]: { name: 'Scorpia' },
2138
2141
  [Boss.SCURRIUS]: { name: 'Scurrius' },
2142
+ [Boss.SHELLBANE_GRYPHON]: { name: 'Shellbane Gryphon' },
2139
2143
  [Boss.SKOTIZO]: { name: 'Skotizo' },
2140
2144
  [Boss.SOL_HEREDIT]: { name: 'Sol Heredit' },
2141
2145
  [Boss.SPINDEL]: { name: 'Spindel' },
package/dist/index.d.ts CHANGED
@@ -38,6 +38,7 @@ declare const Skill: {
38
38
  readonly RUNECRAFTING: "runecrafting";
39
39
  readonly HUNTER: "hunter";
40
40
  readonly CONSTRUCTION: "construction";
41
+ readonly SAILING: "sailing";
41
42
  };
42
43
  type Skill = (typeof Skill)[keyof typeof Skill];
43
44
  declare const Activity: {
@@ -102,6 +103,7 @@ declare const Boss: {
102
103
  readonly SARACHNIS: "sarachnis";
103
104
  readonly SCORPIA: "scorpia";
104
105
  readonly SCURRIUS: "scurrius";
106
+ readonly SHELLBANE_GRYPHON: "shellbane_gryphon";
105
107
  readonly SKOTIZO: "skotizo";
106
108
  readonly SOL_HEREDIT: "sol_heredit";
107
109
  readonly SPINDEL: "spindel";
@@ -179,6 +181,7 @@ declare const Metric: {
179
181
  readonly SARACHNIS: "sarachnis";
180
182
  readonly SCORPIA: "scorpia";
181
183
  readonly SCURRIUS: "scurrius";
184
+ readonly SHELLBANE_GRYPHON: "shellbane_gryphon";
182
185
  readonly SKOTIZO: "skotizo";
183
186
  readonly SOL_HEREDIT: "sol_heredit";
184
187
  readonly SPINDEL: "spindel";
@@ -244,6 +247,7 @@ declare const Metric: {
244
247
  readonly RUNECRAFTING: "runecrafting";
245
248
  readonly HUNTER: "hunter";
246
249
  readonly CONSTRUCTION: "construction";
250
+ readonly SAILING: "sailing";
247
251
  };
248
252
  type Metric = (typeof Metric)[keyof typeof Metric];
249
253
  declare const METRICS: Metric[];
@@ -259,6 +263,7 @@ interface Snapshot {
259
263
  createdAt: Date;
260
264
  overallRank: number;
261
265
  overallExperience: number;
266
+ overallLevel: number;
262
267
  attackRank: number;
263
268
  attackExperience: number;
264
269
  defenceRank: number;
@@ -305,6 +310,8 @@ interface Snapshot {
305
310
  hunterExperience: number;
306
311
  constructionRank: number;
307
312
  constructionExperience: number;
313
+ sailingRank: number;
314
+ sailingExperience: number;
308
315
  league_pointsRank: number;
309
316
  league_pointsScore: number;
310
317
  bounty_hunter_hunterRank: number;
@@ -421,6 +428,8 @@ interface Snapshot {
421
428
  scorpiaKills: number;
422
429
  scurriusRank: number;
423
430
  scurriusKills: number;
431
+ shellbane_gryphonRank: number;
432
+ shellbane_gryphonKills: number;
424
433
  skotizoRank: number;
425
434
  skotizoKills: number;
426
435
  sol_hereditRank: number;
@@ -509,12 +518,39 @@ interface BossMetaConfig {
509
518
  rate: number;
510
519
  }
511
520
 
521
+ declare const Period: {
522
+ readonly FIVE_MIN: "five_min";
523
+ readonly DAY: "day";
524
+ readonly WEEK: "week";
525
+ readonly MONTH: "month";
526
+ readonly YEAR: "year";
527
+ };
528
+ type Period = (typeof Period)[keyof typeof Period];
529
+ declare const PERIODS: ("five_min" | "day" | "week" | "month" | "year")[];
530
+
531
+ interface CachedDelta {
532
+ playerId: number;
533
+ period: Period;
534
+ metric: Metric;
535
+ value: number;
536
+ startedAt: Date;
537
+ endedAt: Date;
538
+ updatedAt: Date;
539
+ }
540
+
512
541
  declare enum CompetitionCSVTableType {
513
542
  TEAM = "team",
514
543
  TEAMS = "teams",
515
544
  PARTICIPANTS = "participants"
516
545
  }
517
546
 
547
+ interface CompetitionMetric {
548
+ competitionId: number;
549
+ metric: Metric;
550
+ createdAt: Date;
551
+ deletedAt: Date | null;
552
+ }
553
+
518
554
  declare enum CompetitionStatus {
519
555
  UPCOMING = "upcoming",
520
556
  ONGOING = "ongoing",
@@ -537,7 +573,6 @@ declare const COMPETITION_TYPES: CompetitionType[];
537
573
  interface Competition {
538
574
  id: number;
539
575
  title: string;
540
- metric: Metric;
541
576
  type: CompetitionType;
542
577
  startsAt: Date;
543
578
  endsAt: Date;
@@ -807,133 +842,6 @@ declare const Country: {
807
842
  type Country = (typeof Country)[keyof typeof Country];
808
843
  declare const COUNTRY_CODES: Country[];
809
844
 
810
- declare const Period: {
811
- readonly FIVE_MIN: "five_min";
812
- readonly DAY: "day";
813
- readonly WEEK: "week";
814
- readonly MONTH: "month";
815
- readonly YEAR: "year";
816
- };
817
- type Period = (typeof Period)[keyof typeof Period];
818
- declare const PERIODS: ("five_min" | "day" | "week" | "month" | "year")[];
819
-
820
- interface Delta {
821
- playerId: number;
822
- period: Period;
823
- startedAt: Date;
824
- endedAt: Date;
825
- updatedAt: Date | null;
826
- overall: number;
827
- attack: number;
828
- defence: number;
829
- strength: number;
830
- hitpoints: number;
831
- ranged: number;
832
- prayer: number;
833
- magic: number;
834
- cooking: number;
835
- woodcutting: number;
836
- fletching: number;
837
- fishing: number;
838
- firemaking: number;
839
- crafting: number;
840
- smithing: number;
841
- mining: number;
842
- herblore: number;
843
- agility: number;
844
- thieving: number;
845
- slayer: number;
846
- farming: number;
847
- runecrafting: number;
848
- hunter: number;
849
- construction: number;
850
- abyssal_sire: number;
851
- alchemical_hydra: number;
852
- amoxliatl: number;
853
- araxxor: number;
854
- artio: number;
855
- barrows_chests: number;
856
- bryophyta: number;
857
- callisto: number;
858
- calvarion: number;
859
- cerberus: number;
860
- chambers_of_xeric: number;
861
- chambers_of_xeric_challenge_mode: number;
862
- chaos_elemental: number;
863
- chaos_fanatic: number;
864
- commander_zilyana: number;
865
- corporeal_beast: number;
866
- crazy_archaeologist: number;
867
- dagannoth_prime: number;
868
- dagannoth_rex: number;
869
- dagannoth_supreme: number;
870
- deranged_archaeologist: number;
871
- doom_of_mokhaiotl: number;
872
- duke_sucellus: number;
873
- general_graardor: number;
874
- giant_mole: number;
875
- grotesque_guardians: number;
876
- hespori: number;
877
- kalphite_queen: number;
878
- king_black_dragon: number;
879
- kraken: number;
880
- kreearra: number;
881
- kril_tsutsaroth: number;
882
- lunar_chests: number;
883
- mimic: number;
884
- nex: number;
885
- nightmare: number;
886
- phosanis_nightmare: number;
887
- obor: number;
888
- phantom_muspah: number;
889
- sarachnis: number;
890
- scorpia: number;
891
- scurrius: number;
892
- skotizo: number;
893
- sol_heredit: number;
894
- spindel: number;
895
- tempoross: number;
896
- the_gauntlet: number;
897
- the_corrupted_gauntlet: number;
898
- the_hueycoatl: number;
899
- the_leviathan: number;
900
- the_royal_titans: number;
901
- the_whisperer: number;
902
- theatre_of_blood: number;
903
- theatre_of_blood_hard_mode: number;
904
- thermonuclear_smoke_devil: number;
905
- tombs_of_amascut: number;
906
- tombs_of_amascut_expert: number;
907
- tzkal_zuk: number;
908
- tztok_jad: number;
909
- vardorvis: number;
910
- venenatis: number;
911
- vetion: number;
912
- vorkath: number;
913
- wintertodt: number;
914
- yama: number;
915
- zalcano: number;
916
- zulrah: number;
917
- league_points: number;
918
- bounty_hunter_hunter: number;
919
- bounty_hunter_rogue: number;
920
- clue_scrolls_all: number;
921
- clue_scrolls_beginner: number;
922
- clue_scrolls_easy: number;
923
- clue_scrolls_medium: number;
924
- clue_scrolls_hard: number;
925
- clue_scrolls_elite: number;
926
- clue_scrolls_master: number;
927
- last_man_standing: number;
928
- pvp_arena: number;
929
- soul_wars_zeal: number;
930
- guardians_of_the_rift: number;
931
- colosseum_glory: number;
932
- collections_logged: number;
933
- ehp: number;
934
- ehb: number;
935
- }
936
-
937
845
  declare enum EfficiencyAlgorithmType {
938
846
  MAIN = "main",
939
847
  IRONMAN = "ironman",
@@ -1343,6 +1251,8 @@ interface Participation {
1343
1251
  competitionId: number;
1344
1252
  startSnapshotId: number | null;
1345
1253
  endSnapshotId: number | null;
1254
+ startSnapshotDate: Date | null;
1255
+ endSnapshotDate: Date | null;
1346
1256
  teamName: string | null;
1347
1257
  createdAt: Date;
1348
1258
  updatedAt: Date;
@@ -1434,6 +1344,7 @@ interface Player {
1434
1344
  lastChangedAt: Date | null;
1435
1345
  lastImportedAt: Date | null;
1436
1346
  latestSnapshotId: number | null;
1347
+ latestSnapshotDate: Date | null;
1437
1348
  }
1438
1349
 
1439
1350
  interface Record$1 {
@@ -1511,6 +1422,8 @@ interface GroupResponse extends Omit<Group, 'verificationHash' | 'creatorIpHash'
1511
1422
  */
1512
1423
 
1513
1424
  interface CompetitionResponse extends Omit<Competition, 'verificationHash' | 'creatorIpHash'> {
1425
+ metric: Metric;
1426
+ metrics: Metric[];
1514
1427
  participantCount: number;
1515
1428
  group?: GroupResponse;
1516
1429
  }
@@ -1522,7 +1435,7 @@ interface CompetitionResponse extends Omit<Competition, 'verificationHash' | 'cr
1522
1435
  * they often include transformations, additional properties or sensitive field omissions.
1523
1436
  */
1524
1437
 
1525
- type ParticipationResponse = Omit<Participation, 'startSnapshotId' | 'endSnapshotId'>;
1438
+ type ParticipationResponse = Omit<Participation, 'startSnapshotId' | 'endSnapshotId' | 'startSnapshotDate' | 'endSnapshotDate'>;
1526
1439
 
1527
1440
  /**
1528
1441
  * Response types are used to format the data returned by the API.
@@ -1531,7 +1444,7 @@ type ParticipationResponse = Omit<Participation, 'startSnapshotId' | 'endSnapsho
1531
1444
  * they often include transformations, additional properties or sensitive field omissions.
1532
1445
  */
1533
1446
 
1534
- type PlayerResponse = Omit<Player, 'latestSnapshotId'>;
1447
+ type PlayerResponse = Omit<Player, 'latestSnapshotId' | 'latestSnapshotDate'>;
1535
1448
 
1536
1449
  /**
1537
1450
  * Response types are used to format the data returned by the API.
@@ -3576,6 +3489,13 @@ declare const MetricProps: {
3576
3489
  type: MetricType;
3577
3490
  measure: MetricMeasure;
3578
3491
  };
3492
+ readonly shellbane_gryphon: {
3493
+ name: string;
3494
+ minimumValue: number;
3495
+ isMembers: boolean;
3496
+ type: MetricType;
3497
+ measure: MetricMeasure;
3498
+ };
3579
3499
  readonly skotizo: {
3580
3500
  name: string;
3581
3501
  minimumValue: number;
@@ -3919,6 +3839,13 @@ declare const MetricProps: {
3919
3839
  type: MetricType;
3920
3840
  measure: MetricMeasure;
3921
3841
  };
3842
+ readonly sailing: {
3843
+ name: string;
3844
+ isCombat: boolean;
3845
+ isMembers: boolean;
3846
+ type: MetricType;
3847
+ measure: MetricMeasure;
3848
+ };
3922
3849
  };
3923
3850
  declare const REAL_SKILLS: Skill[];
3924
3851
  declare const F2P_BOSSES: Boss[];
@@ -3963,4 +3890,4 @@ declare function isPlayerType(typeString: string): typeString is PlayerType;
3963
3890
 
3964
3891
  declare function roundNumber(num: number, cases: number): number;
3965
3892
 
3966
- export { ACTIVITIES, type Achievement, type AchievementDefinition, type AchievementMeasure, type AchievementProgressResponse, type AchievementResponse, Activity, ActivityProps, BOSSES, Boss, type BossMetaConfig, BossProps, CAPPED_MAX_TOTAL_XP, COMBAT_SKILLS, COMPETITION_STATUSES, COMPETITION_TYPES, COMPUTED_METRICS, COUNTRY_CODES, type Competition, CompetitionCSVTableType, type CompetitionDetailsResponse, type CompetitionResponse, CompetitionStatus, CompetitionStatusProps, type CompetitionTeam, CompetitionType, CompetitionTypeProps, ComputedMetric, ComputedMetricProps, Country, CountryProps, type CreateCompetitionPayload, type CreateGroupPayload, type Delta, type EditCompetitionPayload, type EditGroupPayload, EfficiencyAlgorithmType, F2P_BOSSES, GROUP_ROLES, type GenericCountMessageResponse, type GenericMessageResponse, type Group, type GroupDetailsResponse, type GroupHiscoresEntryResponse, type GroupResponse, GroupRole, type GroupRoleOrder, GroupRoleProps, type GroupSocialLinks, type GroupStatisticsResponse, MAX_LEVEL, MAX_SKILL_EXP, MAX_VIRTUAL_LEVEL, MEMBER_SKILLS, METRICS, type MemberActivity, type MemberActivityResponse, MemberActivityType, type Membership, type MembershipResponse, Metric, type MetricDelta, MetricMeasure, MetricProps, MetricType, type NameChange, type NameChangeDenyContext, type NameChangeDetailsResponse, type NameChangeResponse, type NameChangeReviewContext, type NameChangeSkipContext, NameChangeStatus, PERIODS, PLAYER_BUILDS, PLAYER_STATUSES, PLAYER_TYPES, PRIVILEGED_GROUP_ROLES, type ParticipantHistoryResponse, type Participation, type ParticipationResponse, type Patron, Period, PeriodProps, type Player, type PlayerAnnotation, PlayerAnnotationType, type PlayerArchive, type PlayerArchiveResponse, PlayerBuild, PlayerBuildProps, type PlayerCompetitionStandingResponse, type PlayerDeltasMapResponse, type PlayerDetailsResponse, type PlayerResponse, PlayerStatus, PlayerStatusProps, PlayerType, PlayerTypeProps, REAL_METRICS, REAL_SKILLS, type Record$1 as Record, type RecordResponse, SKILLS, SKILL_EXP_AT_99, Skill, type SkillMetaBonus, type SkillMetaConfig, type SkillMetaMethod, SkillProps, type Snapshot, type SnapshotResponse, type TimeRangeFilter, WOMClient, findCountry, findCountryByCode, findCountryByName, formatNumber, getCombatLevel, getExpForLevel, getLevel, getMinimumValue, getParentEfficiencyMetric, isActivity, isBoss, isComputedMetric, isCountry, isGroupRole, isMetric, isPeriod, isPlayerBuild, isPlayerStatus, isPlayerType, isSkill, padNumber, parsePeriodExpression, roundNumber };
3893
+ export { ACTIVITIES, type Achievement, type AchievementDefinition, type AchievementMeasure, type AchievementProgressResponse, type AchievementResponse, Activity, ActivityProps, BOSSES, Boss, type BossMetaConfig, BossProps, CAPPED_MAX_TOTAL_XP, COMBAT_SKILLS, COMPETITION_STATUSES, COMPETITION_TYPES, COMPUTED_METRICS, COUNTRY_CODES, type CachedDelta, type Competition, CompetitionCSVTableType, type CompetitionDetailsResponse, type CompetitionMetric, type CompetitionResponse, CompetitionStatus, CompetitionStatusProps, type CompetitionTeam, CompetitionType, CompetitionTypeProps, ComputedMetric, ComputedMetricProps, Country, CountryProps, type CreateCompetitionPayload, type CreateGroupPayload, type EditCompetitionPayload, type EditGroupPayload, EfficiencyAlgorithmType, F2P_BOSSES, GROUP_ROLES, type GenericCountMessageResponse, type GenericMessageResponse, type Group, type GroupDetailsResponse, type GroupHiscoresEntryResponse, type GroupResponse, GroupRole, type GroupRoleOrder, GroupRoleProps, type GroupSocialLinks, type GroupStatisticsResponse, MAX_LEVEL, MAX_SKILL_EXP, MAX_VIRTUAL_LEVEL, MEMBER_SKILLS, METRICS, type MemberActivity, type MemberActivityResponse, MemberActivityType, type Membership, type MembershipResponse, Metric, type MetricDelta, MetricMeasure, MetricProps, MetricType, type NameChange, type NameChangeDenyContext, type NameChangeDetailsResponse, type NameChangeResponse, type NameChangeReviewContext, type NameChangeSkipContext, NameChangeStatus, PERIODS, PLAYER_BUILDS, PLAYER_STATUSES, PLAYER_TYPES, PRIVILEGED_GROUP_ROLES, type ParticipantHistoryResponse, type Participation, type ParticipationResponse, type Patron, Period, PeriodProps, type Player, type PlayerAnnotation, PlayerAnnotationType, type PlayerArchive, type PlayerArchiveResponse, PlayerBuild, PlayerBuildProps, type PlayerCompetitionStandingResponse, type PlayerDeltasMapResponse, type PlayerDetailsResponse, type PlayerResponse, PlayerStatus, PlayerStatusProps, PlayerType, PlayerTypeProps, REAL_METRICS, REAL_SKILLS, type Record$1 as Record, type RecordResponse, SKILLS, SKILL_EXP_AT_99, Skill, type SkillMetaBonus, type SkillMetaConfig, type SkillMetaMethod, SkillProps, type Snapshot, type SnapshotResponse, type TimeRangeFilter, WOMClient, findCountry, findCountryByCode, findCountryByName, formatNumber, getCombatLevel, getExpForLevel, getLevel, getMinimumValue, getParentEfficiencyMetric, isActivity, isBoss, isComputedMetric, isCountry, isGroupRole, isMetric, isPeriod, isPlayerBuild, isPlayerStatus, isPlayerType, isSkill, padNumber, parsePeriodExpression, roundNumber };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise-old-man/utils",
3
- "version": "4.0.4",
3
+ "version": "4.0.6",
4
4
  "description": "A JavaScript/TypeScript client that interfaces and consumes the Wise Old Man API, an API that tracks and measures players' progress in Old School Runescape.",
5
5
  "keywords": [
6
6
  "wiseoldman",
@@ -32,7 +32,7 @@
32
32
  "dist"
33
33
  ],
34
34
  "scripts": {
35
- "lint": "eslint . --ext .ts",
35
+ "lint": "eslint",
36
36
  "prepublish": "npm run build",
37
37
  "prebuild": "cd ../server && npm run prisma:generate",
38
38
  "build": "rm -rf ./dist && npx rollup -c && tsc dist/index.d.ts"
@@ -40,16 +40,15 @@
40
40
  "devDependencies": {
41
41
  "@rollup/plugin-typescript": "^11.1.6",
42
42
  "@types/node": "^14.14.22",
43
- "@typescript-eslint/eslint-plugin": "^7.0.2",
44
- "@typescript-eslint/parser": "^7.0.2",
45
- "eslint": "^8.26.0",
46
- "eslint-config-prettier": "^8.5.0",
47
- "eslint-plugin-prettier": "^4.2.1",
48
- "prettier": "^2.7.1",
43
+ "eslint": "~9.35.0",
44
+ "eslint-config-prettier": "^10.1.8",
45
+ "eslint-plugin-prettier": "^5.5.4",
46
+ "prettier": "^3.6.2",
49
47
  "rollup": "^4.12.0",
50
48
  "rollup-plugin-dts": "^6.1.0",
51
49
  "tslib": "^2.4.0",
52
- "typescript": "^5.3.3"
50
+ "typescript": "^5.3.3",
51
+ "typescript-eslint": "^8.43.0"
53
52
  },
54
53
  "dependencies": {}
55
54
  }