Skip to content

Commit

Permalink
deps: bump
Browse files Browse the repository at this point in the history
  • Loading branch information
clansty committed Jul 10, 2024
1 parent 161166b commit f83ccdf
Show file tree
Hide file tree
Showing 5 changed files with 562 additions and 791 deletions.
20 changes: 10 additions & 10 deletions main/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,41 +13,41 @@
"assets"
],
"devDependencies": {
"@types/cli-progress": "^3.11.5",
"@types/cli-progress": "^3.11.6",
"@types/date-and-time": "^3.0.3",
"@types/dockerode": "^3.3.29",
"@types/ejs": "^3.1.5",
"@types/fluent-ffmpeg": "^2.1.24",
"@types/lodash": "^4.17.5",
"@types/lodash": "^4.17.6",
"@types/markdown-escape": "^1.1.3",
"@types/node": "^20.14.8",
"@types/node": "^20.14.10",
"@types/probe-image-size": "^7.2.4",
"@types/prompts": "^2.4.9",
"tsx": "^4.15.7"
"tsx": "^4.16.2"
},
"dependencies": {
"@fastify/http-proxy": "^9.5.0",
"@fastify/static": "^7.0.4",
"@icqqjs/icqq": "1.2.2",
"@prisma/client": "5.15.1",
"@icqqjs/icqq": "1.2.4",
"@prisma/client": "5.16.2",
"axios": "^1.7.2",
"baidu-aip-sdk": "^4.16.16",
"big-integer": "^1.6.52",
"cli-progress": "^3.12.0",
"date-and-time": "^3.3.0",
"date-and-time": "^3.4.0",
"dockerode": "^4.0.2",
"dotenv": "^16.4.5",
"ejs": "^3.1.10",
"eviltransform": "^0.2.2",
"fastify": "^4.28.0",
"file-type": "^19.0.0",
"fastify": "^4.28.1",
"file-type": "^19.1.0",
"fluent-ffmpeg": "^2.1.3",
"image-size": "^1.1.1",
"lodash": "^4.17.21",
"log4js": "^6.9.1",
"markdown-escape": "^2.0.0",
"nodejs-base64": "^2.0.0",
"prisma": "5.15.1",
"prisma": "5.16.2",
"probe-image-size": "^7.2.3",
"prompts": "^2.4.2",
"quote-api": "https://github.com/Clansty/quote-api/archive/014b21138afbbe0e12c91b00561414b1e851fc0f.tar.gz",
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"build": "pnpm run --stream --parallel build"
},
"devDependencies": {
"typescript": "^5.5.2"
"typescript": "^5.5.3"
},
"pnpm": {
"patchedDependencies": {
"@icqqjs/icqq@1.2.2": "patches/@icqqjs__icqq@1.2.0.patch",
"telegram@2.22.2": "patches/telegram@2.20.15.patch"
"telegram@2.22.2": "patches/telegram@2.20.15.patch",
"@icqqjs/icqq@1.2.4": "patches/@icqqjs__icqq@1.2.4.patch"
}
},
"packageManager": "pnpm@9.4.0+sha512.f549b8a52c9d2b8536762f99c0722205efc5af913e77835dbccc3b0b0b2ca9e7dc8022b78062c17291c48e88749c70ce88eb5a74f1fa8c4bf5e18bb46c8bd83a"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/lib/common.d.ts b/lib/common.d.ts
index d27f6298a041607768ee58b0d1e75c8bdcedafe1..d4d90b2ef8b63baf1edb84b0ab3118bbf421c515 100644
index bdfe98c9920d99e7d86825fd1fa7a2761cf2903c..3f9e74673cb09d4197266588df4e4e621839deb9 100644
--- a/lib/common.d.ts
+++ b/lib/common.d.ts
@@ -54,5 +54,11 @@ export interface UserProfile {
@@ -52,5 +52,11 @@ export interface UserProfile {
signature: string;
/** 自定义的QID */
QID: string;
Expand All @@ -15,10 +15,10 @@ index d27f6298a041607768ee58b0d1e75c8bdcedafe1..d4d90b2ef8b63baf1edb84b0ab3118bb
}
export * from "./core/constants";
diff --git a/lib/internal/internal.js b/lib/internal/internal.js
index ee137c44c92b947dcc7d851bb04f319c9a070f68..4bb7d5d082156f76974269e220051539162792dd 100644
index 84a509ee996dbb17414c576b8c91d78405bf710c..65ac2496c52314758e1a7004409354559fcb1359 100644
--- a/lib/internal/internal.js
+++ b/lib/internal/internal.js
@@ -86,9 +86,17 @@ async function getUserProfile(uin = this.uin) {
@@ -99,6 +99,14 @@ async function getUserProfile(uin = this.uin) {
});
// 有需要自己加!
return {
Expand All @@ -27,16 +27,12 @@ index ee137c44c92b947dcc7d851bb04f319c9a070f68..4bb7d5d082156f76974269e220051539
+ province: String(profile[20004]),
+ city: String(profile[20020]),
+ email: String(profile[20011]),
signature: String(profile[102]),
regTimestamp: profile[20026],
- QID: String(profile[27394])
+ QID: String(profile[27394]),
+ birthday: profile[20031].toBuffer().length === 4 ?
+ birthday: profile[20031].toBuffer().length === 4 ?
+ [profile[20031].toBuffer().slice(0,2).readUInt16BE(), profile[20031].toBuffer().slice(2,3).readUInt8(), profile[20031].toBuffer().slice(3).readUInt8()] :
+ undefined,
};
}
exports.getUserProfile = getUserProfile;
signature: String(profile[102]),
regTimestamp: profile[20026],
QID: String(profile[27394])
diff --git a/lib/message/converter.js b/lib/message/converter.js
index 27a659a3290fadd990a1a980918515a6ded4978f..e1bbe1470f302c30e7adea92f433a6e3929064e3 100644
--- a/lib/message/converter.js
Expand Down
Loading

0 comments on commit f83ccdf

Please sign in to comment.