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
800
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.44 to 0.9.45-alpha-20240726144438-d85e825aca3e8ac57c7758d5ec88ed5c27358fcc

2

package.json
{
"name": "@whatwg-node/server",
"version": "0.9.44",
"version": "0.9.45-alpha-20240726144438-d85e825aca3e8ac57c7758d5ec88ed5c27358fcc",
"description": "Fetch API compliant HTTP Server adapter",

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

@@ -155,3 +155,3 @@ # WHATWG Node Generic Server Adapter

```ts
import fastify, { FastifyReply, FastifyRequest } from 'fastify'
import fastify from 'fastify'
import myServerAdapter from './myServerAdapter'

@@ -170,18 +170,7 @@

method: ['GET', 'POST', 'OPTIONS'],
handler: async (req, reply) => {
const response = await myServerAdapter.handleNodeRequestAndResponse(req, reply, {
handler: (req, reply) =>
myServerAdapter.handleNodeRequestAndResponse(req, reply, {
req,
reply
})
response.headers.forEach((value, key) => {
reply.header(key, value)
})
reply.status(response.status)
// Fastify doesn't accept `null` as a response body
reply.send(response.body || undefined)
return reply
}
})

@@ -188,0 +177,0 @@

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