@formo/analytics 1.16.19 → 1.16.20
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/dist/cjs/src/FormoAnalytics.d.ts.map +1 -1
- package/dist/cjs/src/FormoAnalytics.js +1 -0
- package/dist/cjs/src/FormoAnalytics.js.map +1 -1
- package/dist/cjs/src/lib/version.d.ts +1 -1
- package/dist/cjs/src/lib/version.js +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/src/FormoAnalytics.d.ts.map +1 -1
- package/dist/esm/src/FormoAnalytics.js +2 -1
- package/dist/esm/src/FormoAnalytics.js.map +1 -1
- package/dist/esm/src/lib/version.d.ts +1 -1
- package/dist/esm/src/lib/version.js +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/FormoAnalytics.ts +12 -2
- package/src/lib/version.ts +1 -1
package/package.json
CHANGED
package/src/FormoAnalytics.ts
CHANGED
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
EventManager,
|
|
14
14
|
EventQueue,
|
|
15
15
|
IEventManager,
|
|
16
|
+
initStorageManager,
|
|
16
17
|
logger,
|
|
17
18
|
Logger,
|
|
18
19
|
} from "./lib";
|
|
@@ -96,6 +97,7 @@ export class FormoAnalytics implements IFormoAnalytics {
|
|
|
96
97
|
writeKey: string,
|
|
97
98
|
options?: Options
|
|
98
99
|
): Promise<FormoAnalytics> {
|
|
100
|
+
initStorageManager(writeKey);
|
|
99
101
|
const analytics = new FormoAnalytics(writeKey, options);
|
|
100
102
|
|
|
101
103
|
// Auto-detect wallet provider
|
|
@@ -384,7 +386,10 @@ export class FormoAnalytics implements IFormoAnalytics {
|
|
|
384
386
|
try {
|
|
385
387
|
if (!params) {
|
|
386
388
|
// If no params provided, auto-identify
|
|
387
|
-
logger.info(
|
|
389
|
+
logger.info(
|
|
390
|
+
"Auto-identifying with providers:",
|
|
391
|
+
this._providers.map((p) => p.info.name)
|
|
392
|
+
);
|
|
388
393
|
for (const providerDetail of this._providers) {
|
|
389
394
|
const provider = providerDetail.provider;
|
|
390
395
|
if (!provider) continue;
|
|
@@ -392,7 +397,12 @@ export class FormoAnalytics implements IFormoAnalytics {
|
|
|
392
397
|
try {
|
|
393
398
|
const address = await this.getAddress(provider);
|
|
394
399
|
if (address) {
|
|
395
|
-
logger.info(
|
|
400
|
+
logger.info(
|
|
401
|
+
"Auto-identifying",
|
|
402
|
+
address,
|
|
403
|
+
providerDetail.info.name,
|
|
404
|
+
providerDetail.info.rdns
|
|
405
|
+
);
|
|
396
406
|
// NOTE: do not set this.currentAddress without explicit connect or identify
|
|
397
407
|
await this.identify(
|
|
398
408
|
{
|
package/src/lib/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '1.16.
|
|
2
|
+
export const version = '1.16.20';
|