tiktok-live-api 1.2.18 → 1.2.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/demo.mjs +7 -3
  2. package/package.json +1 -1
package/bin/demo.mjs CHANGED
@@ -537,6 +537,13 @@ function runScaffold(choice, targetDir, pm) {
537
537
  html = html.replace(/src="\/src\/main\.tsx?"/g, 'src="/src/main.jsx"');
538
538
  fs.writeFileSync(indexHtml, html);
539
539
  }
540
+
541
+ // Install dependencies for Vite (create-vite --no-interactive doesn't auto-install)
542
+ if (isVite) {
543
+ const installBase = pm === 'npm' ? 'npm install' : pm === 'yarn' ? 'yarn' : pm === 'pnpm' ? 'pnpm install' : 'bun install';
544
+ console.log("\n " + B + "📦 Installing dependencies..." + R + "\n");
545
+ execSync(installBase, { cwd: fullPath, stdio: 'inherit' });
546
+ }
540
547
  }
541
548
  }
542
549
 
@@ -548,9 +555,6 @@ function runScaffold(choice, targetDir, pm) {
548
555
  } else if (isNode) {
549
556
  console.log(" node index.mjs\n");
550
557
  } else {
551
- if (isVite && pm !== 'bun') {
552
- console.log(" " + pm + " install");
553
- }
554
558
  console.log(" " + devCmd + "\n");
555
559
  }
556
560
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tiktok-live-api",
3
- "version": "1.2.18",
3
+ "version": "1.2.19",
4
4
  "description": "Unofficial TikTok LIVE API Client — Real-time chat, gifts, viewers, battles, and AI live captions from any TikTok livestream. Managed WebSocket API with 99.9% uptime.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",