chore: export Long from core

This commit is contained in:
alina 🌸 2023-10-05 01:47:14 +03:00
parent e22db98444
commit ec55cb37f7
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI
28 changed files with 31 additions and 78 deletions

View file

@ -18,7 +18,6 @@
"@mtcute/core": "workspace:^1.0.0", "@mtcute/core": "workspace:^1.0.0",
"@mtcute/file-id": "workspace:^1.0.0", "@mtcute/file-id": "workspace:^1.0.0",
"eager-async-pool": "1.0.0", "eager-async-pool": "1.0.0",
"file-type": "16.5.4", "file-type": "16.5.4"
"long": "5.2.3"
} }
} }

View file

@ -1,6 +1,4 @@
import Long from 'long' import { Long, tl } from '@mtcute/core'
import { tl } from '@mtcute/core'
import { TelegramClient } from '../../client' import { TelegramClient } from '../../client'
import { ChatEvent, InputPeerLike, PeersIndex } from '../../types' import { ChatEvent, InputPeerLike, PeersIndex } from '../../types'

View file

@ -1,6 +1,4 @@
import Long from 'long' import { assertNever, Long, tl } from '@mtcute/core'
import { assertNever, tl } from '@mtcute/core'
import { assertTypeIs } from '@mtcute/core/utils' import { assertTypeIs } from '@mtcute/core/utils'
import { TelegramClient } from '../../client' import { TelegramClient } from '../../client'

View file

@ -1,6 +1,4 @@
import Long from 'long' import { Long, tl } from '@mtcute/core'
import { tl } from '@mtcute/core'
import { TelegramClient } from '../../client' import { TelegramClient } from '../../client'
import { ChatEvent, InputPeerLike } from '../../types' import { ChatEvent, InputPeerLike } from '../../types'

View file

@ -1,5 +1,4 @@
import Long from 'long' import { Long } from '@mtcute/core'
import { assertTypeIs } from '@mtcute/core/utils' import { assertTypeIs } from '@mtcute/core/utils'
import { TelegramClient } from '../../client' import { TelegramClient } from '../../client'

View file

@ -1,6 +1,4 @@
import Long from 'long' import { Long, PartialOnly, tl } from '@mtcute/core'
import { PartialOnly, tl } from '@mtcute/core'
import { TelegramClient } from '../../client' import { TelegramClient } from '../../client'

View file

@ -1,6 +1,4 @@
import Long from 'long' import { Long, MtUnsupportedError, tl } from '@mtcute/core'
import { MtUnsupportedError, tl } from '@mtcute/core'
import { TelegramClient } from '../../client' import { TelegramClient } from '../../client'
import { Dialog, InputDialogFolder } from '../../types' import { Dialog, InputDialogFolder } from '../../types'

View file

@ -1,6 +1,4 @@
import Long from 'long' import { Long, tl } from '@mtcute/core'
import { tl } from '@mtcute/core'
import { assertTypeIs } from '@mtcute/core/utils' import { assertTypeIs } from '@mtcute/core/utils'
import { fileIdToInputDocument, fileIdToInputPhoto, parseFileId, tdFileId } from '@mtcute/file-id' import { fileIdToInputDocument, fileIdToInputPhoto, parseFileId, tdFileId } from '@mtcute/file-id'

View file

@ -1,6 +1,4 @@
import Long from 'long' import { Long, tl } from '@mtcute/core'
import { tl } from '@mtcute/core'
import { TelegramClient } from '../../client' import { TelegramClient } from '../../client'
import { InputPeerLike, Message } from '../../types' import { InputPeerLike, Message } from '../../types'

View file

@ -1,6 +1,4 @@
import Long from 'long' import { Long, MtTypeAssertionError } from '@mtcute/core'
import { MtTypeAssertionError } from '@mtcute/core'
import { assertTypeIs } from '@mtcute/core/utils' import { assertTypeIs } from '@mtcute/core/utils'
import { TelegramClient } from '../../client' import { TelegramClient } from '../../client'

