zaileys 0.11.1-dev → 1.0.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/dist/cli.d.ts ADDED
File without changes
package/dist/cli.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ console.log('Hallo');
package/package.json CHANGED
@@ -1,48 +1,19 @@
1
1
  {
2
2
  "name": "zaileys",
3
- "description": "Zaileys - Typescript/Javascript WhatsApp NodeJS API",
4
- "author": {
5
- "name": "zaadevofc",
6
- "email": "zaadevofc@gmail.com",
7
- "url": "https://github.com/zaadevofc"
8
- },
9
- "version": "0.0011.1-dev",
10
- "license": "MIT",
3
+ "version": "1.0.0",
11
4
  "main": "dist/index.js",
12
- "module": "dist/index.mjs",
13
- "types": "dist/index.d.ts",
14
- "homepage": "https://github.com/zaadevofc/zaileys",
15
- "bugs": {
16
- "url": "https://github.com/zaadevofc/zaileys/issues"
17
- },
18
- "repository": {
19
- "url": "https://github.com/zaadevofc/zaileys"
5
+ "bin": {
6
+ "zaileys": "./dist/index.js"
20
7
  },
21
8
  "scripts": {
22
- "build": "tsup",
23
- "test": "ts-node src/test"
24
- },
25
- "engines": {
26
- "node": ">=18.17.0"
27
- },
28
- "keywords": [
29
- "zaileys",
30
- "baileys",
31
- "whatsapp",
32
- "bot",
33
- "node",
34
- "api"
35
- ],
36
- "contributors": [
37
- "zaadevofc@gmail.com"
38
- ],
39
- "dependencies": {
40
- "@whiskeysockets/baileys": "^6.7.2",
41
- "pino": "^9.1.0"
9
+ "build": "tsc",
10
+ "test": "echo \"Error: no test specified\" && exit 1"
42
11
  },
12
+ "author": "zaadevofc",
13
+ "license": "ISC",
14
+ "description": "",
43
15
  "devDependencies": {
44
16
  "@types/node": "^20.12.14",
45
- "tsup": "^8.0.2",
46
17
  "typescript": "^5.4.5"
47
18
  }
48
19
  }
package/src/cli.ts ADDED
@@ -0,0 +1 @@
1
+ console.log('Hallo')
package/tsconfig.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES6",
4
+ "module": "commonjs",
5
+ "declaration": true,
6
+ "outDir": "./dist",
7
+ "strict": true,
8
+ "esModuleInterop": true,
9
+ "skipLibCheck": true
10
+ },
11
+ "include": ["src/**/*"],
12
+ "exclude": ["node_modules", "dist"]
13
+ }
package/dist/index.d.mts DELETED
@@ -1,34 +0,0 @@
1
- import * as _whiskeysockets_baileys from '@whiskeysockets/baileys';
2
- import * as pino from 'pino';
3
-
4
- type ClientProps = {
5
- pairing: boolean;
6
- state: any;
7
- };
8
- type ActionsProps = 'ready' | 'message';
9
-
10
- declare class Client {
11
- private readonly pairing;
12
- constructor({ pairing }: ClientProps);
13
- on(actions: ActionsProps, callback: (ctx: 'a') => void): void;
14
- }
15
-
16
- declare function ConnectionConfig(props: ClientProps): {
17
- printQRInTerminal: boolean;
18
- syncFullHistory: boolean;
19
- markOnlineOnConnect: boolean;
20
- connectTimeoutMs: number;
21
- defaultQueryTimeoutMs: number;
22
- keepAliveIntervalMs: number;
23
- generateHighQualityLinkPreview: boolean;
24
- version: number[];
25
- browser: string[];
26
- logger: pino.Logger<never>;
27
- auth: {
28
- creds: any;
29
- keys: _whiskeysockets_baileys.SignalKeyStore;
30
- };
31
- patchMessageBeforeSending: (message: any) => any;
32
- };
33
-
34
- export { type ActionsProps, Client, type ClientProps, ConnectionConfig };
package/dist/index.d.ts DELETED
@@ -1,34 +0,0 @@
1
- import * as _whiskeysockets_baileys from '@whiskeysockets/baileys';
2
- import * as pino from 'pino';
3
-
4
- type ClientProps = {
5
- pairing: boolean;
6
- state: any;
7
- };
8
- type ActionsProps = 'ready' | 'message';
9
-
10
- declare class Client {
11
- private readonly pairing;
12
- constructor({ pairing }: ClientProps);
13
- on(actions: ActionsProps, callback: (ctx: 'a') => void): void;
14
- }
15
-
16
- declare function ConnectionConfig(props: ClientProps): {
17
- printQRInTerminal: boolean;
18
- syncFullHistory: boolean;
19
- markOnlineOnConnect: boolean;
20
- connectTimeoutMs: number;
21
- defaultQueryTimeoutMs: number;
22
- keepAliveIntervalMs: number;
23
- generateHighQualityLinkPreview: boolean;
24
- version: number[];
25
- browser: string[];
26
- logger: pino.Logger<never>;
27
- auth: {
28
- creds: any;
29
- keys: _whiskeysockets_baileys.SignalKeyStore;
30
- };
31
- patchMessageBeforeSending: (message: any) => any;
32
- };
33
-
34
- export { type ActionsProps, Client, type ClientProps, ConnectionConfig };
package/dist/index.js DELETED
@@ -1 +0,0 @@
1
- "use strict";var f=Object.create;var a=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var y=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty;var v=(t,e)=>{for(var o in e)a(t,o,{get:e[o],enumerable:!0})},l=(t,e,o,c)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of g(e))!d.call(t,i)&&i!==o&&a(t,i,{get:()=>e[i],enumerable:!(c=u(e,i))||c.enumerable});return t};var h=(t,e,o)=>(o=t!=null?f(y(t)):{},l(e||!t||!t.__esModule?a(o,"default",{value:t,enumerable:!0}):o,t)),x=t=>l(a({},"__esModule",{value:!0}),t);var M={};v(M,{Client:()=>n,ConnectionConfig:()=>C});module.exports=x(M);var n=class{pairing;constructor({pairing:e}){this.pairing=e}on(e,o){}};var m=require("@whiskeysockets/baileys"),p=h(require("pino"));var s={author:"https://github.com/zaadevofc",repository:"https://github.com/zaadevofc/zaileys",package:"https://www.npmjs.com/package/zaileys",version:[0,0,1]};function C(t){return{printQRInTerminal:!t.pairing,syncFullHistory:!0,markOnlineOnConnect:!0,connectTimeoutMs:6e4,defaultQueryTimeoutMs:0,keepAliveIntervalMs:1e4,generateHighQualityLinkPreview:!0,version:s.version,browser:["Zaileys Node","Chrome",s.version.join(".")],logger:(0,p.default)({level:"fatal"}),auth:{creds:t.state.creds,keys:(0,m.makeCacheableSignalKeyStore)(t.state.keys,(0,p.default)().child({level:"silent",stream:"store"}))},patchMessageBeforeSending:e=>(!!(e.buttonsMessage||e.templateMessage||e.listMessage)&&(e={viewOnceMessage:{message:{messageContextInfo:{deviceListMetadataVersion:2,deviceListMetadata:{}},...e}}}),e)}}0&&(module.exports={Client,ConnectionConfig});
package/dist/index.mjs DELETED
@@ -1 +0,0 @@
1
- var a=class{pairing;constructor({pairing:e}){this.pairing=e}on(e,s){}};import{makeCacheableSignalKeyStore as c}from"@whiskeysockets/baileys";import n from"pino";var i={author:"https://github.com/zaadevofc",repository:"https://github.com/zaadevofc/zaileys",package:"https://www.npmjs.com/package/zaileys",version:[0,0,1]};function x(r){return{printQRInTerminal:!r.pairing,syncFullHistory:!0,markOnlineOnConnect:!0,connectTimeoutMs:6e4,defaultQueryTimeoutMs:0,keepAliveIntervalMs:1e4,generateHighQualityLinkPreview:!0,version:i.version,browser:["Zaileys Node","Chrome",i.version.join(".")],logger:n({level:"fatal"}),auth:{creds:r.state.creds,keys:c(r.state.keys,n().child({level:"silent",stream:"store"}))},patchMessageBeforeSending:e=>(!!(e.buttonsMessage||e.templateMessage||e.listMessage)&&(e={viewOnceMessage:{message:{messageContextInfo:{deviceListMetadataVersion:2,deviceListMetadata:{}},...e}}}),e)}}export{a as Client,x as ConnectionConfig};