@mtcute/bun 0.26.2 → 0.27.0
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/package.json +9 -9
- package/utils/normalize-file.js +1 -1
- package/utils/proxies.d.ts +1 -1
- package/utils/tcp.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mtcute/bun",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.27.0",
|
|
5
5
|
"description": "Meta-package for Bun",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@mtcute/core": "^0.
|
|
9
|
-
"@mtcute/html-parser": "^0.
|
|
10
|
-
"@mtcute/markdown-parser": "^0.
|
|
11
|
-
"@mtcute/wasm": "^0.
|
|
12
|
-
"@fuman/utils": "0.0.
|
|
13
|
-
"@fuman/bun": "0.0.
|
|
14
|
-
"@fuman/net": "0.0.
|
|
15
|
-
"@fuman/io": "0.0.
|
|
8
|
+
"@mtcute/core": "^0.27.0",
|
|
9
|
+
"@mtcute/html-parser": "^0.27.0",
|
|
10
|
+
"@mtcute/markdown-parser": "^0.27.0",
|
|
11
|
+
"@mtcute/wasm": "^0.27.0",
|
|
12
|
+
"@fuman/utils": "0.0.17",
|
|
13
|
+
"@fuman/bun": "0.0.17",
|
|
14
|
+
"@fuman/net": "0.0.17",
|
|
15
|
+
"@fuman/io": "0.0.17"
|
|
16
16
|
},
|
|
17
17
|
"exports": {
|
|
18
18
|
".": {
|
package/utils/normalize-file.js
CHANGED
|
@@ -3,7 +3,7 @@ import { stat } from "node:fs/promises";
|
|
|
3
3
|
import { basename } from "node:path";
|
|
4
4
|
import { Readable } from "node:stream";
|
|
5
5
|
function isBunFile(file) {
|
|
6
|
-
return file instanceof Blob && "name" in file && file.name.length > 0;
|
|
6
|
+
return file instanceof Blob && "name" in file && typeof file.name === "string" && file.name.length > 0;
|
|
7
7
|
}
|
|
8
8
|
async function normalizeFile(file) {
|
|
9
9
|
if (typeof file === "string") {
|
package/utils/proxies.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpProxySettings as FumanHttpProxySettings, ITcpConnection, SocksProxySettings, TcpEndpoint } from '@fuman/net';
|
|
2
|
+
import { ITelegramConnection, TelegramTransport, BaseMtProxyTransport, IntermediatePacketCodec } from '@mtcute/core';
|
|
2
3
|
import { BasicDcOption } from '@mtcute/core/utils.js';
|
|
3
|
-
import { BaseMtProxyTransport, IntermediatePacketCodec, ITelegramConnection, TelegramTransport } from '@mtcute/core';
|
|
4
4
|
export type { SocksProxySettings } from '@fuman/net';
|
|
5
5
|
export { HttpProxyConnectionError, SocksProxyConnectionError } from '@fuman/net';
|
|
6
6
|
export type { MtProxySettings } from '@mtcute/core';
|
package/utils/tcp.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ITcpConnection } from '@fuman/net';
|
|
2
|
+
import { TelegramTransport, IntermediatePacketCodec } from '@mtcute/core';
|
|
2
3
|
import { BasicDcOption } from '@mtcute/core/utils.js';
|
|
3
|
-
import { IntermediatePacketCodec, TelegramTransport } from '@mtcute/core';
|
|
4
4
|
export declare class TcpTransport implements TelegramTransport {
|
|
5
5
|
connect(dc: BasicDcOption): Promise<ITcpConnection>;
|
|
6
6
|
packetCodec(): IntermediatePacketCodec;
|