mirror of
https://github.com/honojs/hono.git
synced 2024-11-22 02:27:49 +01:00
a801674cf7
* feat: support ES modules!! * fix typo
255 lines
7.4 KiB
JSON
255 lines
7.4 KiB
JSON
{
|
|
"name": "hono",
|
|
"version": "2.1.4",
|
|
"description": "Ultrafast web framework for Cloudflare Workers.",
|
|
"main": "dist/index.js",
|
|
"module": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"test": "jest",
|
|
"test:deno": "deno test --allow-read deno_test",
|
|
"test:bun": "bun wiptest --jsx-import-source ../src/middleware/jsx/jsx-dev-runtime bun_test/index.test.tsx",
|
|
"test:all": "yarn test && yarn test:deno && yarn test:bun",
|
|
"lint": "eslint --ext js,ts src .eslintrc.js",
|
|
"lint:fix": "eslint --ext js,ts src .eslintrc.js --fix",
|
|
"denoify": "rimraf deno_dist && denoify && rimraf 'deno_dist/**/*.test.ts'",
|
|
"build": "rimraf dist && tsc --project tsconfig.build.json && tsc --project tsconfig.build.cjs.json",
|
|
"watch": "tsc --project tsconfig.build.json -w",
|
|
"prerelease": "yarn denoify && yarn test:deno && yarn build",
|
|
"release": "np"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/index.js",
|
|
"require": "./dist/cjs/index.js"
|
|
},
|
|
"./basic-auth": {
|
|
"import": "./dist/middleware/basic-auth/index.js",
|
|
"require": "./dist/cjs/middleware/basic-auth/index.js"
|
|
},
|
|
"./bearer-auth": {
|
|
"import": "./dist/middleware/bearer-auth/index.js",
|
|
"require": "./dist/cjs/middleware/bearer-auth/index.js"
|
|
},
|
|
"./cache": {
|
|
"import": "./dist/middleware/cache/index.js",
|
|
"require": "./dist/cjs/middleware/cache/index.js"
|
|
},
|
|
"./compress": {
|
|
"import": "./dist/middleware/compress/index.js",
|
|
"require": "./dist/cjs/middleware/compress/index.js"
|
|
},
|
|
"./cors": {
|
|
"import": "./dist/middleware/cors/index.js",
|
|
"require": "./dist/cjs/middleware/cors/index.js"
|
|
},
|
|
"./etag": {
|
|
"import": "./dist/middleware/etag/index.js",
|
|
"require": "./dist/cjs/middleware/etag/index.js"
|
|
},
|
|
"./html": {
|
|
"import": "./dist/middleware/html/index.js",
|
|
"require": "./dist/cjs/middleware/html/index.js"
|
|
},
|
|
"./jsx": {
|
|
"import": "./dist/middleware/jsx/index.js",
|
|
"require": "./dist/cjs/middleware/jsx/index.js"
|
|
},
|
|
"./jsx/jsx-dev-runtime": {
|
|
"import": "./dist/middleware/jsx/jsx-dev-runtime.js",
|
|
"require": "./dist/cjs/middleware/jsx/jsx-dev-runtime.js"
|
|
},
|
|
"./jsx/jsx-runtime": {
|
|
"import": "./dist/middleware/jsx/jsx-runtime.js",
|
|
"require": "./dist/cjs/middleware/jsx/jsx-runtime.js"
|
|
},
|
|
"./jwt": {
|
|
"import": "./dist/middleware/jwt/index.js",
|
|
"require": "./dist/cjs/middleware/jwt/index.js"
|
|
},
|
|
"./logger": {
|
|
"import": "./dist/middleware/logger/index.js",
|
|
"require": "./dist/cjs/middleware/logger/index.js"
|
|
},
|
|
"./powered-by": {
|
|
"import": "./dist/middleware/powered-by/index.js",
|
|
"require": "./dist/cjs/middleware/powered-by/index.js"
|
|
},
|
|
"./pretty-json": {
|
|
"import": "./dist/middleware/pretty-json/index.js",
|
|
"require": "./dist/cjs/middleware/pretty-json/index.js"
|
|
},
|
|
"./serve-static": {
|
|
"import": "./dist/middleware/serve-static/index.js",
|
|
"require": "./dist/cjs/middleware/serve-static/index.js"
|
|
},
|
|
"./serve-static.bun": {
|
|
"import": "./dist/middleware/serve-static/bun.js",
|
|
"require": "./dist/cjs/middleware/serve-static/bun.js"
|
|
},
|
|
"./serve-static.module": {
|
|
"import": "./dist/middleware/serve-static/module.mjs"
|
|
},
|
|
"./validator": {
|
|
"import": "./dist/middleware/validator/index.js",
|
|
"require": "./dist/cjs/middleware/validator/index.js"
|
|
},
|
|
"./router/reg-exp-router": {
|
|
"import": "./dist/router/reg-exp-router/index.js",
|
|
"require": "./dist/cjs/router/reg-exp-router/index.js"
|
|
},
|
|
"./router/smart-router": {
|
|
"import": "./dist/router/smart-router/index.js",
|
|
"require": "./dist/cjs/router/smart-router/index.js"
|
|
},
|
|
"./router/static-router": {
|
|
"import": "./dist/router/static-router/index.js",
|
|
"require": "./dist/cjs/router/static-router/index.js"
|
|
},
|
|
"./router/trie-router": {
|
|
"import": "./dist/router/trie-router/index.js",
|
|
"require": "./dist/cjs/router/trie-router/index.js"
|
|
},
|
|
"./utils/jwt": {
|
|
"import": "./dist/utils/jwt/index.js",
|
|
"require": "./dist/cjs/utils/jwt/index.js"
|
|
},
|
|
"./utils/*": {
|
|
"import": "./dist/utils/*.js",
|
|
"require": "./dist/cjs/utils/*.js"
|
|
}
|
|
},
|
|
"typesVersions": {
|
|
"*": {
|
|
"basic-auth": [
|
|
"./dist/middleware/basic-auth"
|
|
],
|
|
"bearer-auth": [
|
|
"./dist/middleware/bearer-auth"
|
|
],
|
|
"cache": [
|
|
"./dist/middleware/cache"
|
|
],
|
|
"compress": [
|
|
"./dist/middleware/compress"
|
|
],
|
|
"cors": [
|
|
"./dist/middleware/cors"
|
|
],
|
|
"etag": [
|
|
"./dist/middleware/etag"
|
|
],
|
|
"html": [
|
|
"./dist/middleware/html"
|
|
],
|
|
"jsx": [
|
|
"./dist/middleware/jsx"
|
|
],
|
|
"jsx/jsx-runtime": [
|
|
"./dist/middleware/jsx/jsx-runtime.d.ts"
|
|
],
|
|
"jsx/jsx-dev-runtime": [
|
|
"./dist/middleware/jsx/jsx-dev-runtime.d.ts"
|
|
],
|
|
"jwt": [
|
|
"./dist/middleware/jwt"
|
|
],
|
|
"logger": [
|
|
"./dist/middleware/logger"
|
|
],
|
|
"powered-by": [
|
|
"./dist/middleware/powered-by"
|
|
],
|
|
"pretty-json": [
|
|
"./dist/middleware/pretty-json"
|
|
],
|
|
"serve-static": [
|
|
"./dist/middleware/serve-static/index.d.ts"
|
|
],
|
|
"serve-static.bun": [
|
|
"./dist/middleware/serve-static/bun.d.ts"
|
|
],
|
|
"serve-static.module": [
|
|
"./dist/middleware/serve-static/module.d.mts"
|
|
],
|
|
"validator": [
|
|
"./dist/middleware/validator"
|
|
],
|
|
"router/reg-exp-router": [
|
|
"./dist/router/reg-exp-router/router.d.ts"
|
|
],
|
|
"router/smart-router": [
|
|
"./dist/router/smart-router/router.d.ts"
|
|
],
|
|
"router/static-router": [
|
|
"./dist/router/static-router/router.d.ts"
|
|
],
|
|
"router/trie-router": [
|
|
"./dist/router/trie-router/router.d.ts"
|
|
],
|
|
"utils/jwt": [
|
|
"./dist/utils/jwt/index.d.ts"
|
|
],
|
|
"utils/*": [
|
|
"./dist/utils/*"
|
|
]
|
|
}
|
|
},
|
|
"author": "Yusuke Wada <yusuke@kamawada.com> (https://github.com/yusukebe)",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/honojs/hono.git"
|
|
},
|
|
"publishConfig": {
|
|
"registry": "https://registry.npmjs.org"
|
|
},
|
|
"homepage": "https://honojs.dev",
|
|
"keywords": [
|
|
"hono",
|
|
"web",
|
|
"app",
|
|
"http",
|
|
"application",
|
|
"framework",
|
|
"router",
|
|
"cloudflare",
|
|
"workers",
|
|
"fastly",
|
|
"compute@edge",
|
|
"deno",
|
|
"bun"
|
|
],
|
|
"devDependencies": {
|
|
"@cloudflare/workers-types": "^3.16.0",
|
|
"@types/crypto-js": "^4.1.1",
|
|
"@types/jest": "^29.0.2",
|
|
"@types/node": "^17.0.29",
|
|
"@typescript-eslint/eslint-plugin": "^5.21.0",
|
|
"@typescript-eslint/parser": "^5.21.0",
|
|
"crypto-js": "^4.1.1",
|
|
"denoify": "^1.1.1",
|
|
"eslint": "^8.14.0",
|
|
"eslint-config-prettier": "^8.5.0",
|
|
"eslint-define-config": "^1.4.0",
|
|
"eslint-import-resolver-typescript": "^2.7.1",
|
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
"eslint-plugin-flowtype": "^8.0.3",
|
|
"eslint-plugin-import": "^2.26.0",
|
|
"eslint-plugin-node": "^11.1.0",
|
|
"form-data": "^4.0.0",
|
|
"jest": "^29.0.3",
|
|
"jest-environment-miniflare": "2.7.1",
|
|
"np": "^7.6.2",
|
|
"prettier": "^2.6.2",
|
|
"rimraf": "^3.0.2",
|
|
"ts-jest": "^29.0.1",
|
|
"typescript": "^4.8.3"
|
|
},
|
|
"engines": {
|
|
"node": ">=16.0.0"
|
|
}
|
|
} |