whalibmob 5.12.0 → 5.12.4
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/README.md +2712 -2707
- package/lib/Registration.js +10 -1
- package/package.json +1 -1
package/lib/Registration.js
CHANGED
|
@@ -770,7 +770,13 @@ async function sendEncrypted(path, plaintext, store, waVersion) {
|
|
|
770
770
|
});
|
|
771
771
|
if (bodyAtt.bodyAttestation) body += '&H=' + bodyAtt.bodyAttestation;
|
|
772
772
|
|
|
773
|
-
|
|
773
|
+
_whaDbg('[DBG] REG → ' + path + ' (' + body.length + ' bytes' +
|
|
774
|
+
(bodyAtt.bodyAttestation ? ', attested' : '') + ')');
|
|
775
|
+
const result = await httpPost(path, body, waVersion, bodyAtt.authorizationHeader);
|
|
776
|
+
_whaDbg('[DBG] REG ← ' + path + ' ' +
|
|
777
|
+
(result && result.status ? result.status : JSON.stringify(result).slice(0, 120)) +
|
|
778
|
+
(result && result.reason ? ' reason=' + result.reason : ''));
|
|
779
|
+
return result;
|
|
774
780
|
}
|
|
775
781
|
|
|
776
782
|
// ---------- Funnel telemetry ----------
|
|
@@ -819,6 +825,8 @@ async function sendFunnelLog(store, waVersion, currentScreen, actionTaken, event
|
|
|
819
825
|
'event_name', eventName
|
|
820
826
|
], null);
|
|
821
827
|
|
|
828
|
+
_whaDbg('[DBG] REG funnel ' + (store._funnelPreviousScreen || '—') + ' → ' +
|
|
829
|
+
currentScreen + ' ' + actionTaken + '/' + eventName);
|
|
822
830
|
await sendEncrypted('/client_log', body, store, waVersion);
|
|
823
831
|
store._funnelPreviousScreen = currentScreen;
|
|
824
832
|
} catch (err) {
|
|
@@ -849,6 +857,7 @@ async function sendPrePnFunnelLog(store, waVersion, actionTaken, eventName) {
|
|
|
849
857
|
'event_name', eventName
|
|
850
858
|
], null);
|
|
851
859
|
|
|
860
|
+
_whaDbg('[DBG] REG funnel (pre-pn) ' + actionTaken + '/' + eventName);
|
|
852
861
|
await sendEncrypted('/pre_pn_client_log', body, store, waVersion);
|
|
853
862
|
} catch (err) {
|
|
854
863
|
_whaDbg('[DBG] REG pre-pn funnel log failed: ' + (err && err.message));
|