humanbehavior-js 0.0.3 → 0.0.5

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.
@@ -18,7 +18,7 @@ declare class HumanBehaviorTracker {
18
18
  private apiKey;
19
19
  private initialized;
20
20
  initializationPromise: Promise<void> | null;
21
- constructor(apiKey: string | null);
21
+ constructor(apiKey: string | undefined, ingestionUrl: string | undefined);
22
22
  private init;
23
23
  private ensureInitialized;
24
24
  static logToStorage(message: string): void;
@@ -41,8 +41,9 @@ declare function validateSingleEventSize(event: any, sessionId: string): void;
41
41
  declare class HumanBehaviorAPI {
42
42
  private apiKey;
43
43
  private baseUrl;
44
- constructor({ apiKey }: {
44
+ constructor({ apiKey, ingestionUrl }: {
45
45
  apiKey: string;
46
+ ingestionUrl: string;
46
47
  });
47
48
  init(sessionId: string, userId: string | null): Promise<{
48
49
  sessionId: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "humanbehavior-js",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "SDK for HumanBehavior session and event recording",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.js",