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
713
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.2 to 0.2.0

2

index.d.ts

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

}
export declare type ServerAdapter<TServerContext, TBaseObject> = TBaseObject & RequestListener & ServerAdapterObject<TServerContext>;
export declare type ServerAdapter<TServerContext, TBaseObject> = TBaseObject & RequestListener & ServerAdapterObject<TServerContext>['fetch'] & ServerAdapterObject<TServerContext>;
export declare function createServerAdapter<TServerContext = {

@@ -49,0 +49,0 @@ req: NodeRequest;

@@ -196,2 +196,7 @@ 'use strict';

function genericRequestHandler(input, ctx) {
var _a;
if ('process' in globalThis && ((_a = process.versions) === null || _a === void 0 ? void 0 : _a['bun']) != null) {
// This is required for bun
input.text();
}
// If it is a Node request

@@ -198,0 +203,0 @@ if (isReadable(input) && ctx != null && isServerResponse(ctx)) {

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

@@ -10,3 +10,3 @@ "sideEffects": false,

"dependencies": {
"@whatwg-node/fetch": "^0.3.0",
"@whatwg-node/fetch": "^0.4.0",
"tslib": "^2.3.1"

@@ -13,0 +13,0 @@ },

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