2021-12-14 19:26:22 +00:00
|
|
|
{
|
|
|
|
"name": "hono",
|
2023-02-09 09:29:17 +00:00
|
|
|
"version": "2.7.7",
|
2022-11-20 14:42:23 +00:00
|
|
|
"description": "Ultrafast web framework for Cloudflare Workers, Deno, and Bun.",
|
2022-10-27 23:46:02 +00:00
|
|
|
"main": "dist/cjs/index.js",
|
2022-11-26 06:45:24 +00:00
|
|
|
"type": "module",
|
2022-09-15 00:56:46 +00:00
|
|
|
"module": "dist/index.js",
|
2022-12-27 13:59:23 +00:00
|
|
|
"types": "dist/types/index.d.ts",
|
2022-01-05 09:41:29 +00:00
|
|
|
"files": [
|
|
|
|
"dist"
|
|
|
|
],
|
2022-02-23 00:58:24 +00:00
|
|
|
"scripts": {
|
|
|
|
"test": "jest",
|
2022-07-12 22:22:28 +00:00
|
|
|
"test:deno": "deno test --allow-read deno_test",
|
2022-07-24 08:36:37 +00:00
|
|
|
"test:bun": "bun wiptest --jsx-import-source ../src/middleware/jsx/jsx-dev-runtime bun_test/index.test.tsx",
|
2022-12-24 16:42:59 +00:00
|
|
|
"test:lagon": "npx start-server-and-test \"lagon dev lagon_test/index.ts\" http://127.0.0.1:1234 \"yarn jest lagon_test/index.test.ts --testMatch '**/*.test.ts'\"",
|
|
|
|
"test:all": "yarn test && yarn test:deno && yarn test:bun && yarn test:lagon",
|
2022-10-27 23:46:02 +00:00
|
|
|
"lint": "eslint --ext js,ts src .eslintrc.cjs",
|
|
|
|
"lint:fix": "eslint --ext js,ts src .eslintrc.cjs --fix",
|
2022-07-02 13:31:10 +00:00
|
|
|
"denoify": "rimraf deno_dist && denoify && rimraf 'deno_dist/**/*.test.ts'",
|
2022-12-27 13:59:23 +00:00
|
|
|
"copy:package.cjs.json": "cp ./package.cjs.json ./dist/cjs/package.json && cp ./package.cjs.json ./dist/types/package.json ",
|
2022-10-27 23:46:02 +00:00
|
|
|
"build": "rimraf dist && tsx ./build.ts && yarn copy:package.cjs.json",
|
2023-01-19 13:32:11 +00:00
|
|
|
"postbuild": "publint",
|
2022-10-27 23:46:02 +00:00
|
|
|
"watch": "rimraf dist && tsx ./build.ts --watch && yarn copy:package.cjs.json",
|
2022-07-12 23:25:36 +00:00
|
|
|
"prerelease": "yarn denoify && yarn test:deno && yarn build",
|
2022-07-02 06:52:11 +00:00
|
|
|
"release": "np"
|
2022-02-23 00:58:24 +00:00
|
|
|
},
|
2022-02-01 13:15:00 +00:00
|
|
|
"exports": {
|
2022-09-15 00:56:46 +00:00
|
|
|
".": {
|
2022-12-27 13:59:23 +00:00
|
|
|
"types": "./dist/types/index.d.ts",
|
2022-09-15 00:56:46 +00:00
|
|
|
"import": "./dist/index.js",
|
|
|
|
"require": "./dist/cjs/index.js"
|
|
|
|
},
|
|
|
|
"./basic-auth": {
|
2022-12-27 13:59:23 +00:00
|
|
|
"types": "./dist/types/middleware/basic-auth/index.d.ts",
|
2022-09-15 00:56:46 +00:00
|
|
|
"import": "./dist/middleware/basic-auth/index.js",
|
|
|
|
"require": "./dist/cjs/middleware/basic-auth/index.js"
|
|
|
|
},
|
|
|
|
"./bearer-auth": {
|
2022-12-27 13:59:23 +00:00
|
|
|
"types": "./dist/types/middleware/bearer-auth/index.d.ts",
|
2022-09-15 00:56:46 +00:00
|
|
|
"import": "./dist/middleware/bearer-auth/index.js",
|
|
|
|
"require": "./dist/cjs/middleware/bearer-auth/index.js"
|
|
|
|
},
|
|
|
|
"./cache": {
|
2022-12-27 13:59:23 +00:00
|
|
|
"types": "./dist/types/middleware/cache/index.d.ts",
|
2022-09-15 00:56:46 +00:00
|
|
|
"import": "./dist/middleware/cache/index.js",
|
|
|
|
"require": "./dist/cjs/middleware/cache/index.js"
|
|
|
|
},
|
|
|
|
"./compress": {
|
2022-12-27 13:59:23 +00:00
|
|
|
"types": "./dist/types/middleware/compress/index.d.ts",
|
2022-09-15 00:56:46 +00:00
|
|
|
"import": "./dist/middleware/compress/index.js",
|
|
|
|
"require": "./dist/cjs/middleware/compress/index.js"
|
|
|
|
},
|
|
|
|
"./cors": {
|
2022-12-27 13:59:23 +00:00
|
|
|
"types": "./dist/types/middleware/cors/index.d.ts",
|
2022-09-15 00:56:46 +00:00
|
|
|
"import": "./dist/middleware/cors/index.js",
|
|
|
|
"require": "./dist/cjs/middleware/cors/index.js"
|
|
|
|
},
|
|
|
|
"./etag": {
|
2022-12-27 13:59:23 +00:00
|
|
|
"types": "./dist/types/middleware/etag/index.d.ts",
|
2022-09-15 00:56:46 +00:00
|
|
|
"import": "./dist/middleware/etag/index.js",
|
|
|
|
"require": "./dist/cjs/middleware/etag/index.js"
|
|
|
|
},
|
|
|
|
"./html": {
|
2022-12-27 13:59:23 +00:00
|
|
|
"types": "./dist/types/middleware/html/index.d.ts",
|
2022-09-15 00:56:46 +00:00
|
|
|
"import": "./dist/middleware/html/index.js",
|
|
|
|
"require": "./dist/cjs/middleware/html/index.js"
|
|
|
|
},
|
|
|
|
"./jsx": {
|
2022-12-27 13:59:23 +00:00
|
|
|
"types": "./dist/types/middleware/jsx/index.d.ts",
|
2022-09-15 00:56:46 +00:00
|
|
|
"import": "./dist/middleware/jsx/index.js",
|
|
|
|
"require": "./dist/cjs/middleware/jsx/index.js"
|
|
|
|
},
|
|
|
|
"./jsx/jsx-dev-runtime": {
|
2022-12-27 13:59:23 +00:00
|
|
|
"types": "./dist/types/middleware/jsx/jsx-dev-runtime.d.ts",
|
2022-09-15 00:56:46 +00:00
|
|
|
"import": "./dist/middleware/jsx/jsx-dev-runtime.js",
|
|
|
|
"require": "./dist/cjs/middleware/jsx/jsx-dev-runtime.js"
|
|
|
|
},
|
|
|
|
"./jsx/jsx-runtime": {
|
2022-12-27 13:59:23 +00:00
|
|
|
"types": "./dist/types/middleware/jsx/jsx-runtime.d.ts",
|
2022-09-15 00:56:46 +00:00
|
|
|
"import": "./dist/middleware/jsx/jsx-runtime.js",
|
|
|
|
"require": "./dist/cjs/middleware/jsx/jsx-runtime.js"
|
|
|
|
},
|
|
|
|
"./jwt": {
|
2022-12-27 13:59:23 +00:00
|
|
|
"types": "./dist/types/middleware/jwt/index.d.ts",
|
2022-09-15 00:56:46 +00:00
|
|
|
"import": "./dist/middleware/jwt/index.js",
|
|
|
|
"require": "./dist/cjs/middleware/jwt/index.js"
|
|
|
|
},
|
|
|
|
"./logger": {
|
2022-12-27 13:59:23 +00:00
|
|
|
"types": "./dist/types/middleware/logger/index.d.ts",
|
2022-09-15 00:56:46 +00:00
|
|
|
"import": "./dist/middleware/logger/index.js",
|
|
|
|
"require": "./dist/cjs/middleware/logger/index.js"
|
|
|
|
},
|
|
|
|
"./powered-by": {
|
2022-12-27 13:59:23 +00:00
|
|
|
"types": "./dist/types/middleware/powered-by/index.d.ts",
|
2022-09-15 00:56:46 +00:00
|
|
|
"import": "./dist/middleware/powered-by/index.js",
|
|
|
|
"require": "./dist/cjs/middleware/powered-by/index.js"
|
|
|
|
},
|
|
|
|
"./pretty-json": {
|
2022-12-27 13:59:23 +00:00
|
|
|
"types": "./dist/types/middleware/pretty-json/index.d.ts",
|
2022-09-15 00:56:46 +00:00
|
|
|
"import": "./dist/middleware/pretty-json/index.js",
|
|
|
|
"require": "./dist/cjs/middleware/pretty-json/index.js"
|
|
|
|
},
|
|
|
|
"./serve-static": {
|
2022-12-27 13:59:23 +00:00
|
|
|
"types": "./dist/types/middleware/serve-static/index.d.ts",
|
2022-09-15 00:56:46 +00:00
|
|
|
"import": "./dist/middleware/serve-static/index.js",
|
|
|
|
"require": "./dist/cjs/middleware/serve-static/index.js"
|
|
|
|
},
|
|
|
|
"./serve-static.bun": {
|
2022-12-27 13:59:23 +00:00
|
|
|
"types": "./dist/types/middleware/serve-static/bun.d.ts",
|
2022-09-15 00:56:46 +00:00
|
|
|
"import": "./dist/middleware/serve-static/bun.js",
|
|
|
|
"require": "./dist/cjs/middleware/serve-static/bun.js"
|
|
|
|
},
|
|
|
|
"./serve-static.module": {
|
2022-12-27 13:59:23 +00:00
|
|
|
"types": "./dist/types/middleware/serve-static/module.d.ts",
|
2022-10-27 23:46:02 +00:00
|
|
|
"import": "./dist/middleware/serve-static/module.js"
|
2022-09-15 00:56:46 +00:00
|
|
|
},
|
|
|
|
"./validator": {
|
2022-12-27 13:59:23 +00:00
|
|
|
"types": "./dist/types/middleware/validator/index.d.ts",
|
2022-09-15 00:56:46 +00:00
|
|
|
"import": "./dist/middleware/validator/index.js",
|
|
|
|
"require": "./dist/cjs/middleware/validator/index.js"
|
|
|
|
},
|
|
|
|
"./router/reg-exp-router": {
|
2022-12-27 13:59:23 +00:00
|
|
|
"types": "./dist/types/router/reg-exp-router/index.d.ts",
|
2022-09-15 00:56:46 +00:00
|
|
|
"import": "./dist/router/reg-exp-router/index.js",
|
|
|
|
"require": "./dist/cjs/router/reg-exp-router/index.js"
|
|
|
|
},
|
|
|
|
"./router/smart-router": {
|
2022-12-27 13:59:23 +00:00
|
|
|
"types": "./dist/types/router/smart-router/index.d.ts",
|
2022-09-15 00:56:46 +00:00
|
|
|
"import": "./dist/router/smart-router/index.js",
|
|
|
|
"require": "./dist/cjs/router/smart-router/index.js"
|
|
|
|
},
|
|
|
|
"./router/static-router": {
|
2023-01-04 08:49:48 +00:00
|
|
|
"types": "./dist/types/router/static-router/index.d.ts",
|
|
|
|
"import": "./dist/router/static-router/index.js",
|
2022-09-15 00:56:46 +00:00
|
|
|
"require": "./dist/cjs/router/static-router/index.js"
|
|
|
|
},
|
|
|
|
"./router/trie-router": {
|
2022-12-27 13:59:23 +00:00
|
|
|
"types": "./dist/types/router/trie-router/index.d.ts",
|
2022-09-15 00:56:46 +00:00
|
|
|
"import": "./dist/router/trie-router/index.js",
|
|
|
|
"require": "./dist/cjs/router/trie-router/index.js"
|
|
|
|
},
|
|
|
|
"./utils/jwt": {
|
2022-12-27 13:59:23 +00:00
|
|
|
"types": "./dist/types/utils/jwt/index.d.ts",
|
2022-09-15 00:56:46 +00:00
|
|
|
"import": "./dist/utils/jwt/index.js",
|
|
|
|
"require": "./dist/cjs/utils/jwt/index.js"
|
|
|
|
},
|
|
|
|
"./utils/*": {
|
2022-12-27 13:59:23 +00:00
|
|
|
"types": "./dist/types/utils/*.d.ts",
|
2022-09-15 00:56:46 +00:00
|
|
|
"import": "./dist/utils/*.js",
|
|
|
|
"require": "./dist/cjs/utils/*.js"
|
|
|
|
}
|
2022-02-01 13:15:00 +00:00
|
|
|
},
|
2022-11-20 12:37:37 +00:00
|
|
|
"typesVersions": {
|
|
|
|
"*": {
|
|
|
|
"basic-auth": [
|
2022-12-27 13:59:23 +00:00
|
|
|
"./dist/types/middleware/basic-auth"
|
2022-11-20 12:37:37 +00:00
|
|
|
],
|
|
|
|
"bearer-auth": [
|
2022-12-27 13:59:23 +00:00
|
|
|
"./dist/types/middleware/bearer-auth"
|
2022-11-20 12:37:37 +00:00
|
|
|
],
|
|
|
|
"cache": [
|
2022-12-27 13:59:23 +00:00
|
|
|
"./dist/types/middleware/cache"
|
2022-11-20 12:37:37 +00:00
|
|
|
],
|
|
|
|
"compress": [
|
2022-12-27 13:59:23 +00:00
|
|
|
"./dist/types/middleware/compress"
|
2022-11-20 12:37:37 +00:00
|
|
|
],
|
|
|
|
"cors": [
|
2022-12-27 13:59:23 +00:00
|
|
|
"./dist/types/middleware/cors"
|
2022-11-20 12:37:37 +00:00
|
|
|
],
|
|
|
|
"etag": [
|
2022-12-27 13:59:23 +00:00
|
|
|
"./dist/types/middleware/etag"
|
2022-11-20 12:37:37 +00:00
|
|
|
],
|
|
|
|
"html": [
|
2022-12-27 13:59:23 +00:00
|
|
|
"./dist/types/middleware/html"
|
2022-11-20 12:37:37 +00:00
|
|
|
],
|
|
|
|
"jsx": [
|
2022-12-27 13:59:23 +00:00
|
|
|
"./dist/types/middleware/jsx"
|
2022-11-20 12:37:37 +00:00
|
|
|
],
|
|
|
|
"jsx/jsx-runtime": [
|
2022-12-27 13:59:23 +00:00
|
|
|
"./dist/types/middleware/jsx/jsx-runtime.d.ts"
|
2022-11-20 12:37:37 +00:00
|
|
|
],
|
|
|
|
"jsx/jsx-dev-runtime": [
|
2022-12-27 13:59:23 +00:00
|
|
|
"./dist/types/middleware/jsx/jsx-dev-runtime.d.ts"
|
2022-11-20 12:37:37 +00:00
|
|
|
],
|
|
|
|
"jwt": [
|
2022-12-27 13:59:23 +00:00
|
|
|
"./dist/types/middleware/jwt"
|
2022-11-20 12:37:37 +00:00
|
|
|
],
|
|
|
|
"logger": [
|
2022-12-27 13:59:23 +00:00
|
|
|
"./dist/types/middleware/logger"
|
2022-11-20 12:37:37 +00:00
|
|
|
],
|
|
|
|
"powered-by": [
|
2022-12-27 13:59:23 +00:00
|
|
|
"./dist/types/middleware/powered-by"
|
2022-11-20 12:37:37 +00:00
|
|
|
],
|
|
|
|
"pretty-json": [
|
2022-12-27 13:59:23 +00:00
|
|
|
"./dist/types/middleware/pretty-json"
|
2022-11-20 12:37:37 +00:00
|
|
|
],
|
|
|
|
"serve-static": [
|
2022-12-27 13:59:23 +00:00
|
|
|
"./dist/types/middleware/serve-static/index.d.ts"
|
2022-11-20 12:37:37 +00:00
|
|
|
],
|
|
|
|
"serve-static.bun": [
|
2022-12-27 13:59:23 +00:00
|
|
|
"./dist/types/middleware/serve-static/bun.d.ts"
|
2022-11-20 12:37:37 +00:00
|
|
|
],
|
|
|
|
"serve-static.module": [
|
2022-12-27 13:59:23 +00:00
|
|
|
"./dist/types/middleware/serve-static/module.d.ts"
|
2022-11-20 12:37:37 +00:00
|
|
|
],
|
|
|
|
"validator": [
|
2022-12-27 13:59:23 +00:00
|
|
|
"./dist/types/middleware/validator"
|
2022-11-20 12:37:37 +00:00
|
|
|
],
|
|
|
|
"router/reg-exp-router": [
|
2022-12-27 13:59:23 +00:00
|
|
|
"./dist/types/router/reg-exp-router/router.d.ts"
|
2022-11-20 12:37:37 +00:00
|
|
|
],
|
|
|
|
"router/smart-router": [
|
2022-12-27 13:59:23 +00:00
|
|
|
"./dist/types/router/smart-router/router.d.ts"
|
2022-11-20 12:37:37 +00:00
|
|
|
],
|
|
|
|
"router/static-router": [
|
2022-12-27 13:59:23 +00:00
|
|
|
"./dist/types/router/static-router/router.d.ts"
|
2022-11-20 12:37:37 +00:00
|
|
|
],
|
|
|
|
"router/trie-router": [
|
2022-12-27 13:59:23 +00:00
|
|
|
"./dist/types/router/trie-router/router.d.ts"
|
2022-11-20 12:37:37 +00:00
|
|
|
],
|
|
|
|
"utils/jwt": [
|
2022-12-27 13:59:23 +00:00
|
|
|
"./dist/types/utils/jwt/index.d.ts"
|
2022-11-20 12:37:37 +00:00
|
|
|
],
|
|
|
|
"utils/*": [
|
2022-12-27 13:59:23 +00:00
|
|
|
"./dist/types/utils/*"
|
2022-11-20 12:37:37 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2021-12-14 19:26:22 +00:00
|
|
|
"author": "Yusuke Wada <yusuke@kamawada.com> (https://github.com/yusukebe)",
|
2021-12-14 19:58:45 +00:00
|
|
|
"license": "MIT",
|
2021-12-14 20:26:01 +00:00
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
2022-04-26 08:15:16 +00:00
|
|
|
"url": "https://github.com/honojs/hono.git"
|
2021-12-14 20:26:01 +00:00
|
|
|
},
|
2022-07-02 06:50:17 +00:00
|
|
|
"publishConfig": {
|
|
|
|
"registry": "https://registry.npmjs.org"
|
|
|
|
},
|
2022-09-08 11:16:55 +00:00
|
|
|
"homepage": "https://honojs.dev",
|
2022-01-02 13:01:09 +00:00
|
|
|
"keywords": [
|
2022-07-13 10:55:36 +00:00
|
|
|
"hono",
|
2022-01-02 13:01:09 +00:00
|
|
|
"web",
|
|
|
|
"app",
|
|
|
|
"http",
|
|
|
|
"application",
|
|
|
|
"framework",
|
|
|
|
"router",
|
|
|
|
"cloudflare",
|
|
|
|
"workers",
|
|
|
|
"fastly",
|
2022-07-13 10:55:36 +00:00
|
|
|
"compute@edge",
|
|
|
|
"deno",
|
|
|
|
"bun"
|
2022-01-02 13:01:09 +00:00
|
|
|
],
|
2021-12-14 19:58:45 +00:00
|
|
|
"devDependencies": {
|
2022-11-22 22:27:42 +00:00
|
|
|
"@cloudflare/workers-types": "^4.20221111.1",
|
2022-03-08 10:10:12 +00:00
|
|
|
"@types/crypto-js": "^4.1.1",
|
2022-10-27 23:46:02 +00:00
|
|
|
"@types/glob": "^8.0.0",
|
2022-09-13 23:42:04 +00:00
|
|
|
"@types/jest": "^29.0.2",
|
2022-04-27 06:42:42 +00:00
|
|
|
"@types/node": "^17.0.29",
|
|
|
|
"@typescript-eslint/eslint-plugin": "^5.21.0",
|
|
|
|
"@typescript-eslint/parser": "^5.21.0",
|
2022-10-27 23:46:02 +00:00
|
|
|
"arg": "^5.0.2",
|
2022-03-08 10:10:12 +00:00
|
|
|
"crypto-js": "^4.1.1",
|
2022-09-13 23:42:04 +00:00
|
|
|
"denoify": "^1.1.1",
|
2022-10-27 23:46:02 +00:00
|
|
|
"esbuild": "^0.15.12",
|
2022-04-27 06:42:42 +00:00
|
|
|
"eslint": "^8.14.0",
|
|
|
|
"eslint-config-prettier": "^8.5.0",
|
|
|
|
"eslint-define-config": "^1.4.0",
|
|
|
|
"eslint-import-resolver-typescript": "^2.7.1",
|
2022-01-06 22:03:54 +00:00
|
|
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
2022-04-27 06:42:42 +00:00
|
|
|
"eslint-plugin-flowtype": "^8.0.3",
|
|
|
|
"eslint-plugin-import": "^2.26.0",
|
2022-01-06 22:03:54 +00:00
|
|
|
"eslint-plugin-node": "^11.1.0",
|
2022-01-11 17:14:53 +00:00
|
|
|
"form-data": "^4.0.0",
|
2022-09-13 23:42:04 +00:00
|
|
|
"jest": "^29.0.3",
|
|
|
|
"jest-environment-miniflare": "2.7.1",
|
2022-07-02 06:50:17 +00:00
|
|
|
"np": "^7.6.2",
|
2022-04-27 06:42:42 +00:00
|
|
|
"prettier": "^2.6.2",
|
2023-01-19 13:32:11 +00:00
|
|
|
"publint": "^0.1.8",
|
2022-01-05 09:41:29 +00:00
|
|
|
"rimraf": "^3.0.2",
|
2022-09-13 23:42:04 +00:00
|
|
|
"ts-jest": "^29.0.1",
|
2022-10-27 23:46:02 +00:00
|
|
|
"tsx": "^3.11.0",
|
2022-09-13 23:42:04 +00:00
|
|
|
"typescript": "^4.8.3"
|
2022-01-07 08:44:08 +00:00
|
|
|
},
|
|
|
|
"engines": {
|
2022-09-13 23:42:04 +00:00
|
|
|
"node": ">=16.0.0"
|
2021-12-14 19:58:45 +00:00
|
|
|
}
|
2022-12-27 14:10:37 +00:00
|
|
|
}
|