@openworkers/adapter-sveltekit 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -157,8 +157,8 @@ async function buildFunctionWorker(options) {
157
157
  const files = path.join(adapterRoot, "dist");
158
158
  const functionTemplate = path.join(files, "function-worker.js");
159
159
  const libCookies = path.join(files, "../src/lib/cookies.js");
160
- const svelteKitCookie = path.join(adapterRoot, "node_modules/@sveltejs/kit/src/runtime/server/cookie.js");
161
- const svelteKitRouting = path.join(adapterRoot, "node_modules/@sveltejs/kit/src/utils/routing.js");
160
+ const svelteKitCookie = path.join(process.cwd(), "node_modules/@sveltejs/kit/src/runtime/server/cookie.js");
161
+ const svelteKitRouting = path.join(process.cwd(), "node_modules/@sveltejs/kit/src/utils/routing.js");
162
162
  const external = ["node:*"];
163
163
  if (!usesCookies) {
164
164
  external.push("cookie");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openworkers/adapter-sveltekit",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "SvelteKit adapter for OpenWorkers",
5
5
  "keywords": [
6
6
  "adapter",