@zuplo/cli 6.73.30 β 6.73.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/test/invoke-test.d.ts.map +1 -1
- package/dist/test/invoke-test.js +4 -3
- package/dist/test/invoke-test.js.map +1 -1
- package/dist/test/invoke-test.test.d.ts +2 -0
- package/dist/test/invoke-test.test.d.ts.map +1 -0
- package/dist/test/invoke-test.test.js +57 -0
- package/dist/test/invoke-test.test.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@posthog/core/dist/posthog-core.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/posthog-core.js +18 -1
- package/node_modules/@posthog/core/dist/posthog-core.mjs +18 -1
- package/node_modules/@posthog/core/package.json +1 -1
- package/node_modules/@posthog/core/src/posthog-core.ts +28 -1
- package/node_modules/@zuplo/core/package.json +1 -1
- package/node_modules/@zuplo/editor/node_modules/hono/LICENSE +21 -0
- package/node_modules/@zuplo/editor/node_modules/hono/README.md +85 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/aws-lambda/conninfo.js +24 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/aws-lambda/handler.js +364 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/aws-lambda/index.js +9 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/aws-lambda/types.js +0 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/bun/conninfo.js +27 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/bun/index.js +16 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/bun/serve-static.js +30 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/bun/server.js +5 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/bun/ssg.js +17 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/bun/websocket.js +73 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/cloudflare-pages/conninfo.js +9 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/cloudflare-pages/handler.js +67 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/cloudflare-pages/index.js +9 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/cloudflare-workers/conninfo.js +9 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/cloudflare-workers/index.js +9 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/cloudflare-workers/serve-static-module.js +8 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/cloudflare-workers/serve-static.js +22 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/cloudflare-workers/utils.js +35 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/cloudflare-workers/websocket.js +41 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/deno/conninfo.js +14 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/deno/deno.d.js +0 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/deno/index.js +12 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/deno/serve-static.js +40 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/deno/ssg.js +18 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/deno/websocket.js +32 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/lambda-edge/conninfo.js +9 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/lambda-edge/handler.js +96 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/lambda-edge/index.js +7 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/netlify/conninfo.js +9 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/netlify/handler.js +9 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/netlify/index.js +2 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/netlify/mod.js +7 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/service-worker/handler.js +20 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/service-worker/index.js +9 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/service-worker/types.js +0 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/vercel/conninfo.js +10 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/vercel/handler.js +7 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/adapter/vercel/index.js +7 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/aws-lambda/conninfo.js +46 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/aws-lambda/handler.js +395 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/aws-lambda/index.js +34 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/aws-lambda/types.js +15 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/bun/conninfo.js +49 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/bun/index.js +45 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/bun/serve-static.js +52 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/bun/server.js +27 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/bun/ssg.js +40 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/bun/websocket.js +98 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/cloudflare-pages/conninfo.js +31 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/cloudflare-pages/handler.js +91 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/cloudflare-pages/index.js +34 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/cloudflare-workers/conninfo.js +31 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/cloudflare-workers/index.js +33 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/cloudflare-workers/serve-static-module.js +30 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/cloudflare-workers/serve-static.js +44 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/cloudflare-workers/utils.js +57 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/cloudflare-workers/websocket.js +63 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/deno/conninfo.js +36 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/deno/deno.d.js +0 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/deno/index.js +38 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/deno/serve-static.js +62 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/deno/ssg.js +41 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/deno/websocket.js +54 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/lambda-edge/conninfo.js +31 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/lambda-edge/handler.js +130 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/lambda-edge/index.js +30 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/netlify/conninfo.js +31 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/netlify/handler.js +31 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/netlify/index.js +21 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/netlify/mod.js +30 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/service-worker/handler.js +42 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/service-worker/index.js +32 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/service-worker/types.js +15 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/vercel/conninfo.js +32 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/vercel/handler.js +29 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/adapter/vercel/index.js +30 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/client/client.js +204 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/client/fetch-result-please.js +85 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/client/index.js +32 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/client/types.js +15 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/client/utils.js +105 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/compose.js +68 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/context.js +435 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/helper/accepts/accepts.js +43 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/helper/accepts/index.js +27 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/helper/adapter/index.js +81 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/helper/conninfo/index.js +15 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/helper/conninfo/types.js +15 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/helper/cookie/index.js +130 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/helper/css/common.js +273 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/helper/css/index.js +157 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/helper/dev/index.js +79 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/helper/factory/index.js +54 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/helper/html/index.js +64 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/helper/proxy/index.js +111 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/helper/route/index.js +71 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/helper/ssg/index.js +43 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/helper/ssg/middleware.js +73 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/helper/ssg/plugins.js +70 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/helper/ssg/ssg.js +320 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/helper/ssg/utils.js +93 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/helper/streaming/index.js +35 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/helper/streaming/sse.js +91 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/helper/streaming/stream.js +56 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/helper/streaming/text.js +34 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/helper/streaming/utils.js +35 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/helper/testing/index.js +33 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/helper/websocket/index.js +81 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/hono-base.js +405 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/hono.js +43 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/http-exception.js +57 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/index.js +30 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/jsx/base.js +374 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/jsx/children.js +44 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/jsx/components.js +221 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/jsx/constants.js +42 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/jsx/context.js +188 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/jsx/dom/client.js +76 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/jsx/dom/components.js +55 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/jsx/dom/context.js +71 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/jsx/dom/css.js +168 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/jsx/dom/hooks/index.js +74 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/jsx/dom/index.js +181 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/jsx/dom/intrinsic-element/components.js +399 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/jsx/dom/jsx-dev-runtime.js +52 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/jsx/dom/jsx-runtime.js +32 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/jsx/dom/render.js +641 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/jsx/dom/server.js +67 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/jsx/dom/utils.js +32 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/jsx/hooks/index.js +370 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/jsx/index.js +138 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/jsx/intrinsic-element/common.js +50 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/jsx/intrinsic-element/components.js +189 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/jsx/intrinsic-elements.js +15 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/jsx/jsx-dev-runtime.js +41 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/jsx/jsx-runtime.js +71 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/jsx/streaming.js +179 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/jsx/types.js +15 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/jsx/utils.js +200 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/basic-auth/index.js +88 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +114 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/body-limit/index.js +75 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/cache/index.js +124 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/combine/index.js +101 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/compress/index.js +92 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/context-storage/index.js +47 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/cors/index.js +106 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/csrf/index.js +77 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/etag/digest.js +55 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/etag/index.js +96 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/ip-restriction/index.js +176 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/jsx-renderer/index.js +82 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/jwk/index.js +27 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/jwk/jwk.js +134 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/jwt/index.js +38 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/jwt/jwt.js +140 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/language/index.js +35 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/language/language.js +199 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/logger/index.js +72 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/method-override/index.js +106 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/powered-by/index.js +32 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/pretty-json/index.js +37 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/request-id/index.js +27 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/request-id/request-id.js +43 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/secure-headers/index.js +29 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/secure-headers/permissions-policy.js +15 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/secure-headers/secure-headers.js +195 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/serve-static/index.js +99 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/serve-static/path.js +40 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/timeout/index.js +47 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/timing/index.js +35 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/timing/timing.js +130 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/middleware/trailing-slash/index.js +62 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/package.json +3 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/preset/quick.js +38 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/preset/tiny.js +34 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/request/constants.js +27 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/request.js +344 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/router/linear-router/index.js +27 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/router/linear-router/router.js +140 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/router/pattern-router/index.js +27 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/router/pattern-router/router.js +70 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/router/reg-exp-router/index.js +34 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/router/reg-exp-router/matcher.js +48 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/router/reg-exp-router/node.js +134 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/router/reg-exp-router/prepared-router.js +166 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/router/reg-exp-router/router.js +208 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/router/reg-exp-router/trie.js +81 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/router/smart-router/index.js +27 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/router/smart-router/router.js +80 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/router/trie-router/index.js +27 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/router/trie-router/node.js +210 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/router/trie-router/router.js +48 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/router.js +40 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/types.js +28 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/utils/accept.js +245 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/utils/basic-auth.js +45 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/utils/body.js +111 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/utils/buffer.js +103 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/utils/color.js +48 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/utils/compress.js +27 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/utils/concurrent.js +61 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/utils/constants.js +27 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/utils/cookie.js +198 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/utils/crypto.js +69 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/utils/encode.js +54 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/utils/filepath.js +58 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/utils/handler.js +36 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/utils/headers.js +15 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/utils/html.js +150 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/utils/http-status.js +15 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/utils/ipaddr.js +318 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/utils/jwt/index.js +28 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/utils/jwt/jwa.js +42 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/utils/jwt/jws.js +215 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/utils/jwt/jwt.js +219 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/utils/jwt/types.js +161 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/utils/jwt/utf8.js +30 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/utils/mime.js +106 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/utils/stream.js +103 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/utils/types.js +15 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/utils/url.js +256 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/validator/index.js +27 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/validator/utils.js +15 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/cjs/validator/validator.js +108 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/client/client.js +189 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/client/fetch-result-please.js +62 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/client/index.js +8 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/client/types.js +0 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/client/utils.js +76 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/compose.js +46 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/context.js +412 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/helper/accepts/accepts.js +20 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/helper/accepts/index.js +5 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/helper/adapter/index.js +56 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/helper/conninfo/index.js +0 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/helper/conninfo/types.js +0 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/helper/cookie/index.js +102 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/helper/css/common.js +236 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/helper/css/index.js +140 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/helper/dev/index.js +55 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/helper/factory/index.js +30 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/helper/html/index.js +41 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/helper/proxy/index.js +89 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/helper/route/index.js +46 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/helper/ssg/index.js +19 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/helper/ssg/middleware.js +45 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/helper/ssg/plugins.js +47 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/helper/ssg/ssg.js +297 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/helper/ssg/utils.js +67 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/helper/streaming/index.js +10 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/helper/streaming/sse.js +68 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/helper/streaming/stream.js +34 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/helper/streaming/text.js +12 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/helper/streaming/utils.js +13 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/helper/testing/index.js +11 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/helper/websocket/index.js +57 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/hono-base.js +383 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/hono.js +21 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/http-exception.js +35 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/index.js +7 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/jsx/base.js +342 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/jsx/children.js +21 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/jsx/components.js +198 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/jsx/constants.js +15 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/jsx/context.js +162 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/jsx/dom/client.js +53 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/jsx/dom/components.js +32 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/jsx/dom/context.js +48 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/jsx/dom/css.js +150 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/jsx/dom/hooks/index.js +48 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/jsx/dom/index.js +142 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/jsx/dom/intrinsic-element/components.js +374 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/jsx/dom/jsx-dev-runtime.js +19 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/jsx/dom/jsx-runtime.js +8 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/jsx/dom/render.js +617 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/jsx/dom/server.js +33 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/jsx/dom/utils.js +10 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/jsx/hooks/index.js +328 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/jsx/index.js +103 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/jsx/intrinsic-element/common.js +24 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/jsx/intrinsic-element/components.js +165 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/jsx/intrinsic-elements.js +0 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/jsx/jsx-dev-runtime.js +18 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/jsx/jsx-runtime.js +44 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/jsx/streaming.js +155 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/jsx/types.js +0 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/jsx/utils.js +175 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/basic-auth/index.js +66 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/bearer-auth/index.js +92 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/body-limit/index.js +53 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/cache/index.js +102 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/combine/index.js +77 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/compress/index.js +69 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/context-storage/index.js +23 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/cors/index.js +84 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/csrf/index.js +55 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/etag/digest.js +33 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/etag/index.js +73 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/ip-restriction/index.js +162 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/jsx-renderer/index.js +58 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/jwk/index.js +5 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/jwk/jwk.js +112 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/jwt/index.js +11 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/jwt/jwt.js +114 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/language/index.js +15 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/language/language.js +168 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/logger/index.js +44 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/method-override/index.js +84 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/powered-by/index.js +10 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/pretty-json/index.js +15 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/request-id/index.js +5 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/request-id/request-id.js +21 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/secure-headers/index.js +6 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/secure-headers/permissions-policy.js +0 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/secure-headers/secure-headers.js +172 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/serve-static/index.js +77 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/serve-static/path.js +18 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/timeout/index.js +25 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/timing/index.js +9 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/timing/timing.js +104 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/middleware/trailing-slash/index.js +39 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/preset/quick.js +16 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/preset/tiny.js +12 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/request/constants.js +5 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/request.js +321 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/router/linear-router/index.js +5 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/router/linear-router/router.js +118 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/router/pattern-router/index.js +5 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/router/pattern-router/router.js +48 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/router/reg-exp-router/index.js +9 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/router/reg-exp-router/matcher.js +25 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/router/reg-exp-router/node.js +111 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/router/reg-exp-router/prepared-router.js +142 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/router/reg-exp-router/router.js +190 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/router/reg-exp-router/trie.js +59 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/router/smart-router/index.js +5 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/router/smart-router/router.js +58 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/router/trie-router/index.js +5 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/router/trie-router/node.js +188 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/router/trie-router/router.js +26 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/router.js +14 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/aws-lambda/conninfo.d.ts +27 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/aws-lambda/handler.d.ts +184 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/aws-lambda/index.d.ts +8 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/aws-lambda/types.d.ts +153 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/bun/conninfo.d.ts +7 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/bun/index.d.ts +10 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/bun/serve-static.d.ts +3 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/bun/server.d.ts +12 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/bun/ssg.d.ts +13 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/bun/websocket.d.ts +39 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/cloudflare-pages/conninfo.d.ts +21 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/cloudflare-pages/handler.d.ts +33 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/cloudflare-pages/index.d.ts +7 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/cloudflare-workers/conninfo.d.ts +2 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/cloudflare-workers/index.d.ts +7 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static-module.d.ts +4 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/cloudflare-workers/serve-static.d.ts +16 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/cloudflare-workers/utils.d.ts +5 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/cloudflare-workers/websocket.d.ts +2 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/deno/conninfo.d.ts +7 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/deno/index.d.ts +8 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/deno/serve-static.d.ts +3 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/deno/ssg.d.ts +13 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/deno/websocket.d.ts +2 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/lambda-edge/conninfo.d.ts +2 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/lambda-edge/handler.d.ts +87 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/lambda-edge/index.d.ts +7 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/netlify/conninfo.d.ts +21 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/netlify/handler.d.ts +2 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/netlify/index.d.ts +5 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/netlify/mod.d.ts +2 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/service-worker/handler.d.ts +16 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/service-worker/index.d.ts +28 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/service-worker/types.d.ts +12 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/vercel/conninfo.d.ts +2 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/vercel/handler.d.ts +2 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/adapter/vercel/index.d.ts +6 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/client/client.d.ts +4 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/client/fetch-result-please.d.ts +35 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/client/index.d.ts +7 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/client/types.d.ts +229 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/client/utils.d.ts +18 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/compose.d.ts +14 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/context.d.ts +455 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/helper/accepts/accepts.d.ts +30 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/helper/accepts/index.d.ts +5 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/helper/adapter/index.d.ts +12 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/helper/conninfo/index.d.ts +5 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/helper/conninfo/types.d.ts +36 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/helper/cookie/index.d.ts +24 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/helper/css/common.d.ts +59 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/helper/css/index.d.ts +80 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/helper/dev/index.d.ts +20 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/helper/factory/index.d.ts +82 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/helper/html/index.d.ts +8 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/helper/proxy/index.d.ts +72 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/helper/route/index.d.ts +75 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/helper/ssg/index.d.ts +7 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/helper/ssg/middleware.d.ts +44 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/helper/ssg/plugins.d.ts +27 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/helper/ssg/ssg.d.ts +91 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/helper/ssg/utils.d.ts +16 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/helper/streaming/index.d.ts +8 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/helper/streaming/sse.d.ts +13 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/helper/streaming/stream.d.ts +3 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/helper/streaming/text.d.ts +3 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/helper/streaming/utils.d.ts +1 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/helper/testing/index.d.ts +12 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/helper/websocket/index.d.ts +69 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/hono-base.d.ts +220 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/hono.d.ts +19 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/http-exception.d.ts +59 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/index.d.ts +37 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/jsx/base.d.ts +56 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/jsx/children.d.ts +9 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/jsx/components.d.ts +15 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/jsx/constants.d.ts +6 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/jsx/context.d.ts +51 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/jsx/dom/client.d.ts +31 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/jsx/dom/components.d.ts +10 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/jsx/dom/context.d.ts +3 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/jsx/dom/css.d.ts +83 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/jsx/dom/hooks/index.d.ts +39 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/jsx/dom/index.d.ts +88 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/jsx/dom/intrinsic-element/components.d.ts +16 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/jsx/dom/jsx-dev-runtime.d.ts +8 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/jsx/dom/jsx-runtime.d.ts +7 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/jsx/dom/render.d.ts +73 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/jsx/dom/server.d.ts +106 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/jsx/dom/utils.d.ts +1 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/jsx/hooks/index.d.ts +45 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/jsx/index.d.ts +75 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/jsx/intrinsic-element/common.d.ts +6 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/jsx/intrinsic-element/components.d.ts +13 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/jsx/intrinsic-elements.d.ts +722 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/jsx/jsx-dev-runtime.d.ts +8 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/jsx/jsx-runtime.d.ts +12 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/jsx/streaming.d.ts +36 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/jsx/types.d.ts +35 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/jsx/utils.d.ts +4 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/basic-auth/index.d.ts +75 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/bearer-auth/index.d.ts +92 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/body-limit/index.d.ts +45 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/cache/index.d.ts +43 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/combine/index.d.ts +85 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/compress/index.d.ts +40 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/context-storage/index.d.ts +40 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/cors/index.d.ts +55 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/csrf/index.d.ts +78 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/etag/digest.d.ts +1 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/etag/index.d.ts +42 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/ip-restriction/index.d.ts +67 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts +77 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/jwk/index.d.ts +1 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/jwk/jwk.d.ts +54 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/jwt/index.d.ts +8 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/jwt/jwt.d.ts +67 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/language/index.d.ts +7 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/language/language.d.ts +120 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/logger/index.d.ts +24 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/method-override/index.d.ts +48 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/powered-by/index.d.ts +29 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/pretty-json/index.d.ts +42 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/request-id/index.d.ts +7 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/request-id/request-id.d.ts +37 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/secure-headers/index.d.ts +8 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/secure-headers/permissions-policy.d.ts +14 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/secure-headers/secure-headers.d.ts +109 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/serve-static/index.d.ts +31 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/serve-static/path.d.ts +5 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/timeout/index.d.ts +31 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/timing/index.d.ts +7 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/timing/timing.d.ts +129 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/middleware/trailing-slash/index.d.ts +94 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/package.json +3 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/preset/quick.d.ts +10 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/preset/tiny.d.ts +10 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/request/constants.d.ts +1 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/request.d.ts +324 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/router/linear-router/index.d.ts +5 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/router/linear-router/router.d.ts +7 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/router/pattern-router/index.d.ts +5 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/router/pattern-router/router.d.ts +7 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/router/reg-exp-router/index.d.ts +6 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/router/reg-exp-router/matcher.d.ts +7 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/router/reg-exp-router/node.d.ts +10 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/router/reg-exp-router/prepared-router.d.ts +17 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/router/reg-exp-router/router.d.ts +11 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/router/reg-exp-router/trie.d.ts +7 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/router/smart-router/index.d.ts +5 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/router/smart-router/router.d.ts +11 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/router/trie-router/index.d.ts +5 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/router/trie-router/node.d.ts +7 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/router/trie-router/router.d.ts +8 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/router.d.ts +97 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/types.d.ts +573 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/utils/accept.d.ts +6 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/utils/basic-auth.d.ts +5 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/utils/body.d.ts +79 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/utils/buffer.d.ts +17 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/utils/color.d.ts +21 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/utils/compress.d.ts +8 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/utils/concurrent.d.ts +11 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/utils/constants.d.ts +4 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/utils/cookie.d.ts +40 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/utils/crypto.d.ts +15 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/utils/encode.d.ts +8 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/utils/filepath.d.ts +12 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/utils/handler.d.ts +6 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/utils/headers.d.ts +8 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/utils/html.d.ts +44 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/utils/http-status.d.ts +32 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/utils/ipaddr.d.ts +56 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/utils/jwt/index.d.ts +18 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/utils/jwt/jwa.d.ts +23 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/utils/jwt/jws.d.ts +12 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/utils/jwt/jwt.d.ts +43 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/utils/jwt/types.d.ts +86 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/utils/jwt/utf8.d.ts +6 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/utils/mime.d.ts +70 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/utils/stream.d.ts +31 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/utils/types.d.ts +74 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/utils/url.d.ts +39 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/validator/index.d.ts +7 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/validator/utils.d.ts +29 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types/validator/validator.d.ts +16 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/types.js +6 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/utils/accept.js +223 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/utils/basic-auth.js +23 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/utils/body.js +89 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/utils/buffer.js +78 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/utils/color.js +25 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/utils/compress.js +5 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/utils/concurrent.js +39 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/utils/constants.js +5 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/utils/cookie.js +173 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/utils/crypto.js +44 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/utils/encode.js +29 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/utils/filepath.js +35 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/utils/handler.js +13 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/utils/headers.js +0 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/utils/html.js +123 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/utils/http-status.js +0 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/utils/ipaddr.js +288 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/utils/jwt/index.js +6 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/utils/jwt/jwa.js +20 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/utils/jwt/jws.js +192 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/utils/jwt/jwt.js +207 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/utils/jwt/types.js +124 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/utils/jwt/utf8.js +7 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/utils/mime.js +82 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/utils/stream.js +81 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/utils/types.js +0 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/utils/url.js +222 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/validator/index.js +5 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/validator/utils.js +0 -0
- package/node_modules/@zuplo/editor/node_modules/hono/dist/validator/validator.js +86 -0
- package/node_modules/@zuplo/editor/node_modules/hono/package.json +699 -0
- package/node_modules/@zuplo/graphql/package.json +1 -1
- package/node_modules/@zuplo/openapi-tools/package.json +1 -1
- package/node_modules/@zuplo/otel/out/esm/chunk-6UX7NFNJ.js +26 -0
- package/node_modules/@zuplo/otel/out/esm/chunk-6UX7NFNJ.js.map +1 -0
- package/node_modules/@zuplo/otel/out/esm/index.js +1 -1
- package/node_modules/@zuplo/otel/package.json +1 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-TOMTVLZA.js +405 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-TOMTVLZA.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/index.js.map +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js.map +1 -1
- package/node_modules/@zuplo/runtime/out/types/index.d.ts +18 -0
- package/node_modules/@zuplo/runtime/package.json +1 -1
- package/node_modules/fast-uri/index.js +37 -1
- package/node_modules/fast-uri/package.json +1 -1
- package/node_modules/fast-uri/test/security.test.js +136 -0
- package/node_modules/hono/dist/cjs/jsx/hooks/index.js +14 -11
- package/node_modules/hono/dist/cjs/utils/cookie.js +2 -1
- package/node_modules/hono/dist/jsx/hooks/index.js +14 -11
- package/node_modules/hono/dist/utils/cookie.js +2 -1
- package/node_modules/hono/package.json +2 -3
- package/node_modules/ip-address/README.md +142 -128
- package/node_modules/ip-address/dist/common.d.ts +6 -0
- package/node_modules/ip-address/dist/common.js +17 -1
- package/node_modules/ip-address/dist/common.js.map +1 -1
- package/node_modules/ip-address/dist/ipv4.js +3 -12
- package/node_modules/ip-address/dist/ipv4.js.map +1 -1
- package/node_modules/ip-address/dist/ipv6.d.ts +9 -2
- package/node_modules/ip-address/dist/ipv6.js +35 -16
- package/node_modules/ip-address/dist/ipv6.js.map +1 -1
- package/node_modules/ip-address/package.json +5 -3
- package/package.json +6 -6
- package/node_modules/@zuplo/otel/out/esm/chunk-6IEB7H3W.js +0 -26
- package/node_modules/@zuplo/otel/out/esm/chunk-6IEB7H3W.js.map +0 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-6E46244D.js +0 -405
- package/node_modules/@zuplo/runtime/out/esm/chunk-6E46244D.js.map +0 -1
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-6E46244D.js.LEGAL.txt β chunk-TOMTVLZA.js.LEGAL.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoke-test.d.ts","sourceRoot":"","sources":["../../src/test/invoke-test.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAS,MAAM,OAAO,CAAC;AAI/C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AASzC,wBAAsB,QAAQ,CAC5B,IAAI,EAAE,SAAS,GACd,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"invoke-test.d.ts","sourceRoot":"","sources":["../../src/test/invoke-test.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAS,MAAM,OAAO,CAAC;AAI/C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AASzC,wBAAsB,QAAQ,CAC5B,IAAI,EAAE,SAAS,GACd,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,CAAC,CAwBpD"}
|
package/dist/test/invoke-test.js
CHANGED
|
@@ -17,13 +17,14 @@ export async function runTests(argv) {
|
|
|
17
17
|
const testTargets = serialTestTargets.length > 0
|
|
18
18
|
? serialTestTargets
|
|
19
19
|
: [compiledTestGlob(argv.dir)];
|
|
20
|
+
let failedResult;
|
|
20
21
|
for (const testTarget of testTargets) {
|
|
21
22
|
const result = await runNodeTest(nodeExecutable, [...args, testTarget]);
|
|
22
|
-
if (result.exitCode !== 0) {
|
|
23
|
-
|
|
23
|
+
if (result.exitCode !== 0 && failedResult === undefined) {
|
|
24
|
+
failedResult = result;
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
|
-
return { exitCode: 0 };
|
|
27
|
+
return failedResult ?? { exitCode: 0 };
|
|
27
28
|
}
|
|
28
29
|
else {
|
|
29
30
|
throw new MissingNodeExecutableError();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoke-test.js","sourceRoot":"","sources":["../../src/test/invoke-test.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAmB,KAAK,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,MAAM,WAAW,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EA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AC;QACH,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC;QACjC,OAAO,MAAM,CAAC;IAChB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QAIb,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAClB,OAAO,EAAE,QAAQ,EAAE,GAAG,CAAC,QAAQ,EAAE,CAAC;IACpC,CAAC;AACH,CAAC","sourcesContent":["import path from \"node:path\";\nimport { ExecaReturnBase, execa } from \"execa\";\nimport fg from \"fast-glob\";\nimport { TEST_OUT_FOLDER } from \"../common/constants.js\";\nimport { logger } from \"../common/logger.js\";\nimport { Arguments } from \"./handler.js\";\n\nclass MissingNodeExecutableError extends Error {\n constructor() {\n super(\"Missing executable: Cannot locate node executable\");\n Object.setPrototypeOf(this, MissingNodeExecutableError.prototype);\n }\n}\n\nexport async function runTests(\n argv: Arguments\n): Promise<Pick<ExecaReturnBase<string>, \"exitCode\">> {\n // Assume that \"node\" is in the path\n const nodeExecutable = process.platform === \"win32\" ? \"node.exe\" : \"node\";\n if (nodeExecutable) {\n const args = buildNodeTestArgs(argv);\n const serialTestTargets =\n argv.testConcurrency === 1 ? findCompiledTestFiles(argv.dir) : [];\n const testTargets =\n serialTestTargets.length > 0\n ? serialTestTargets\n : [compiledTestGlob(argv.dir)];\n let failedResult: Pick<ExecaReturnBase<string>, \"exitCode\"> | undefined;\n\n for (const testTarget of testTargets) {\n const result = await runNodeTest(nodeExecutable, [...args, testTarget]);\n if (result.exitCode !== 0 && failedResult === undefined) {\n failedResult = result;\n }\n }\n\n return failedResult ?? { exitCode: 0 };\n } else {\n throw new MissingNodeExecutableError();\n }\n}\n\nfunction buildNodeTestArgs(argv: Arguments): string[] {\n const args = [\"--test\", \"--test-reporter=spec\", \"--enable-source-maps\"];\n if (argv.testConcurrency !== undefined && argv.testConcurrency !== 1) {\n args.push(`--test-concurrency=${argv.testConcurrency}`);\n }\n if (argv.filter) {\n args.push(\"--test-name-pattern\", argv.filter);\n }\n return args;\n}\n\nfunction compiledTestGlob(dir: string): string {\n const nodeVersion = parseInt(process.versions.node.split(\".\")[0], 10);\n return nodeVersion >= 21\n ? path.join(dir, TEST_OUT_FOLDER, \"**\", \"*.test.mjs\")\n : path.join(dir, TEST_OUT_FOLDER);\n}\n\nfunction findCompiledTestFiles(dir: string): string[] {\n const normalizedDir = path.normalize(dir);\n const testOutDir = fg.convertPathToPattern(\n path.join(normalizedDir, TEST_OUT_FOLDER)\n );\n return fg.sync(path.posix.join(testOutDir, \"**\", \"*.test.mjs\")).sort();\n}\n\nasync function runNodeTest(\n nodeExecutable: string,\n args: string[]\n): Promise<Pick<ExecaReturnBase<string>, \"exitCode\">> {\n const nodeProcess = execa(nodeExecutable, args);\n nodeProcess.stdout?.pipe(process.stdout);\n nodeProcess.stderr?.pipe(process.stderr);\n try {\n const result = await nodeProcess;\n return result;\n } catch (err) {\n // We do not want to output the err by default since it could be a test\n // failure. Test failures are already reported by piping stdout and stderr\n // above.\n logger.debug(err);\n return { exitCode: err.exitCode };\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoke-test.test.d.ts","sourceRoot":"","sources":["../../src/test/invoke-test.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { spawn } from "node:child_process";
|
|
2
|
+
import { access, mkdir, mkdtemp, rm, writeFile } from "node:fs/promises";
|
|
3
|
+
import os from "node:os";
|
|
4
|
+
import path from "node:path";
|
|
5
|
+
import { describe, it } from "node:test";
|
|
6
|
+
import { expect } from "chai";
|
|
7
|
+
import { TEST_OUT_FOLDER } from "../common/constants.js";
|
|
8
|
+
describe("runTests", () => {
|
|
9
|
+
it("runs every compiled test file serially after a failure", async () => {
|
|
10
|
+
const testDir = await mkdtemp(path.join(os.tmpdir(), "zuplo-run-tests-serial-"));
|
|
11
|
+
try {
|
|
12
|
+
const compiledTestDir = path.join(testDir, TEST_OUT_FOLDER);
|
|
13
|
+
const secondTestMarker = path.join(testDir, "second-test-ran");
|
|
14
|
+
await mkdir(compiledTestDir, { recursive: true });
|
|
15
|
+
await writeFile(path.join(compiledTestDir, "a-first.test.mjs"), [
|
|
16
|
+
'import test from "node:test";',
|
|
17
|
+
'test("Moonshot first", () => {',
|
|
18
|
+
' throw new Error("expected failure");',
|
|
19
|
+
"});",
|
|
20
|
+
].join("\n"));
|
|
21
|
+
await writeFile(path.join(compiledTestDir, "b-second.test.mjs"), [
|
|
22
|
+
'import { writeFileSync } from "node:fs";',
|
|
23
|
+
'import test from "node:test";',
|
|
24
|
+
'test("Moonshot second", () => {',
|
|
25
|
+
` writeFileSync(${JSON.stringify(secondTestMarker)}, "ran");`,
|
|
26
|
+
"});",
|
|
27
|
+
].join("\n"));
|
|
28
|
+
const environment = { ...process.env };
|
|
29
|
+
delete environment.NODE_TEST_CONTEXT;
|
|
30
|
+
const invokeTestUrl = new URL("./invoke-test.js", import.meta.url).href;
|
|
31
|
+
const script = [
|
|
32
|
+
`import { runTests } from ${JSON.stringify(invokeTestUrl)};`,
|
|
33
|
+
`const result = await runTests(${JSON.stringify({
|
|
34
|
+
dir: testDir,
|
|
35
|
+
endpoint: "http://localhost",
|
|
36
|
+
filter: "Moonshot",
|
|
37
|
+
testConcurrency: 1,
|
|
38
|
+
})});`,
|
|
39
|
+
"process.exitCode = result.exitCode;",
|
|
40
|
+
].join("\n");
|
|
41
|
+
const exitCode = await new Promise((resolve, reject) => {
|
|
42
|
+
const child = spawn(process.execPath, ["--input-type=module", "--eval", script], {
|
|
43
|
+
env: environment,
|
|
44
|
+
stdio: "ignore",
|
|
45
|
+
});
|
|
46
|
+
child.once("error", reject);
|
|
47
|
+
child.once("exit", resolve);
|
|
48
|
+
});
|
|
49
|
+
expect(exitCode).not.to.equal(0);
|
|
50
|
+
await access(secondTestMarker);
|
|
51
|
+
}
|
|
52
|
+
finally {
|
|
53
|
+
await rm(testDir, { recursive: true, force: true });
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
//# sourceMappingURL=invoke-test.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoke-test.test.js","sourceRoot":"","sources":["../../src/test/invoke-test.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;IACxB,EAAE,CAAC,wDAAwD,EAAE,KAAK,IAAI,EAAE;QACtE,MAAM,OAAO,GAAG,MAAM,OAAO,CAC3B,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,yBAAyB,CAAC,CAClD,CAAC;QAEF,IAAI,CAAC;YACH,MAAM,eAAe,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;YAC5D,MAAM,gBAAgB,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;YAC/D,MAAM,KAAK,CAAC,eAAe,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;YAClD,MAAM,SAAS,CACb,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,kBAAkB,CAAC,EAC9C;gBACE,+BAA+B;gBAC/B,gCAAgC;gBAChC,wCAAwC;gBACxC,KAAK;aACN,CAAC,IAAI,CAAC,IAAI,CAAC,CACb,CAAC;YACF,MAAM,SAAS,CACb,IAAI,CAA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CAAC,CAAC;YACjC,MAAM,MAAM,CAAC,gBAAgB,CAAC,CAAC;QACjC,CAAC;gBAAS,CAAC;YACT,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;QACtD,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { spawn } from \"node:child_process\";\nimport { access, mkdir, mkdtemp, rm, writeFile } from \"node:fs/promises\";\nimport os from \"node:os\";\nimport path from \"node:path\";\nimport { describe, it } from \"node:test\";\nimport { expect } from \"chai\";\nimport { TEST_OUT_FOLDER } from \"../common/constants.js\";\n\ndescribe(\"runTests\", () => {\n it(\"runs every compiled test file serially after a failure\", async () => {\n const testDir = await mkdtemp(\n path.join(os.tmpdir(), \"zuplo-run-tests-serial-\")\n );\n\n try {\n const compiledTestDir = path.join(testDir, TEST_OUT_FOLDER);\n const secondTestMarker = path.join(testDir, \"second-test-ran\");\n await mkdir(compiledTestDir, { recursive: true });\n await writeFile(\n path.join(compiledTestDir, \"a-first.test.mjs\"),\n [\n 'import test from \"node:test\";',\n 'test(\"Moonshot first\", () => {',\n ' throw new Error(\"expected failure\");',\n \"});\",\n ].join(\"\\n\")\n );\n await writeFile(\n path.join(compiledTestDir, \"b-second.test.mjs\"),\n [\n 'import { writeFileSync } from \"node:fs\";',\n 'import test from \"node:test\";',\n 'test(\"Moonshot second\", () => {',\n ` writeFileSync(${JSON.stringify(secondTestMarker)}, \"ran\");`,\n \"});\",\n ].join(\"\\n\")\n );\n\n const environment = { ...process.env };\n delete environment.NODE_TEST_CONTEXT;\n const invokeTestUrl = new URL(\"./invoke-test.js\", import.meta.url).href;\n const script = [\n `import { runTests } from ${JSON.stringify(invokeTestUrl)};`,\n `const result = await runTests(${JSON.stringify({\n dir: testDir,\n endpoint: \"http://localhost\",\n filter: \"Moonshot\",\n testConcurrency: 1,\n })});`,\n \"process.exitCode = result.exitCode;\",\n ].join(\"\\n\");\n const exitCode = await new Promise<number | null>((resolve, reject) => {\n const child = spawn(\n process.execPath,\n [\"--input-type=module\", \"--eval\", script],\n {\n env: environment,\n stdio: \"ignore\",\n }\n );\n child.once(\"error\", reject);\n child.once(\"exit\", resolve);\n });\n\n expect(exitCode).not.to.equal(0);\n await access(secondTestMarker);\n } finally {\n await rm(testDir, { recursive: true, force: true });\n }\n });\n});\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["../src/cli.ts","../src/internal.ts","../src/types.d.ts","../src/__tests__/archive-utils.test.ts","../src/__tests__/import-openapi.test.ts","../src/__tests__/outdated.test.ts","../src/__tests__/populate.test.ts","../src/__tests__/tsconfig-upgrader.test.ts","../src/__tests__/integration/confirm-linked-config.integration.test.ts","../src/__tests__/integration/confirm-production-deploy.integration.test.ts","../src/__tests__/integration/custom-domain.integration.test.ts","../src/__tests__/integration/delete.integration.test.ts","../src/__tests__/integration/deploy.integration.test.ts","../src/__tests__/integration/get-project-param.integration.test.ts","../src/__tests__/integration/info.integration.test.ts","../src/__tests__/integration/jest-mocks-setup.ts","../src/__tests__/integration/jest-setup.ts","../src/__tests__/integration/link.integration.test.ts","../src/__tests__/integration/linked-config-cascade.integration.test.ts","../src/__tests__/integration/list.integration.test.ts","../src/__tests__/integration/test-utils.ts","../src/__tests__/integration/tunnel.integration.test.ts","../src/__tests__/integration/variable.integration.test.ts","../src/__tests__/integration/whoami.integration.test.ts","../src/bucket/models.ts","../src/bucket/list/handler.ts","../src/build/handler.ts","../src/ca-certificate/models.ts","../src/ca-certificate/validation.test.ts","../src/ca-certificate/validation.ts","../src/ca-certificate/create/handler.ts","../src/ca-certificate/delete/handler.ts","../src/ca-certificate/describe/handler.ts","../src/ca-certificate/list/handler.ts","../src/ca-certificate/update/handler.ts","../src/cmds/build.ts","../src/cmds/compile.ts","../src/cmds/delete.ts","../src/cmds/deploy.ts","../src/cmds/dev.ts","../src/cmds/docs.ts","../src/cmds/editor.ts","../src/cmds/info.ts","../src/cmds/init.ts","../src/cmds/link.ts","../src/cmds/list.ts","../src/cmds/login.ts","../src/cmds/logout.ts","../src/cmds/test.ts","../src/cmds/whoami.ts","../src/cmds/bucket/index.ts","../src/cmds/bucket/list.ts","../src/cmds/ca-certificate/create.ts","../src/cmds/ca-certificate/delete.ts","../src/cmds/ca-certificate/describe.ts","../src/cmds/ca-certificate/index.ts","../src/cmds/ca-certificate/list.ts","../src/cmds/ca-certificate/update.ts","../src/cmds/custom-domain/create.ts","../src/cmds/custom-domain/delete.ts","../src/cmds/custom-domain/index.ts","../src/cmds/custom-domain/list.ts","../src/cmds/custom-domain/update.ts","../src/cmds/mtls-certificates/create.ts","../src/cmds/mtls-certificates/delete.ts","../src/cmds/mtls-certificates/describe.ts","../src/cmds/mtls-certificates/disable.ts","../src/cmds/mtls-certificates/index.ts","../src/cmds/mtls-certificates/list.ts","../src/cmds/mtls-certificates/update.ts","../src/cmds/open-api/convert.ts","../src/cmds/open-api/index.ts","../src/cmds/open-api/merge.ts","../src/cmds/open-api/overlay.ts","../src/cmds/project/create.ts","../src/cmds/project/index.ts","../src/cmds/project/info.ts","../src/cmds/project/list.ts","../src/cmds/proxies/create.ts","../src/cmds/proxies/delete.ts","../src/cmds/proxies/describe.ts","../src/cmds/proxies/index.ts","../src/cmds/proxies/update.ts","../src/cmds/source/import-openapi.ts","../src/cmds/source/index.ts","../src/cmds/source/migrate.ts","../src/cmds/source/upgrade.ts","../src/cmds/tunnel/create.ts","../src/cmds/tunnel/delete.ts","../src/cmds/tunnel/describe.ts","../src/cmds/tunnel/index.ts","../src/cmds/tunnel/list.ts","../src/cmds/tunnel/rotate-token.ts","../src/cmds/tunnel/services/describe.ts","../src/cmds/tunnel/services/index.ts","../src/cmds/tunnel/services/update.ts","../src/cmds/variable/create.ts","../src/cmds/variable/index.ts","../src/cmds/variable/update.ts","../src/common/alias.ts","../src/common/args.ts","../src/common/cli-dispatcher.test.ts","../src/common/cli-dispatcher.ts","../src/common/constants.ts","../src/common/handler.ts","../src/common/logger.ts","../src/common/models.ts","../src/common/outdated.ts","../src/common/output.ts","../src/common/populate.ts","../src/common/read-linked-config.test.ts","../src/common/read-linked-config.ts","../src/common/runner.ts","../src/common/settings.ts","../src/common/terminal.test.ts","../src/common/terminal.ts","../src/common/worker-output.ts","../src/common/analytics/cli-invocation.test.ts","../src/common/analytics/cli-invocation.ts","../src/common/analytics/lib.ts","../src/common/analytics/package-manager.test.ts","../src/common/analytics/package-manager.ts","../src/common/api/client.ts","../src/common/api/lib.ts","../src/common/machine-id/lib.ts","../src/common/middleware/authentication.ts","../src/common/middleware/check-pnpm-lifecycle.test.ts","../src/common/middleware/check-pnpm-lifecycle.ts","../src/common/middleware/confirm-linked-config.ts","../src/common/middleware/confirm-production-deploy.ts","../src/common/middleware/get-account-param.ts","../src/common/middleware/get-environment-param.test.ts","../src/common/middleware/get-environment-param.ts","../src/common/middleware/get-project-param.ts","../src/common/middleware/logging.ts","../src/common/middleware/user-configuration.ts","../src/common/middleware/user-identification.ts","../src/common/middleware/validate-fleet.ts","../src/common/upgraders/lib.ts","../src/common/upgraders/package-json-upgrader.ts","../src/common/upgraders/tsconfig-upgrader.ts","../src/common/upgraders/vscode-settings-json-upgrader.ts","../src/common/utils/box.ts","../src/common/utils/branch.ts","../src/common/utils/build-environment-prompt-choices.test.ts","../src/common/utils/build-environment-prompt-choices.ts","../src/common/utils/format-environment-type.test.ts","../src/common/utils/format-environment-type.ts","../src/common/utils/pnpm-lifecycle.test.ts","../src/common/utils/pnpm-lifecycle.ts","../src/common/utils/ports.ts","../src/common/utils/prefixed-output.ts","../src/common/utils/pretty-print-environment-prompt.test.ts","../src/common/utils/pretty-print-environment-prompt.ts","../src/common/utils/sort-environments-for-prompt.test.ts","../src/common/utils/sort-environments-for-prompt.ts","../src/common/utils/stringify-config.test.ts","../src/common/utils/stringify-config.ts","../src/common/utils/types.ts","../src/common/utils/urls.ts","../src/common/validators/argument-validators.spec.ts","../src/common/validators/argument-validators.ts","../src/common/validators/file-system-validator.ts","../src/common/validators/lib.ts","../src/common/validators/project-name-validator.ts","../src/common/xdg/lib.ts","../src/compile/handler.ts","../src/custom-domain/models.ts","../src/custom-domain/create/handler.ts","../src/custom-domain/delete/handler.ts","../src/custom-domain/list/handler.ts","../src/custom-domain/update/handler.ts","../src/delete/handler.ts","../src/delete/poll-deployment.ts","../src/deploy/archive.local-registry.test.ts","../src/deploy/archive.test.ts","../src/deploy/archive.ts","../src/deploy/environments.ts","../src/deploy/file-upload.ts","../src/deploy/handler.ts","../src/deploy/poll-deployment.ts","../src/dev/handler.ts","../src/dev/zuplo-local-gitignore.test.ts","../src/dev/zuplo-local-gitignore.ts","../src/docs/handler.ts","../src/editor/handler.ts","../src/editor/e2e/editor.spec.ts","../src/init/handler.ts","../src/link/handler.ts","../src/link/project-type.test.ts","../src/link/project-type.ts","../src/list/handler.ts","../src/login/login.ts","../src/login/logout.ts","../src/login/tokens.ts","../src/mtls-certificates/models.ts","../src/mtls-certificates/create/handler.ts","../src/mtls-certificates/delete/handler.ts","../src/mtls-certificates/describe/handler.ts","../src/mtls-certificates/disable/handler.ts","../src/mtls-certificates/list/handler.ts","../src/mtls-certificates/update/handler.ts","../src/open-api/convert/handler.spec.ts","../src/open-api/convert/handler.ts","../src/open-api/merge/handler.spec.ts","../src/open-api/merge/handler.ts","../src/open-api/overlay/handler.spec.ts","../src/open-api/overlay/handler.ts","../src/project/create/handler.ts","../src/project/info/handler.ts","../src/project/list/handler.ts","../src/proxies/models.ts","../src/proxies/create/handler.ts","../src/proxies/delete/handler.ts","../src/proxies/describe/handler.ts","../src/proxies/update/handler.ts","../src/source/migrate/dev-portal/handler.ts","../src/source/migrate/dev-portal/types.ts","../src/source/update/handler.ts","../src/test/esbuild-config.ts","../src/test/handler.ts","../src/test/invoke-test.ts","../src/test/test-files.test.ts","../src/test/test-files.ts","../src/test/esbuild-plugins/node-test-prep-plugin.ts","../src/tunnel/models.ts","../src/tunnel/create/handler.ts","../src/tunnel/delete/handler.ts","../src/tunnel/delete/poll-teardown-operation.ts","../src/tunnel/describe/handler.ts","../src/tunnel/list/handler.ts","../src/tunnel/rotate-token/handler.ts","../src/tunnel/services/describe/handler.ts","../src/tunnel/services/update/handler.ts","../src/tunnel/services/update/poll-provisioning-operations.ts","../src/variable/models.ts","../src/variable/create/handler.ts","../src/variable/update/handler.ts","../src/whoami/handler.ts"],"version":"5.8.2"}
|
|
1
|
+
{"root":["../src/cli.ts","../src/internal.ts","../src/types.d.ts","../src/__tests__/archive-utils.test.ts","../src/__tests__/import-openapi.test.ts","../src/__tests__/outdated.test.ts","../src/__tests__/populate.test.ts","../src/__tests__/tsconfig-upgrader.test.ts","../src/__tests__/integration/confirm-linked-config.integration.test.ts","../src/__tests__/integration/confirm-production-deploy.integration.test.ts","../src/__tests__/integration/custom-domain.integration.test.ts","../src/__tests__/integration/delete.integration.test.ts","../src/__tests__/integration/deploy.integration.test.ts","../src/__tests__/integration/get-project-param.integration.test.ts","../src/__tests__/integration/info.integration.test.ts","../src/__tests__/integration/jest-mocks-setup.ts","../src/__tests__/integration/jest-setup.ts","../src/__tests__/integration/link.integration.test.ts","../src/__tests__/integration/linked-config-cascade.integration.test.ts","../src/__tests__/integration/list.integration.test.ts","../src/__tests__/integration/test-utils.ts","../src/__tests__/integration/tunnel.integration.test.ts","../src/__tests__/integration/variable.integration.test.ts","../src/__tests__/integration/whoami.integration.test.ts","../src/bucket/models.ts","../src/bucket/list/handler.ts","../src/build/handler.ts","../src/ca-certificate/models.ts","../src/ca-certificate/validation.test.ts","../src/ca-certificate/validation.ts","../src/ca-certificate/create/handler.ts","../src/ca-certificate/delete/handler.ts","../src/ca-certificate/describe/handler.ts","../src/ca-certificate/list/handler.ts","../src/ca-certificate/update/handler.ts","../src/cmds/build.ts","../src/cmds/compile.ts","../src/cmds/delete.ts","../src/cmds/deploy.ts","../src/cmds/dev.ts","../src/cmds/docs.ts","../src/cmds/editor.ts","../src/cmds/info.ts","../src/cmds/init.ts","../src/cmds/link.ts","../src/cmds/list.ts","../src/cmds/login.ts","../src/cmds/logout.ts","../src/cmds/test.ts","../src/cmds/whoami.ts","../src/cmds/bucket/index.ts","../src/cmds/bucket/list.ts","../src/cmds/ca-certificate/create.ts","../src/cmds/ca-certificate/delete.ts","../src/cmds/ca-certificate/describe.ts","../src/cmds/ca-certificate/index.ts","../src/cmds/ca-certificate/list.ts","../src/cmds/ca-certificate/update.ts","../src/cmds/custom-domain/create.ts","../src/cmds/custom-domain/delete.ts","../src/cmds/custom-domain/index.ts","../src/cmds/custom-domain/list.ts","../src/cmds/custom-domain/update.ts","../src/cmds/mtls-certificates/create.ts","../src/cmds/mtls-certificates/delete.ts","../src/cmds/mtls-certificates/describe.ts","../src/cmds/mtls-certificates/disable.ts","../src/cmds/mtls-certificates/index.ts","../src/cmds/mtls-certificates/list.ts","../src/cmds/mtls-certificates/update.ts","../src/cmds/open-api/convert.ts","../src/cmds/open-api/index.ts","../src/cmds/open-api/merge.ts","../src/cmds/open-api/overlay.ts","../src/cmds/project/create.ts","../src/cmds/project/index.ts","../src/cmds/project/info.ts","../src/cmds/project/list.ts","../src/cmds/proxies/create.ts","../src/cmds/proxies/delete.ts","../src/cmds/proxies/describe.ts","../src/cmds/proxies/index.ts","../src/cmds/proxies/update.ts","../src/cmds/source/import-openapi.ts","../src/cmds/source/index.ts","../src/cmds/source/migrate.ts","../src/cmds/source/upgrade.ts","../src/cmds/tunnel/create.ts","../src/cmds/tunnel/delete.ts","../src/cmds/tunnel/describe.ts","../src/cmds/tunnel/index.ts","../src/cmds/tunnel/list.ts","../src/cmds/tunnel/rotate-token.ts","../src/cmds/tunnel/services/describe.ts","../src/cmds/tunnel/services/index.ts","../src/cmds/tunnel/services/update.ts","../src/cmds/variable/create.ts","../src/cmds/variable/index.ts","../src/cmds/variable/update.ts","../src/common/alias.ts","../src/common/args.ts","../src/common/cli-dispatcher.test.ts","../src/common/cli-dispatcher.ts","../src/common/constants.ts","../src/common/handler.ts","../src/common/logger.ts","../src/common/models.ts","../src/common/outdated.ts","../src/common/output.ts","../src/common/populate.ts","../src/common/read-linked-config.test.ts","../src/common/read-linked-config.ts","../src/common/runner.ts","../src/common/settings.ts","../src/common/terminal.test.ts","../src/common/terminal.ts","../src/common/worker-output.ts","../src/common/analytics/cli-invocation.test.ts","../src/common/analytics/cli-invocation.ts","../src/common/analytics/lib.ts","../src/common/analytics/package-manager.test.ts","../src/common/analytics/package-manager.ts","../src/common/api/client.ts","../src/common/api/lib.ts","../src/common/machine-id/lib.ts","../src/common/middleware/authentication.ts","../src/common/middleware/check-pnpm-lifecycle.test.ts","../src/common/middleware/check-pnpm-lifecycle.ts","../src/common/middleware/confirm-linked-config.ts","../src/common/middleware/confirm-production-deploy.ts","../src/common/middleware/get-account-param.ts","../src/common/middleware/get-environment-param.test.ts","../src/common/middleware/get-environment-param.ts","../src/common/middleware/get-project-param.ts","../src/common/middleware/logging.ts","../src/common/middleware/user-configuration.ts","../src/common/middleware/user-identification.ts","../src/common/middleware/validate-fleet.ts","../src/common/upgraders/lib.ts","../src/common/upgraders/package-json-upgrader.ts","../src/common/upgraders/tsconfig-upgrader.ts","../src/common/upgraders/vscode-settings-json-upgrader.ts","../src/common/utils/box.ts","../src/common/utils/branch.ts","../src/common/utils/build-environment-prompt-choices.test.ts","../src/common/utils/build-environment-prompt-choices.ts","../src/common/utils/format-environment-type.test.ts","../src/common/utils/format-environment-type.ts","../src/common/utils/pnpm-lifecycle.test.ts","../src/common/utils/pnpm-lifecycle.ts","../src/common/utils/ports.ts","../src/common/utils/prefixed-output.ts","../src/common/utils/pretty-print-environment-prompt.test.ts","../src/common/utils/pretty-print-environment-prompt.ts","../src/common/utils/sort-environments-for-prompt.test.ts","../src/common/utils/sort-environments-for-prompt.ts","../src/common/utils/stringify-config.test.ts","../src/common/utils/stringify-config.ts","../src/common/utils/types.ts","../src/common/utils/urls.ts","../src/common/validators/argument-validators.spec.ts","../src/common/validators/argument-validators.ts","../src/common/validators/file-system-validator.ts","../src/common/validators/lib.ts","../src/common/validators/project-name-validator.ts","../src/common/xdg/lib.ts","../src/compile/handler.ts","../src/custom-domain/models.ts","../src/custom-domain/create/handler.ts","../src/custom-domain/delete/handler.ts","../src/custom-domain/list/handler.ts","../src/custom-domain/update/handler.ts","../src/delete/handler.ts","../src/delete/poll-deployment.ts","../src/deploy/archive.local-registry.test.ts","../src/deploy/archive.test.ts","../src/deploy/archive.ts","../src/deploy/environments.ts","../src/deploy/file-upload.ts","../src/deploy/handler.ts","../src/deploy/poll-deployment.ts","../src/dev/handler.ts","../src/dev/zuplo-local-gitignore.test.ts","../src/dev/zuplo-local-gitignore.ts","../src/docs/handler.ts","../src/editor/handler.ts","../src/editor/e2e/editor.spec.ts","../src/init/handler.ts","../src/link/handler.ts","../src/link/project-type.test.ts","../src/link/project-type.ts","../src/list/handler.ts","../src/login/login.ts","../src/login/logout.ts","../src/login/tokens.ts","../src/mtls-certificates/models.ts","../src/mtls-certificates/create/handler.ts","../src/mtls-certificates/delete/handler.ts","../src/mtls-certificates/describe/handler.ts","../src/mtls-certificates/disable/handler.ts","../src/mtls-certificates/list/handler.ts","../src/mtls-certificates/update/handler.ts","../src/open-api/convert/handler.spec.ts","../src/open-api/convert/handler.ts","../src/open-api/merge/handler.spec.ts","../src/open-api/merge/handler.ts","../src/open-api/overlay/handler.spec.ts","../src/open-api/overlay/handler.ts","../src/project/create/handler.ts","../src/project/info/handler.ts","../src/project/list/handler.ts","../src/proxies/models.ts","../src/proxies/create/handler.ts","../src/proxies/delete/handler.ts","../src/proxies/describe/handler.ts","../src/proxies/update/handler.ts","../src/source/migrate/dev-portal/handler.ts","../src/source/migrate/dev-portal/types.ts","../src/source/update/handler.ts","../src/test/esbuild-config.ts","../src/test/handler.ts","../src/test/invoke-test.test.ts","../src/test/invoke-test.ts","../src/test/test-files.test.ts","../src/test/test-files.ts","../src/test/esbuild-plugins/node-test-prep-plugin.ts","../src/tunnel/models.ts","../src/tunnel/create/handler.ts","../src/tunnel/delete/handler.ts","../src/tunnel/delete/poll-teardown-operation.ts","../src/tunnel/describe/handler.ts","../src/tunnel/list/handler.ts","../src/tunnel/rotate-token/handler.ts","../src/tunnel/services/describe/handler.ts","../src/tunnel/services/update/handler.ts","../src/tunnel/services/update/poll-provisioning-operations.ts","../src/variable/models.ts","../src/variable/create/handler.ts","../src/variable/update/handler.ts","../src/whoami/handler.ts"],"version":"5.8.2"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"posthog-core.d.ts","sourceRoot":"","sources":["../src/posthog-core.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,yBAAyB,EACzB,oBAAoB,EACpB,2BAA2B,EAC3B,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,QAAQ,EACR,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,wBAAwB,EACxB,uBAAuB,EAGvB,yBAAyB,EAKzB,sBAAsB,EAGvB,MAAM,SAAS,CAAA;AAahB,OAAO,EAAiC,wBAAwB,EAAE,MAAM,SAAS,CAAA;AACjF,OAAO,EAGL,oBAAoB,EAErB,MAAM,0BAA0B,CAAA;AAGjC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAG5C,UAAU,iBAAiB;IACzB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAChC;AAOD,8BAAsB,WAAY,SAAQ,oBAAoB;IAE5D,OAAO,CAAC,oBAAoB,CAAS;IACrC,OAAO,CAAC,yBAAyB,CAAS;IAC1C,OAAO,CAAC,gBAAgB,CAA2D;IACnF,OAAO,CAAC,WAAW,CAAC,CAA+B;IAGnD,SAAS,CAAC,qBAAqB,CAAC,EAAE,OAAO,CAAC,2BAA2B,GAAG,SAAS,CAAC,CAAA;IAClF,SAAS,CAAC,6BAA6B,EAAE,MAAM,CAAA;IAC/C,OAAO,CAAC,wBAAwB,CAA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AS,CAAC,UAAU,IAAI,sBAAsB;IAI9C;;;;;;;;;;;;OAYG;IACH,SAAS,CAAC,oBAAoB,IAAI,OAAO;IAmBzC;;;;;;;;;OASG;IACH,SAAS,CAAC,wBAAwB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO;IAWjE;;;;;;;;OAQG;IACH,mBAAmB,IAAI,IAAI;IAa3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,mBAAmB,CACjB,mBAAmB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAAA;KAAE,EACjD,uBAAuB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAAA;KAAE,EACrD,kBAAkB,UAAO,GACxB,IAAI;IAkCP;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,qBAAqB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,kBAAkB,UAAO,GAAG,IAAI;IAmCxF;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,oBAAoB,CAAC,OAAO,EAAE,sBAAsB,GAAG,sBAAsB,GAAG,IAAI;IA+C9F;;;;;;OAMG;IACH,OAAO,CAAC,cAAc;CAsBvB"}
|
|
@@ -184,6 +184,7 @@ class PostHogCore extends external_posthog_core_stateless_js_namespaceObject.Pos
|
|
|
184
184
|
this.wrap(()=>{
|
|
185
185
|
if (!this._requirePersonProcessing('posthog.identify')) return;
|
|
186
186
|
const previousDistinctId = this.getDistinctId();
|
|
187
|
+
const idWasSupplied = !!distinctId;
|
|
187
188
|
distinctId = distinctId || previousDistinctId;
|
|
188
189
|
if (properties?.$groups) this.groups(properties.$groups);
|
|
189
190
|
const userPropsOnce = properties?.$set_once;
|
|
@@ -196,13 +197,29 @@ class PostHogCore extends external_posthog_core_stateless_js_namespaceObject.Pos
|
|
|
196
197
|
});
|
|
197
198
|
const userPropsObj = (0, index_js_namespaceObject.isObject)(userProps) ? userProps : void 0;
|
|
198
199
|
const userPropsOnceObj = (0, index_js_namespaceObject.isObject)(userPropsOnce) ? userPropsOnce : void 0;
|
|
199
|
-
|
|
200
|
+
const identityChanged = distinctId !== previousDistinctId;
|
|
201
|
+
const shouldTransitionToIdentified = idWasSupplied && !identityChanged && !this._isIdentified();
|
|
202
|
+
if (identityChanged) {
|
|
200
203
|
this.setPersistedProperty(external_types_js_namespaceObject.PostHogPersistedProperty.AnonymousId, previousDistinctId);
|
|
201
204
|
this.setPersistedProperty(external_types_js_namespaceObject.PostHogPersistedProperty.DistinctId, distinctId);
|
|
202
205
|
this.setPersistedProperty(external_types_js_namespaceObject.PostHogPersistedProperty.PersonMode, 'identified');
|
|
203
206
|
this.reloadFeatureFlags();
|
|
204
207
|
super.identifyStateless(distinctId, allProperties, options);
|
|
205
208
|
this._cachedPersonProperties = (0, index_js_namespaceObject.getPersonPropertiesHash)(distinctId, userPropsObj, userPropsOnceObj);
|
|
209
|
+
} else if (shouldTransitionToIdentified) {
|
|
210
|
+
this.setPersistedProperty(external_types_js_namespaceObject.PostHogPersistedProperty.PersonMode, 'identified');
|
|
211
|
+
const setProps = userPropsObj || {};
|
|
212
|
+
const setOnceProps = userPropsOnceObj || {};
|
|
213
|
+
this.setPersonPropertiesForFlags({
|
|
214
|
+
$set: setProps,
|
|
215
|
+
$set_once: setOnceProps
|
|
216
|
+
}, false);
|
|
217
|
+
this.capture('$set', {
|
|
218
|
+
$set: setProps,
|
|
219
|
+
$set_once: setOnceProps
|
|
220
|
+
});
|
|
221
|
+
this._cachedPersonProperties = (0, index_js_namespaceObject.getPersonPropertiesHash)(distinctId, userPropsObj, userPropsOnceObj);
|
|
222
|
+
if (userPropsObj || userPropsOnceObj) this.reloadFeatureFlags();
|
|
206
223
|
} else if (userPropsObj || userPropsOnceObj) this.setPersonProperties(userPropsObj, userPropsOnceObj);
|
|
207
224
|
});
|
|
208
225
|
}
|
|
@@ -156,6 +156,7 @@ class PostHogCore extends PostHogCoreStateless {
|
|
|
156
156
|
this.wrap(()=>{
|
|
157
157
|
if (!this._requirePersonProcessing('posthog.identify')) return;
|
|
158
158
|
const previousDistinctId = this.getDistinctId();
|
|
159
|
+
const idWasSupplied = !!distinctId;
|
|
159
160
|
distinctId = distinctId || previousDistinctId;
|
|
160
161
|
if (properties?.$groups) this.groups(properties.$groups);
|
|
161
162
|
const userPropsOnce = properties?.$set_once;
|
|
@@ -168,13 +169,29 @@ class PostHogCore extends PostHogCoreStateless {
|
|
|
168
169
|
});
|
|
169
170
|
const userPropsObj = isObject(userProps) ? userProps : void 0;
|
|
170
171
|
const userPropsOnceObj = isObject(userPropsOnce) ? userPropsOnce : void 0;
|
|
171
|
-
|
|
172
|
+
const identityChanged = distinctId !== previousDistinctId;
|
|
173
|
+
const shouldTransitionToIdentified = idWasSupplied && !identityChanged && !this._isIdentified();
|
|
174
|
+
if (identityChanged) {
|
|
172
175
|
this.setPersistedProperty(PostHogPersistedProperty.AnonymousId, previousDistinctId);
|
|
173
176
|
this.setPersistedProperty(PostHogPersistedProperty.DistinctId, distinctId);
|
|
174
177
|
this.setPersistedProperty(PostHogPersistedProperty.PersonMode, 'identified');
|
|
175
178
|
this.reloadFeatureFlags();
|
|
176
179
|
super.identifyStateless(distinctId, allProperties, options);
|
|
177
180
|
this._cachedPersonProperties = getPersonPropertiesHash(distinctId, userPropsObj, userPropsOnceObj);
|
|
181
|
+
} else if (shouldTransitionToIdentified) {
|
|
182
|
+
this.setPersistedProperty(PostHogPersistedProperty.PersonMode, 'identified');
|
|
183
|
+
const setProps = userPropsObj || {};
|
|
184
|
+
const setOnceProps = userPropsOnceObj || {};
|
|
185
|
+
this.setPersonPropertiesForFlags({
|
|
186
|
+
$set: setProps,
|
|
187
|
+
$set_once: setOnceProps
|
|
188
|
+
}, false);
|
|
189
|
+
this.capture('$set', {
|
|
190
|
+
$set: setProps,
|
|
191
|
+
$set_once: setOnceProps
|
|
192
|
+
});
|
|
193
|
+
this._cachedPersonProperties = getPersonPropertiesHash(distinctId, userPropsObj, userPropsOnceObj);
|
|
194
|
+
if (userPropsObj || userPropsOnceObj) this.reloadFeatureFlags();
|
|
178
195
|
} else if (userPropsObj || userPropsOnceObj) this.setPersonProperties(userPropsObj, userPropsOnceObj);
|
|
179
196
|
});
|
|
180
197
|
}
|
|
@@ -349,6 +349,10 @@ export abstract class PostHogCore extends PostHogCoreStateless {
|
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
const previousDistinctId = this.getDistinctId()
|
|
352
|
+
// Whether the caller passed an id at all β a bare identify() must not upgrade an anonymous
|
|
353
|
+
// user to identified (browser rejects it in _validateIdentifyId; core has no such guard and
|
|
354
|
+
// would otherwise fall into the matching-id transition below).
|
|
355
|
+
const idWasSupplied = !!distinctId
|
|
352
356
|
distinctId = distinctId || previousDistinctId
|
|
353
357
|
|
|
354
358
|
if (properties?.$groups) {
|
|
@@ -372,7 +376,10 @@ export abstract class PostHogCore extends PostHogCoreStateless {
|
|
|
372
376
|
const userPropsObj = isObject(userProps) ? (userProps as { [key: string]: JsonType }) : undefined
|
|
373
377
|
const userPropsOnceObj = isObject(userPropsOnce) ? (userPropsOnce as { [key: string]: JsonType }) : undefined
|
|
374
378
|
|
|
375
|
-
|
|
379
|
+
const identityChanged = distinctId !== previousDistinctId
|
|
380
|
+
const shouldTransitionToIdentified = idWasSupplied && !identityChanged && !this._isIdentified()
|
|
381
|
+
|
|
382
|
+
if (identityChanged) {
|
|
376
383
|
// We keep the AnonymousId to be used by flags calls and identify to link the previousId
|
|
377
384
|
this.setPersistedProperty(PostHogPersistedProperty.AnonymousId, previousDistinctId)
|
|
378
385
|
this.setPersistedProperty(PostHogPersistedProperty.DistinctId, distinctId)
|
|
@@ -384,6 +391,26 @@ export abstract class PostHogCore extends PostHogCoreStateless {
|
|
|
384
391
|
|
|
385
392
|
// Update the cached person properties hash
|
|
386
393
|
this._cachedPersonProperties = getPersonPropertiesHash(distinctId, userPropsObj, userPropsOnceObj)
|
|
394
|
+
} else if (shouldTransitionToIdentified) {
|
|
395
|
+
// Matching id while still anonymous (e.g. a non-identified bootstrap seeded the same id):
|
|
396
|
+
// upgrade to identified and emit one person-processed $set. There is no anonymous id to
|
|
397
|
+
// merge, so no $identify. Mirrors posthog-js (browser).
|
|
398
|
+
this.setPersistedProperty(PostHogPersistedProperty.PersonMode, 'identified')
|
|
399
|
+
|
|
400
|
+
const setProps = userPropsObj || {}
|
|
401
|
+
const setOnceProps = userPropsOnceObj || {}
|
|
402
|
+
this.setPersonPropertiesForFlags({ $set: setProps, $set_once: setOnceProps }, false)
|
|
403
|
+
this.capture('$set', { $set: setProps, $set_once: setOnceProps })
|
|
404
|
+
|
|
405
|
+
// The transition event must fire even when an identical property call was cached earlier;
|
|
406
|
+
// cache only after capture so deduplication cannot suppress it.
|
|
407
|
+
this._cachedPersonProperties = getPersonPropertiesHash(distinctId, userPropsObj, userPropsOnceObj)
|
|
408
|
+
|
|
409
|
+
// The identified state itself is not part of the flags request; reload only when the
|
|
410
|
+
// caller supplied properties that can affect flag evaluation.
|
|
411
|
+
if (userPropsObj || userPropsOnceObj) {
|
|
412
|
+
this.reloadFeatureFlags()
|
|
413
|
+
}
|
|
387
414
|
} else if (userPropsObj || userPropsOnceObj) {
|
|
388
415
|
// If the distinct_id is not changing, but we have user properties to set, we can check if they have changed
|
|
389
416
|
// and if so, send a $set event
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 - present, Yusuke Wada and Hono contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
<a href="https://hono.dev">
|
|
3
|
+
<img src="https://raw.githubusercontent.com/honojs/hono/main/docs/images/hono-title.png" width="500" height="auto" alt="Hono"/>
|
|
4
|
+
</a>
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
<hr />
|
|
8
|
+
|
|
9
|
+
[](https://github.com/honojs/hono/actions)
|
|
10
|
+
[](https://github.com/honojs/hono/blob/main/LICENSE)
|
|
11
|
+
[](https://www.npmjs.com/package/hono)
|
|
12
|
+
[](https://www.npmjs.com/package/hono)
|
|
13
|
+
[](https://jsr.io/@hono/hono)
|
|
14
|
+
[](https://bundlephobia.com/result?p=hono)
|
|
15
|
+
[](https://bundlephobia.com/result?p=hono)
|
|
16
|
+
[](https://github.com/honojs/hono/pulse)
|
|
17
|
+
[](https://github.com/honojs/hono/commits/main)
|
|
18
|
+
[](https://codecov.io/github/honojs/hono)
|
|
19
|
+
[](https://discord.gg/KMh2eNSdxV)
|
|
20
|
+
[](https://deepwiki.com/honojs/hono)
|
|
21
|
+
|
|
22
|
+
Hono - _**means flameπ₯ in Japanese**_ - is a small, simple, and ultrafast web framework built on Web Standards. It works on any JavaScript runtime: Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, AWS Lambda, Lambda@Edge, and Node.js.
|
|
23
|
+
|
|
24
|
+
Fast, but not only fast.
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
import { Hono } from 'hono'
|
|
28
|
+
const app = new Hono()
|
|
29
|
+
|
|
30
|
+
app.get('/', (c) => c.text('Hono!'))
|
|
31
|
+
|
|
32
|
+
export default app
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Quick Start
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
npm create hono@latest
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Features
|
|
42
|
+
|
|
43
|
+
- **Ultrafast** π - The router `RegExpRouter` is really fast. Not using linear loops. Fast.
|
|
44
|
+
- **Lightweight** πͺΆ - The `hono/tiny` preset is under 12kB. Hono has zero dependencies and uses only the Web Standard API.
|
|
45
|
+
- **Multi-runtime** π - Works on Cloudflare Workers, Fastly Compute, Deno, Bun, AWS Lambda, Lambda@Edge, or Node.js. The same code runs on all platforms.
|
|
46
|
+
- **Batteries Included** π - Hono has built-in middleware, custom middleware, and third-party middleware. Batteries included.
|
|
47
|
+
- **Delightful DX** π - Super clean APIs. First-class TypeScript support. Now, we've got "Types".
|
|
48
|
+
|
|
49
|
+
## Documentation
|
|
50
|
+
|
|
51
|
+
The documentation is available on [hono.dev](https://hono.dev).
|
|
52
|
+
|
|
53
|
+
## Migration
|
|
54
|
+
|
|
55
|
+
The migration guide is available on [docs/MIGRATION.md](docs/MIGRATION.md).
|
|
56
|
+
|
|
57
|
+
## Communication
|
|
58
|
+
|
|
59
|
+
[X](https://x.com/honojs) and [Discord channel](https://discord.gg/KMh2eNSdxV) are available.
|
|
60
|
+
|
|
61
|
+
## Contributing
|
|
62
|
+
|
|
63
|
+
Contributions Welcome! You can contribute in the following ways.
|
|
64
|
+
|
|
65
|
+
- Create an Issue - Propose a new feature. Report a bug.
|
|
66
|
+
- Pull Request - Fix a bug or typo. Refactor the code.
|
|
67
|
+
- Create third-party middleware - See instructions below.
|
|
68
|
+
- Share - Share your thoughts on the Blog, X, and others.
|
|
69
|
+
- Make your application - Please try to use Hono.
|
|
70
|
+
|
|
71
|
+
For more details, see [docs/CONTRIBUTING.md](docs/CONTRIBUTING.md).
|
|
72
|
+
|
|
73
|
+
## Contributors
|
|
74
|
+
|
|
75
|
+
Thanks to [all contributors](https://github.com/honojs/hono/graphs/contributors)!
|
|
76
|
+
|
|
77
|
+
## Authors
|
|
78
|
+
|
|
79
|
+
Yusuke Wada <https://github.com/yusukebe>
|
|
80
|
+
|
|
81
|
+
_RegExpRouter_, _SmartRouter_, _LinearRouter_, and _PatternRouter_ are created by Taku Amano <https://github.com/usualoma>
|
|
82
|
+
|
|
83
|
+
## License
|
|
84
|
+
|
|
85
|
+
Distributed under the MIT License. See [LICENSE](LICENSE) for more information.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// src/adapter/aws-lambda/conninfo.ts
|
|
2
|
+
var getConnInfo = (c) => {
|
|
3
|
+
const requestContext = c.env.requestContext;
|
|
4
|
+
let address;
|
|
5
|
+
if ("identity" in requestContext && requestContext.identity?.sourceIp) {
|
|
6
|
+
address = requestContext.identity.sourceIp;
|
|
7
|
+
} else if ("http" in requestContext && requestContext.http?.sourceIp) {
|
|
8
|
+
address = requestContext.http.sourceIp;
|
|
9
|
+
} else {
|
|
10
|
+
const xff = c.req.header("x-forwarded-for");
|
|
11
|
+
if (xff) {
|
|
12
|
+
const ips = xff.split(",");
|
|
13
|
+
address = ips[ips.length - 1].trim();
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
remote: {
|
|
18
|
+
address
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
getConnInfo
|
|
24
|
+
};
|