amiudmodz 5.0.2 → 5.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.
- package/lib/Utils/link-preview.js +2 -2
- package/lib/index.d.ts +0 -0
- package/lib/index.js +0 -39
- package/package.json +7 -1
|
@@ -23,7 +23,7 @@ const getUrlInfo = async (text, opts = {
|
|
|
23
23
|
var _a;
|
|
24
24
|
try {
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
let retries = 0;
|
|
27
27
|
const maxRetry = 5;
|
|
28
28
|
const { getLinkPreview } = await import('link-preview-js');
|
|
29
29
|
let previewLink = text;
|
|
@@ -42,7 +42,7 @@ const getUrlInfo = async (text, opts = {
|
|
|
42
42
|
if (forwardedURLObj.hostname === urlObj.hostname
|
|
43
43
|
|| forwardedURLObj.hostname === 'www.' + urlObj.hostname
|
|
44
44
|
|| 'www.' + forwardedURLObj.hostname === urlObj.hostname) {
|
|
45
|
-
retries
|
|
45
|
+
retries++;
|
|
46
46
|
return true;
|
|
47
47
|
}
|
|
48
48
|
else {
|
package/lib/index.d.ts
ADDED
|
File without changes
|
package/lib/index.js
CHANGED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
const chalk = require("chalk");
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
-
if (k2 === undefined) k2 = k;
|
|
10
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
|
-
}
|
|
14
|
-
Object.defineProperty(o, k2, desc);
|
|
15
|
-
}) : (function(o, m, k, k2) {
|
|
16
|
-
if (k2 === undefined) k2 = k;
|
|
17
|
-
o[k2] = m[k];
|
|
18
|
-
}));
|
|
19
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
20
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
|
-
};
|
|
22
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.makeWASocket = void 0;
|
|
27
|
-
const Socket_1 = __importDefault(require("./Socket"));
|
|
28
|
-
exports.makeWASocket = Socket_1.default;
|
|
29
|
-
__exportStar(require("../WAProto"), exports);
|
|
30
|
-
__exportStar(require("./Utils"), exports);
|
|
31
|
-
__exportStar(require("./Types"), exports);
|
|
32
|
-
__exportStar(require("./Store"), exports);
|
|
33
|
-
__exportStar(require("./Defaults"), exports);
|
|
34
|
-
__exportStar(require("./WABinary"), exports);
|
|
35
|
-
__exportStar(require("./WAM"), exports);
|
|
36
|
-
__exportStar(require("./WAUSync"), exports);
|
|
37
|
-
__exportStar(require("./Signal/lid-mapping"), exports);
|
|
38
|
-
|
|
39
|
-
exports.default = Socket_1.default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "amiudmodz",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.3",
|
|
4
4
|
"description": "WhatsApp Baileys mod Powered by UDMODZ",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"whatsapp",
|
|
@@ -97,6 +97,12 @@
|
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
"packageManager": "yarn@1.22.19",
|
|
100
|
+
"resolutions": {
|
|
101
|
+
"entities": "^7.1.1"
|
|
102
|
+
},
|
|
103
|
+
"overrides": {
|
|
104
|
+
"entities": "^7.1.1"
|
|
105
|
+
},
|
|
100
106
|
"engines": {
|
|
101
107
|
"node": ">=20.0.0"
|
|
102
108
|
}
|