@levo-so/insights 0.1.64 → 0.1.65

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 CHANGED
@@ -255,6 +255,7 @@ interface IInsightOptions {
255
255
  * ```
256
256
  */
257
257
  declare const createLevoInsights: (client: ILevoClient, options?: IInsightOptions) => {
258
+ readonly insightsUrl: string;
258
259
  /** Get the underlying analytics instance (read-only) */
259
260
  readonly instance: AnalyticsInstance | null;
260
261
  /** 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, levoFetch, NODE_ENV } = client;
303
+ const { workspace, fetch: levoFetch, NODE_ENV } = client;
304
304
  const {
305
305
  insightsMode = "auto",
306
306
  insightsUrl = "",
@@ -912,6 +912,9 @@ var createLevoInsights = (client, options = {}) => {
912
912
  _channel?.close();
913
913
  };
914
914
  return {
915
+ get insightsUrl() {
916
+ return insightsUrl;
917
+ },
915
918
  /** Get the underlying analytics instance (read-only) */
916
919
  get instance() {
917
920
  return instance;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@levo-so/insights",
3
- "version": "0.1.64",
3
+ "version": "0.1.65",
4
4
  "author": "Levo Engineering <devs@theinternetfolks.com>",
5
5
  "description": "Levo analytics",
6
6
  "type": "module",
@@ -20,7 +20,7 @@
20
20
  "lodash-es": "4.17.21"
21
21
  },
22
22
  "peerDependencies": {
23
- "@levo-so/core": "0.1.64"
23
+ "@levo-so/core": "0.1.65"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/lodash-es": "4.17.12",