@levo-so/insights 0.1.63 → 0.1.64
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.d.ts +0 -1
- package/dist/index.js +1 -4
- package/package.json +13 -13
package/dist/index.d.ts
CHANGED
|
@@ -255,7 +255,6 @@ interface IInsightOptions {
|
|
|
255
255
|
* ```
|
|
256
256
|
*/
|
|
257
257
|
declare const createLevoInsights: (client: ILevoClient, options?: IInsightOptions) => {
|
|
258
|
-
readonly insightsUrl: string;
|
|
259
258
|
/** Get the underlying analytics instance (read-only) */
|
|
260
259
|
readonly instance: AnalyticsInstance | null;
|
|
261
260
|
/** Check if session has been established (read-only) */
|
package/dist/index.js
CHANGED
|
@@ -300,7 +300,7 @@ var BATCH_INTERVAL_MS = 5e3;
|
|
|
300
300
|
var MAX_EVENTS_PER_PAGE = 500;
|
|
301
301
|
var BROADCAST_CHANNEL_NAME = "levo_analytics";
|
|
302
302
|
var createLevoInsights = (client, options = {}) => {
|
|
303
|
-
const { workspace,
|
|
303
|
+
const { workspace, levoFetch, NODE_ENV } = client;
|
|
304
304
|
const {
|
|
305
305
|
insightsMode = "auto",
|
|
306
306
|
insightsUrl = "",
|
|
@@ -912,9 +912,6 @@ var createLevoInsights = (client, options = {}) => {
|
|
|
912
912
|
_channel?.close();
|
|
913
913
|
};
|
|
914
914
|
return {
|
|
915
|
-
get insightsUrl() {
|
|
916
|
-
return insightsUrl;
|
|
917
|
-
},
|
|
918
915
|
/** Get the underlying analytics instance (read-only) */
|
|
919
916
|
get instance() {
|
|
920
917
|
return instance;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@levo-so/insights",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.64",
|
|
4
4
|
"author": "Levo Engineering <devs@theinternetfolks.com>",
|
|
5
5
|
"description": "Levo analytics",
|
|
6
6
|
"type": "module",
|
|
@@ -12,14 +12,6 @@
|
|
|
12
12
|
"dist/**",
|
|
13
13
|
"!dist/**/*.d.ts.map"
|
|
14
14
|
],
|
|
15
|
-
"scripts": {
|
|
16
|
-
"clean": "rimraf dist node_modules .turbo",
|
|
17
|
-
"check-types": "tsc --noEmit",
|
|
18
|
-
"build": "tsup",
|
|
19
|
-
"dev": "tsup --watch",
|
|
20
|
-
"demo:serve": "python3 -m http.server 8080",
|
|
21
|
-
"demo": "pnpm build && pnpm demo:serve"
|
|
22
|
-
},
|
|
23
15
|
"dependencies": {
|
|
24
16
|
"@analytics/activity-utils": "0.2.2",
|
|
25
17
|
"@analytics/visitor-source": "0.0.7",
|
|
@@ -28,13 +20,13 @@
|
|
|
28
20
|
"lodash-es": "4.17.21"
|
|
29
21
|
},
|
|
30
22
|
"peerDependencies": {
|
|
31
|
-
"@levo-so/core": "
|
|
23
|
+
"@levo-so/core": "0.1.64"
|
|
32
24
|
},
|
|
33
25
|
"devDependencies": {
|
|
34
|
-
"@levo/ts-config": "workspace:*",
|
|
35
26
|
"@types/lodash-es": "4.17.12",
|
|
36
27
|
"tsup": "8.2.4",
|
|
37
|
-
"typescript": "5.9.3"
|
|
28
|
+
"typescript": "5.9.3",
|
|
29
|
+
"@levo/ts-config": "0.0.0"
|
|
38
30
|
},
|
|
39
31
|
"main": "./dist/index.js",
|
|
40
32
|
"module": "./dist/index.js",
|
|
@@ -44,5 +36,13 @@
|
|
|
44
36
|
"types": "./dist/index.d.ts",
|
|
45
37
|
"default": "./dist/index.js"
|
|
46
38
|
}
|
|
39
|
+
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"clean": "rimraf dist node_modules .turbo",
|
|
42
|
+
"check-types": "tsc --noEmit",
|
|
43
|
+
"build": "tsup",
|
|
44
|
+
"dev": "tsup --watch",
|
|
45
|
+
"demo:serve": "python3 -m http.server 8080",
|
|
46
|
+
"demo": "pnpm build && pnpm demo:serve"
|
|
47
47
|
}
|
|
48
|
-
}
|
|
48
|
+
}
|