🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

oicq

Package Overview
Dependencies
Maintainers
1
Versions
176
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oicq - npm Package Compare versions

Comparing version
2.1.8
to
2.1.9
+3
-1
lib/internal/pbgetmsg.js

@@ -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;

{
"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 @@ },

@@ -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) 想赞助可加群给我发红包
[![group:236172566](https://img.shields.io/badge/group-236172566-blue)](https://qm.qq.com/cgi-bin/qm/qr?k=NXw3NEA5lzPjkRhyEpjVBqMpdg1WHRKJ&jump_from=webapi)