Skip to content

Commit

Permalink
refactor: get did by reverse engineering (enpitsuLin#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
enpitsuLin authored Dec 1, 2024
1 parent 41d9dd2 commit 5e41364
Show file tree
Hide file tree
Showing 9 changed files with 1,497 additions and 311 deletions.
2 changes: 2 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ const withServerChan = process.env.SERVERCHAN_SENDKEY
const withBark = process.env.BARK_URL

await Promise.all(accounts.map(token => doAttendanceForAccount(token, { withServerChan, withBark })))


13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@
"scripts": {
"attendance": "tsx main.ts",
"lint": "eslint .",
"lint:fix": "eslint . --fix"
"lint:fix": "eslint . --fix",
"test": "vitest"
},
"dependencies": {
"canvas": "^2.11.2",
"@originjs/crypto-js-wasm": "^1.1.1",
"date-fns": "^4.1.0",
"dotenv": "^16.3.1",
"jsdom": "^25.0.1",
"ofetch": "^1.3.4",
"proxy-agent": "^6.4.0",
"pako": "^2.1.0",
"tsx": "^4.6.0",
"ufo": "^1.5.4"
},
Expand All @@ -27,7 +28,9 @@
"@types/eslint": "^8.44.7",
"@types/jsdom": "^21.1.7",
"@types/node": "^20.10.0",
"@types/pako": "^2.0.3",
"eslint": "^8.54.0",
"typescript": "^5.3.2"
"typescript": "^5.3.2",
"vitest": "^2.1.6"
}
}
Loading

0 comments on commit 5e41364

Please sign in to comment.