backk-frontend-utils
Advanced tools
Comparing version 1.0.19 to 1.0.21
import { HttpRequestOptions } from './types/HttpRequestOptions'; | ||
import { PromiseErrorOr } from './types/PromiseErrorOr'; | ||
export declare type ServiceFunctionType = 'create' | 'update' | 'other'; | ||
export default function callRemoteService(microserviceName: string, serviceFunctionName: string, serviceFunctionType: ServiceFunctionType, serviceFunctionArgument: any, microserviceNamespace: string, accessTokenStorageEncryptionKey: string, options?: HttpRequestOptions): PromiseErrorOr<any>; | ||
export default function callRemoteService(microserviceName: string, serviceFunctionName: string, serviceFunctionType: ServiceFunctionType, serviceFunctionArgument: any, microserviceNamespace: string, accessTokenStorageEncryptionKey: string | undefined, options?: HttpRequestOptions): PromiseErrorOr<any>; |
@@ -17,2 +17,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (!accessTokenStorageEncryptionKey) { | ||
return [ | ||
null, | ||
{ | ||
message: "Access token storage encryption key is not set. Use 'Service.setAccessTokenStorageEncryptionKey()' function to set the encryption key for services before using them", | ||
}, | ||
]; | ||
} | ||
try { | ||
@@ -19,0 +27,0 @@ yield validateServiceFunctionArgumentOrThrow(serviceFunctionArgument, serviceFunctionType); |
{ | ||
"name": "backk-frontend-utils", | ||
"version": "1.0.19", | ||
"version": "1.0.21", | ||
"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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
227781
2228
1