refactor(*): use import "ow/dist"

Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
Hanif Dwy Putra S
2022-06-15 11:21:27 +00:00
committed by GitHub
parent 8e666a3d98
commit 6248db9577
15 changed files with 15 additions and 15 deletions

View File

@@ -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';

View File

@@ -1,5 +1,5 @@
import {Got} from 'got';
import type {Shape} from 'ow';
import type {Shape} from 'ow/dist';
export interface ExtractedInfo {
error?: string;

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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