View file

@ -1,6 +1,4 @@
import Long from 'long' import { Long, tl } from '@mtcute/core'
import { tl } from '@mtcute/core'
import { assertTypeIsNot } from '@mtcute/core/utils' import { assertTypeIsNot } from '@mtcute/core/utils'
import { TelegramClient } from '../../client' import { TelegramClient } from '../../client'

View file

@ -1,6 +1,4 @@
import Long from 'long' import { Long, tl } from '@mtcute/core'
import { tl } from '@mtcute/core'
import { assertTypeIsNot } from '@mtcute/core/utils' import { assertTypeIsNot } from '@mtcute/core/utils'
import { TelegramClient } from '../../client' import { TelegramClient } from '../../client'

View file

@ -1,5 +1,4 @@
import Long from 'long' import { Long } from '@mtcute/core'
import { assertTypeIs } from '@mtcute/core/utils' import { assertTypeIs } from '@mtcute/core/utils'
import { TelegramClient } from '../../client' import { TelegramClient } from '../../client'

View file

@ -1,6 +1,4 @@
import Long from 'long' import { Long, tl } from '@mtcute/core'
import { tl } from '@mtcute/core'
import { assertTypeIs } from '@mtcute/core/utils' import { assertTypeIs } from '@mtcute/core/utils'
import { TelegramClient } from '../../client' import { TelegramClient } from '../../client'

View file

@ -1,6 +1,4 @@
import Long from 'long' import { getBasicPeerType, getMarkedPeerId, Long, MtTypeAssertionError, tl, toggleChannelIdMark } from '@mtcute/core'
import { getBasicPeerType, getMarkedPeerId, MtTypeAssertionError, tl, toggleChannelIdMark } from '@mtcute/core'
import { assertTypeIs } from '@mtcute/core/utils' import { assertTypeIs } from '@mtcute/core/utils'
import { TelegramClient } from '../../client' import { TelegramClient } from '../../client'

View file

@ -1,6 +1,4 @@
import Long from 'long' import { Long, tl } from '@mtcute/core'
import { tl } from '@mtcute/core'
import { TelegramClient } from '../../client' import { TelegramClient } from '../../client'
import { makeInspectable } from '../../utils' import { makeInspectable } from '../../utils'

View file

@ -1,6 +1,4 @@
import Long from 'long' import { Long, MtArgumentError, MtTypeAssertionError, tl } from '@mtcute/core'
import { MtArgumentError, MtTypeAssertionError, tl } from '@mtcute/core'
import { assertTypeIs } from '@mtcute/core/utils' import { assertTypeIs } from '@mtcute/core/utils'
import { tdFileId as td, toFileId, toUniqueFileId } from '@mtcute/file-id' import { tdFileId as td, toFileId, toUniqueFileId } from '@mtcute/file-id'

View file

@ -1,6 +1,4 @@
import Long from 'long' import { Long, MtArgumentError, tl, toggleChannelIdMark } from '@mtcute/core'
import { MtArgumentError, tl, toggleChannelIdMark } from '@mtcute/core'
import { tdFileId, toFileId, toUniqueFileId } from '@mtcute/file-id' import { tdFileId, toFileId, toUniqueFileId } from '@mtcute/file-id'
import { TelegramClient } from '../../client' import { TelegramClient } from '../../client'

View file

