mirror of
https://github.com/zhigang1992/telert.git
synced 2026-01-12 08:24:41 +08:00
chore: update all dependencies to latest versions
- @cfworker/web: 1.12.5 → 5.1.0 (breaking: use export fetch handler) - @grammyjs/types: 3.1.1 → 3.22.2 - @cloudflare/workers-types: 4.20230404.0 → 4.20251205.0 - prettier: 2.8.8 → 3.7.4 - typescript: 5.0.4 → 5.9.3 - vitest: 0.30.1 → 4.0.15 - wrangler: 4.26.1 → 4.53.0 Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
14
package.json
14
package.json
@@ -2,12 +2,12 @@
|
|||||||
"name": "telert",
|
"name": "telert",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@cloudflare/workers-types": "^4.20230404.0",
|
"@cloudflare/workers-types": "^4.20251205.0",
|
||||||
"@grammyjs/types": "^3.1.1",
|
"@grammyjs/types": "^3.22.2",
|
||||||
"prettier": "^2.8.8",
|
"prettier": "^3.7.4",
|
||||||
"typescript": "^5.0.4",
|
"typescript": "^5.9.3",
|
||||||
"vitest": "^0.30.1",
|
"vitest": "^4.0.15",
|
||||||
"wrangler": "4.26.1"
|
"wrangler": "4.53.0"
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -16,6 +16,6 @@
|
|||||||
"test": "vitest"
|
"test": "vitest"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@cfworker/web": "^1.12.5"
|
"@cfworker/web": "^5.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
1768
pnpm-lock.yaml
generated
1768
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -186,7 +186,12 @@ const cors: Middleware = async ({ req, res }, next) => {
|
|||||||
await next();
|
await next();
|
||||||
};
|
};
|
||||||
|
|
||||||
new Application().use(cors).use(router.middleware).listen();
|
const app = new Application().use(cors).use(router.middleware);
|
||||||
|
|
||||||
|
export default {
|
||||||
|
fetch: (request: Request, env: any, ctx: ExecutionContext) =>
|
||||||
|
app.handleRequest(request, env, ctx),
|
||||||
|
};
|
||||||
|
|
||||||
async function processUpdate(update: Update): Promise<void> {
|
async function processUpdate(update: Update): Promise<void> {
|
||||||
const message = update.message ?? update.channel_post;
|
const message = update.message ?? update.channel_post;
|
||||||
|
|||||||
Reference in New Issue
Block a user