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

@honojs/hello

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@honojs/hello - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

dist/index.test.d.ts

4

dist/index.d.ts

@@ -1,2 +0,2 @@

import { Context, Next } from 'hono';
export declare const x: (message?: string) => (c: Context, next: Next) => Promise<void>;
import { Handler } from 'hono';
export declare const hello: (message?: string) => Handler;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.x = void 0;
const x = (message = 'X') => {
exports.hello = void 0;
const hello = (message = 'Hello') => {
return async (c, next) => {

@@ -10,2 +10,2 @@ await next();

};
exports.x = x;
exports.hello = hello;
{
"name": "@honojs/hello",
"version": "0.0.3",
"version": "0.0.4",
"description": "An example of third-party middleware for Hono",

@@ -12,11 +12,15 @@ "main": "dist/index.js",

"test": "jest",
"test:deno": "deno test deno_test",
"test:all": "yarn test && yarn test:deno && yarn test:bun",
"denoify": "rimraf deno_dist && denoify",
"build": "rimraf dist && tsc"
"build": "rimraf dist && tsc",
"release": "npm publish"
},
"author": "Yusuke Wada <yusuke@kamawada.com> (https://github.com/yusukebe)",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/honojs/middlewar-example.git"
"url": "https://github.com/honojs/middleware-template.git"
},
"homepage": "https://github.com/honojs/middleware-template",
"author": "Yusuke Wada <yusuke@kamawada.com> (https://github.com/yusukebe)",
"publishConfig": {

@@ -26,3 +30,5 @@ "registry": "https://registry.npmjs.org",

},
"homepage": "https://github.com/honojs/middleware-example",
"dependencies": {
"hono": "^2.0.2"
},
"devDependencies": {

@@ -32,6 +38,4 @@ "@cloudflare/workers-types": "^3.14.0",

"denoify": "^0.11.1",
"hono": "^1.6.3",
"jest": "^28.1.2",
"jest-environment-miniflare": "^2.6.0",
"node": "^18.5.0",
"prettier": "^2.7.1",

@@ -42,2 +46,2 @@ "rimraf": "^3.0.2",

}
}
}

@@ -1,2 +0,2 @@

# An example of third-party middleware for Hono
# Hello middleware for Hono

@@ -20,2 +20,17 @@ An example project of the third-party middleware for [Hono](https://github.com/honojs/hono).

## Deno
```ts
import { serve } from 'https://deno.land/std/http/server.ts'
import { hello } from 'https://deno.land/x/hono_hello'
import { Hono } from 'https://deno.land/x/hono/mod.ts'
const app = new Hono()
app.use('*', hello('Hello!! Hono!!'))
app.get('/', (c) => c.text('foo'))
serve(app.fetch)
```
## Author

@@ -22,0 +37,0 @@

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