humanbehavior-js 0.0.2 → 0.0.4

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/cjs/index.js CHANGED
@@ -4491,6 +4491,9 @@ var HumanBehaviorTracker = /** @class */ (function () {
4491
4491
  this.endUserId = null;
4492
4492
  this.initialized = false;
4493
4493
  this.initializationPromise = null;
4494
+ if (!apiKey) {
4495
+ throw new Error('Human Behavior apiKey is required');
4496
+ }
4494
4497
  this.api = new HumanBehaviorAPI({
4495
4498
  apiKey: apiKey,
4496
4499
  });