@mtkruto/node 0.63.16 → 0.63.17
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/README.md +1 -1
- package/esm/client/0_storage_operations.d.ts.map +1 -1
- package/esm/client/0_storage_operations.js +5 -2
- package/esm/client/0_utilities.d.ts +1 -1
- package/esm/client/0_utilities.d.ts.map +1 -1
- package/esm/client/2_update_manager.js +1 -1
- package/esm/client/3_video_chat_manager.js +1 -1
- package/esm/client/4_chat_list_manager.js +1 -1
- package/esm/client/4_chat_manager.d.ts +2 -2
- package/esm/client/4_chat_manager.d.ts.map +1 -1
- package/esm/client/5_client.d.ts +6 -6
- package/esm/client/5_client.d.ts.map +1 -1
- package/esm/client/5_client.js +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/equals.js +4 -4
- package/esm/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/build_message.d.ts +1 -1
- package/{script/deps/jsr.io/@std/internal/1.0.6 → esm/deps/jsr.io/@std/internal/1.0.7}/build_message.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/build_message.js +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/diff.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/diff_str.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/format.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/styles.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/types.d.ts.map +1 -1
- package/esm/tl/1_telegram_api.d.ts +218 -27
- package/esm/tl/1_telegram_api.d.ts.map +1 -1
- package/esm/tl/1_telegram_api.js +288 -48
- package/esm/types/2_chat.js +2 -2
- package/esm/utilities/2_queue.d.ts +1 -1
- package/esm/utilities/2_queue.d.ts.map +1 -1
- package/esm/utilities/2_queue.js +11 -7
- package/package.json +1 -1
- package/script/client/0_storage_operations.d.ts.map +1 -1
- package/script/client/0_storage_operations.js +4 -1
- package/script/client/0_utilities.d.ts +1 -1
- package/script/client/0_utilities.d.ts.map +1 -1
- package/script/client/2_update_manager.js +1 -1
- package/script/client/3_video_chat_manager.js +1 -1
- package/script/client/4_chat_list_manager.js +1 -1
- package/script/client/4_chat_manager.d.ts +2 -2
- package/script/client/4_chat_manager.d.ts.map +1 -1
- package/script/client/5_client.d.ts +6 -6
- package/script/client/5_client.d.ts.map +1 -1
- package/script/client/5_client.js +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.13/equals.js +4 -4
- package/script/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/build_message.d.ts +1 -1
- package/{esm/deps/jsr.io/@std/internal/1.0.6 → script/deps/jsr.io/@std/internal/1.0.7}/build_message.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/build_message.js +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/diff.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/diff_str.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/format.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/styles.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/types.d.ts.map +1 -1
- package/script/tl/1_telegram_api.d.ts +218 -27
- package/script/tl/1_telegram_api.d.ts.map +1 -1
- package/script/tl/1_telegram_api.js +288 -48
- package/script/types/2_chat.js +2 -2
- package/script/utilities/2_queue.d.ts +1 -1
- package/script/utilities/2_queue.d.ts.map +1 -1
- package/script/utilities/2_queue.js +11 -7
- /package/esm/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/diff.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/diff.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/diff_str.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/diff_str.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/format.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/format.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/styles.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/styles.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/types.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/types.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/diff.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/diff.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/diff_str.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/diff_str.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/format.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/format.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/styles.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/styles.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/types.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.6 → 1.0.7}/types.js +0 -0
package/script/types/2_chat.js
CHANGED
|
@@ -52,7 +52,7 @@ async function constructChat(fullChat, getEntity) {
|
|
|
52
52
|
return (0, _1_utilities_js_1.cleanObject)({
|
|
53
53
|
...chatP,
|
|
54
54
|
photo: fullChat.chat_photo && _2_tl_js_1.Api.is("photo", fullChat.chat_photo) ? (0, _1_photo_js_1.constructPhoto)(fullChat.chat_photo) : undefined,
|
|
55
|
-
videoChatId: fullChat.call ? String(fullChat.call.id) : undefined,
|
|
55
|
+
videoChatId: _2_tl_js_1.Api.is("inputGroupCall", fullChat.call) ? String(fullChat.call.id) : undefined,
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
58
|
else if (_2_tl_js_1.Api.is("channelFull", fullChat)) {
|
|
@@ -63,7 +63,7 @@ async function constructChat(fullChat, getEntity) {
|
|
|
63
63
|
return (0, _1_utilities_js_1.cleanObject)({
|
|
64
64
|
...chatP,
|
|
65
65
|
photo: fullChat.chat_photo && _2_tl_js_1.Api.is("photo", fullChat.chat_photo) ? (0, _1_photo_js_1.constructPhoto)(fullChat.chat_photo) : undefined,
|
|
66
|
-
videoChatId: fullChat.call ? String(fullChat.call.id) : undefined,
|
|
66
|
+
videoChatId: _2_tl_js_1.Api.is("inputGroupCall", fullChat.call) ? String(fullChat.call.id) : undefined,
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
(0, _0_deps_js_1.unreachable)();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2_queue.d.ts","sourceRoot":"","sources":["../../src/utilities/2_queue.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,qBAAa,KAAK;;IAEhB,SAAS,SAAmB,OAAO,CAAC,IAAI,CAAC,IAAI;
|
|
1
|
+
{"version":3,"file":"2_queue.d.ts","sourceRoot":"","sources":["../../src/utilities/2_queue.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,qBAAa,KAAK;;IAEhB,SAAS,SAAmB,OAAO,CAAC,IAAI,CAAC,IAAI;gBAGjC,IAAI,EAAE,MAAM,EAAE,MAAM,UAAQ;IAKxC,GAAG,CAAC,EAAE,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC;CA4B5B"}
|
|
@@ -29,12 +29,12 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
29
29
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
30
30
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
31
31
|
};
|
|
32
|
-
var _Queue_instances, _Queue_logger, _Queue_busy, _Queue_check;
|
|
32
|
+
var _Queue_instances, _Queue_logger, _Queue_throw, _Queue_busy, _Queue_check;
|
|
33
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
34
|
exports.Queue = void 0;
|
|
35
35
|
const _1_logger_js_1 = require("./1_logger.js");
|
|
36
36
|
class Queue {
|
|
37
|
-
constructor(name) {
|
|
37
|
+
constructor(name, throw_ = false) {
|
|
38
38
|
_Queue_instances.add(this);
|
|
39
39
|
_Queue_logger.set(this, void 0);
|
|
40
40
|
Object.defineProperty(this, "functions", {
|
|
@@ -43,8 +43,10 @@ class Queue {
|
|
|
43
43
|
writable: true,
|
|
44
44
|
value: new Array()
|
|
45
45
|
});
|
|
46
|
+
_Queue_throw.set(this, void 0);
|
|
46
47
|
_Queue_busy.set(this, false);
|
|
47
48
|
__classPrivateFieldSet(this, _Queue_logger, (0, _1_logger_js_1.getLogger)(`q/${name}`), "f");
|
|
49
|
+
__classPrivateFieldSet(this, _Queue_throw, throw_, "f");
|
|
48
50
|
}
|
|
49
51
|
add(fn) {
|
|
50
52
|
this.functions.push(fn);
|
|
@@ -52,7 +54,7 @@ class Queue {
|
|
|
52
54
|
}
|
|
53
55
|
}
|
|
54
56
|
exports.Queue = Queue;
|
|
55
|
-
_Queue_logger = new WeakMap(), _Queue_busy = new WeakMap(), _Queue_instances = new WeakSet(), _Queue_check = function _Queue_check() {
|
|
57
|
+
_Queue_logger = new WeakMap(), _Queue_throw = new WeakMap(), _Queue_busy = new WeakMap(), _Queue_instances = new WeakSet(), _Queue_check = function _Queue_check() {
|
|
56
58
|
if (__classPrivateFieldGet(this, _Queue_busy, "f")) {
|
|
57
59
|
return;
|
|
58
60
|
}
|
|
@@ -61,14 +63,16 @@ _Queue_logger = new WeakMap(), _Queue_busy = new WeakMap(), _Queue_instances = n
|
|
|
61
63
|
}
|
|
62
64
|
const fn = this.functions.shift();
|
|
63
65
|
if (fn !== undefined) {
|
|
64
|
-
fn()
|
|
65
|
-
.catch((err) => {
|
|
66
|
-
__classPrivateFieldGet(this, _Queue_logger, "f").error((typeof err === "object" && err != null && "stack" in err) ? err.stack : err);
|
|
67
|
-
})
|
|
66
|
+
const promise = fn()
|
|
68
67
|
.finally(() => {
|
|
69
68
|
__classPrivateFieldSet(this, _Queue_busy, false, "f");
|
|
70
69
|
__classPrivateFieldGet(this, _Queue_instances, "m", _Queue_check).call(this);
|
|
71
70
|
});
|
|
71
|
+
if (!__classPrivateFieldGet(this, _Queue_throw, "f")) {
|
|
72
|
+
promise.catch((err) => {
|
|
73
|
+
__classPrivateFieldGet(this, _Queue_logger, "f").error((typeof err === "object" && err != null && "stack" in err) ? err.stack : err);
|
|
74
|
+
});
|
|
75
|
+
}
|
|
72
76
|
}
|
|
73
77
|
else {
|
|
74
78
|
__classPrivateFieldSet(this, _Queue_busy, false, "f");
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|