This release is 10 versions behind 4.7.10 — the latest version of @hono/hono. Jump to latest
Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
Web framework built on Web Standards
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




JSR Score
76%
Published
4 months ago (4.6.20)
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144/* eslint-disable @typescript-eslint/no-explicit-any */ export interface CognitoIdentity { cognitoIdentityId: string cognitoIdentityPoolId: string } export interface ClientContext { client: ClientContextClient Custom?: any env: ClientContextEnv } export interface ClientContextClient { installationId: string appTitle: string appVersionName: string appVersionCode: string appPackageName: string } export interface ClientContextEnv { platformVersion: string platform: string make: string model: string locale: string } /** * {@link Handler} context parameter. * See {@link https://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-context.html AWS documentation}. */ export interface LambdaContext { callbackWaitsForEmptyEventLoop: boolean functionName: string functionVersion: string invokedFunctionArn: string memoryLimitInMB: string awsRequestId: string logGroupName: string logStreamName: string identity?: CognitoIdentity | undefined clientContext?: ClientContext | undefined getRemainingTimeInMillis(): number } type Callback<TResult = any> = (error?: Error | string | null, result?: TResult) => void export type Handler<TEvent = any, TResult = any> = ( event: TEvent, context: LambdaContext, callback: Callback<TResult> ) => void | Promise<TResult> interface ClientCert { clientCertPem: string subjectDN: string issuerDN: string serialNumber: string validity: { notBefore: string notAfter: string } } interface Identity { accessKey?: string accountId?: string caller?: string cognitoAuthenticationProvider?: string cognitoAuthenticationType?: string cognitoIdentityId?: string cognitoIdentityPoolId?: string principalOrgId?: string sourceIp: string user?: string userAgent: string userArn?: string clientCert?: ClientCert } export interface ApiGatewayRequestContext { accountId: string apiId: string authorizer: { claims?: unknown scopes?: unknown } domainName: string domainPrefix: string extendedRequestId: string httpMethod: string identity: Identity path: string protocol: string requestId: string requestTime: string requestTimeEpoch: number resourceId?: string resourcePath: string stage: string } interface Authorizer { iam?: { accessKey: string accountId: string callerId: string cognitoIdentity: null principalOrgId: null userArn: string userId: string } } export interface ApiGatewayRequestContextV2 { accountId: string apiId: string authentication: null authorizer: Authorizer domainName: string domainPrefix: string http: { method: string path: string protocol: string sourceIp: string userAgent: string } requestId: string routeKey: string stage: string time: string timeEpoch: number } export interface ALBRequestContext { elb: { targetGroupArn: string } }