@ -1,6 +1,4 @@
import Long from 'long' import { Long, MtTypeAssertionError, tl } from '@mtcute/core'
import { MtTypeAssertionError, tl } from '@mtcute/core'
/** /**
* Input version of {@link ReactionEmoji}, which also accepts bare TL object * Input version of {@link ReactionEmoji}, which also accepts bare TL object

View file

@ -1,6 +1,4 @@
import Long from 'long' import { Long, tl } from '@mtcute/core'
import { tl } from '@mtcute/core'
import { VenueSource } from '../../media' import { VenueSource } from '../../media'
import { InputReaction, normalizeInputReaction } from '../../reactions' import { InputReaction, normalizeInputReaction } from '../../reactions'

View file

@ -1,6 +1,4 @@
import Long from 'long' import { assertNever, Long, tl } from '@mtcute/core'
import { assertNever, tl } from '@mtcute/core'
import { InputPeerLike, MtInvalidPeerTypeError } from '../types' import { InputPeerLike, MtInvalidPeerTypeError } from '../types'

View file

@ -6,4 +6,8 @@ export * from './utils/peer-utils'
/** @hidden */ /** @hidden */
export * from '@mtcute/tl' export * from '@mtcute/tl'
/** @hidden */
export * from '@mtcute/tl-runtime' export * from '@mtcute/tl-runtime'
import Long from 'long'
/** @hidden */
export { Long }

View file

@ -13,7 +13,6 @@
}, },
"dependencies": { "dependencies": {
"@mtcute/tl-runtime": "workspace:^1.0.0", "@mtcute/tl-runtime": "workspace:^1.0.0",
"@mtcute/core": "workspace:^1.0.0", "@mtcute/core": "workspace:^1.0.0"
"long": "5.2.3"
} }
} }

View file

@ -1,6 +1,4 @@
import Long from 'long' import { assertNever, getBasicPeerType, Long, markedPeerIdToBare, tl } from '@mtcute/core'
import { assertNever, getBasicPeerType, markedPeerIdToBare, tl } from '@mtcute/core'
import { parseFileId } from './parse' import { parseFileId } from './parse'
import { tdFileId as td } from './types' import { tdFileId as td } from './types'

View file

@ -1,4 +1,4 @@
import Long from 'long' import { Long } from '@mtcute/core'
// eslint-disable-next-line @typescript-eslint/no-namespace // eslint-disable-next-line @typescript-eslint/no-namespace
export namespace tdFileId { export namespace tdFileId {

View file

@ -1,7 +1,8 @@
import { expect } from 'chai' import { expect } from 'chai'
import Long from 'long'
import { describe, it } from 'mocha' import { describe, it } from 'mocha'
import { Long } from '@mtcute/core'
import { parseFileId } from '../src' import { parseFileId } from '../src'
import { tdFileId as td } from '../src/types' import { tdFileId as td } from '../src/types'

View file

@ -13,8 +13,7 @@
"dependencies": { "dependencies": {
"@mtcute/core": "workspace:^1.0.0", "@mtcute/core": "workspace:^1.0.0",
"@mtcute/tl-runtime": "workspace:^1.0.0", "@mtcute/tl-runtime": "workspace:^1.0.0",
"better-sqlite3": "8.4.0", "better-sqlite3": "8.4.0"
"long": "5.2.3"
}, },
"devDependencies": { "devDependencies": {
"@mtcute/dispatcher": "workspace:^1.0.0", "@mtcute/dispatcher": "workspace:^1.0.0",

View file

@ -120,9 +120,6 @@ importers:
file-type: file-type:
specifier: 16.5.4 specifier: 16.5.4
version: 16.5.4 version: 16.5.4
long:
specifier: 5.2.3
version: 5.2.3
packages/core: packages/core:
dependencies: dependencies:
@ -189,9 +186,6 @@ importers:
'@mtcute/tl-runtime': '@mtcute/tl-runtime':
specifier: workspace:^1.0.0 specifier: workspace:^1.0.0
version: link:../tl-runtime version: link:../tl-runtime
long:
specifier: 5.2.3
version: 5.2.3
packages/html-parser: packages/html-parser:
dependencies: dependencies:
@ -284,9 +278,6 @@ importers:
better-sqlite3: better-sqlite3:
specifier: 8.4.0 specifier: 8.4.0
version: 8.4.0 version: 8.4.0
long:
specifier: 5.2.3
version: 5.2.3
devDependencies: devDependencies:
'@mtcute/dispatcher': '@mtcute/dispatcher':
specifier: workspace:^1.0.0 specifier: workspace:^1.0.0