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
package/dist/compliance/index.js
CHANGED
|
@@ -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;
|