@skyzopedia/baileys-mod 4.0.1 → 4.0.3

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.
@@ -39,6 +39,7 @@ import {
39
39
  isPnUser,
40
40
  jidDecode,
41
41
  jidEncode,
42
+ isJidNewsletter,
42
43
  jidNormalizedUser,
43
44
  S_WHATSAPP_NET
44
45
  } from '../WABinary/index.js';
package/lib/index.js CHANGED
@@ -1,6 +1,19 @@
1
1
  //=======================================================//
2
2
 
3
- import chalk from "chalk";
3
+ let chalk;
4
+
5
+ try {
6
+ chalk = (await import('chalk')).default;
7
+ } catch {
8
+ try {
9
+ chalk = require('chalk');
10
+ } catch {
11
+ chalk = {
12
+ white: (x) => x,
13
+ blue: (x) => x
14
+ };
15
+ }
16
+ }
4
17
 
5
18
  console.log();
6
19
  console.log(chalk.white("## Baileys Mod by Skyzopedia"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyzopedia/baileys-mod",
3
- "version": "4.0.1",
3
+ "version": "4.0.3",
4
4
  "description": "Websocket Whatsapp API for Node.js",
5
5
  "keywords": [
6
6
  "whatsapp",