Socket
Socket
Sign inDemoInstall

@middy/util

Package Overview
Dependencies
Maintainers
3
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@middy/util - npm Package Compare versions

Comparing version 4.2.5 to 4.2.6

42

index.d.ts
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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc