itube-specs 0.0.304 → 0.0.305

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.
@@ -1,16 +1,16 @@
1
1
  import { useRoute } from 'vue-router';
2
2
  import { EAsyncData } from '../runtime';
3
- import type { IPlaylistInfoType } from '../types';
3
+ import type { IPlaylistData } from '../types';
4
4
 
5
- export const useFetchPlaylistsById = async (apiMethod: (...args: any[]) => Promise<IPlaylistInfoType>) => {
5
+ export const useFetchPlaylistsById = async (apiMethod: (...args: any[]) => Promise<IPlaylistData>) => {
6
6
  const route = useRoute();
7
7
  const id = computed(() => String(route.params['id']));
8
8
  const key = EAsyncData.PlaylistById;
9
9
  const stateKey = computed(() => `data-${key}-${id.value}`);
10
10
 
11
- const { data, status, error, refresh } = await useAsyncData<IPlaylistInfoType>(
11
+ const { data, status, error, refresh } = await useAsyncData<IPlaylistData>(
12
12
  key,
13
- () => useApiFetcher<IPlaylistInfoType>(
13
+ () => useApiFetcher<IPlaylistData>(
14
14
  stateKey.value,
15
15
  apiMethod,
16
16
  id.value
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "itube-specs",
3
3
  "type": "module",
4
- "version": "0.0.304",
4
+ "version": "0.0.305",
5
5
  "main": "./nuxt.config.ts",
6
6
  "types": "./types/index.d.ts",
7
7
  "scripts": {