@tobyg74/tiktok-api-dl
Advanced tools
Comparing version 1.0.10 to 1.0.11
export declare const _tiktokurl: string; | ||
export declare const _tiktokapi: (id: string) => string; | ||
export declare const _tiktokapi: (params: string) => string; | ||
export declare const _ssstikapi: string; | ||
@@ -4,0 +4,0 @@ export declare const _ssstikurl: string; |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports._tiktokurl = "https://www.tiktok.com"; | ||
const _tiktokapi = (id) => `https://api.tiktokv.com/aweme/v1/feed/?aweme_id=${id}`; | ||
const _tiktokapi = (params) => `https://api.tiktokv.com/aweme/v1/feed/?${params}`; | ||
exports._tiktokapi = _tiktokapi; | ||
@@ -8,0 +8,0 @@ exports._ssstikapi = "https://ssstik.io/abc?url=dl"; |
@@ -1,1 +0,1 @@ | ||
export * from "./utils"; | ||
export * from "./utils/switch"; |
@@ -17,2 +17,2 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./utils"), exports); | ||
__exportStar(require("./utils/switch"), exports); |
@@ -6,3 +6,3 @@ export interface SSSTikFetchTT { | ||
} | ||
export interface SSSTikResult { | ||
export interface SSSTikResponse { | ||
status: "success" | "error"; | ||
@@ -9,0 +9,0 @@ message?: string; |
@@ -0,3 +1,6 @@ | ||
import { MusicalDownResponse } from "../types/musicaldown"; | ||
import { SSSTikResponse } from "../types/ssstik"; | ||
import { TiktokAPIResponse } from "../types/tiktokApi"; | ||
export declare const TiktokDL: (url: string, options: { | ||
version: "v1" | "v2" | "v3"; | ||
}) => Promise<unknown>; | ||
}) => Promise<MusicalDownResponse | SSSTikResponse | TiktokAPIResponse>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TiktokDL = void 0; | ||
const musicaldown_1 = require("./musicaldown"); | ||
const ssstik_1 = require("./ssstik"); | ||
const tiktokapi_1 = require("./tiktokapi"); | ||
const downloader_musicaldown_1 = require("./downloader_musicaldown"); | ||
const downloader_ssstik_1 = require("./downloader_ssstik"); | ||
const downloader_tiktokApi_1 = require("./downloader_tiktokApi"); | ||
const TiktokDL = (url, options) => new Promise(async (resolve, reject) => { | ||
switch (options.version) { | ||
case "v1": { | ||
await (0, tiktokapi_1.TiktokAPI)(url).then(resolve).catch(reject); | ||
await (0, downloader_tiktokApi_1.TiktokAPI)(url).then(resolve).catch(reject); | ||
} | ||
case "v2": { | ||
await (0, ssstik_1.SSSTik)(url).then(resolve).catch(reject); | ||
await (0, downloader_ssstik_1.SSSTik)(url).then(resolve).catch(reject); | ||
} | ||
case "v3": { | ||
await (0, musicaldown_1.MusicalDown)(url).then(resolve).catch(reject); | ||
await (0, downloader_musicaldown_1.MusicalDown)(url).then(resolve).catch(reject); | ||
} | ||
default: { | ||
await (0, tiktokapi_1.TiktokAPI)(url).then(resolve).catch(reject); | ||
await (0, downloader_tiktokApi_1.TiktokAPI)(url).then(resolve).catch(reject); | ||
} | ||
@@ -21,0 +21,0 @@ } |
{ | ||
"name": "@tobyg74/tiktok-api-dl", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "Scraper for downloading media in the form of videos, images and audio from Tiktok. Also for stalking Tiktok Users", | ||
@@ -19,3 +19,7 @@ "main": "lib/index.js", | ||
"tiktok-nowatermark", | ||
"tiktok" | ||
"tiktok", | ||
"musically", | ||
"tiktokv", | ||
"tiktok-user", | ||
"tiktok-stalk" | ||
], | ||
@@ -22,0 +26,0 @@ "author": "Tobz", |
@@ -8,3 +8,4 @@ <h1 align="center"> | ||
<a href="https://github.com/TobyG74/tiktok-api-dl/network/members" title="forks"><img src="https://img.shields.io/github/forks/TobyG74/tiktok-api-dl.svg?style=for-the-badge"></img></a> | ||
<a href="https://github.com/TobyG74/tiktok-api-dl/stargazers" title="stargazers"><img src="https://img.shields.io/github/issues/TobyG74/tiktok-api-dl.svg?style=for-the-badge"></img></a> | ||
<a href="https://github.com/TobyG74/tiktok-api-dl/issues" title="issues"><img src="https://img.shields.io/github/issues/TobyG74/tiktok-api-dl.svg?style=for-the-badge"></img></a> | ||
<a href="https://github.com/TobyG74/tiktok-api-dl/stargazers" title="stargazer"><img src="https://img.shields.io/github/stars/TobyG74/tiktok-api-dl.svg?style=for-the-badge"></img></a> | ||
</div> | ||
@@ -11,0 +12,0 @@ <br> |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
262
0
33873
24
759
1