Skip to content

Commit 4bd634b

Browse files
committed
fix: i hate this
1 parent 197998b commit 4bd634b

File tree

7 files changed

+154
-154
lines changed

7 files changed

+154
-154
lines changed

src/client.ts

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
/*
2-
* meta-messenger.js
3-
* Unofficial Meta Messenger Chat API for Node.js
4-
*
5-
* Copyright (c) 2026 Yumi Team and contributors
6-
*
7-
* This program is free software: you can redistribute it and/or modify
8-
* it under the terms of the GNU Affero General Public License as published by
9-
* the Free Software Foundation, either version 3 of the License, or
10-
* (at your option) any later version.
11-
*
12-
* This program is distributed in the hope that it will be useful,
13-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15-
* GNU Affero General Public License for more details.
16-
*
17-
* You should have received a copy of the GNU Affero General Public License
18-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
19-
*/
20-
21-
import { EventEmitter } from "node:events";
22-
23-
import { native } from "./native.js";
1+
/*
2+
* meta-messenger.js
3+
* Unofficial Meta Messenger Chat API for Node.js
4+
*
5+
* Copyright (c) 2026 Yumi Team and contributors
6+
*
7+
* This program is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU Affero General Public License as published by
9+
* the Free Software Foundation, either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* This program is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU Affero General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU Affero General Public License
18+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
19+
*/
20+
21+
import { EventEmitter } from "node:events";
22+
23+
import { native } from "./native.js";
2424
import type {
2525
ClientEvent,
2626
ClientOptions,

src/index.ts

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
/*
2-
* meta-messenger.js
3-
* Unofficial Meta Messenger Chat API for Node.js
4-
*
5-
* Copyright (c) 2026 Yumi Team and contributors
6-
*
7-
* This program is free software: you can redistribute it and/or modify
8-
* it under the terms of the GNU Affero General Public License as published by
9-
* the Free Software Foundation, either version 3 of the License, or
10-
* (at your option) any later version.
11-
*
12-
* This program is distributed in the hope that it will be useful,
13-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15-
* GNU Affero General Public License for more details.
16-
*
17-
* You should have received a copy of the GNU Affero General Public License
18-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
19-
*/
20-
1+
/*
2+
* meta-messenger.js
3+
* Unofficial Meta Messenger Chat API for Node.js
4+
*
5+
* Copyright (c) 2026 Yumi Team and contributors
6+
*
7+
* This program is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU Affero General Public License as published by
9+
* the Free Software Foundation, either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* This program is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU Affero General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU Affero General Public License
18+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
19+
*/
20+
2121
/**
2222
* meta-messenger.js - TypeScript wrapper for Facebook Messenger with E2EE support
2323
*
@@ -58,9 +58,9 @@
5858
* @packageDocumentation
5959
*/
6060

61-
export type { ClientEventMap } from "./client.js";
62-
export { Client } from "./client.js";
63-
export { UIDLogin } from "./login.js";
61+
export type { ClientEventMap } from "./client.js";
62+
export { Client } from "./client.js";
63+
export { UIDLogin } from "./login.js";
6464
export {
6565
type Attachment,
6666
type AttachmentType,
@@ -100,10 +100,10 @@ export {
100100
type UploadMediaResult,
101101
type User,
102102
type UserInfo,
103-
} from "./types.js";
103+
} from "./types.js";
104104
export { type CookieObject, extractUrlFromLPHP, isThumbsUpSticker, THUMBS_UP_STICKER_IDS, Utils } from "./utils.js";
105105

106-
import { Client } from "./client.js";
106+
import { Client } from "./client.js";
107107
import type { ClientOptions, Cookies } from "./types.js";
108108

109109
/**

src/login.ts

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
/*
2-
* meta-messenger.js
3-
* Unofficial Meta Messenger Chat API for Node.js
4-
*
5-
* Copyright (c) 2026 Yumi Team and contributors
6-
*
7-
* This program is free software: you can redistribute it and/or modify
8-
* it under the terms of the GNU Affero General Public License as published by
9-
* the Free Software Foundation, either version 3 of the License, or
10-
* (at your option) any later version.
11-
*
12-
* This program is distributed in the hope that it will be useful,
13-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15-
* GNU Affero General Public License for more details.
16-
*
17-
* You should have received a copy of the GNU Affero General Public License
18-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
19-
*/
20-
1+
/*
2+
* meta-messenger.js
3+
* Unofficial Meta Messenger Chat API for Node.js
4+
*
5+
* Copyright (c) 2026 Yumi Team and contributors
6+
*
7+
* This program is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU Affero General Public License as published by
9+
* the Free Software Foundation, either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* This program is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU Affero General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU Affero General Public License
18+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
19+
*/
20+
2121
/*
2222
* This source code (Unlicense) is derived from the original repository:
2323
* https://github.com/imhiendev/LoginFacebookAppKatanaAPI
@@ -26,7 +26,7 @@
2626
* All credit goes to the original author.
2727
*/
2828

29-
import { randomUUID } from "crypto";
29+
import { randomUUID } from "crypto";
3030
import { fetch } from "undici";
3131

3232
interface Account {

src/native.ts

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
/*
2-
* meta-messenger.js
3-
* Unofficial Meta Messenger Chat API for Node.js
4-
*
5-
* Copyright (c) 2026 Yumi Team and contributors
6-
*
7-
* This program is free software: you can redistribute it and/or modify
8-
* it under the terms of the GNU Affero General Public License as published by
9-
* the Free Software Foundation, either version 3 of the License, or
10-
* (at your option) any later version.
11-
*
12-
* This program is distributed in the hope that it will be useful,
13-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15-
* GNU Affero General Public License for more details.
16-
*
17-
* You should have received a copy of the GNU Affero General Public License
18-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
19-
*/
20-
21-
import fs from "node:fs";
22-
import path from "node:path";
23-
import { fileURLToPath } from "node:url";
24-
1+
/*
2+
* meta-messenger.js
3+
* Unofficial Meta Messenger Chat API for Node.js
4+
*
5+
* Copyright (c) 2026 Yumi Team and contributors
6+
*
7+
* This program is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU Affero General Public License as published by
9+
* the Free Software Foundation, either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* This program is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU Affero General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU Affero General Public License
18+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
19+
*/
20+
21+
import fs from "node:fs";
22+
import path from "node:path";
23+
import { fileURLToPath } from "node:url";
24+
2525
import koffi from "koffi";
2626

2727
function resolveDirname(): string {

src/types.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
/*
2-
* meta-messenger.js
3-
* Unofficial Meta Messenger Chat API for Node.js
4-
*
5-
* Copyright (c) 2026 Yumi Team and contributors
6-
*
7-
* This program is free software: you can redistribute it and/or modify
8-
* it under the terms of the GNU Affero General Public License as published by
9-
* the Free Software Foundation, either version 3 of the License, or
10-
* (at your option) any later version.
11-
*
12-
* This program is distributed in the hope that it will be useful,
13-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15-
* GNU Affero General Public License for more details.
16-
*
17-
* You should have received a copy of the GNU Affero General Public License
18-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
19-
*/
20-
1+
/*
2+
* meta-messenger.js
3+
* Unofficial Meta Messenger Chat API for Node.js
4+
*
5+
* Copyright (c) 2026 Yumi Team and contributors
6+
*
7+
* This program is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU Affero General Public License as published by
9+
* the Free Software Foundation, either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* This program is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU Affero General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU Affero General Public License
18+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
19+
*/
20+
2121
/**
2222
* Event types emitted by the client
2323
*/

src/utils.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
/*
2-
* meta-messenger.js
3-
* Unofficial Meta Messenger Chat API for Node.js
4-
*
5-
* Copyright (c) 2026 Yumi Team and contributors
6-
*
7-
* This program is free software: you can redistribute it and/or modify
8-
* it under the terms of the GNU Affero General Public License as published by
9-
* the Free Software Foundation, either version 3 of the License, or
10-
* (at your option) any later version.
11-
*
12-
* This program is distributed in the hope that it will be useful,
13-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15-
* GNU Affero General Public License for more details.
16-
*
17-
* You should have received a copy of the GNU Affero General Public License
18-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
19-
*/
20-
1+
/*
2+
* meta-messenger.js
3+
* Unofficial Meta Messenger Chat API for Node.js
4+
*
5+
* Copyright (c) 2026 Yumi Team and contributors
6+
*
7+
* This program is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU Affero General Public License as published by
9+
* the Free Software Foundation, either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* This program is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU Affero General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU Affero General Public License
18+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
19+
*/
20+
2121
/**
2222
* Utility class for cookie parsing and conversion
2323
*

tsup.config.ts

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
/*
2-
* meta-messenger.js
3-
* Unofficial Meta Messenger Chat API for Node.js
4-
*
5-
* Copyright (c) 2026 Yumi Team and contributors
6-
*
7-
* This program is free software: you can redistribute it and/or modify
8-
* it under the terms of the GNU Affero General Public License as published by
9-
* the Free Software Foundation, either version 3 of the License, or
10-
* (at your option) any later version.
11-
*
12-
* This program is distributed in the hope that it will be useful,
13-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15-
* GNU Affero General Public License for more details.
16-
*
17-
* You should have received a copy of the GNU Affero General Public License
18-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
19-
*/
20-
21-
import { esbuildPluginVersionInjector } from "esbuild-plugin-version-injector";
1+
/*
2+
* meta-messenger.js
3+
* Unofficial Meta Messenger Chat API for Node.js
4+
*
5+
* Copyright (c) 2026 Yumi Team and contributors
6+
*
7+
* This program is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU Affero General Public License as published by
9+
* the Free Software Foundation, either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* This program is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU Affero General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU Affero General Public License
18+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
19+
*/
20+
21+
import { esbuildPluginVersionInjector } from "esbuild-plugin-version-injector";
2222
import { defineConfig, Options } from "tsup";
2323

2424
function createTsupConfig({

0 commit comments

Comments
 (0)