@yemo-dev/yebail 1.1.1 → 1.1.2
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/Defaults/index.js
CHANGED
|
@@ -9,7 +9,7 @@ const WAProto_1 = require("../../WAProto");
|
|
|
9
9
|
const libsignal_1 = require("../Signal/libsignal");
|
|
10
10
|
const browser_utils_1 = require("../Utils/browser-utils");
|
|
11
11
|
const logger_1 = __importDefault(require("../Utils/logger"));
|
|
12
|
-
exports.version = [2, 3000,
|
|
12
|
+
exports.version = [2, 3000, 1036173230];
|
|
13
13
|
exports.PHONENUMBER_MCC = require("./phonenumber-mcc.json");
|
|
14
14
|
const getMccForCountryIso2 = (iso3166Alpha2) => {
|
|
15
15
|
const alpha = (iso3166Alpha2 || 'US').toString().toUpperCase();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":[2,3000,
|
|
1
|
+
{"version":[2,3000,1036173230]}
|
package/lib/Utils/generics.js
CHANGED
|
@@ -308,9 +308,9 @@ const fetchLatestWaWebVersion = async (options) => {
|
|
|
308
308
|
...options,
|
|
309
309
|
responseType: 'text'
|
|
310
310
|
});
|
|
311
|
-
const regex = /
|
|
311
|
+
const regex = /client_revision[^\d]+(\d+)|__spin_r[^\d]+(\d+)/;
|
|
312
312
|
const match = data.match(regex);
|
|
313
|
-
if (!(match === null || match === void 0 ? void 0 : match[1])) {
|
|
313
|
+
if (!(match === null || match === void 0 ? void 0 : (match[1] || match[2]))) {
|
|
314
314
|
return {
|
|
315
315
|
version: yebail_version_json_1.version,
|
|
316
316
|
isLatest: false,
|
|
@@ -319,7 +319,7 @@ const fetchLatestWaWebVersion = async (options) => {
|
|
|
319
319
|
}
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
|
-
const clientRevision = match[1];
|
|
322
|
+
const clientRevision = match[1] || match[2];
|
|
323
323
|
return {
|
|
324
324
|
version: [2, 3000, +clientRevision],
|
|
325
325
|
isLatest: true
|