@time2win/t2w 1.5.1 → 1.5.3

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 CHANGED
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## 1.5.3 - 2025-06-12
9
+ ### Use
10
+ Cached Event Data for wrapper calls
11
+
12
+ ## 1.5.2 - 2025-06-12
13
+ ### Removed
14
+ logging
15
+
8
16
  ## 1.5.1 - 2025-06-12
9
17
  ### Removed
10
18
  logging
package/index.js CHANGED
@@ -238,7 +238,7 @@ var Time2WinAPI = /** @class */ (function () {
238
238
  switch (_b.label) {
239
239
  case 0:
240
240
  _a = this.fetchIndividualResults;
241
- return [4 /*yield*/, this.getEventData(eventId, ['splits'])];
241
+ return [4 /*yield*/, this.getEventDataWithCache(eventId, ['splits'])];
242
242
  case 1: return [2 /*return*/, _a.apply(this, [_b.sent(), raceId, dataExtra, gender, page])];
243
243
  }
244
244
  });
@@ -252,7 +252,7 @@ var Time2WinAPI = /** @class */ (function () {
252
252
  switch (_b.label) {
253
253
  case 0:
254
254
  _a = this.fetchParticipantInfos;
255
- return [4 /*yield*/, this.getEventData(eventId)];
255
+ return [4 /*yield*/, this.getEventDataWithCache(eventId)];
256
256
  case 1: return [2 /*return*/, _a.apply(this, [_b.sent(), raceId, dataExtra, gender, page])];
257
257
  }
258
258
  });
@@ -380,9 +380,7 @@ var Time2WinAPI = /** @class */ (function () {
380
380
  var _this = this;
381
381
  return __generator(this, function (_e) {
382
382
  switch (_e.label) {
383
- case 0:
384
- console.log(response.status);
385
- return [4 /*yield*/, response.json()];
383
+ case 0: return [4 /*yield*/, response.json()];
386
384
  case 1:
387
385
  body = _e.sent();
388
386
  if (response.status === 403) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@time2win/t2w",
3
- "version": "1.5.1",
3
+ "version": "1.5.3",
4
4
  "description": "providing latest-state models and advanced methods to interact with the T2W API",
5
5
  "keywords": [
6
6
  "time2win",