backk-frontend-utils
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -19,4 +19,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
: HTTPS_DEFAULT_PORT; | ||
const scheme = serverPort === HTTPS_DEFAULT_PORT ? 'https' : 'http'; | ||
try { | ||
const response = yield fetch(`https://${window.location.hostname}:${serverPort}/${microserviceName}.${microserviceNamespace}/${serviceFunctionName}`, { | ||
const response = yield fetch(`${scheme}://${window.location.hostname}:${serverPort}/${microserviceName}.${microserviceNamespace}/${serviceFunctionName}`, { | ||
method: (_b = options === null || options === void 0 ? void 0 : options.httpMethod) !== null && _b !== void 0 ? _b : 'POST', | ||
@@ -23,0 +24,0 @@ body: serviceFunctionArgument ? JSON.stringify(serviceFunctionArgument) : undefined, |
{ | ||
"name": "backk-frontend-utils", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Web frontend utils for Backk microservices", | ||
@@ -5,0 +5,0 @@ "author": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
40762
294