@builderbot/provider-baileys 1.3.2-alpha.1 → 1.3.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/dist/index.cjs +8 -7
- package/dist/index.mjs +8 -7
- package/package.json +4 -3
package/dist/index.cjs
CHANGED
|
@@ -1389,7 +1389,8 @@ function checkParentPathsSync$1 (src, srcStat, dest, funcName) {
|
|
|
1389
1389
|
}
|
|
1390
1390
|
|
|
1391
1391
|
function areIdentical$5 (srcStat, destStat) {
|
|
1392
|
-
|
|
1392
|
+
// stat.dev can be 0n on windows when node version >= 22.x.x
|
|
1393
|
+
return destStat.ino !== undefined && destStat.dev !== undefined && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev
|
|
1393
1394
|
}
|
|
1394
1395
|
|
|
1395
1396
|
// return true if dest is a subdir of src, otherwise false.
|
|
@@ -2271,16 +2272,16 @@ function writeFileSync$1 (file, obj, options = {}) {
|
|
|
2271
2272
|
return fs.writeFileSync(file, str, options)
|
|
2272
2273
|
}
|
|
2273
2274
|
|
|
2274
|
-
|
|
2275
|
+
// NOTE: do not change this export format; required for ESM compat
|
|
2276
|
+
// see https://github.com/jprichardson/node-jsonfile/pull/162 for details
|
|
2277
|
+
var jsonfile$2 = {
|
|
2275
2278
|
readFile: readFile$1,
|
|
2276
2279
|
readFileSync,
|
|
2277
2280
|
writeFile: writeFile$1,
|
|
2278
2281
|
writeFileSync: writeFileSync$1
|
|
2279
2282
|
};
|
|
2280
2283
|
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
const jsonFile$3 = jsonfile_1;
|
|
2284
|
+
const jsonFile$3 = jsonfile$2;
|
|
2284
2285
|
|
|
2285
2286
|
var jsonfile$1 = {
|
|
2286
2287
|
// jsonfile exports
|
|
@@ -21939,7 +21940,7 @@ var ensure = {
|
|
|
21939
21940
|
ensureSymlinkSync: createSymlinkSync
|
|
21940
21941
|
};
|
|
21941
21942
|
|
|
21942
|
-
const jsonFile$1 =
|
|
21943
|
+
const jsonFile$1 = jsonfile$2;
|
|
21943
21944
|
|
|
21944
21945
|
var jsonfile = {
|
|
21945
21946
|
// jsonfile exports
|
|
@@ -31690,7 +31691,7 @@ class BaileysProvider extends bot.ProviderClass {
|
|
|
31690
31691
|
const maxSize = 1000;
|
|
31691
31692
|
if (this.idsDuplicates.length > maxSize) {
|
|
31692
31693
|
this.logger.log(`[${new Date().toISOString()}] Cleaning duplicates array: ${this.idsDuplicates.length} -> ${maxSize}`);
|
|
31693
|
-
this.idsDuplicates = this.idsDuplicates.slice(-
|
|
31694
|
+
this.idsDuplicates = this.idsDuplicates.slice(-maxSize); // Mantener solo los últimos 1000
|
|
31694
31695
|
}
|
|
31695
31696
|
// Limpiar mapSet si tiene demasiadas entradas
|
|
31696
31697
|
if (this.mapSet.size > maxSize) {
|
package/dist/index.mjs
CHANGED
|
@@ -1387,7 +1387,8 @@ function checkParentPathsSync$1 (src, srcStat, dest, funcName) {
|
|
|
1387
1387
|
}
|
|
1388
1388
|
|
|
1389
1389
|
function areIdentical$5 (srcStat, destStat) {
|
|
1390
|
-
|
|
1390
|
+
// stat.dev can be 0n on windows when node version >= 22.x.x
|
|
1391
|
+
return destStat.ino !== undefined && destStat.dev !== undefined && destStat.ino === srcStat.ino && destStat.dev === srcStat.dev
|
|
1391
1392
|
}
|
|
1392
1393
|
|
|
1393
1394
|
// return true if dest is a subdir of src, otherwise false.
|
|
@@ -2269,16 +2270,16 @@ function writeFileSync$1 (file, obj, options = {}) {
|
|
|
2269
2270
|
return fs.writeFileSync(file, str, options)
|
|
2270
2271
|
}
|
|
2271
2272
|
|
|
2272
|
-
|
|
2273
|
+
// NOTE: do not change this export format; required for ESM compat
|
|
2274
|
+
// see https://github.com/jprichardson/node-jsonfile/pull/162 for details
|
|
2275
|
+
var jsonfile$2 = {
|
|
2273
2276
|
readFile: readFile$1,
|
|
2274
2277
|
readFileSync,
|
|
2275
2278
|
writeFile: writeFile$1,
|
|
2276
2279
|
writeFileSync: writeFileSync$1
|
|
2277
2280
|
};
|
|
2278
2281
|
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
const jsonFile$3 = jsonfile_1;
|
|
2282
|
+
const jsonFile$3 = jsonfile$2;
|
|
2282
2283
|
|
|
2283
2284
|
var jsonfile$1 = {
|
|
2284
2285
|
// jsonfile exports
|
|
@@ -21937,7 +21938,7 @@ var ensure = {
|
|
|
21937
21938
|
ensureSymlinkSync: createSymlinkSync
|
|
21938
21939
|
};
|
|
21939
21940
|
|
|
21940
|
-
const jsonFile$1 =
|
|
21941
|
+
const jsonFile$1 = jsonfile$2;
|
|
21941
21942
|
|
|
21942
21943
|
var jsonfile = {
|
|
21943
21944
|
// jsonfile exports
|
|
@@ -31688,7 +31689,7 @@ class BaileysProvider extends ProviderClass {
|
|
|
31688
31689
|
const maxSize = 1000;
|
|
31689
31690
|
if (this.idsDuplicates.length > maxSize) {
|
|
31690
31691
|
this.logger.log(`[${new Date().toISOString()}] Cleaning duplicates array: ${this.idsDuplicates.length} -> ${maxSize}`);
|
|
31691
|
-
this.idsDuplicates = this.idsDuplicates.slice(-
|
|
31692
|
+
this.idsDuplicates = this.idsDuplicates.slice(-maxSize); // Mantener solo los últimos 1000
|
|
31692
31693
|
}
|
|
31693
31694
|
// Limpiar mapSet si tiene demasiadas entradas
|
|
31694
31695
|
if (this.mapSet.size > maxSize) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@builderbot/provider-baileys",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "Now I'm the model of a modern major general / The venerated Virginian veteran whose men are all / Lining up, to put me up on a pedestal / Writin' letters to relatives / Embellishin' my elegance and eloquence / But the elephant is in the room / The truth is in ya face when ya hear the British cannons go / BOOM",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Leifer Mendez <leifer33@gmail.com>",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://github.com/codigoencasa/bot-whatsapp#readme",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@builderbot/bot": "
|
|
41
|
+
"@builderbot/bot": "1.3.2-y.0",
|
|
42
42
|
"@hapi/boom": "^10.0.1",
|
|
43
43
|
"@jest/globals": "^29.7.0",
|
|
44
44
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
@@ -72,8 +72,9 @@
|
|
|
72
72
|
"@types/polka": "^0.5.7",
|
|
73
73
|
"fluent-ffmpeg": "^2.1.2",
|
|
74
74
|
"fs-extra": "^11.2.0",
|
|
75
|
+
"jimp": "^1.6.0",
|
|
75
76
|
"node-cache": "^5.1.2",
|
|
76
77
|
"sharp": "0.33.3"
|
|
77
78
|
},
|
|
78
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "8c3712b1fa4ffdaf7999b6f64a566cde74d67d69"
|
|
79
80
|
}
|