@hono/node-server
Advanced tools
Comparing version 1.3.4 to 1.3.5
@@ -284,15 +284,8 @@ "use strict"; | ||
} | ||
if (!(res instanceof Response)) { | ||
return handleResponseError( | ||
// @ts-expect-error the object must have `toString()` | ||
new Error(`The response is not an instance of Response, but ${res.toString()}`), | ||
outgoing | ||
); | ||
} | ||
if (cacheKey in res) { | ||
try { | ||
try { | ||
if (cacheKey in res) { | ||
return responseViaCache(res, outgoing); | ||
} catch (e) { | ||
return handleResponseError(e, outgoing); | ||
} | ||
} catch (e) { | ||
return handleResponseError(e, outgoing); | ||
} | ||
@@ -299,0 +292,0 @@ const resHeaderRecord = buildOutgoingHttpHeaders(res.headers); |
@@ -279,15 +279,8 @@ "use strict"; | ||
} | ||
if (!(res instanceof Response)) { | ||
return handleResponseError( | ||
// @ts-expect-error the object must have `toString()` | ||
new Error(`The response is not an instance of Response, but ${res.toString()}`), | ||
outgoing | ||
); | ||
} | ||
if (cacheKey in res) { | ||
try { | ||
try { | ||
if (cacheKey in res) { | ||
return responseViaCache(res, outgoing); | ||
} catch (e) { | ||
return handleResponseError(e, outgoing); | ||
} | ||
} catch (e) { | ||
return handleResponseError(e, outgoing); | ||
} | ||
@@ -294,0 +287,0 @@ const resHeaderRecord = buildOutgoingHttpHeaders(res.headers); |
@@ -281,15 +281,8 @@ "use strict"; | ||
} | ||
if (!(res instanceof Response)) { | ||
return handleResponseError( | ||
// @ts-expect-error the object must have `toString()` | ||
new Error(`The response is not an instance of Response, but ${res.toString()}`), | ||
outgoing | ||
); | ||
} | ||
if (cacheKey in res) { | ||
try { | ||
try { | ||
if (cacheKey in res) { | ||
return responseViaCache(res, outgoing); | ||
} catch (e) { | ||
return handleResponseError(e, outgoing); | ||
} | ||
} catch (e) { | ||
return handleResponseError(e, outgoing); | ||
} | ||
@@ -296,0 +289,0 @@ const resHeaderRecord = buildOutgoingHttpHeaders(res.headers); |
@@ -279,15 +279,8 @@ "use strict"; | ||
} | ||
if (!(res instanceof Response)) { | ||
return handleResponseError( | ||
// @ts-expect-error the object must have `toString()` | ||
new Error(`The response is not an instance of Response, but ${res.toString()}`), | ||
outgoing | ||
); | ||
} | ||
if (cacheKey in res) { | ||
try { | ||
try { | ||
if (cacheKey in res) { | ||
return responseViaCache(res, outgoing); | ||
} catch (e) { | ||
return handleResponseError(e, outgoing); | ||
} | ||
} catch (e) { | ||
return handleResponseError(e, outgoing); | ||
} | ||
@@ -294,0 +287,0 @@ const resHeaderRecord = buildOutgoingHttpHeaders(res.headers); |
{ | ||
"name": "@hono/node-server", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "Node.js Adapter for Hono", | ||
@@ -69,2 +69,3 @@ "main": "dist/index.js", | ||
"@types/supertest": "^2.0.12", | ||
"@whatwg-node/fetch": "^0.9.14", | ||
"eslint": "^8.55.0", | ||
@@ -71,0 +72,0 @@ "hono": "^3.11.7", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
120166
14
3759