mirror of
https://github.com/hansputera/tiktok-dl.git
synced 2026-04-05 19:51:57 +02:00
fix(apps.web): fix module not found ow
Signed-off-by: Hanif Dwy Putra S <hanifdwyputrasembiring@gmail.com>
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { Shape } from "ow";
|
||||
import { BaseProvider, Providers } from "tiktok-dl-core";
|
||||
|
||||
const transformProvider = (provider: BaseProvider) => {
|
||||
@@ -8,9 +7,9 @@ const transformProvider = (provider: BaseProvider) => {
|
||||
name: provider.resourceName(),
|
||||
url: provider.client?.defaults.options.prefixUrl,
|
||||
maintenance: provider.maintenance,
|
||||
params: params ? Object.keys(params).map(key => ({
|
||||
name: key,
|
||||
type: (params?.[key] as Shape | undefined)?.type,
|
||||
params: params ? Object.keys(params._zod.def.shape).map(k => ({
|
||||
name: k,
|
||||
type: params._zod.def.shape[k].def.type,
|
||||
})) : {},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ const VideoPlayer = ({
|
||||
});
|
||||
}
|
||||
}
|
||||
}, [videoData.video?.urls[0], isActive]);
|
||||
}, [currentTime, isActive, isPlaying, onPlayStateChange]);
|
||||
|
||||
useEffect(() => {
|
||||
const video = videoRef.current;
|
||||
@@ -64,7 +64,7 @@ const VideoPlayer = ({
|
||||
}
|
||||
}
|
||||
}
|
||||
}, [isPlaying, isActive, currentTime]);
|
||||
}, [isPlaying, isActive, currentTime, onPlayStateChange]);
|
||||
|
||||
const handleTimeUpdate = () => {
|
||||
if (videoRef.current && isActive) {
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
"isolatedModules": true,
|
||||
"jsx": "preserve",
|
||||
"incremental": true,
|
||||
"allowImportingTsExtensions": true,
|
||||
"plugins": [
|
||||
{
|
||||
"name": "next"
|
||||
|
||||
Reference in New Issue
Block a user