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

@astrojs/node

Package Overview
Dependencies
Maintainers
4
Versions
111
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 2.0.0 to 2.0.1

8

CHANGELOG.md
# @astrojs/node
## 2.0.1
### Patch Changes
- [#5114](https://github.com/withastro/astro/pull/5114) [`5c0c6e1ac`](https://github.com/withastro/astro/commit/5c0c6e1ac67e6341625f028794986700197334ae) Thanks [@matthewp](https://github.com/matthewp)! - Fixes finding the client folder for serving assets
- [#5111](https://github.com/withastro/astro/pull/5111) [`df4d84610`](https://github.com/withastro/astro/commit/df4d84610ad2b543a37cb3bcac9887bfef0b8994) Thanks [@rishi-raj-jain](https://github.com/rishi-raj-jain)! - fix port in standalone mode
## 2.0.0

@@ -4,0 +12,0 @@

@@ -19,2 +19,11 @@ function getAdapter(options) {

hooks: {
"astro:config:setup": ({ updateConfig }) => {
updateConfig({
vite: {
ssr: {
noExternal: ["@astrojs/node"]
}
}
});
},
"astro:config:done": ({ setAdapter, config }) => {

@@ -21,0 +30,0 @@ var _a, _b, _c;

2

dist/standalone.js

@@ -28,3 +28,3 @@ import path from "path";

function startServer(app, options) {
const port = process.env.PORT ? Number(process.env.port) : options.port ?? 8080;
const port = process.env.PORT ? Number(process.env.PORT) : options.port ?? 8080;
const { client } = resolvePaths(options);

@@ -31,0 +31,0 @@ const handler = middleware(app);

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

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

"@types/send": "^0.17.1",
"astro": "1.5.0",
"astro": "1.5.1",
"astro-scripts": "0.0.8",

@@ -35,0 +35,0 @@ "chai": "^4.3.6",

@@ -68,3 +68,3 @@ # @astrojs/node

import { defineConfig } from 'astro/config';
import nodejs from '@astrojs/node';
import node from '@astrojs/node';

@@ -71,0 +71,0 @@ export default defineConfig({

@@ -24,2 +24,11 @@ import type { AstroAdapter, AstroIntegration } from 'astro';

hooks: {
'astro:config:setup': ({ updateConfig }) => {
updateConfig({
vite: {
ssr: {
noExternal: ['@astrojs/node'],
},
},
});
},
'astro:config:done': ({ setAdapter, config }) => {

@@ -26,0 +35,0 @@ needsBuildConfig = !config.build?.server;

@@ -38,3 +38,3 @@ import type { NodeApp } from 'astro/app/node';

export default function startServer(app: NodeApp, options: Options) {
const port = process.env.PORT ? Number(process.env.port) : options.port ?? 8080;
const port = process.env.PORT ? Number(process.env.PORT) : options.port ?? 8080;
const { client } = resolvePaths(options);

@@ -41,0 +41,0 @@ const handler = middleware(app);

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