tiktok-live-api 1.2.8 → 1.2.10

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 +2 -2
  2. package/package.json +1 -1
package/bin/demo.mjs CHANGED
@@ -278,13 +278,13 @@ function runScaffold(choice, targetDir, pm) {
278
278
  ' <TikTokLive />',
279
279
  ' </main>',
280
280
  '</template>'
281
- ].join('\\n') + '\\n');
281
+ ].join('\n') + '\n');
282
282
 
283
283
  const nuxtConfig = path.join(fullPath, 'nuxt.config.ts');
284
284
  if (fs.existsSync(nuxtConfig)) {
285
285
  let config = fs.readFileSync(nuxtConfig, 'utf8');
286
286
  if (config.includes('defineNuxtConfig({')) {
287
- config = config.replace('defineNuxtConfig({', "defineNuxtConfig({\\n modules: ['tiktok-live-nuxt'],\\n");
287
+ config = config.replace('defineNuxtConfig({', "defineNuxtConfig({\n modules: ['tiktok-live-nuxt'],\n");
288
288
  fs.writeFileSync(nuxtConfig, config);
289
289
  }
290
290
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tiktok-live-api",
3
- "version": "1.2.8",
3
+ "version": "1.2.10",
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",