@hono/vite-dev-server
Advanced tools
Comparing version 0.5.0 to 0.5.1
const nullScript = "export default { fetch: () => new Response(null, { status: 404 }) };"; | ||
let mf = void 0; | ||
const getEnv = (options) => async () => { | ||
const { Miniflare } = await import("miniflare"); | ||
mf = new Miniflare({ | ||
modules: true, | ||
script: nullScript, | ||
...options | ||
}); | ||
if (!mf) { | ||
const { Miniflare } = await import("miniflare"); | ||
mf = new Miniflare({ | ||
modules: true, | ||
script: nullScript, | ||
...options | ||
}); | ||
} | ||
const env = { | ||
@@ -28,2 +30,3 @@ ...await mf.getBindings(), | ||
mf?.dispose(); | ||
mf = void 0; | ||
}; | ||
@@ -30,0 +33,0 @@ const plugin = (options) => { |
{ | ||
"name": "@hono/vite-dev-server", | ||
"description": "Vite dev-server plugin for Hono", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"types": "dist/index.d.ts", | ||
@@ -61,3 +61,3 @@ "module": "dist/index.js", | ||
"glob": "^10.3.10", | ||
"hono": "^3.12.6", | ||
"hono": "^4.0.1", | ||
"playwright": "^1.39.0", | ||
@@ -67,3 +67,3 @@ "publint": "^0.2.5", | ||
"tsup": "^7.2.0", | ||
"vite": "^5.0.12", | ||
"vite": "^5.1.1", | ||
"vitest": "^0.34.6" | ||
@@ -70,0 +70,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32618
663