From 9baf043b30202880797ef75f08be2b567d98ef51 Mon Sep 17 00:00:00 2001 From: yutent Date: Mon, 11 Sep 2023 17:10:40 +0800 Subject: [PATCH] node -> bun --- app.yaml | 2 +- apps/api.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app.yaml b/app.yaml index 22694f5..0370971 100644 --- a/app.yaml +++ b/app.yaml @@ -1,5 +1,5 @@ -script: node ./app.js +script: bun ./app.js cwd: ./ watch: true name: stats:30303 diff --git a/apps/api.js b/apps/api.js index 21002cd..ed72ec4 100644 --- a/apps/api.js +++ b/apps/api.js @@ -74,6 +74,11 @@ query { langs.sort((a, b) => b.size - a.size) this.response.set('Content-Type', 'image/svg+xml') - this.response.end(render({ title: `${username}'s Top Languages`, langs: langs.slice(0, count) }, this.IS_MOBILE)) + this.response.end( + render( + { title: `${username}'s Top Languages`, langs: langs.slice(0, count) }, + this.IS_MOBILE + ) + ) } }