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.
- package/lib/Socket/MessageBuilder.js +9 -8
- package/lib/Socket/index.js +5 -0
- package/lib/index.js +1 -0
- package/package.json +8 -8
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
|
|
32
32
|
const VERSION = "4.7";
|
|
33
33
|
|
|
34
|
-
|
|
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
|
-
}
|
|
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
|
-
|
|
3728
|
+
export { VERSION, Button, ButtonV2, Carousel, AIRich, Toolkit, bind };
|
|
3729
|
+
export default { VERSION, Button, ButtonV2, Carousel, AIRich, Toolkit, bind };
|
package/lib/Socket/index.js
CHANGED
|
@@ -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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vinnleys",
|
|
3
|
-
"version": "1.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
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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
|
+
}
|