@klippa/dochorizon-sdk
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -16,2 +16,3 @@ "use strict"; | ||
exports.APIFunctionalities = void 0; | ||
const vars_1 = require("../vars"); | ||
require("dotenv").config(); | ||
@@ -27,5 +28,6 @@ const fs_1 = __importDefault(require("fs")); | ||
function request(requestProperties) { | ||
var _a; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const { endpoint, params, body } = requestProperties; | ||
let url = `${process.env.API_URL}${endpoint.url}`; | ||
let url = `${(_a = process.env.API_URL) !== null && _a !== void 0 ? _a : vars_1.API_URL}${endpoint.url}`; | ||
if (params === null || params === void 0 ? void 0 : params.PathParams) { | ||
@@ -32,0 +34,0 @@ url = processPathParameters(url, params.PathParams); |
{ | ||
"name": "@klippa/dochorizon-sdk", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "## NodeJS developer SDK for DocHorizon.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
320145
56
9858