Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@whatwg-node/server

Package Overview
Dependencies
Maintainers
1
Versions
736
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@whatwg-node/server - npm Package Compare versions

Comparing version 0.9.60 to 0.9.61-alpha-20241210210919-680ecc3291b1c6c284e87af6977d8a107e1ec8cc

3

cjs/createServerAdapter.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc