@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.
@@ -22141,4 +22141,4 @@ export const schema = Object.freeze({
22141
22141
  [0x44E56023]: "messages.emojiGameDiceInfo",
22142
22142
  },
22143
22143
  });
22144
- export const LAYER = NaN;
22144
+ export const LAYER = 221;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtkruto/node",
3
- "version": "0.79.4",
3
+ "version": "0.79.6",
4
4
  "description": "MTKruto for Node.js",
5
5
  "author": "Roj <rojvv@icloud.com>",
6
6
  "repository": {
@@ -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;IAU5D,SAAS;IAIH,YAAY,CAAC,MAAM,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAY/E"}
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"}
@@ -28,7 +28,7 @@ class ClientWorker {
28
28
  #clients = new Array();
29
29
  #L = (0, _1_logger_js_1.getLogger)("ClientWorker");
30
30
  constructor(specifier, options) {
31
- this.#worker = new Worker(specifier, options);
31
+ this.#worker = specifier instanceof Worker ? specifier : new Worker(specifier, options);
32
32
  this.#worker.addEventListener("message", (e) => {
33
33
  this.#L.debug("received message from worker", e.data);
34
34
  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: number;
19968
+ export declare const LAYER = 221;
19969
19969
  export {};
19970
19970
  //# sourceMappingURL=1_telegram_api.d.ts.map