@middy/util
Advanced tools
Comparing version 4.2.5 to 4.2.6
import middy from '@middy/core' | ||
interface Options<Client, ClientOptions> { | ||
AwsClient?: new(...args: any[]) => Client | ||
AwsClient?: new (...args: any[]) => Client | ||
awsClientOptions?: Partial<ClientOptions> | ||
@@ -23,13 +23,27 @@ awsClientAssumeRole?: string | ||
declare function createPrefetchClient<Client, ClientOptions> (options: Options<Client, ClientOptions>): Client | ||
declare function createPrefetchClient<Client, ClientOptions> ( | ||
options: Options<Client, ClientOptions> | ||
): Client | ||
declare function createClient<Client, ClientOptions> (options: Options<Client, ClientOptions>, request: middy.Request): Promise<Client> | ||
declare function createClient<Client, ClientOptions> ( | ||
options: Options<Client, ClientOptions>, | ||
request: middy.Request | ||
): Promise<Client> | ||
declare function canPrefetch<Client, ClientOptions> (options: Options<Client, ClientOptions>): boolean | ||
declare function canPrefetch<Client, ClientOptions> ( | ||
options: Options<Client, ClientOptions> | ||
): boolean | ||
declare function getInternal (variables: any, request: middy.Request): Promise<any> | ||
declare function getInternal ( | ||
variables: any, | ||
request: middy.Request | ||
): Promise<any> | ||
declare function sanitizeKey (key: string): string | ||
declare function processCache<Client, ClientOptions> (options: Options<Client, ClientOptions>, fetch: (request: middy.Request) => any, request?: middy.Request): { value: any, expiry: number } | ||
declare function processCache<Client, ClientOptions> ( | ||
options: Options<Client, ClientOptions>, | ||
fetch: (request: middy.Request, cachedValues: any) => any, | ||
request?: middy.Request | ||
): { value: any, expiry: number } | ||
@@ -40,8 +54,18 @@ declare function getCache (keys: string): any | ||
declare function jsonSafeParse (string: string, reviver?: (key: string, value: any) => any): any | ||
declare function jsonSafeParse ( | ||
string: string, | ||
reviver?: (key: string, value: any) => any | ||
): any | ||
declare function normalizeHttpResponse (request: any, fallbackResponse?: any): any | ||
declare function normalizeHttpResponse ( | ||
request: any, | ||
fallbackResponse?: any | ||
): any | ||
declare function createError (code: number, message: string, properties?: Record<string, any>): HttpError | ||
declare function createError ( | ||
code: number, | ||
message: string, | ||
properties?: Record<string, any> | ||
): HttpError | ||
declare function modifyCache (cacheKey: string, value: any): void |
{ | ||
"name": "@middy/util", | ||
"version": "4.2.5", | ||
"version": "4.2.6", | ||
"description": "🛵 The stylish Node.js middleware engine for AWS Lambda (util package)", | ||
@@ -64,3 +64,3 @@ "type": "module", | ||
"@aws-sdk/client-ssm": "^3.0.0", | ||
"@middy/core": "4.2.5", | ||
"@middy/core": "4.2.6", | ||
"@types/aws-lambda": "^8.10.76", | ||
@@ -75,3 +75,3 @@ "@types/node": "^18.0.0", | ||
}, | ||
"gitHead": "5ece2d6311bcca23bc755d49bacb1ea0c21cdc98" | ||
"gitHead": "8868ba216442cc42321a251712bc90b9147c0a44" | ||
} |
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
33653
884