backk-frontend-utils
Advanced tools
Comparing version 1.0.12 to 1.0.13
@@ -13,5 +13,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import { HTTPS_DEFAULT_PORT } from './constants/constants'; | ||
import validateServiceFunctionArgumentOrThrow from './validation/validateServiceFunctionArgument'; | ||
export default function callRemoteService(microserviceName, serviceFunctionName, serviceFunctionArgument, microserviceNamespace, jwtStorageEncryptionKey, options) { | ||
var _a, _b, _c, _d; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
try { | ||
yield validateServiceFunctionArgumentOrThrow(serviceFunctionArgument); | ||
} | ||
catch (error) { | ||
return [ | ||
null, | ||
{ | ||
message: error.message, | ||
}, | ||
]; | ||
} | ||
const serverPort = window.location.search | ||
@@ -18,0 +30,0 @@ ? (_a = window.location.search.split('serverPort=').pop()) !== null && _a !== void 0 ? _a : HTTPS_DEFAULT_PORT |
@@ -8,1 +8,2 @@ export { default as callRemoteService } from './callRemoteService'; | ||
export { default as _Id } from './types/_id/_Id'; | ||
export * from 'class-validator'; |
export { default as callRemoteService } from './callRemoteService'; | ||
export { default as DefaultPostQueryOperations } from './types/DefaultPostQueryOperations'; | ||
export { default as _Id } from './types/_id/_Id'; | ||
export * from 'class-validator'; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "backk-frontend-utils", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "Web frontend utils for Backk microservices", | ||
@@ -43,2 +43,3 @@ "author": { | ||
"dependencies": { | ||
"class-validator": "0.11.1", | ||
"crypto-js": "4.1.1", | ||
@@ -45,0 +46,0 @@ "js-base64": "3.7.2" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
46959
49
337
3
+ Addedclass-validator@0.11.1
+ Added@types/validator@10.11.3(transitive)
+ Addedclass-validator@0.11.1(transitive)
+ Addedgoogle-libphonenumber@3.2.40(transitive)
+ Addedvalidator@12.0.0(transitive)