@@ -57,3 +57,5 @@ "use strict"; | ||
| rubbish.push(item); | ||
| handleSyncMsg.call(this, msg); | ||
| handleSyncMsg.call(this, msg).catch(e => { | ||
| this.logger.debug(e); | ||
| }); | ||
| } | ||
@@ -60,0 +62,0 @@ } |
@@ -47,5 +47,5 @@ "use strict"; | ||
| md5 = sp[0].slice(0, 32); | ||
| size = Number(sp[0].slice(32)) | 0; | ||
| width = Number(sp[1]) | 0; | ||
| height = Number(sp[2]) | 0; | ||
| size = Number(sp[0].slice(32)) || 0; | ||
| width = Number(sp[1]) || 0; | ||
| height = parseInt(sp[2]) || 0; | ||
| sp = file.split("."); | ||
@@ -52,0 +52,0 @@ ext = sp[1] || "jpg"; |
@@ -183,3 +183,3 @@ "use strict"; | ||
| size: trans[6], | ||
| md5: trans[4].toHex(), | ||
| md5: trans[4]?.toHex() || "", | ||
| duration: trans[51] || 0, | ||
@@ -264,3 +264,3 @@ fid: String(trans[3]), | ||
| this.sender.role = ext[4] === 8 ? "owner" : "admin"; | ||
| this.sender.level = ext?.[3] | 0; | ||
| this.sender.level = ext?.[3] || 0; | ||
| this.sender.title = ext?.[7]?.toString() || ""; | ||
@@ -307,4 +307,4 @@ } | ||
| const head = proto[1]; | ||
| this.time = head[6] | 0; | ||
| this.user_id = head[1] | 0; | ||
| this.time = head[6] || 0; | ||
| this.user_id = head[1] || 0; | ||
| this.nickname = head[14]?.toString() || head[9]?.[4]?.toString() || ""; | ||
@@ -349,2 +349,6 @@ this.parsed = (0, parser_1.parse)(proto[3][1]); | ||
| for (let elem of content) { | ||
| if (elem.type === "text") { | ||
| cqcode += elem.text; | ||
| continue; | ||
| } | ||
| const tmp = { ...elem }; | ||
@@ -351,0 +355,0 @@ tmp.type = undefined; |
+4
-4
| { | ||
| "name": "oicq", | ||
| "version": "2.1.8", | ||
| "upday": "2021/12/08", | ||
| "version": "2.1.9", | ||
| "upday": "2021/1/4", | ||
| "description": "QQ protocol!", | ||
@@ -29,3 +29,3 @@ "main": "lib/index.js", | ||
| "dependencies": { | ||
| "axios": "^0.23.0", | ||
| "axios": "^0.24.0", | ||
| "jsqr": "^1.4.0", | ||
@@ -35,3 +35,3 @@ "log4js": "^6.3.0", | ||
| "pngjs": "^6.0.0", | ||
| "probe-image-size": "^7.2.1", | ||
| "probe-image-size": "^7.2.2", | ||
| "qrcode-terminal": "^0.12.0" | ||
@@ -38,0 +38,0 @@ }, |
+4
-1
@@ -10,3 +10,3 @@ # oicq | ||
| * 若你不熟悉Node.js或不会组织代码,可通过 [template](https://github.com/takayama-lily/oicq-template) 创建一个简单的应用程序 | ||
| * [API Reference](#api-reference) / [Type Docs](https://takayama-lily.github.io/oicq/) | ||
| * [API Reference](#api-reference) / [Type Docs](https://takayama-lily.github.io/oicq/) (文档仅供参考,具体类型以包内d.ts声明文件为准) | ||
| * [从v1.x升级](https://github.com/takayama-lily/oicq/projects/3#column-16638290) (v1在master分支) | ||
@@ -342,2 +342,4 @@ | ||
| > const { segment } = require("oicq) | ||
| |Method|Description| | ||
@@ -379,3 +381,4 @@ |-|-| | ||
| * [码云镜像仓库](https://gitee.com/takayama/oicq) | ||
| * [赞助记录](./sponsors.md) 想赞助可加群给我发红包 | ||
| [](https://qm.qq.com/cgi-bin/qm/qr?k=NXw3NEA5lzPjkRhyEpjVBqMpdg1WHRKJ&jump_from=webapi) |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
521730
0.07%13179
0.05%382
0.79%+ Added
- Removed
Updated
Updated