@wppconnect/wa-version
Advanced tools
Comparing version 1.1.7 to 1.1.8
@@ -0,1 +1,10 @@ | ||
## 1.1.8 (2021-08-31) | ||
### Bug Fixes | ||
* Adicionado nova versão: 2.2134.9 ([331e6b1](https://github.com/wppconnect-team/wa-version/commit/331e6b1f650faccdf37d8104e7cfd19c49e46a07)) | ||
## 1.1.7 (2021-08-17) | ||
@@ -2,0 +11,0 @@ |
@@ -75,6 +75,6 @@ "use strict"; | ||
if (!version) { | ||
version = getLatestVersion_1.getLatestVersion(); | ||
version = (0, getLatestVersion_1.getLatestVersion)(); | ||
} | ||
url = constants_1.WA_CHECK_UPDATE_URL.replace('<version>', version); | ||
return [4 /*yield*/, node_fetch_1.default(url)]; | ||
return [4 /*yield*/, (0, node_fetch_1.default)(url)]; | ||
case 1: | ||
@@ -81,0 +81,0 @@ response = _a.sent(); |
@@ -70,3 +70,3 @@ "use strict"; | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, node_fetch_1.default(constants_1.WA_URL, { | ||
case 0: return [4 /*yield*/, (0, node_fetch_1.default)(constants_1.WA_URL, { | ||
headers: { | ||
@@ -73,0 +73,0 @@ 'user-agent': constants_1.WA_USER_AGENT, |
@@ -26,5 +26,5 @@ "use strict"; | ||
function getLatestVersion() { | ||
var versions = getAvailableVersions_1.getAvailableVersions(); | ||
var versions = (0, getAvailableVersions_1.getAvailableVersions)(); | ||
return versions.pop(); | ||
} | ||
exports.getLatestVersion = getLatestVersion; |
@@ -52,5 +52,5 @@ "use strict"; | ||
if (!versionMatch) { | ||
versionMatch = getLatestVersion_1.getLatestVersion(); | ||
versionMatch = (0, getLatestVersion_1.getLatestVersion)(); | ||
} | ||
var versions = getAvailableVersions_1.getAvailableVersions(); | ||
var versions = (0, getAvailableVersions_1.getAvailableVersions)(); | ||
var max = semver.maxSatisfying(versions, versionMatch); | ||
@@ -57,0 +57,0 @@ if (!max) { |
{ | ||
"name": "@wppconnect/wa-version", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"description": "List of WhatsApp Web HTML", | ||
@@ -46,3 +46,3 @@ "main": "dist/index.js", | ||
"eslint-config-prettier": "^8.1.0", | ||
"eslint-plugin-prettier": "^3.3.1", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"execa": "^5.1.1", | ||
@@ -49,0 +49,0 @@ "husky": "^7.0.0", |
@@ -15,3 +15,3 @@ # WPPConnect/WA-Version | ||
[](https://discord.gg/Zp87zesMPY) | ||
[](https://discord.gg/JU5JGGKGNG) | ||
[](https://t.me/wppconnect) | ||
@@ -23,15 +23,14 @@ [](https://chat.whatsapp.com/C1ChjyShl5cA7KvmtecF3L) | ||
This file is part of WPPConnect. | ||
Copyright 2021 WPPConnect Team | ||
WPPConnect is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Lesser General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
WPPConnect is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Lesser General Public License for more details. | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
You should have received a copy of the GNU Lesser General Public License | ||
along with WPPConnect. If not, see <https://www.gnu.org/licenses/>. | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
160237
34
35