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.
- package/dist/compliance/index.js +6 -0
- package/dist/compliance/index.js.map +1 -1
- package/dist/compliance/index.mjs +6 -0
- package/dist/compliance/index.mjs.map +1 -1
- package/dist/decisions/index.js +6 -0
- package/dist/decisions/index.js.map +1 -1
- package/dist/decisions/index.mjs +6 -0
- package/dist/decisions/index.mjs.map +1 -1
- package/dist/geolocation/index.js +6 -0
- package/dist/geolocation/index.js.map +1 -1
- package/dist/geolocation/index.mjs +6 -0
- package/dist/geolocation/index.mjs.map +1 -1
- package/dist/index.d.mts +19 -2
- package/dist/index.d.ts +19 -2
- package/dist/index.js +33 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +32 -1
- package/dist/index.mjs.map +1 -1
- package/dist/kyc/core.js +6 -0
- package/dist/kyc/core.js.map +1 -1
- package/dist/kyc/core.mjs +6 -0
- package/dist/kyc/core.mjs.map +1 -1
- package/dist/kyc/index.js +6 -0
- package/dist/kyc/index.js.map +1 -1
- package/dist/kyc/index.mjs +6 -0
- package/dist/kyc/index.mjs.map +1 -1
- package/dist/risk-profile/index.js +6 -0
- package/dist/risk-profile/index.js.map +1 -1
- package/dist/risk-profile/index.mjs +6 -0
- package/dist/risk-profile/index.mjs.map +1 -1
- package/dist/scores/index.js +6 -0
- package/dist/scores/index.js.map +1 -1
- package/dist/scores/index.mjs +6 -0
- package/dist/scores/index.mjs.map +1 -1
- package/dist/tax/index.js +6 -0
- package/dist/tax/index.js.map +1 -1
- package/dist/tax/index.mjs +6 -0
- package/dist/tax/index.mjs.map +1 -1
- package/package.json +4 -1
|
@@ -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;
|