New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hono

Package Overview
Dependencies
Maintainers
1
Versions
347
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 2.0.1 to 2.0.2

2

dist/context.d.ts

@@ -19,3 +19,3 @@ /// <reference types="@cloudflare/workers-types" />

set: (key: string, value: any) => void;
get: (key: string) => any;
get: <T = any>(key: string) => T;
pretty: (prettyJSON: boolean, space?: number) => void;

@@ -22,0 +22,0 @@ newResponse: (data: Data | null, status: StatusCode, headers: Headers) => Response;

import type { Context } from '../../context';
import type { Next } from '../../hono';
declare type PrintFunc = (str: string, ...rest: string[]) => void;
export declare const logger: (fn: PrintFunc) => (c: Context, next: Next) => Promise<void>;
export declare const logger: (fn?: PrintFunc) => (c: Context, next: Next) => Promise<void>;
export {};

@@ -39,3 +39,3 @@ "use strict";

}
const logger = (fn) => {
const logger = (fn = console.log) => {
return async (c, next) => {

@@ -42,0 +42,0 @@ const { method } = c.req;

{
"name": "hono",
"version": "2.0.1",
"version": "2.0.2",
"description": "Ultrafast web framework for Cloudflare Workers.",

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

<div align="center">
<a href="https://honojs.dev">
<img src="https://raw.githubusercontent.com/honojs/hono/master/docs/images/hono-title.png" width="500" height="auto" alt="Hono"/>
<img src="https://raw.githubusercontent.com/honojs/hono/main/docs/images/hono-title.png" width="500" height="auto" alt="Hono"/>
</a>

@@ -17,3 +17,3 @@ </div>

[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/honojs/hono/ci)](https://github.com/honojs/hono/actions)
[![GitHub](https://img.shields.io/github/license/honojs/hono)](https://github.com/honojs/hono/blob/master/LICENSE)
[![GitHub](https://img.shields.io/github/license/honojs/hono)](https://github.com/honojs/hono/blob/main/LICENSE)
[![npm](https://img.shields.io/npm/v/hono)](https://www.npmjs.com/package/hono)

@@ -23,3 +23,3 @@ [![npm](https://img.shields.io/npm/dm/hono)](https://www.npmjs.com/package/hono)

[![GitHub commit activity](https://img.shields.io/github/commit-activity/m/honojs/hono)](https://github.com/honojs/hono/pulse)
[![GitHub last commit](https://img.shields.io/github/last-commit/honojs/hono)](https://github.com/honojs/hono/commits/master)
[![GitHub last commit](https://img.shields.io/github/last-commit/honojs/hono)](https://github.com/honojs/hono/commits/main)
[![Deno badge](https://img.shields.io/endpoint?url=https%3A%2F%2Fdeno-visualizer.danopia.net%2Fshields%2Flatest-version%2Fx%2Fhono%2Fmod.ts)](https://doc.deno.land/https/deno.land/x/hono/mod.ts)

@@ -26,0 +26,0 @@

Sorry, the diff of this file is not supported yet

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