Initial Commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { runRouterConformance } from "@suaveplan/api-router";
|
||||
|
||||
import { createHonoRouter } from "../src/adapter/adapter.js";
|
||||
import { HonoBlueGreenSlot } from "../src/blue-green-slot/blue-green-slot.js";
|
||||
|
||||
runRouterConformance({
|
||||
label: "hono",
|
||||
router: () => createHonoRouter(),
|
||||
slot: (plugin, handler) => new HonoBlueGreenSlot(plugin, handler),
|
||||
});
|
||||
@@ -0,0 +1,7 @@
|
||||
import { webcrypto } from "node:crypto";
|
||||
|
||||
type WritableGlobal = { crypto?: Crypto };
|
||||
const g = globalThis as WritableGlobal;
|
||||
if (g.crypto === undefined) {
|
||||
g.crypto = webcrypto as unknown as Crypto;
|
||||
}
|
||||
Reference in New Issue
Block a user