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.4.1 to 4.5.0

8

index.js

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

import { writeFileSync } from 'node:fs';
import { existsSync, writeFileSync } from 'node:fs';
import * as path from 'node:path';

@@ -27,2 +27,8 @@ import { fileURLToPath } from 'node:url';

async adapt(builder) {
if (existsSync('_routes.json')) {
throw new Error(
'Cloudflare routes should be configured in svelte.config.js rather than _routes.json'
);
}
const files = fileURLToPath(new URL('./files', import.meta.url).href);

@@ -29,0 +35,0 @@ const dest = builder.getBuildDirectory('cloudflare');

4

package.json
{
"name": "@sveltejs/adapter-cloudflare",
"version": "4.4.1",
"version": "4.5.0",
"description": "Adapter for building SvelteKit applications on Cloudflare Pages with Workers integration",

@@ -44,3 +44,3 @@ "keywords": [

"typescript": "^5.3.3",
"@sveltejs/kit": "^2.5.11"
"@sveltejs/kit": "^2.5.17"
},

@@ -47,0 +47,0 @@ "peerDependencies": {

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