Socket
Socket
Sign inDemoInstall

@sveltejs/adapter-cloudflare

Package Overview
Dependencies
Maintainers
4
Versions
83
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 4.2.1 to 4.3.0

9

index.d.ts
import { Adapter } from '@sveltejs/kit';
import './ambient.js';
import { GetPlatformProxyOptions } from 'wrangler';

@@ -20,3 +21,3 @@ export default function plugin(options?: AdapterOptions): Adapter;

/**
* Customize the automatically-generated `_routes.json` file
* Customize the automatically-generated `_routes.json` file.
* https://developers.cloudflare.com/pages/platform/functions/routing/#create-a-_routesjson-file

@@ -46,2 +47,8 @@ */

};
/**
* Config object passed to {@link https://developers.cloudflare.com/workers/wrangler/api/#getplatformproxy | getPlatformProxy}
* during development and preview.
*/
platformProxy?: GetPlatformProxyOptions;
}

@@ -48,0 +55,0 @@

2

index.js

@@ -131,3 +131,3 @@ import { writeFileSync } from 'node:fs';

async emulate() {
const proxy = await getPlatformProxy();
const proxy = await getPlatformProxy(options.platformProxy);
const platform = /** @type {App.Platform} */ ({

@@ -134,0 +134,0 @@ env: proxy.env,

{
"name": "@sveltejs/adapter-cloudflare",
"version": "4.2.1",
"version": "4.3.0",
"description": "Adapter for building SvelteKit applications on Cloudflare Pages with Workers integration",

@@ -5,0 +5,0 @@ "repository": {

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