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

@sveltejs/adapter-cloudflare-workers

Package Overview
Dependencies
Maintainers
4
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sveltejs/adapter-cloudflare-workers - npm Package Compare versions

Comparing version 1.0.0-next.58 to 1.0.0-next.59

6

files/entry.js

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

const prefix = `/${manifest.appDir}/`;
const app_path = `/${manifest.appPath}/`;

@@ -24,3 +24,3 @@ export default {

// static assets
if (url.pathname.startsWith(prefix)) {
if (url.pathname.startsWith(app_path)) {
/** @type {Response} */

@@ -30,3 +30,3 @@ const res = await get_asset_from_kv(req, env, context);

const cache_control = url.pathname.startsWith(prefix + 'immutable/')
const cache_control = url.pathname.startsWith(app_path + 'immutable/')
? 'public, immutable, max-age=31536000'

@@ -33,0 +33,0 @@ : 'no-cache';

@@ -76,4 +76,5 @@ import { existsSync, readFileSync, writeFileSync } from 'fs';

builder.log.minor('Copying assets...');
builder.writeClient(site.bucket);
builder.writePrerendered(site.bucket);
const bucket_dir = `${site.bucket}${builder.config.kit.paths.base}`;
builder.writeClient(bucket_dir);
builder.writePrerendered(bucket_dir);
}

@@ -80,0 +81,0 @@ };

{
"name": "@sveltejs/adapter-cloudflare-workers",
"version": "1.0.0-next.58",
"version": "1.0.0-next.59",
"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