vesant-sdk 1.7.0-dev.65f378a → 1.7.0-dev.6c2d9b8

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.
@@ -392,6 +392,12 @@ var BaseClient = class {
392
392
  if (!config.tenantId?.trim()) {
393
393
  throw new ValidationError("tenantId is required and must be a non-empty string", ["tenantId"]);
394
394
  }
395
+ if (typeof fetch === "undefined") {
396
+ throw new VesantError(
397
+ "The Vesant SDK requires a global fetch (Node.js >= 18). Upgrade Node or provide a fetch polyfill.",
398
+ "RUNTIME_UNSUPPORTED"
399
+ );
400
+ }
395
401
  this.interceptors = config.interceptors || [];
396
402
  this.logger = config.logger || createConsoleLogger();
397
403
  let environment = config.environment;