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/file-id": "workspace:^1.0.0",
"eager-async-pool": "1.0.0",
"file-type": "16.5.4",
"long": "5.2.3"
"file-type": "16.5.4"
}
}

View file

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

View file

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

View file

@ -1,6 +1,4 @@
import Long from 'long'
import { tl } from '@mtcute/core'
import { Long, tl } from '@mtcute/core'
import { TelegramClient } from '../../client'
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 { TelegramClient } from '../../client'

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,6 +1,4 @@
import Long from 'long'
import { tl } from '@mtcute/core'
import { Long, tl } from '@mtcute/core'
import { assertTypeIsNot } from '@mtcute/core/utils'
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 { TelegramClient } from '../../client'

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,6 +1,4 @@
import Long from 'long'
import { assertNever, getBasicPeerType, markedPeerIdToBare, tl } from '@mtcute/core'
import { assertNever, getBasicPeerType, Long, markedPeerIdToBare, tl } from '@mtcute/core'
import { parseFileId } from './parse'
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
export namespace tdFileId {

View file

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

View file

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

View file

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