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.14 to 1.0.0-next.15

6

CHANGELOG.md
# @sveltejs/adapter-cloudflare-workers
## 1.0.0-next.15
### Patch Changes
- 4720b67: Default body parsing to binary
## 1.0.0-next.14

@@ -4,0 +10,0 @@

8

files/entry.js
// TODO hardcoding the relative location makes this brittle
import { init, render } from '../output/server/app.js'; // eslint-disable-line import/no-unresolved
import { getAssetFromKV, NotFoundError } from '@cloudflare/kv-asset-handler'; // eslint-disable-line import/no-unresolved
import { isContentTypeBinary } from '@sveltejs/kit/adapter-utils'; // eslint-disable-line import/no-unresolved
import { isContentTypeTextual } from '@sveltejs/kit/adapter-utils'; // eslint-disable-line import/no-unresolved

@@ -61,7 +61,7 @@ init();

const type = request.headers.get('content-type') || '';
if (isContentTypeBinary(type)) {
return new Uint8Array(await request.arrayBuffer());
if (isContentTypeTextual(type)) {
return request.text();
}
return request.text();
return new Uint8Array(await request.arrayBuffer());
}
{
"name": "@sveltejs/adapter-cloudflare-workers",
"version": "1.0.0-next.14",
"version": "1.0.0-next.15",
"type": "module",

@@ -19,3 +19,3 @@ "exports": {

"devDependencies": {
"@sveltejs/kit": "1.0.0-next.125"
"@sveltejs/kit": "1.0.0-next.126"
},

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

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