vinnleys 1.0.0 → 1.0.1

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.
@@ -31,15 +31,15 @@
31
31
 
32
32
  const VERSION = "4.7";
33
33
 
34
- const {
34
+ import crypto from 'crypto';
35
+ import sharp from 'sharp';
36
+ import ffmpeg from 'fluent-ffmpeg';
37
+ import { PassThrough, Readable } from 'stream';
38
+ import {
35
39
  generateWAMessageFromContent,
36
40
  prepareWAMessageMedia,
37
- generateMessageIDV2,
38
- } = require("../index.js");
39
- const crypto = require("crypto");
40
- const sharp = require("sharp");
41
- const ffmpeg = require("fluent-ffmpeg");
42
- const { PassThrough, Readable } = require("stream");
41
+ generateMessageIDV2
42
+ } from '../Utils/index.js';
43
43
 
44
44
  function extractIE(
45
45
  text,
@@ -3725,4 +3725,5 @@ function bind(client) {
3725
3725
  return (client = sock);
3726
3726
  }
3727
3727
 
3728
- module.exports = { VERSION, Button, ButtonV2, Carousel, AIRich, Toolkit, bind };
3728
+ export { VERSION, Button, ButtonV2, Carousel, AIRich, Toolkit, bind };
3729
+ export default { VERSION, Button, ButtonV2, Carousel, AIRich, Toolkit, bind };
@@ -17,6 +17,11 @@ const makeWASocket = (config) => {
17
17
  const empat = makeGraphQLSocket(tiga);
18
18
  const clientWithBuilder = makeMessageBuilderSocket(empat);
19
19
  MB.bind(clientWithBuilder);
20
+ clientWithBuilder.AIRich = MB.AIRich;
21
+ clientWithBuilder.Carousel = MB.Carousel;
22
+ clientWithBuilder.Button = MB.Button;
23
+ clientWithBuilder.ButtonV2 = MB.ButtonV2;
24
+ clientWithBuilder.Toolkit = MB.Toolkit;
20
25
  clientWithBuilder.MessageBuilder = MB;
21
26
  return clientWithBuilder;
22
27
  };
package/lib/index.js CHANGED
@@ -31,3 +31,4 @@ export { makeWASocket };
31
31
  export default makeWASocket;
32
32
  //# sourceMappingURL=index.js.map
33
33
  export * as MessageBuilder from './Socket/MessageBuilder.js';
34
+ export { default as MB } from './Socket/MessageBuilder.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vinnleys",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "A WebSockets library for interacting with WhatsApp Web.",
5
5
  "keywords": [
6
6
  "baileys",
@@ -120,16 +120,16 @@
120
120
  "peerDependenciesMeta": {
121
121
  "audio-decode": {
122
122
  "optional": true
123
- },
124
- "jimp": {
125
- "optional": true
126
- },
127
- "link-preview-js": {
128
- "optional": true
123
+ },
124
+ "jimp": {
125
+ "optional": true
126
+ },
127
+ "link-preview-js": {
128
+ "optional": true
129
129
  }
130
130
  },
131
131
  "packageManager": "yarn@4.9.2",
132
132
  "engines": {
133
133
  "node": ">=20.0.0"
134
134
  }
135
- }
135
+ }