@whatwg-node/server
Advanced tools
Comparing version 0.9.60 to 0.9.61-alpha-20241210210919-680ecc3291b1c6c284e87af6977d8a107e1ec8cc
@@ -5,3 +5,2 @@ "use strict"; | ||
const tslib_1 = require("tslib"); | ||
/* eslint-disable @typescript-eslint/ban-types */ | ||
const disposablestack_1 = require("@whatwg-node/disposablestack"); | ||
@@ -50,2 +49,4 @@ const DefaultFetchAPI = tslib_1.__importStar(require("@whatwg-node/fetch")); | ||
function waitUntil(promiseLike) { | ||
// Ensure that the disposable stack is created | ||
ensureDisposableStack(); | ||
waitUntilPromises.add(promiseLike); | ||
@@ -52,0 +53,0 @@ promiseLike.then(() => { |
@@ -1,2 +0,1 @@ | ||
/* eslint-disable @typescript-eslint/ban-types */ | ||
import { AsyncDisposableStack, DisposableSymbols } from '@whatwg-node/disposablestack'; | ||
@@ -45,2 +44,4 @@ import * as DefaultFetchAPI from '@whatwg-node/fetch'; | ||
function waitUntil(promiseLike) { | ||
// Ensure that the disposable stack is created | ||
ensureDisposableStack(); | ||
waitUntilPromises.add(promiseLike); | ||
@@ -47,0 +48,0 @@ promiseLike.then(() => { |
{ | ||
"name": "@whatwg-node/server", | ||
"version": "0.9.60", | ||
"version": "0.9.61-alpha-20241210210919-680ecc3291b1c6c284e87af6977d8a107e1ec8cc", | ||
"description": "Fetch API compliant HTTP Server adapter", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
@@ -7,7 +7,7 @@ import type { ServerAdapterPlugin } from './types.js'; | ||
headers: HeadersInit; | ||
details?: any; | ||
details?: any | undefined; | ||
name: string; | ||
constructor(status: number | undefined, message: string, headers?: HeadersInit, details?: any); | ||
constructor(status: number | undefined, message: string, headers?: HeadersInit, details?: any | undefined); | ||
} | ||
export type ErrorHandler<TServerContext> = (e: any, request: Request, ctx: TServerContext) => Response | Promise<Response>; | ||
export declare function useErrorHandling<TServerContext>(onError?: ErrorHandler<TServerContext>): ServerAdapterPlugin<TServerContext>; |
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
153683
3270