@saooti/octopus-sdk 41.7.1 → 41.7.2

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
@@ -1,6 +1,12 @@
1
1
  # CHANGELOG
2
2
 
3
- ## 41.7.1 (En cours)
3
+ ## 41.7.2 (10/03/2026)
4
+
5
+ **Fix**
6
+
7
+ - Correction tri épisodes dans `PodcastPresentationList`
8
+
9
+ ## 41.7.1 (10/03/2026)
4
10
 
5
11
  **Fix**
6
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "41.7.1",
3
+ "version": "41.7.2",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -116,9 +116,15 @@ async function fetchNext(): Promise<void> {
116
116
  return simplifiedToFull(p, emission.orga, emission);
117
117
  })
118
118
  );
119
+
120
+ // Sort podcasts by pub date so that the most recent one is focused
121
+ podcasts.value.sort((p1, p2) => {
122
+ return new Date(p2.pubDate).getTime() - new Date(p1.pubDate).getTime();
123
+ });
124
+
119
125
  loading.value = false;
120
126
  } catch (errorWs) {
121
- console.log(errorWs);
127
+ console.error(errorWs);
122
128
  handle403(errorWs as AxiosError);
123
129
  error.value = true;
124
130
  }