From 00ebd9e5bbe0f22636b90283d8d9c3104d4f0fb3 Mon Sep 17 00:00:00 2001 From: Daniel Cardenas Date: Thu, 9 Apr 2020 21:43:35 -0500 Subject: [PATCH 1/4] Update UPDATES.md --- UPDATES.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UPDATES.md b/UPDATES.md index ddc549f5..ef564de2 100644 --- a/UPDATES.md +++ b/UPDATES.md @@ -1,6 +1,6 @@ # Update checking -Whatsapp is in constant changes, in order to tackle this issue I suggest +Whatsapp is in constant change, in order to tackle this issue I suggest keeping your sulla package always up-to-date. -The method/funciton names won't change, only their core algorithm. This way you won't have to makes changes in your code at every update. They will remain the same for ever. +The method/funciton names won't change, only their core algorithm. This way you won't have to makes changes in your code at every update. They will remain the same forever. From 757afb0dc0d72907bb19b3b4842b5604a558cfef Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Fri, 10 Apr 2020 13:18:41 +0000 Subject: [PATCH 2/4] Bump husky from 4.2.4 to 4.2.5 Bumps [husky](https://github.com/typicode/husky) from 4.2.4 to 4.2.5. - [Release notes](https://github.com/typicode/husky/releases) - [Changelog](https://github.com/typicode/husky/blob/master/CHANGELOG.md) - [Commits](https://github.com/typicode/husky/compare/v4.2.4...v4.2.5) Signed-off-by: dependabot-preview[bot] --- package-lock.json | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/package-lock.json b/package-lock.json index 83d4b7ba..87731b25 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "sulla", - "version": "2.3.6", + "version": "2.3.8", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -4333,14 +4333,14 @@ "dev": true }, "husky": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/husky/-/husky-4.2.4.tgz", - "integrity": "sha512-aLUw3YxdljMuu57SQvSGW33/Dbsztis7UZRAx1WHC13O4Lv0wa9oHaeobSMOBI/nGiVRbCJBGj263WUxaw2p2Q==", + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/husky/-/husky-4.2.5.tgz", + "integrity": "sha512-SYZ95AjKcX7goYVZtVZF2i6XiZcHknw50iXvY7b0MiGoj5RwdgRQNEHdb+gPDPCXKlzwrybjFjkL6FOj8uRhZQ==", "dev": true, "requires": { - "chalk": "^3.0.0", + "chalk": "^4.0.0", "ci-info": "^2.0.0", - "compare-versions": "^3.5.1", + "compare-versions": "^3.6.0", "cosmiconfig": "^6.0.0", "find-versions": "^3.2.0", "opencollective-postinstall": "^2.0.2", @@ -4350,16 +4350,6 @@ "which-pm-runs": "^1.0.0" }, "dependencies": { - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, "find-up": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", From 763888442f27aab06c195907b309b66626c25fa4 Mon Sep 17 00:00:00 2001 From: Daniel Cardenas Date: Fri, 10 Apr 2020 09:46:52 -0500 Subject: [PATCH 3/4] Update README.md --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index eece7fd7..df016348 100644 --- a/README.md +++ b/README.md @@ -346,8 +346,15 @@ There are some tricks for a better usage of sulla. ```javascript // In case of being logged out of whatsapp web // Force it to keep the current session +// State change client.onStateChange((state) => { - if (state === 'UNLAUNCHED') { + console.log(state); + const conflits = [ + sulla.SocketState.CONFLICT, + sulla.SocketState.UNPAIRED, + sulla.SocketState.UNLAUNCHED, + ]; + if (conflits.includes(state)) { client.useHere(); } }); From 267ec1f6488e5591f3b9f4e40117cb7faf1c1a6c Mon Sep 17 00:00:00 2001 From: Daniel Cardenas Date: Fri, 10 Apr 2020 09:53:32 -0500 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index df016348..83de1552 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ create('sessionName', qrCallback, { }); ``` -##### The type definition con be found in here: [CreateConfig.ts](https://github.com/danielcardeenas/sulla/blob/affd816d83cc065bf953c9cc5328d935e9fc04c8/src/config/create-config.ts) +##### The type definition con be found in here: [CreateConfig.ts](https://github.com/danielcardeenas/sulla/blob/master/src/config/create-config.ts) ## Exporting QR code