@sveltejs/adapter-cloudflare-workers
Advanced tools
Comparing version 1.0.0-next.14 to 1.0.0-next.15
# @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 @@ |
// 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": { |
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
9742