core-outline 0.0.5 → 0.0.7

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/index.es.js CHANGED
@@ -34,7 +34,7 @@ const startSession = async () => {
34
34
  "session_id": uuid.v4(),
35
35
  "start_time": Date.now(),
36
36
  "end_time": null,
37
- "device": getDeviceInfo()
37
+ "device": "getDeviceInfo()"
38
38
  };
39
39
  session = {
40
40
  ...session,
@@ -97,7 +97,7 @@ class CoreOutline {
97
97
  this.secret_id = secret_id;
98
98
  this.sessionDetails = startSession();
99
99
  this.startSession = startSession;
100
- this.pageDetails = updatePage(sessionDetails?.session_id, {});
100
+ this.pageDetails = updatePage(this.sessionDetails?.session_id, {});
101
101
  this.updatePage = updatePage;
102
102
  this.targetReached = targetReached;
103
103
  this.registerClick = registerClick;
package/dist/index.js CHANGED
@@ -38,7 +38,7 @@ const startSession = async () => {
38
38
  "session_id": uuid.v4(),
39
39
  "start_time": Date.now(),
40
40
  "end_time": null,
41
- "device": getDeviceInfo()
41
+ "device": "getDeviceInfo()"
42
42
  };
43
43
  session = {
44
44
  ...session,
@@ -101,7 +101,7 @@ class CoreOutline {
101
101
  this.secret_id = secret_id;
102
102
  this.sessionDetails = startSession();
103
103
  this.startSession = startSession;
104
- this.pageDetails = updatePage(sessionDetails?.session_id, {});
104
+ this.pageDetails = updatePage(this.sessionDetails?.session_id, {});
105
105
  this.updatePage = updatePage;
106
106
  this.targetReached = targetReached;
107
107
  this.registerClick = registerClick;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "core-outline",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "NPM package for react",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.es.js",
package/src/index.js CHANGED
@@ -8,7 +8,7 @@ export class CoreOutline {
8
8
  this.secret_id = secret_id;
9
9
  this.sessionDetails = startSession();
10
10
  this.startSession = startSession;
11
- this.pageDetails = updatePage(sessionDetails?.session_id, {}, "");
11
+ this.pageDetails = updatePage(this.sessionDetails?.session_id, {}, "");
12
12
  this.updatePage = updatePage;
13
13
  this.targetReached = targetReached;
14
14
  this.registerClick = registerClick;
@@ -36,7 +36,7 @@ const startSession = async() =>{
36
36
  "session_id": uuid.v4(),
37
37
  "start_time": Date.now(),
38
38
  "end_time" : null,
39
- "device": getDeviceInfo(),
39
+ "device": "getDeviceInfo()",
40
40
  }
41
41
  session = { ...session, ...loc}
42
42
  console.log(session)