@smartico/public-api 0.0.412 → 0.0.413

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.
@@ -5968,7 +5968,9 @@ class WSAPIJackpots extends WSAPIClans {
5968
5968
  * user-currency display is needed, the consumer must convert client-side.
5969
5969
  *
5970
5970
  * **Refresh**
5971
- * - The SDK caches per `jp_template_id` for 30 seconds.
5971
+ * - The SDK caches each page separately (per `jp_template_id` +
5972
+ * `limit` + `offset`) for 30 seconds, so paging back and forth is
5973
+ * served from cache and each page keeps its own fresh copy.
5972
5974
  * - Caches clear on jackpot-win push events and on opt-in / opt-out.
5973
5975
  *
5974
5976
  * **Error handling**
@@ -6004,7 +6006,10 @@ class WSAPIJackpots extends WSAPIClans {
6004
6006
  offset,
6005
6007
  jp_template_id
6006
6008
  }) {
6007
- return OCache.use(onUpdateContextKey.JackpotWinners + jp_template_id, ECacheContext.WSAPI, () => this.api.getJackpotWinnersT(this.userExtId, limit, offset, jp_template_id), JACKPOT_WINNERS_CACHE_SEC);
6009
+ // Cache per (jp_template_id, limit, offset) so paging or switching
6010
+ // jackpot within the TTL doesn't return a colliding winners list.
6011
+ const cacheKey = `${onUpdateContextKey.JackpotWinners}${jp_template_id}:${limit}:${offset}`;
6012
+ return OCache.use(cacheKey, ECacheContext.WSAPI, () => this.api.getJackpotWinnersT(this.userExtId, limit, offset, jp_template_id), JACKPOT_WINNERS_CACHE_SEC);
6008
6013
  }
6009
6014
  /**
6010
6015
  * Returns the casino games eligible to contribute to a specific jackpot —