0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-22 02:27:49 +01:00
hono/jsr.json

124 lines
5.2 KiB
JSON
Raw Normal View History

{
"name": "@hono/hono",
"version": "0.0.0",
"compilerOptions": {
"lib": [
"dom",
"dom.iterable",
"deno.ns"
]
},
"unstable": [
"sloppy-imports"
],
"exports": {
".": "./src/index.ts",
"./request": "./src/request.ts",
"./types": "./src/types.ts",
"./hono-base": "./src/hono-base.ts",
"./tiny": "./src/preset/tiny.ts",
"./quick": "./src/preset/quick.ts",
"./http-exception": "./src/http-exception.ts",
"./basic-auth": "./src/middleware/basic-auth/index.ts",
"./bearer-auth": "./src/middleware/bearer-auth/index.ts",
"./body-limit": "./src/middleware/body-limit/index.ts",
feat: Introduce IP Restriction Middleware (#2813) * feat: Introduce IP Limit Middleware * chore(jsr): add return types * chore: format code * fix: eslint * feat: if allow is empty, set allow at * by default (#3) * feat: if allow is empty, set allow at * by default * fix * feat: remove wildcard * chore: fix spelling * chore: format * chore: sort imports * fix: test * chore: sort imports * feat: renamed `ipLimit` to `ipRestriction` * feat: accept `(c: Context) => string)` * chore: format code * feat: allow/deny -> allowList/denyList * feat: suport function rule * chore: format code * fix: test code * feat: suport custom errors * fix: test code * fix: name in test code * feat: allow function to named function * perf(ip-restriction): optimize ip-restriction middleware by prepare matcher function in advance * feat: don't use random ip in test * chore: ipVn to ipvn * fix: test code * fix: fix type error in ip-restriction middleware test * chore: rename `IPRestrictRule` to `IPRestrictionRule` * docs(ip-restriction): add a comment to explain the normalization of IPv6 address * docs(ip-restriction): fix typo in comment * refactor(ip-restriction): rename convertIPv6ToString to convertIPv6BinaryToString * feat: support to receive `Context` in `onError` * fix: https://github.com/honojs/hono/pull/2813#discussion_r1667327721 * fix: format code * feat: use `Forbidden` * tracking the `next` * remove importing `HonoRequest` --------- Co-authored-by: Ame_x <121654029+EdamAme-x@users.noreply.github.com> Co-authored-by: Taku Amano <taku@taaas.jp> Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2024-07-08 16:26:01 +02:00
"./ip-restriction": "./src/middleware/ip-restriction/index.ts",
"./cache": "./src/middleware/cache/index.ts",
"./cookie": "./src/helper/cookie/index.ts",
"./accepts": "./src/helper/accepts/index.ts",
"./compress": "./src/middleware/compress/index.ts",
"./context-storage": "./src/middleware/context-storage/index.ts",
"./cors": "./src/middleware/cors/index.ts",
"./csrf": "./src/middleware/csrf/index.ts",
"./etag": "./src/middleware/etag/index.ts",
"./trailing-slash": "./src/middleware/trailing-slash/index.ts",
"./html": "./src/helper/html/index.ts",
"./css": "./src/helper/css/index.ts",
"./jsx": "./src/jsx/index.ts",
"./jsx/jsx-dev-runtime": "./src/jsx/jsx-dev-runtime.ts",
"./jsx/jsx-runtime": "./src/jsx/jsx-runtime.ts",
"./jsx/streaming": "./src/jsx/streaming.ts",
"./jsx-renderer": "./src/middleware/jsx-renderer/index.ts",
"./jsx/dom": "./src/jsx/dom/index.ts",
"./jsx/dom/jsx-dev-runtime": "./src/jsx/dom/jsx-dev-runtime.ts",
"./jsx/dom/jsx-runtime": "./src/jsx/dom/jsx-runtime.ts",
"./jsx/dom/client": "./src/jsx/dom/client.ts",
"./jsx/dom/css": "./src/jsx/dom/css.ts",
"./jsx/dom/server": "./src/jsx/dom/server.ts",
"./jwt": "./src/middleware/jwt/jwt.ts",
2024-11-07 02:55:02 +01:00
"./timeout": "./src/middleware/timeout/index.ts",
"./timing": "./src/middleware/timing/timing.ts",
"./logger": "./src/middleware/logger/index.ts",
"./method-override": "./src/middleware/method-override/index.ts",
"./powered-by": "./src/middleware/powered-by/index.ts",
"./pretty-json": "./src/middleware/pretty-json/index.ts",
"./request-id": "./src/middleware/request-id/request-id.ts",
"./secure-headers": "./src/middleware/secure-headers/secure-headers.ts",
"./combine": "./src/middleware/combine/index.ts",
"./ssg": "./src/helper/ssg/index.ts",
"./streaming": "./src/helper/streaming/index.ts",
"./validator": "./src/validator/index.ts",
"./router": "./src/router.ts",
"./router/reg-exp-router": "./src/router/reg-exp-router/index.ts",
"./router/smart-router": "./src/router/smart-router/index.ts",
"./router/trie-router": "./src/router/trie-router/index.ts",
"./router/pattern-router": "./src/router/pattern-router/index.ts",
"./router/linear-router": "./src/router/linear-router/index.ts",
"./client": "./src/client/index.ts",
"./adapter": "./src/helper/adapter/index.ts",
"./factory": "./src/helper/factory/index.ts",
"./serve-static": "./src/middleware/serve-static/index.ts",
"./cloudflare-workers": "./src/adapter/cloudflare-workers/index.ts",
"./cloudflare-pages": "./src/adapter/cloudflare-pages/index.ts",
"./deno": "./src/adapter/deno/index.ts",
"./bun": "./src/adapter/bun/index.ts",
"./aws-lambda": "./src/adapter/aws-lambda/index.ts",
"./vercel": "./src/adapter/vercel/index.ts",
"./netlify": "./src/adapter/netlify/index.ts",
"./lambda-edge": "./src/adapter/lambda-edge/index.ts",
"./service-worker": "./src/adapter/service-worker/index.ts",
"./testing": "./src/helper/testing/index.ts",
"./dev": "./src/helper/dev/index.ts",
"./ws": "./src/helper/websocket/index.ts",
"./conninfo": "./src/helper/conninfo/index.ts",
"./utils/body": "./src/utils/body.ts",
"./utils/buffer": "./src/utils/buffer.ts",
"./utils/color": "./src/utils/color.ts",
"./utils/concurrent": "./src/utils/concurrent.ts",
"./utils/cookie": "./src/utils/cookie.ts",
"./utils/crypto": "./src/utils/crypto.ts",
"./utils/encode": "./src/utils/encode.ts",
"./utils/filepath": "./src/utils/filepath.ts",
"./utils/handler": "./src/utils/handler.ts",
"./utils/headers": "./src/utils/headers.ts",
"./utils/html": "./src/utils/html.ts",
"./utils/http-status": "./src/utils/http-status.ts",
"./utils/jwt": "./src/utils/jwt/index.ts",
2024-06-27 22:49:45 +02:00
"./utils/jwt/jwa": "./src/utils/jwt/jwa.ts",
"./utils/jwt/jws": "./src/utils/jwt/jws.ts",
"./utils/jwt/jwt": "./src/utils/jwt/jwt.ts",
"./utils/jwt/types": "./src/utils/jwt/types.ts",
"./utils/jwt/utf8": "./src/utils/jwt/utf8.ts",
"./utils/mime": "./src/utils/mime.ts",
"./utils/stream": "./src/utils/stream.ts",
"./utils/types": "./src/utils/types.ts",
feat: Introduce IP Restriction Middleware (#2813) * feat: Introduce IP Limit Middleware * chore(jsr): add return types * chore: format code * fix: eslint * feat: if allow is empty, set allow at * by default (#3) * feat: if allow is empty, set allow at * by default * fix * feat: remove wildcard * chore: fix spelling * chore: format * chore: sort imports * fix: test * chore: sort imports * feat: renamed `ipLimit` to `ipRestriction` * feat: accept `(c: Context) => string)` * chore: format code * feat: allow/deny -> allowList/denyList * feat: suport function rule * chore: format code * fix: test code * feat: suport custom errors * fix: test code * fix: name in test code * feat: allow function to named function * perf(ip-restriction): optimize ip-restriction middleware by prepare matcher function in advance * feat: don't use random ip in test * chore: ipVn to ipvn * fix: test code * fix: fix type error in ip-restriction middleware test * chore: rename `IPRestrictRule` to `IPRestrictionRule` * docs(ip-restriction): add a comment to explain the normalization of IPv6 address * docs(ip-restriction): fix typo in comment * refactor(ip-restriction): rename convertIPv6ToString to convertIPv6BinaryToString * feat: support to receive `Context` in `onError` * fix: https://github.com/honojs/hono/pull/2813#discussion_r1667327721 * fix: format code * feat: use `Forbidden` * tracking the `next` * remove importing `HonoRequest` --------- Co-authored-by: Ame_x <121654029+EdamAme-x@users.noreply.github.com> Co-authored-by: Taku Amano <taku@taaas.jp> Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2024-07-08 16:26:01 +02:00
"./utils/url": "./src/utils/url.ts",
"./utils/ipaddr": "./src/utils/ipaddr.ts"
},
"publish": {
"include": [
"jsr.json",
"LICENSE",
"README.md",
"docs/CODE_OF_CONDUCT.md",
"docs/CONTRIBUTING.md",
"docs/MIGRATION.md",
"src/**/*.ts"
],
"exclude": [
"src/**/*.test.ts",
"src/**/*.test.tsx"
]
}
}