@wppconnect/wa-version
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -0,1 +1,10 @@ | ||
## 1.1.2 (2021-07-20) | ||
### Bug Fixes | ||
* Adicionado nova versão: 2.2126.12 ([ef3dd07](https://github.com/wppconnect-team/wa-version/commit/ef3dd0753258395d2a844e24423859527f781b43)) | ||
## 1.1.1 (2021-07-12) | ||
@@ -2,0 +11,0 @@ |
@@ -0,0 +0,0 @@ export interface WaVersionInfo { |
@@ -60,2 +60,3 @@ "use strict"; | ||
var node_fetch_1 = __importDefault(require("node-fetch")); | ||
var semver_1 = __importDefault(require("semver")); | ||
var constants_1 = require("./constants"); | ||
@@ -84,3 +85,3 @@ var getLatestVersion_1 = require("./getLatestVersion"); | ||
data = _a.sent(); | ||
data.isUpdated = data.currentVersion === version; | ||
data.isUpdated = semver_1.default.lte(data.currentVersion, version); | ||
data.yourVersion = version; | ||
@@ -87,0 +88,0 @@ return [2 /*return*/, data]; |
@@ -0,0 +0,0 @@ export declare const WA_URL = "https://web.whatsapp.com/"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /** |
@@ -73,4 +73,7 @@ "use strict"; | ||
'user-agent': constants_1.WA_USER_AGENT, | ||
'Accept-Language': 'en-US,en;q=0.9', | ||
'accept-language': 'en-US,en;q=1', | ||
'sec-fetch-mode': 'navigate', | ||
cookie: 'wa_lang_pref=en', | ||
pragma: 'no-cache', | ||
'cache-control': 'no-cache', | ||
}, | ||
@@ -77,0 +80,0 @@ })]; |
@@ -0,0 +0,0 @@ import * as semver from 'semver'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import * as semver from 'semver'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /*! |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "@wppconnect/wa-version", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "List of WhatsApp Web HTML", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -5,6 +5,6 @@ # WPPConnect/WA-Version | ||
[](https://www.npmjs.com/package/@wppconnect/wa-version) | ||
[](https://isitmaintained.com/project/wppconnect/wa-version 'Average time to resolve an issue') | ||
[](https://isitmaintained.com/project/wppconnect/wa-version 'Percentage of issues still open') | ||
[](https://github.com/wppconnect/wa-version/actions) | ||
[](https://github.com/wppconnect/wa-version/actions) | ||
[](https://isitmaintained.com/project/wppconnect/wa-version 'Average time to resolve an issue') | ||
[](https://isitmaintained.com/project/wppconnect/wa-version 'Percentage of issues still open') | ||
[](https://github.com/wppconnect/wa-version/actions) | ||
[](https://github.com/wppconnect/wa-version/actions) | ||
[](https://github.com/release-it/release-it) | ||
@@ -11,0 +11,0 @@ |
110390
28
499