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

@sveltejs/adapter-cloudflare

Package Overview
Dependencies
Maintainers
4
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sveltejs/adapter-cloudflare - npm Package Compare versions

Comparing version 1.0.0-next.15 to 1.0.0-next.16

7

files/worker.js

@@ -53,3 +53,8 @@ import { Server } from 'SERVER';

try {
return await server.respond(req, { platform: { env, context } });
return await server.respond(req, {
platform: { env, context },
getClientAddress() {
return req.headers.get('cf-connecting-ip');
}
});
} catch (e) {

@@ -56,0 +61,0 @@ return new Response('Error rendering route: ' + (e.message || e.toString()), { status: 500 });

2

package.json
{
"name": "@sveltejs/adapter-cloudflare",
"version": "1.0.0-next.15",
"version": "1.0.0-next.16",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

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