@sveltejs/adapter-cloudflare-workers
Advanced tools
Comparing version 1.0.0-next.13 to 1.0.0-next.14
# @sveltejs/adapter-cloudflare-workers | ||
## 1.0.0-next.14 | ||
### Patch Changes | ||
- 7faf52f: Update and consolidate checks for binary body types | ||
## 1.0.0-next.13 | ||
@@ -4,0 +10,0 @@ |
// 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 | ||
@@ -60,3 +61,3 @@ init(); | ||
const type = request.headers.get('content-type') || ''; | ||
if (type.includes('application/octet-stream')) { | ||
if (isContentTypeBinary(type)) { | ||
return new Uint8Array(await request.arrayBuffer()); | ||
@@ -63,0 +64,0 @@ } |
{ | ||
"name": "@sveltejs/adapter-cloudflare-workers", | ||
"version": "1.0.0-next.13", | ||
"version": "1.0.0-next.14", | ||
"type": "module", | ||
@@ -19,3 +19,3 @@ "exports": { | ||
"devDependencies": { | ||
"@sveltejs/kit": "1.0.0-next.120" | ||
"@sveltejs/kit": "1.0.0-next.125" | ||
}, | ||
@@ -22,0 +22,0 @@ "scripts": { |
@@ -28,1 +28,5 @@ # adapter-cloudflare-workers | ||
More info on configuring a cloudflare worker site can be found [here](https://developers.cloudflare.com/workers/platform/sites/start-from-existing) | ||
## Changelog | ||
[The Changelog for this package is available on GitHub](https://github.com/sveltejs/kit/blob/master/packages/adapter-cloudflare-workers/CHANGELOG.md). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9660
137
32