@honojs/hello
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
3844
9
8
55
42
1
+ Addedhono@^2.0.2
+ Addedhono@2.7.8(transitive)