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

@sveltejs/adapter-node

Package Overview
Dependencies
Maintainers
4
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sveltejs/adapter-node - npm Package Compare versions

Comparing version 1.0.0-next.89 to 1.0.0-next.90

6

index.js

@@ -35,4 +35,6 @@ import { readFileSync, writeFileSync } from 'fs';

builder.log.minor('Compressing assets');
await builder.compress(`${out}/client`);
await builder.compress(`${out}/prerendered`);
await Promise.all([
builder.compress(`${out}/client`),
builder.compress(`${out}/prerendered`)
]);
}

@@ -39,0 +41,0 @@

{
"name": "@sveltejs/adapter-node",
"version": "1.0.0-next.89",
"version": "1.0.0-next.90",
"repository": {

@@ -27,3 +27,3 @@ "type": "git",

"@rollup/plugin-json": "^4.1.0",
"@sveltejs/kit": "1.0.0-next.479",
"@sveltejs/kit": "1.0.0-next.481",
"@types/node": "^16.11.36",

@@ -40,3 +40,3 @@ "c8": "^7.11.3",

"dependencies": {
"esbuild": "^0.14.48"
"esbuild": "^0.15.6"
},

@@ -43,0 +43,0 @@ "scripts": {

@@ -48,3 +48,3 @@ # @sveltejs/adapter-node

The [RequestEvent](https://kit.svelte.dev/docs/types#additional-types-requestevent) object passed to hooks and endpoints includes an `event.clientAddress` property representing the client's IP address. By default this is the connecting `remoteAddress`. If your server is behind one or more proxies (such as a load balancer), this value will contain the innermost proxy's IP address rather than the client's, so we need to specify an `ADDRESS_HEADER` to read the address from:
The [RequestEvent](https://kit.svelte.dev/docs/types#sveltejs-kit-requestevent) object passed to hooks and endpoints includes an `event.clientAddress` property representing the client's IP address. By default this is the connecting `remoteAddress`. If your server is behind one or more proxies (such as a load balancer), this value will contain the innermost proxy's IP address rather than the client's, so we need to specify an `ADDRESS_HEADER` to read the address from:

@@ -51,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