@hono/node-server 1.10.0 → 1.10.1

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/dist/index.js CHANGED
@@ -396,13 +396,13 @@ var getRequestListener = (fetchCallback, options = {}) => {
396
396
  }
397
397
  return async (incoming, outgoing) => {
398
398
  let res;
399
- const req = newRequest(incoming);
400
- outgoing.on("close", () => {
401
- if (incoming.destroyed) {
402
- req[getAbortController]().abort();
403
- }
404
- });
405
399
  try {
400
+ const req = newRequest(incoming);
401
+ outgoing.on("close", () => {
402
+ if (incoming.destroyed) {
403
+ req[getAbortController]().abort();
404
+ }
405
+ });
406
406
  res = fetchCallback(req, { incoming, outgoing });
407
407
  if (cacheKey in res) {
408
408
  return responseViaCache(res, outgoing);
package/dist/index.mjs CHANGED
@@ -358,13 +358,13 @@ var getRequestListener = (fetchCallback, options = {}) => {
358
358
  }
359
359
  return async (incoming, outgoing) => {
360
360
  let res;
361
- const req = newRequest(incoming);
362
- outgoing.on("close", () => {
363
- if (incoming.destroyed) {
364
- req[getAbortController]().abort();
365
- }
366
- });
367
361
  try {
362
+ const req = newRequest(incoming);
363
+ outgoing.on("close", () => {
364
+ if (incoming.destroyed) {
365
+ req[getAbortController]().abort();
366
+ }
367
+ });
368
368
  res = fetchCallback(req, { incoming, outgoing });
369
369
  if (cacheKey in res) {
370
370
  return responseViaCache(res, outgoing);
package/dist/listener.js CHANGED
@@ -391,13 +391,13 @@ var getRequestListener = (fetchCallback, options = {}) => {
391
391
  }
392
392
  return async (incoming, outgoing) => {
393
393
  let res;
394
- const req = newRequest(incoming);
395
- outgoing.on("close", () => {
396
- if (incoming.destroyed) {
397
- req[getAbortController]().abort();
398
- }
399
- });
400
394
  try {
395
+ const req = newRequest(incoming);
396
+ outgoing.on("close", () => {
397
+ if (incoming.destroyed) {
398
+ req[getAbortController]().abort();
399
+ }
400
+ });
401
401
  res = fetchCallback(req, { incoming, outgoing });
402
402
  if (cacheKey in res) {
403
403
  return responseViaCache(res, outgoing);
package/dist/listener.mjs CHANGED
@@ -355,13 +355,13 @@ var getRequestListener = (fetchCallback, options = {}) => {
355
355
  }
356
356
  return async (incoming, outgoing) => {
357
357
  let res;
358
- const req = newRequest(incoming);
359
- outgoing.on("close", () => {
360
- if (incoming.destroyed) {
361
- req[getAbortController]().abort();
362
- }
363
- });
364
358
  try {
359
+ const req = newRequest(incoming);
360
+ outgoing.on("close", () => {
361
+ if (incoming.destroyed) {
362
+ req[getAbortController]().abort();
363
+ }
364
+ });
365
365
  res = fetchCallback(req, { incoming, outgoing });
366
366
  if (cacheKey in res) {
367
367
  return responseViaCache(res, outgoing);
package/dist/server.js CHANGED
@@ -393,13 +393,13 @@ var getRequestListener = (fetchCallback, options = {}) => {
393
393
  }
394
394
  return async (incoming, outgoing) => {
395
395
  let res;
396
- const req = newRequest(incoming);
397
- outgoing.on("close", () => {
398
- if (incoming.destroyed) {
399
- req[getAbortController]().abort();
400
- }
401
- });
402
396
  try {
397
+ const req = newRequest(incoming);
398
+ outgoing.on("close", () => {
399
+ if (incoming.destroyed) {
400
+ req[getAbortController]().abort();
401
+ }
402
+ });
403
403
  res = fetchCallback(req, { incoming, outgoing });
404
404
  if (cacheKey in res) {
405
405
  return responseViaCache(res, outgoing);
package/dist/server.mjs CHANGED
@@ -358,13 +358,13 @@ var getRequestListener = (fetchCallback, options = {}) => {
358
358
  }
359
359
  return async (incoming, outgoing) => {
360
360
  let res;
361
- const req = newRequest(incoming);
362
- outgoing.on("close", () => {
363
- if (incoming.destroyed) {
364
- req[getAbortController]().abort();
365
- }
366
- });
367
361
  try {
362
+ const req = newRequest(incoming);
363
+ outgoing.on("close", () => {
364
+ if (incoming.destroyed) {
365
+ req[getAbortController]().abort();
366
+ }
367
+ });
368
368
  res = fetchCallback(req, { incoming, outgoing });
369
369
  if (cacheKey in res) {
370
370
  return responseViaCache(res, outgoing);
package/dist/vercel.js CHANGED
@@ -391,13 +391,13 @@ var getRequestListener = (fetchCallback, options = {}) => {
391
391
  }
392
392
  return async (incoming, outgoing) => {
393
393
  let res;
394
- const req = newRequest(incoming);
395
- outgoing.on("close", () => {
396
- if (incoming.destroyed) {
397
- req[getAbortController]().abort();
398
- }
399
- });
400
394
  try {
395
+ const req = newRequest(incoming);
396
+ outgoing.on("close", () => {
397
+ if (incoming.destroyed) {
398
+ req[getAbortController]().abort();
399
+ }
400
+ });
401
401
  res = fetchCallback(req, { incoming, outgoing });
402
402
  if (cacheKey in res) {
403
403
  return responseViaCache(res, outgoing);
package/dist/vercel.mjs CHANGED
@@ -355,13 +355,13 @@ var getRequestListener = (fetchCallback, options = {}) => {
355
355
  }
356
356
  return async (incoming, outgoing) => {
357
357
  let res;
358
- const req = newRequest(incoming);
359
- outgoing.on("close", () => {
360
- if (incoming.destroyed) {
361
- req[getAbortController]().abort();
362
- }
363
- });
364
358
  try {
359
+ const req = newRequest(incoming);
360
+ outgoing.on("close", () => {
361
+ if (incoming.destroyed) {
362
+ req[getAbortController]().abort();
363
+ }
364
+ });
365
365
  res = fetchCallback(req, { incoming, outgoing });
366
366
  if (cacheKey in res) {
367
367
  return responseViaCache(res, outgoing);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hono/node-server",
3
- "version": "1.10.0",
3
+ "version": "1.10.1",
4
4
  "description": "Node.js Adapter for Hono",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",