diff --git a/bun.lockb b/bun.lockb index 82e8a4a..d0c292d 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package-lock.json b/package-lock.json index 8752e76..d947b78 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,23 +7,23 @@ "name": "twitter", "dependencies": { "cron": "^3.1.7", - "twitter-api-v2": "^1.17.0", + "twitter-api-v2": "^1.17.1", "zod": "^3.23.8" }, "devDependencies": { - "@types/bun": "*" + "@types/bun": "latest" }, "peerDependencies": { "typescript": "^5.0.0" } }, "node_modules/@types/bun": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/@types/bun/-/bun-1.1.3.tgz", - "integrity": "sha512-i+mVz8C/lx+RprDR6Mr402iE1kmajgJPnmSfJ/NvU85sGGXSylYZ/6yc+XhVLr2E/t8o6HmjwV0evtnUOR0CFA==", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@types/bun/-/bun-1.1.4.tgz", + "integrity": "sha512-ejSuv/3s0hTHj/nkkLzBlHxm4JxOPygbLNi0kzM6ooq8rOiQvIUCv7RRErTaWSfb+QVnKz6x7qlp8N86bGDiIg==", "dev": true, "dependencies": { - "bun-types": "1.1.9" + "bun-types": "1.1.13" } }, "node_modules/@types/luxon": { @@ -31,9 +31,9 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "20.12.13", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.13.tgz", - "integrity": "sha512-gBGeanV41c1L171rR7wjbMiEpEI/l5XFQdLLfhr/REwpgDy/4U8y89+i8kRiLzDyZdOkXh+cRaTetUnCYutoXA==", + "version": "20.12.14", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.14.tgz", + "integrity": "sha512-scnD59RpYD91xngrQQLGkE+6UrHUPzeKZWhhjBSa3HSkwjbQc38+q3RoIVEwxQGRw3M+j5hpNAM+lgV3cVormg==", "dev": true, "dependencies": { "undici-types": "~5.26.4" @@ -49,9 +49,9 @@ } }, "node_modules/bun-types": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/bun-types/-/bun-types-1.1.9.tgz", - "integrity": "sha512-3YuLiH4Ne/ghk7K6mHiaqCqKOMrtB0Z5p1WAskHSVgi0iMZgsARV4yGkbfi565YsStvUq6GXTWB3ga7M8cznkA==", + "version": "1.1.13", + "resolved": "https://registry.npmjs.org/bun-types/-/bun-types-1.1.13.tgz", + "integrity": "sha512-G/TqF0SsMQGLr4g7K3B2BK8BrPEA1EqCNwxZbyRdj5M4t54zvwyaqvRJOW34kuPqc2IvNNalRU3swc8B4oc4FA==", "dev": true, "dependencies": { "@types/node": "~20.12.8", @@ -74,9 +74,9 @@ } }, "node_modules/twitter-api-v2": { - "version": "1.17.0", - "resolved": "https://registry.npmjs.org/twitter-api-v2/-/twitter-api-v2-1.17.0.tgz", - "integrity": "sha512-znu5Lvu+2KGmjWfOgwtnzNBq8CtaCft5+1+MootxOOEQ2vhmgHa3eAo0tFAJ7M8M0eXDKldY0DNcndn8gGdAIw==" + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/twitter-api-v2/-/twitter-api-v2-1.17.1.tgz", + "integrity": "sha512-eLVetUOGiKalx/7NlF8+heMmtEXBhObP0mS9RFgcgjh5KTVq7SOWaIMIe1IrsAAV9DFCjd6O7fL+FMp6sibQYg==" }, "node_modules/typescript": { "version": "5.4.5", diff --git a/package.json b/package.json index 8f84645..fd9bc8e 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ }, "dependencies": { "cron": "^3.1.7", - "twitter-api-v2": "^1.17.0", + "twitter-api-v2": "^1.17.1", "zod": "^3.23.8" } } diff --git a/src/utils/getSubs.ts b/src/utils/getSubs.ts index 17feb5f..896a9af 100644 --- a/src/utils/getSubs.ts +++ b/src/utils/getSubs.ts @@ -25,9 +25,7 @@ export async function getSubsTask(): Promise { for (let i = 0; i < subscriberCounts.length; i++) { const subsciberCount = subscriberCounts[i]; const channelId = channels[i]; - console.log('\n', channelId, subsciberCount) const currentSubCount = await getChannelSubs(channelId) as any - console.log(currentSubCount) if (currentSubCount[0] < subsciberCount) { console.log('An update has been detected from', currentSubCount[0], '->', subsciberCount) await updateSubsTask(channelId, subsciberCount)