@mtcute/core 0.10.1 → 0.10.2

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.
@@ -233,7 +233,7 @@ class NetworkManager {
233
233
  _: 'initConnection',
234
234
  deviceModel,
235
235
  systemVersion: '1.0',
236
- appVersion: '0.10.1',
236
+ appVersion: '0.10.2',
237
237
  systemLangCode: 'en',
238
238
  langPack: '',
239
239
  langCode: 'en',
@@ -2,7 +2,7 @@ export type MaybePromise<T> = T | Promise<T>;
2
2
  export type PartialExcept<T, K extends keyof T> = Partial<Omit<T, K>> & Pick<T, K>;
3
3
  export type PartialOnly<T, K extends keyof T> = Partial<Pick<T, K>> & Omit<T, K>;
4
4
  export type MaybeArray<T> = T | T[];
5
- export type MustEqual<T, V> = T extends V ? (V extends T ? T : V) : V;
5
+ export type MustEqual<T, V> = (() => T) extends () => V ? ((() => V) extends () => T ? T : V) : V;
6
6
  export type PublicPart<T> = {
7
7
  [K in keyof T]: T[K];
8
8
  };
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/types/utils.ts"],"names":[],"mappings":";;;AAUA,6DAA6D;AAC7D,SAAgB,WAAW,CAAC,CAAQ;IAChC,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAA;AACpC,CAAC;AAFD,kCAEC","sourcesContent":["export type MaybePromise<T> = T | Promise<T>\nexport type PartialExcept<T, K extends keyof T> = Partial<Omit<T, K>> & Pick<T, K>\nexport type PartialOnly<T, K extends keyof T> = Partial<Pick<T, K>> & Omit<T, K>\n\nexport type MaybeArray<T> = T | T[]\n\nexport type MustEqual<T, V> = T extends V ? (V extends T ? T : V) : V\n\nexport type PublicPart<T> = { [K in keyof T]: T[K] }\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function assertNever(x: never): never {\n throw new Error('Illegal state')\n}\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/types/utils.ts"],"names":[],"mappings":";;;AAUA,6DAA6D;AAC7D,SAAgB,WAAW,CAAC,CAAQ;IAChC,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAA;AACpC,CAAC;AAFD,kCAEC","sourcesContent":["export type MaybePromise<T> = T | Promise<T>\nexport type PartialExcept<T, K extends keyof T> = Partial<Omit<T, K>> & Pick<T, K>\nexport type PartialOnly<T, K extends keyof T> = Partial<Pick<T, K>> & Omit<T, K>\n\nexport type MaybeArray<T> = T | T[]\n\nexport type MustEqual<T, V> = (() => T) extends () => V ? ((() => V) extends () => T ? T : V) : V\n\nexport type PublicPart<T> = { [K in keyof T]: T[K] }\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function assertNever(x: never): never {\n throw new Error('Illegal state')\n}\n"]}
@@ -229,7 +229,7 @@ export class NetworkManager {
229
229
  _: 'initConnection',
230
230
  deviceModel,
231
231
  systemVersion: '1.0',
232
- appVersion: '0.10.1',
232
+ appVersion: '0.10.2',
233
233
  systemLangCode: 'en',
234
234
  langPack: '',
235
235
  langCode: 'en',
@@ -2,7 +2,7 @@ export type MaybePromise<T> = T | Promise<T>;
2
2
  export type PartialExcept<T, K extends keyof T> = Partial<Omit<T, K>> & Pick<T, K>;
3
3
  export type PartialOnly<T, K extends keyof T> = Partial<Pick<T, K>> & Omit<T, K>;
4
4
  export type MaybeArray<T> = T | T[];
5
- export type MustEqual<T, V> = T extends V ? (V extends T ? T : V) : V;
5
+ export type MustEqual<T, V> = (() => T) extends () => V ? ((() => V) extends () => T ? T : V) : V;
6
6
  export type PublicPart<T> = {
7
7
  [K in keyof T]: T[K];
8
8
  };
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/types/utils.ts"],"names":[],"mappings":"AAUA,6DAA6D;AAC7D,MAAM,UAAU,WAAW,CAAC,CAAQ;IAChC,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAA;AACpC,CAAC","sourcesContent":["export type MaybePromise<T> = T | Promise<T>\nexport type PartialExcept<T, K extends keyof T> = Partial<Omit<T, K>> & Pick<T, K>\nexport type PartialOnly<T, K extends keyof T> = Partial<Pick<T, K>> & Omit<T, K>\n\nexport type MaybeArray<T> = T | T[]\n\nexport type MustEqual<T, V> = T extends V ? (V extends T ? T : V) : V\n\nexport type PublicPart<T> = { [K in keyof T]: T[K] }\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function assertNever(x: never): never {\n throw new Error('Illegal state')\n}\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/types/utils.ts"],"names":[],"mappings":"AAUA,6DAA6D;AAC7D,MAAM,UAAU,WAAW,CAAC,CAAQ;IAChC,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAA;AACpC,CAAC","sourcesContent":["export type MaybePromise<T> = T | Promise<T>\nexport type PartialExcept<T, K extends keyof T> = Partial<Omit<T, K>> & Pick<T, K>\nexport type PartialOnly<T, K extends keyof T> = Partial<Pick<T, K>> & Omit<T, K>\n\nexport type MaybeArray<T> = T | T[]\n\nexport type MustEqual<T, V> = (() => T) extends () => V ? ((() => V) extends () => T ? T : V) : V\n\nexport type PublicPart<T> = { [K in keyof T]: T[K] }\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport function assertNever(x: never): never {\n throw new Error('Illegal state')\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtcute/core",
3
- "version": "0.10.1",
3
+ "version": "0.10.2",
4
4
  "description": "Type-safe library for MTProto (Telegram API)",
5
5
  "author": "alina sireneva <alina@tei.su>",
6
6
  "license": "MIT",