itube-specs 0.0.752 → 0.0.754

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.
@@ -227,8 +227,7 @@ export const reportFormsScheme: Array<IReportScheme> = [
227
227
  type: 'heading',
228
228
  value: 'malwareReasonHeading',
229
229
  text: 'malware_reason_text',
230
- wide: true,
231
- marginClass: '_mb-12'
230
+ wide: true
232
231
  },
233
232
  ...(reportMalwareItems).map((value, index)=> ({
234
233
  type: 'radio',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "itube-specs",
3
3
  "type": "module",
4
- "version": "0.0.752",
4
+ "version": "0.0.754",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "./types/index.d.ts",
7
7
  "scripts": {
@@ -17,9 +17,14 @@ export class ApiHelper {
17
17
  'x-domain': runtimeConfig.public.xDomain,
18
18
  };
19
19
 
20
+ const method = String(fetchOptions.method || 'GET').toUpperCase();
21
+ const isIdempotent = method === 'GET' || method === 'HEAD';
22
+
20
23
  const res = await $fetch(`/bff${path}`, {
21
24
  ...fetchOptions,
22
- retry: 0,
25
+ retry: isIdempotent ? 2 : 0,
26
+ retryDelay: 300,
27
+ retryStatusCodes: [408, 425, 429, 500, 502, 503, 504],
23
28
  headers,
24
29
  } as any);
25
30