James Salter
df7ebb2e7c
Remove commented out block
2021-07-28 14:00:37 +01:00
James Salter
3ff7de3c96
Mock SHA-256 to avoid problems loading crypto on Node 14
2021-07-28 13:44:06 +01:00
James Salter
7cf28de9c9
take 2 at fixing import
2021-07-28 11:32:17 +01:00
James Salter
7c62386915
lint
2021-07-28 11:28:19 +01:00
James Salter
c697079eb4
Fix import
2021-07-28 11:22:40 +01:00
James Salter
a6df687196
Tidy up interface and add some comments
2021-07-28 09:54:37 +01:00
James Salter
1d81bdc6f9
Interface changes and anonymity fixes
2021-07-28 09:37:08 +01:00
James Salter
474561600e
Fix hash == ""
2021-07-27 13:31:56 +01:00
James Salter
95f4275807
Add Disabled anonymity, improve tests
2021-07-23 16:47:02 +01:00
James Salter
6737cfd297
remove superflous dnt clear
2021-07-21 16:10:06 +01:00
James Salter
726b4497b2
Remove redactedCurrentLocation and rely on posthog for DNT
...
* Redact and pass the redacted url as a property. redactedCurrentLocation might have issues with concurrent events
* Remove DNT code and rely on posthog
2021-07-21 16:06:09 +01:00
James Salter
4c6b0d35ad
Improve analytics interface
...
* Make it an error to call it before its initialised, and separately track whether its been enabled
* Use anonmity enum in the public interface
* Properly await upstream calls
* Fix accidental test fixture cross-reliance
2021-07-21 14:58:43 +01:00
James Salter
6da3cc8ca1
Redact sensitive data
2021-07-21 13:48:10 +01:00
James Salter
4b0cb409a0
Add identifyUser
2021-07-21 08:38:58 +01:00
James Salter
74b0e52f9a
Enforce anon/pseudo-anon via types
2021-07-21 08:23:42 +01:00
James Salter
3135e42586
Add test for silently ignoring messages when not initialised
2021-07-21 07:42:55 +01:00
James Salter
2a48d3c9bc
First pass at a PosthogAnalytics class
2021-07-21 07:40:39 +01:00