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 CHANGED
@@ -14,6 +14,13 @@
14
14
  "@std/assert": "jsr:@std/assert@^1",
15
15
  "hono": "npm:hono@4"
16
16
  },
17
+ "lint": {
18
+ "rules": {
19
+ "exclude": [
20
+ "no-import-prefix"
21
+ ]
22
+ }
23
+ },
17
24
  "nodeModulesDir": "auto",
18
25
  "allowScripts": {
19
26
  "allow": [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "1tube",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "private": false,
5
5
  "description": "Self-hosted Supabase Edge Functions gateway for Deno, plus an ESLint plugin for consumers",
6
6
  "license": "MIT",
@@ -8,7 +8,7 @@
8
8
  * requests).
9
9
  */
10
10
 
11
- import type { Context, Next } from "hono";
11
+ import type { Context, Next } from "npm:hono@4";
12
12
 
13
13
  const ALLOWED_HEADERS =
14
14
  "authorization, x-client-info, apikey, content-type, x-application-name, user-agent";
@@ -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
- import { Hono } from "hono";
15
- import { bodyLimit } from "hono/body-limit";
16
- // Use node: specifiers (not "@std/path") so this entry point also works when
17
- // 1tube is launched from a host project's node_modules — bare specifiers
18
- // would otherwise require the host's deno.json to mirror our import map.
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";