Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hono

Package Overview
Dependencies
Maintainers
1
Versions
342
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hono - npm Package Compare versions

Comparing version 4.3.0 to 4.3.1

24

dist/types/types.d.ts
import type { Context } from './context';
import type { Hono } from './hono';
import type { StatusCode } from './utils/http-status';
import type { IfAnyThenEmptyObject, JSONValue, Prettify, RemoveBlankRecord, UnionToIntersection } from './utils/types';
import type { IfAnyThenEmptyObject, IsAny, JSONValue, Prettify, RemoveBlankRecord, Simplify, UnionToIntersection } from './utils/types';
export type Bindings = Record<string, unknown>;

@@ -12,2 +12,3 @@ export type Variables = Record<string, unknown>;

export type Next = () => Promise<void>;
export type ExtractInput<I extends Input | Input['in']> = I extends Input ? unknown extends I['in'] ? {} : I['in'] : I;
export type Input = {

@@ -365,12 +366,23 @@ in?: {};

type ExtractKey<S> = S extends Record<infer Key, unknown> ? Key extends string ? Key : never : string;
export type ToSchema<M extends string, P extends string, I extends Input, R extends TypedResponse> = Prettify<{
export type ToSchema<M extends string, P extends string, I extends Input | Input['in'], RorO> = Prettify<{
[K in P]: {
[K2 in M as AddDollar<K2>]: R extends TypedResponse<infer T, infer U, infer F> ? {
input: unknown extends I['in'] ? AddParam<{}, P> : AddParam<I['in'], P>;
[K2 in M as AddDollar<K2>]: Simplify<{
input: AddParam<ExtractInput<I>, P>;
} & (IsAny<RorO> extends true ? {
output: {};
outputFormat: ResponseFormat;
status: StatusCode;
} : RorO extends TypedResponse<infer T, infer U, infer F> ? {
output: unknown extends T ? {} : T;
outputFormat: I extends {
outputFormat: string;
} ? I['outputFormat'] : unknown extends F ? never : F;
} ? I['outputFormat'] : F;
status: U;
} : never;
} : {
output: unknown extends RorO ? {} : RorO;
outputFormat: unknown extends RorO ? 'json' : I extends {
outputFormat: string;
} ? I['outputFormat'] : 'json';
status: StatusCode;
})>;
};

@@ -377,0 +389,0 @@ }>;

{
"name": "hono",
"version": "4.3.0",
"version": "4.3.1",
"description": "Ultrafast web framework for the Edges",

@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js",

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