@formo/analytics 2.0.0-alpha.3 → 2.0.0-alpha.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formo/analytics",
3
- "version": "2.0.0-alpha.3",
3
+ "version": "2.0.0-alpha.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/getformo/sdk.git"
@@ -111,6 +111,8 @@ export class FormoAnalytics implements IFormoAnalytics {
111
111
  const apiUrl = this.buildApiUrl();
112
112
  const address = await this.getCurrentWallet();
113
113
 
114
+ console.log('address: ', address);
115
+
114
116
  const requestData = {
115
117
  project_id: this.projectId,
116
118
  address: address,
@@ -263,7 +265,10 @@ export class FormoAnalytics implements IFormoAnalytics {
263
265
  }
264
266
 
265
267
  private trackProvider(provider: EIP1193Provider) {
268
+ console.log('Provider: ', provider);
269
+ console.log('this._provider: ', this._provider);
266
270
  if (provider === this._provider) {
271
+ console.log('provider === this._provider');
267
272
  return;
268
273
  }
269
274
 
@@ -300,6 +305,7 @@ export class FormoAnalytics implements IFormoAnalytics {
300
305
  }
301
306
 
302
307
  private registerChainChangedListener() {
308
+ console.log('registerChainChangedListener is emitted');
303
309
  const listener = (...args: unknown[]) =>
304
310
  this.onChainChanged(args[0] as string);
305
311
  this.provider?.on('chainChanged', listener);
@@ -377,6 +383,7 @@ export class FormoAnalytics implements IFormoAnalytics {
377
383
  }
378
384
 
379
385
  private registerAccountsChangedListener() {
386
+ console.log('registerAccountsChangedListener is emitted');
380
387
  const listener = (...args: unknown[]) =>
381
388
  this.onAccountsChanged(args[0] as string[]);
382
389
 
@@ -397,6 +404,8 @@ export class FormoAnalytics implements IFormoAnalytics {
397
404
  return false;
398
405
  }
399
406
 
407
+ console.log('trackSigning is emitted');
408
+
400
409
  if (
401
410
  Object.getOwnPropertyDescriptor(this.provider, 'request')?.writable ===
402
411
  false