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