@deathnaitsa/wa-api 1.0.9 → 1.0.11

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.
@@ -1,4 +1,4 @@
1
- import { proto } from "@whiskeysockets/baileys";
1
+ import { proto } from "@deathnaitsa/baileys";
2
2
  import { SendMediaTypes, SendMessageTypes, SendReadTypes, SendTypingTypes } from "../Types";
3
3
  export declare const sendTextMessage: ({ sessionId, to, text, isGroup, ...props }: SendMessageTypes) => Promise<proto.WebMessageInfo | undefined>;
4
4
  export declare const sendImage: ({ sessionId, to, text, isGroup, media, ...props }: SendMediaTypes) => Promise<proto.WebMessageInfo | undefined>;
@@ -9,9 +9,9 @@ export declare const sendDocument: ({ sessionId, to, text, isGroup, media, filen
9
9
  export declare function sendMessage(
10
10
  sessionId: string,
11
11
  jid: string,
12
- content: import("@whiskeysockets/baileys").AnyMessageContent,
13
- options?: import("@whiskeysockets/baileys").MiscMessageGenerationOptions
14
- ): Promise<import("@whiskeysockets/baileys").proto.WebMessageInfo>;
12
+ content: import("@deathnaitsa/baileys").AnyMessageContent,
13
+ options?: import("@deathnaitsa/baileys").MiscMessageGenerationOptions
14
+ ): Promise<import("@deathnaitsa/baileys").proto.WebMessageInfo>;
15
15
 
16
16
  export declare const kickusr: ({ sessionId, to, text }: SendMessageTypes) => Promise<proto.WebMessageInfo | undefined>;
17
17
  export declare const del: ({ sessionId, to, id,sender }: SendMessageTypes) => Promise<proto.WebMessageInfo | undefined>;
@@ -1,4 +1,4 @@
1
- import { WASocket } from "@whiskeysockets/baileys";
1
+ import { WASocket } from "@deathnaitsa/baileys";
2
2
  import { MessageReceived, MessageUpdated } from "../Types";
3
3
  export declare class Socket {
4
4
  constructor({ id, phoneNumber, socket, }: {
@@ -1,4 +1,4 @@
1
- import { WASocket } from "@whiskeysockets/baileys";
1
+ import { WASocket } from "@deathnaitsa/baileys";
2
2
  import type { MessageReceived, MessageUpdated, StartSessionParams } from "../Types";
3
3
  export declare const startSession: (sessionId?: string, options?: StartSessionParams) => Promise<WASocket>;
4
4
  /**
@@ -36,7 +36,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
36
36
  };
37
37
  Object.defineProperty(exports, "__esModule", { value: true });
38
38
  exports.onPairingCode = exports.onMessageUpdate = exports.onConnecting = exports.onDisconnected = exports.onConnected = exports.onQRUpdated = exports.onMessageReceived = exports.loadSessionsFromStorage = exports.getSession = exports.getAllSession = exports.deleteSession = exports.startWhatsapp = exports.startSession = void 0;
39
- const baileys_1 = __importStar(require("@whiskeysockets/baileys"));
39
+ const baileys_1 = __importStar(require("@deathnaitsa/baileys"));
40
40
  const pino_1 = __importDefault(require("pino"));
41
41
  const path_1 = __importDefault(require("path"));
42
42
  const fs_1 = __importDefault(require("fs"));
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { WAMessageUpdate, proto } from "@whiskeysockets/baileys";
2
+ import { WAMessageUpdate, proto } from "@deathnaitsa/baileys";
3
3
  export interface SendMessageTypes {
4
4
  to: string | number;
5
5
  text?: string;
@@ -1,4 +1,4 @@
1
- import { proto } from "@whiskeysockets/baileys";
1
+ import { proto } from "@deathnaitsa/baileys";
2
2
  import { MessageUpdated } from "../Types";
3
3
  export declare const parseMessageStatusCodeToReadable: (code: proto.WebMessageInfo.Status) => MessageUpdated["messageStatus"];
4
4
  //# sourceMappingURL=message-status.d.ts.map
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.parseMessageStatusCodeToReadable = void 0;
4
- const baileys_1 = require("@whiskeysockets/baileys");
4
+ const baileys_1 = require("@deathnaitsa/baileys");
5
5
  const parseMessageStatusCodeToReadable = (code) => {
6
6
  if (code == baileys_1.proto.WebMessageInfo.Status.PENDING)
7
7
  return "pending";
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.phoneToJid = void 0;
4
4
  const Error_1 = require("../Error");
5
- const baileys_1 = require("@whiskeysockets/baileys");
5
+ const baileys_1 = require("@deathnaitsa/baileys");
6
6
  const isPhoneNumberValidCountry = (phone) => {
7
7
  return Object.keys(baileys_1.PHONENUMBER_MCC).some((key) => {
8
8
  return phone.startsWith(key);
@@ -13,7 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.saveDocumentHandler = exports.saveVideoHandler = exports.saveImageHandler = void 0;
16
- const baileys_1 = require("@whiskeysockets/baileys");
16
+ const baileys_1 = require("@deathnaitsa/baileys");
17
17
  const error_1 = __importDefault(require("./error"));
18
18
  const promises_1 = __importDefault(require("fs/promises"));
19
19
  const saveMedia = (path, data) => __awaiter(void 0, void 0, void 0, function* () {
@@ -36,7 +36,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
36
36
  };
37
37
  Object.defineProperty(exports, "__esModule", { value: true });
38
38
  exports.Whatsapp = void 0;
39
- const baileys_1 = __importStar(require("@whiskeysockets/baileys"));
39
+ const baileys_1 = __importStar(require("@deathnaitsa/baileys"));
40
40
  const Defaults_1 = require("../Defaults");
41
41
  const Socket_1 = require("../Socket/Socket");
42
42
  const fs_1 = __importDefault(require("fs"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deathnaitsa/wa-api",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "Multi Session Whatsapp Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -27,7 +27,7 @@
27
27
  "dependencies": {
28
28
  "@adiwajshing/keyed-db": "^0.2.4",
29
29
  "@hapi/boom": "^10.0.1",
30
- "@whiskeysockets/baileys": "^6.7.16",
30
+ "@deathnaitsa/baileys": "^1.0.0",
31
31
  "mime": "^3.0.0",
32
32
  "pino": "^9.6.0",
33
33
  "qrcode-terminal": "^0.12.0"
package/readme.md CHANGED
@@ -5,7 +5,7 @@ Leichte Bibliothek zur Verwaltung mehrerer WhatsApp-Sessions – mit **einer** u
5
5
  ## 📦 Installation
6
6
 
7
7
  ```bash
8
- npm install @deathnaitsa/wa-api@latest
8
+ npm install @deathnaitsa/baileys@latest
9
9
  ```
10
10
 
11
11
  ## 🔌 Import & Setup
@@ -14,10 +14,10 @@ Verwende den klassischen Import-Stil:
14
14
 
15
15
  ```js
16
16
  // CommonJS
17
- const wa = require('@deathnaitsa/wa-api');
17
+ const wa = require('@deathnaitsa/baileys');
18
18
 
19
19
  // ES Module
20
- import * as wa from '@deathnaitsa/wa-api';
20
+ import * as wa from '@deathnaitsa/baileys';
21
21
  ```
22
22
 
23
23
  Danach stehen dir alle Funktionen unter dem Namespace `wa` zur Verfügung.
@@ -105,4 +105,4 @@ try {
105
105
 
106
106
  ---
107
107
 
108
- © 2025 `@deathnaitsa/wa-api` • Support: [sebloidl13@gmail.com](mailto:sebloidl13@gmail.com)
108
+ © 2025 `@deathnaitsa/baileys` • Support: [sebloidl13@gmail.com](mailto:sebloidl13@gmail.com)