@mtkruto/node 0.79.4 → 0.79.6
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/esm/client/6_client_worker.d.ts +1 -0
- package/esm/client/6_client_worker.d.ts.map +1 -1
- package/esm/client/6_client_worker.js +1 -1
- package/esm/tl/1_telegram_api.d.ts +1 -1
- package/esm/tl/1_telegram_api.d.ts.map +1 -1
- package/esm/tl/1_telegram_api.js +1 -1
- package/package.json +1 -1
- package/script/client/6_client_worker.d.ts +1 -0
- package/script/client/6_client_worker.d.ts.map +1 -1
- package/script/client/6_client_worker.js +1 -1
- package/script/tl/1_telegram_api.d.ts +1 -1
- package/script/tl/1_telegram_api.d.ts.map +1 -1
- package/script/tl/1_telegram_api.js +1 -1
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
import { ClientDispatcher, type ClientDispatcherParams } from "./5_client_dispatcher.js";
|
|
21
21
|
export declare class ClientWorker {
|
|
22
22
|
#private;
|
|
23
|
+
constructor(specifier: Worker);
|
|
23
24
|
constructor(specifier: string | URL, options?: WorkerOptions);
|
|
24
25
|
terminate(): void;
|
|
25
26
|
createClient(params?: ClientDispatcherParams): Promise<ClientDispatcher>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"6_client_worker.d.ts","sourceRoot":"","sources":["../../src/client/6_client_worker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEzF,qBAAa,YAAY;;gBAMX,SAAS,EAAE,MAAM,GAAG,GAAG,EAAE,OAAO,CAAC,EAAE,aAAa;
|
|
1
|
+
{"version":3,"file":"6_client_worker.d.ts","sourceRoot":"","sources":["../../src/client/6_client_worker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAEzF,qBAAa,YAAY;;gBAMX,SAAS,EAAE,MAAM;gBACjB,SAAS,EAAE,MAAM,GAAG,GAAG,EAAE,OAAO,CAAC,EAAE,aAAa;IAW5D,SAAS;IAIH,YAAY,CAAC,MAAM,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAY/E"}
|
|
@@ -25,7 +25,7 @@ export class ClientWorker {
|
|
|
25
25
|
#clients = new Array();
|
|
26
26
|
#L = getLogger("ClientWorker");
|
|
27
27
|
constructor(specifier, options) {
|
|
28
|
-
this.#worker = new Worker(specifier, options);
|
|
28
|
+
this.#worker = specifier instanceof Worker ? specifier : new Worker(specifier, options);
|
|
29
29
|
this.#worker.addEventListener("message", (e) => {
|
|
30
30
|
this.#L.debug("received message from worker", e.data);
|
|
31
31
|
const response = e.data;
|
|
@@ -19965,6 +19965,6 @@ export type payments_StarGiftUpgradeAttributes = payments_starGiftUpgradeAttribu
|
|
|
19965
19965
|
export type messages_EmojiGameOutcome = messages_emojiGameOutcome;
|
|
19966
19966
|
export type messages_EmojiGameInfo = messages_emojiGameUnavailable | messages_emojiGameDiceInfo;
|
|
19967
19967
|
export declare const schema: Schema;
|
|
19968
|
-
export declare const LAYER
|
|
19968
|
+
export declare const LAYER = 221;
|
|
19969
19969
|
export {};
|
|
19970
19970
|
//# sourceMappingURL=1_telegram_api.d.ts.map
|