1tube 0.1.7 → 0.1.8
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/deno.json +7 -0
- package/package.json +1 -1
- package/src/gateway/cors.ts +1 -1
- package/src/gateway/logging.ts +1 -1
- package/src/gateway/rate-limit.ts +2 -2
- package/src/health.ts +1 -1
- package/src/server.ts +7 -5
package/deno.json
CHANGED
package/package.json
CHANGED
package/src/gateway/cors.ts
CHANGED
package/src/gateway/logging.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* grow it unboundedly with synthetic high-cardinality function names.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import type { Context, Next } from "hono";
|
|
12
|
+
import type { Context, Next } from "npm:hono@4";
|
|
13
13
|
import { logError, logInfo } from "../log-buffer.ts";
|
|
14
14
|
|
|
15
15
|
export interface FunctionMetrics {
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* mint fresh buckets.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import type { Context, Next } from "hono";
|
|
12
|
-
import { getConnInfo } from "hono/deno";
|
|
11
|
+
import type { Context, Next } from "npm:hono@4";
|
|
12
|
+
import { getConnInfo } from "npm:hono@4/deno";
|
|
13
13
|
import type { FunctionRegistry } from "../registry.ts";
|
|
14
14
|
|
|
15
15
|
interface Bucket {
|
package/src/health.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* strings leak into access logs, browser history, and proxy buffers).
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import type { Context } from "hono";
|
|
11
|
+
import type { Context } from "npm:hono@4";
|
|
12
12
|
import type { FunctionRegistry } from "./registry.ts";
|
|
13
13
|
import type { FunctionSupervisor } from "./supervisor.ts";
|
|
14
14
|
import { getCollectedMetrics, getPrometheusMetrics } from "./gateway/logging.ts";
|
package/src/server.ts
CHANGED
|
@@ -11,11 +11,13 @@
|
|
|
11
11
|
* deno run --allow-all src/server.ts --dev --hmr # local development
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
//
|
|
14
|
+
// All third-party imports below use `npm:` / `node:` / `jsr:` specifiers
|
|
15
|
+
// directly (not bare aliases from our deno.json) so this entry point loads
|
|
16
|
+
// cleanly when launched from a host project's node_modules — bare
|
|
17
|
+
// specifiers would otherwise require the host's deno.json to mirror our
|
|
18
|
+
// import map. Same convention applies to every src/ file.
|
|
19
|
+
import { Hono } from "npm:hono@4";
|
|
20
|
+
import { bodyLimit } from "npm:hono@4/body-limit";
|
|
19
21
|
import { relative, sep as SEPARATOR } from "node:path";
|
|
20
22
|
import { currentRequestStorage, FunctionRegistry } from "./registry.ts";
|
|
21
23
|
import { discoverAndLoad, type DiscoveryProgress } from "./discovery.ts";
|