@formo/analytics 1.16.16 → 1.16.17

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": "1.16.16",
3
+ "version": "1.16.17",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/getformo/sdk.git"
@@ -16,16 +16,12 @@ import {
16
16
  TransactionStatus,
17
17
  UTMParameters,
18
18
  } from "../../types";
19
- import {
20
- generateNativeUUID,
21
- toChecksumAddress,
22
- toSnakeCase,
23
- } from "../../utils";
19
+ import { toChecksumAddress, toSnakeCase } from "../../utils";
24
20
  import { getCurrentTimeFormatted } from "../../utils/timestamp";
25
21
  import { isUndefined } from "../../validators";
26
22
  import { logger } from "../logger";
27
23
  import mergeDeepRight from "../ramda/mergeDeepRight";
28
- import { cookie, session } from "../storage";
24
+ import { session } from "../storage";
29
25
  import { version } from "../version";
30
26
  import { CHANNEL, VERSION } from "./constants";
31
27
  import { IEventFactory } from "./type";
@@ -7,6 +7,7 @@ const generateAnonymousId = (key: string): AnonymousID => {
7
7
  if (storedAnonymousId && typeof storedAnonymousId === "string")
8
8
  return storedAnonymousId as AnonymousID;
9
9
  const newAnonymousId = generateNativeUUID();
10
+ console.log("cookie set", key, newAnonymousId);
10
11
  cookie().set(key, newAnonymousId, {
11
12
  expires: new Date(Date.now() + 1000 * 60 * 60 * 24 * 365).toISOString(), // 1 year
12
13
  domain: getCookieDomain(),
@@ -30,7 +30,7 @@ export class StorageManager {
30
30
  }
31
31
 
32
32
  // Add to cache
33
- this.storages.set(type, this.createStorage(type));
33
+ this.storages.set(type, storage);
34
34
  }
35
35
  return this.storages.get(type)!;
36
36
  }
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '1.16.16';
2
+ export const version = '1.16.17';