New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tobyg74/tiktok-api-dl

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tobyg74/tiktok-api-dl - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

lib/types/tiktokApi.d.ts

2

lib/api/index.d.ts
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>

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc