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

@astrojs/node

Package Overview
Dependencies
Maintainers
3
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@astrojs/node - npm Package Compare versions

Comparing version 5.1.4 to 5.2.0

dist/createOutgoingHttpHeaders.d.ts

8

dist/http-server.js

@@ -41,3 +41,9 @@ import fs from "fs";

stream.on("directory", () => {
const location = req.url + "/";
let location;
if (req.url.includes("?")) {
const [url = "", search] = req.url.split("?");
location = `${url}/?${search}`;
} else {
location = req.url + "/";
}
res.statusCode = 301;

@@ -44,0 +50,0 @@ res.setHeader("Location", location);

8

dist/nodeMiddleware.js

@@ -0,1 +1,2 @@

import { createOutgoingHttpHeaders } from "./createOutgoingHttpHeaders";
import { responseIterator } from "./response-iterator";

@@ -36,6 +37,9 @@ function nodeMiddleware_default(app, mode) {

if (setCookieHeaders.length) {
res.setHeader("Set-Cookie", setCookieHeaders);
for (const setCookieHeader of setCookieHeaders) {
webResponse.headers.append("set-cookie", setCookieHeader);
}
}
}
res.writeHead(status, Object.fromEntries(headers.entries()));
const nodeHeaders = createOutgoingHttpHeaders(headers);
res.writeHead(status, nodeHeaders);
if (webResponse.body) {

@@ -42,0 +46,0 @@ try {

{
"name": "@astrojs/node",
"description": "Deploy your site to a Node.js server",
"version": "5.1.4",
"version": "5.2.0",
"type": "module",

@@ -30,3 +30,3 @@ "types": "./dist/index.d.ts",

"dependencies": {
"@astrojs/webapi": "^2.1.1",
"@astrojs/webapi": "^2.2.0",
"send": "^0.18.0",

@@ -36,5 +36,6 @@ "server-destroy": "^1.0.1"

"peerDependencies": {
"astro": "^2.5.0"
"astro": "^2.6.0"
},
"devDependencies": {
"@types/node": "^18.7.21",
"@types/send": "^0.17.1",

@@ -47,3 +48,3 @@ "@types/server-destroy": "^1.0.1",

"undici": "^5.22.0",
"astro": "2.5.0",
"astro": "2.6.0",
"astro-scripts": "0.0.14"

@@ -50,0 +51,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