@mtkruto/node 0.0.76 → 0.0.77

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.
@@ -86,10 +86,8 @@ export class Client extends ClientAbstract {
86
86
  let decrypted;
87
87
  try {
88
88
  decrypted = await decryptMessage(buffer, this.session.authKey, this.sessionId);
89
- console.log({ decrypted });
90
89
  }
91
90
  catch (_err) {
92
- console.log("failed to decrypt msg", { _err });
93
91
  // logger().error(`Failed to decrypt message: ${err}`);
94
92
  continue;
95
93
  }
@@ -99,10 +97,6 @@ export class Client extends ClientAbstract {
99
97
  if (body instanceof types.GZIPPacked) {
100
98
  body = new TLReader(gunzip(body.packedData)).readObject();
101
99
  }
102
- console.log("---");
103
- console.log("message.body", message.body.constructor.name);
104
- console.log("body", body.constructor.name);
105
- console.log("---");
106
100
  // logger().debug(`Received ${body.constructor.name}`);
107
101
  if (body instanceof types.Updates) {
108
102
  this.updatesHandler?.(this, body);
@@ -112,7 +106,6 @@ export class Client extends ClientAbstract {
112
106
  if (result instanceof types.GZIPPacked) {
113
107
  result = new TLReader(gunzip(result.packedData)).readObject();
114
108
  }
115
- // console.log(result.constructor.name)
116
109
  const promise = this.promises.get(message.body.messageId);
117
110
  if (promise) {
118
111
  if (result instanceof types.RPCError) {
@@ -160,7 +153,6 @@ export class Client extends ClientAbstract {
160
153
  if (!this.session.authKey) {
161
154
  throw new Error("Not connected");
162
155
  }
163
- console.log("invoking", function_.constructor.name);
164
156
  let seqNo = this.state.seqNo * 2;
165
157
  if (!(function_ instanceof functions.Ping) && !(function_ instanceof types.MsgsAck)) {
166
158
  seqNo++;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "main": "./script/mod.js",
4
4
  "types": "./types/mod.d.ts",
5
5
  "name": "@mtkruto/node",
6
- "version": "0.0.76",
6
+ "version": "0.0.77",
7
7
  "description": "MTKruto for Node.js",
8
8
  "author": "Roj <rojvv@icloud.com>",
9
9
  "license": "LGPL-3.0-or-later",
@@ -112,10 +112,8 @@ class Client extends client_abstract_js_1.ClientAbstract {
112
112
  let decrypted;
113
113
  try {
114
114
  decrypted = await (0, _1_message_js_1.decryptMessage)(buffer, this.session.authKey, this.sessionId);
115
- console.log({ decrypted });
116
115
  }
117
116
  catch (_err) {
118
- console.log("failed to decrypt msg", { _err });
119
117
  // logger().error(`Failed to decrypt message: ${err}`);
120
118
  continue;
121
119
  }
@@ -125,10 +123,6 @@ class Client extends client_abstract_js_1.ClientAbstract {
125
123
  if (body instanceof types.GZIPPacked) {
126
124
  body = new _3_tl_reader_js_1.TLReader((0, deps_js_1.gunzip)(body.packedData)).readObject();
127
125
  }
128
- console.log("---");
129
- console.log("message.body", message.body.constructor.name);
130
- console.log("body", body.constructor.name);
131
- console.log("---");
132
126
  // logger().debug(`Received ${body.constructor.name}`);
133
127
  if (body instanceof types.Updates) {
134
128
  this.updatesHandler?.(this, body);
@@ -138,7 +132,6 @@ class Client extends client_abstract_js_1.ClientAbstract {
138
132
  if (result instanceof types.GZIPPacked) {
139
133
  result = new _3_tl_reader_js_1.TLReader((0, deps_js_1.gunzip)(result.packedData)).readObject();
140
134
  }
141
- // console.log(result.constructor.name)
142
135
  const promise = this.promises.get(message.body.messageId);
143
136
  if (promise) {
144
137
  if (result instanceof types.RPCError) {
@@ -186,7 +179,6 @@ class Client extends client_abstract_js_1.ClientAbstract {
186
179
  if (!this.session.authKey) {
187
180
  throw new Error("Not connected");
188
181
  }
189
- console.log("invoking", function_.constructor.name);
190
182
  let seqNo = this.state.seqNo * 2;
191
183
  if (!(function_ instanceof functions.Ping) && !(function_ instanceof types.MsgsAck)) {
192
184
  seqNo++;