Refactor the whole project

Use itty-router over manual routing

Extract resuable code into modules

Update copyright notice

Remove path to paste v1 homepage

Signed-off-by: Joe Ma <rikkaneko23@gmail.com>
This commit is contained in:
Joe Ma 2023-11-19 02:19:27 +08:00
parent 9c336e4961
commit 3de4fa14ed
No known key found for this signature in database
GPG key ID: 7A0ECF5F5EDC587F
7 changed files with 757 additions and 696 deletions

View file

@ -1,7 +1,9 @@
{
"name": "paste",
"version": "1.3.1",
"version": "1.4",
"license": "LGPL-3.0-or-later",
"scripts": {
"dev": "wrangler dev",
"publish": "wrangler deploy",
"format": "prettier --write .",
"lint": "eslint . --color --cache -f friendly --max-warnings 10"
@ -9,6 +11,7 @@
"dependencies": {
"aws4fetch": "^1.0.17",
"dedent-js": "^1.0.1",
"itty-router": "^4.0.23",
"js-sha256": "^0.10.1",
"nanoid": "^5.0.2"
},
@ -24,4 +27,4 @@
"typescript": "^5.2.2",
"wrangler": "^3.15.0"
}
}
}