Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Jan 7, 2022
1 parent 558517d commit 3165f99
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 38 deletions.
5 changes: 1 addition & 4 deletions packages/adapter-cloudflare-workers/files/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ addEventListener('fetch', (/** @type {FetchEvent} */ event) => {
});

/**
*
* @param {FetchEvent} event
* @returns {Promise<Response>}
*/
Expand Down Expand Up @@ -79,9 +78,7 @@ async function read(request) {
return new Uint8Array(await request.arrayBuffer());
}

/**
* @param {Record<string, string | string[]>} headers
*/
/** @param {Record<string, string | string[]>} headers */
function make_headers(headers) {
const result = new Headers();
for (const header in headers) {
Expand Down
6 changes: 1 addition & 5 deletions packages/adapter-cloudflare-workers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,7 @@ export default function () {
};
}

/**
*
* @param {import('@sveltejs/kit').Builder} builder
* @returns
*/
/** @param {import('@sveltejs/kit').Builder} builder */
function validate_config(builder) {
if (existsSync('wrangler.toml')) {
let wrangler_config;
Expand Down
1 change: 1 addition & 0 deletions packages/adapter-cloudflare-workers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"esbuild": "^0.13.15"
},
"devDependencies": {
"@cloudflare/kv-asset-handler": "^0.2.0",
"@cloudflare/workers-types": "^3.3.0",
"@sveltejs/kit": "workspace:*"
}
Expand Down
86 changes: 57 additions & 29 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3165f99

Please sign in to comment.