UNPKG

@shapediver/sdk.geometry-api-sdk-v2

Version:
24 lines 1.19 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Configuration = void 0; const configuration_1 = require("./client/configuration"); class Configuration extends configuration_1.Configuration { constructor(param = {}) { var _a, _b, _c, _d; super(param); this.sdkVersion = '2.9.0'; this.useCustomAxios = (_a = param.useCustomAxios) !== null && _a !== void 0 ? _a : true; this.maxRetries = (_b = param.maxRetries) !== null && _b !== void 0 ? _b : 5; this.baseOptions = (_c = this.baseOptions) !== null && _c !== void 0 ? _c : {}; this.baseOptions.headers = (_d = this.baseOptions.headers) !== null && _d !== void 0 ? _d : {}; const userAgent = `sd-sdk/typescript/${this.sdkVersion}`; if (typeof process === 'object' && !this.baseOptions.headers['User-Agent']) { this.baseOptions.headers['User-Agent'] = userAgent; } else if (!this.baseOptions.headers['X-ShapeDiver-UserAgent']) { this.baseOptions.headers['X-ShapeDiver-UserAgent'] = userAgent; } } } exports.Configuration = Configuration; //# sourceMappingURL=configuration.js.map