itube-specs 0.0.774 → 0.0.776

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "itube-specs",
3
3
  "type": "module",
4
- "version": "0.0.774",
4
+ "version": "0.0.776",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "./types/index.d.ts",
7
7
  "scripts": {
@@ -30,4 +30,6 @@ export const cleanVideoData = (data: IRawVideoData): IVideoData => ({
30
30
  thumbNum: data.thumb_number || 0,
31
31
  description: data.description || '',
32
32
  dislikes: data.dislikes || 0,
33
+ hotspots: data.hotspots || null,
34
+ timelinesGroups: data.timelines_groups || null,
33
35
  });
@@ -18,6 +18,7 @@ export class ApiHelper {
18
18
  };
19
19
 
20
20
  const method = String(fetchOptions.method || 'GET').toUpperCase();
21
+ // Повторяем только идемпотентные методы; POST/PUT/DELETE не ретраим — риск дубля действия
21
22
  const isIdempotent = method === 'GET' || method === 'HEAD';
22
23
 
23
24
  const res = await $fetch(`/bff${path}`, {
@@ -51,4 +51,6 @@ export interface IRawVideoData {
51
51
  reels_url: string; // unused
52
52
  vtt_url: string;
53
53
  vtt_sprite_url: string;
54
+ hotspots: any,
55
+ timelines_groups: any
54
56
  }
@@ -38,4 +38,6 @@ export interface IVideoData {
38
38
  isDeleted: boolean;
39
39
  thumbNum: number;
40
40
  description: string;
41
+ hotspots: any,
42
+ timelinesGroups: any
41
43
  }