oicq-icalingua-plus-plus 1.23.13 → 1.23.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -1235,7 +1235,7 @@ export interface FakeMessage {
1235
1235
 
1236
1236
  export namespace pb {
1237
1237
  function encode(o: import("./lib/ref").Proto): Uint8Array;
1238
- function decode(buf: Buffer): import("../ref").Proto;
1238
+ function decode(buf: Buffer): import("./lib/ref").Proto;
1239
1239
  }
1240
1240
 
1241
1241
  export namespace jce {
@@ -1243,17 +1243,17 @@ export namespace jce {
1243
1243
  function decodeNested(blob: Buffer): {[k: number]: any};
1244
1244
  function encode(object: {[k: number]: any}|any[], struct: {[k: string]: number}): Buffer;
1245
1245
  function encodeWrapper(map: Object, extra: {
1246
- version: 1,
1247
- pkt_type: 2,
1248
- msg_type: 3,
1249
- req_id: 4,
1250
- service: 5,
1251
- method: 6,
1252
- payload: 7,
1253
- timeout: 8,
1254
- context: 9,
1255
- status: 10,
1246
+ version: number,
1247
+ pkt_type: number,
1248
+ msg_type: number,
1249
+ req_id: number,
1250
+ service: number,
1251
+ method: number,
1252
+ payload: number,
1253
+ timeout: number,
1254
+ context: number,
1255
+ status: number,
1256
1256
  }): Buffer;
1257
- function encodeStruct(nested: Object|Array, struct: Object|undefined): Buffer;
1257
+ function encodeStruct(nested: Object|Array<any>, struct: Object|undefined): Buffer;
1258
1258
  function encodeNested(nested: {[k: number]: any}|any[], struct: {[k: string]: number}): any;
1259
1259
  }
package/lib/onlinepush.js CHANGED
@@ -346,6 +346,7 @@ const push732 = {
346
346
  const user_id = sub[5][5];
347
347
  str = str.substr(0, str.length - 2);
348
348
  let title = str.substr(str.lastIndexOf("获得群主授予的") + 7);
349
+ const _title = title;
349
350
  if (title.startsWith("<{") && title.endsWith("}>")) {
350
351
  title = title.substr(1, title.length - 2);
351
352
  try {
@@ -358,7 +359,7 @@ const push732 = {
358
359
  }
359
360
  }
360
361
  if (!title) return;
361
- str = str.substr(0, str.length - title.length - 7);
362
+ str = str.substr(0, str.length - _title.length - 7);
362
363
  let nickname = str.substr(2);
363
364
  if (nickname.startsWith("<{") && nickname.endsWith("}>")) {
364
365
  nickname = nickname.substr(1, nickname.length - 2);
package/lib/ref.d.ts CHANGED
@@ -70,7 +70,7 @@ export interface HighwayUploadStreamObject {
70
70
  }
71
71
 
72
72
  export interface Proto {
73
- [k: number]: Proto,
73
+ [k: number]: Proto | any,
74
74
  toString: () => string,
75
75
  toHex: () => string,
76
76
  toBase64: () => string,
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "oicq-icalingua-plus-plus",
3
3
  "app_name": "oicq-icalingua-plus-plus",
4
- "version": "1.23.13",
5
- "app_version": "1.23.13",
4
+ "version": "1.23.15",
5
+ "app_version": "1.23.15",
6
6
  "upday": "2023/02/04",
7
7
  "protocol_version": "v11",
8
8
  "description": "oicq(https://github.com/takayama-lily/oicq) v1 for Icalingua++",