mirror of
https://github.com/hansputera/tiktok-dl.git
synced 2026-04-05 19:51:57 +02:00
refactor(*): use import "ow/dist"
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
committed by
GitHub
parent
8e666a3d98
commit
6248db9577
@@ -1,5 +1,5 @@
|
||||
import type {NextApiRequest, NextApiResponse} from 'next';
|
||||
import ow from 'ow';
|
||||
import ow from 'ow/dist';
|
||||
import {getProvider, Providers, BaseProvider} from 'tiktok-dl-core';
|
||||
import {getTikTokURL} from '../../lib';
|
||||
import {rotateProvider} from '../../lib/rotator';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Got} from 'got';
|
||||
import type {Shape} from 'ow';
|
||||
import type {Shape} from 'ow/dist';
|
||||
|
||||
export interface ExtractedInfo {
|
||||
error?: string;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {BaseProvider, ExtractedInfo} from './base';
|
||||
import {getFetch} from '../fetch';
|
||||
import {matchLink} from './utils';
|
||||
import type {Shape} from 'ow';
|
||||
import type {Shape} from 'ow/dist';
|
||||
|
||||
/**
|
||||
* @class DDDTikProvider
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {BaseProvider, ExtractedInfo} from './base';
|
||||
import {getFetch} from '../fetch';
|
||||
import {matchCustomDownload} from './utils';
|
||||
import type {Shape} from 'ow';
|
||||
import type {Shape} from 'ow/dist';
|
||||
|
||||
/**
|
||||
* @class DownTikProvider
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {BaseProvider, ExtractedInfo} from './base';
|
||||
import {getFetch} from '../fetch';
|
||||
import type {Shape} from 'ow';
|
||||
import type {Shape} from 'ow/dist';
|
||||
|
||||
/**
|
||||
* @class DownloadOne
|
||||
|
||||
@@ -2,7 +2,7 @@ import {BaseProvider, ExtractedInfo} from './base';
|
||||
import {getFetch} from '../fetch';
|
||||
import {matchLink} from './utils';
|
||||
import {random as randomUA} from 'tiktok-dl-config/useragents';
|
||||
import type {Shape} from 'ow';
|
||||
import type {Shape} from 'ow/dist';
|
||||
|
||||
/**
|
||||
* @class GetVidTikProvider
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {BaseProvider, ExtractedInfo} from './base';
|
||||
import {getFetch} from '../fetch';
|
||||
import type {Shape} from 'ow';
|
||||
import type {Shape} from 'ow/dist';
|
||||
|
||||
/**
|
||||
* @class LoveTikProvider
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {getFetch} from '../fetch';
|
||||
import {BaseProvider, ExtractedInfo} from './base';
|
||||
import type {Shape} from 'ow';
|
||||
import type {Shape} from 'ow/dist';
|
||||
|
||||
/**
|
||||
* @class MusicalyDown
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {BaseProvider, ExtractedInfo} from './base';
|
||||
import {getFetch} from '../fetch';
|
||||
import {matchTikTokData} from './utils';
|
||||
import ow, {Shape} from 'ow';
|
||||
import ow, {Shape} from 'ow/dist';
|
||||
|
||||
/**
|
||||
* @class NativeProvider
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {getFetch} from '../fetch';
|
||||
import {BaseProvider, ExtractedInfo} from './base';
|
||||
import {deObfuscateSaveFromScript} from './utils';
|
||||
import type {Shape} from 'ow';
|
||||
import type {Shape} from 'ow/dist';
|
||||
|
||||
/**
|
||||
* @class saveFromProvider
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {BaseProvider, ExtractedInfo} from './base';
|
||||
import {getFetch} from '../fetch';
|
||||
import {matchCustomDownload} from './utils';
|
||||
import type {Shape} from 'ow';
|
||||
import type {Shape} from 'ow/dist';
|
||||
|
||||
/**
|
||||
* @class SaveTikProvider
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {getFetch} from '../fetch';
|
||||
import {BaseProvider, ExtractedInfo} from './base';
|
||||
import {deObfuscate, matchLink} from './utils';
|
||||
import type {Shape} from 'ow';
|
||||
import type {Shape} from 'ow/dist';
|
||||
|
||||
/**
|
||||
* @class SnaptikProvider
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {BaseProvider, ExtractedInfo} from './base';
|
||||
import {getFetch} from '../fetch';
|
||||
import {matchLink} from './utils';
|
||||
import type {Shape} from 'ow';
|
||||
import type {Shape} from 'ow/dist';
|
||||
|
||||
/**
|
||||
* @class TikDownProvider
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {getFetch} from '../fetch';
|
||||
import {BaseProvider, ExtractedInfo} from './base';
|
||||
import {deObfuscate, matchCustomDownload} from './utils';
|
||||
import type {Shape} from 'ow';
|
||||
import type {Shape} from 'ow/dist';
|
||||
|
||||
/**
|
||||
* @class TikmateProvider
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {getFetch} from '../fetch';
|
||||
import {BaseProvider, ExtractedInfo} from './base';
|
||||
import {matchLink} from './utils';
|
||||
import type {Shape} from 'ow';
|
||||
import type {Shape} from 'ow/dist';
|
||||
|
||||
/**
|
||||
* @class TTDownloader
|
||||
|
||||
Reference in New Issue
Block a user