New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@whatwg-node/server

Package Overview
Dependencies
Maintainers
1
Versions
784
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.1.0 to 0.1.1

7

index.d.ts

@@ -5,3 +5,2 @@ /// <reference types="node" />

import { NodeRequest } from './utils';
import { fetch } from '@whatwg-node/fetch';
export interface CreateServerAdapterOptions<TServerContext, TBaseObject> {

@@ -30,3 +29,7 @@ /**

*/
fetch: typeof fetch | ((request: Request, ...ctx: any[]) => Promise<Response>);
fetch(request: Request, ...ctx: any[]): Promise<Response>;
fetch(urlStr: string, ...ctx: any[]): Promise<Response>;
fetch(urlStr: string, init: RequestInit, ...ctx: any[]): Promise<Response>;
fetch(url: URL, ...ctx: any[]): Promise<Response>;
fetch(url: URL, init: RequestInit, ...ctx: any[]): Promise<Response>;
/**

@@ -33,0 +36,0 @@ * This function takes Node's request object and returns a WHATWG Fetch spec compliant `Response` object.

{
"name": "@whatwg-node/server",
"version": "0.1.0",
"version": "0.1.1",
"description": "Fetch API compliant HTTP Server adapter",

@@ -5,0 +5,0 @@ "sideEffects": false,

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