freestyle-sandboxes 0.0.41 → 0.0.42

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.
@@ -304,7 +304,7 @@ function getRedirectRewriteLocation(request, route) {
304
304
  const freestyleExpoServer = ({
305
305
  CLIENT_BUILD_DIR = path__namespace.join(process__namespace.cwd(), "dist/client"),
306
306
  SERVER_BUILD_DIR = path__namespace.join(process__namespace.cwd(), "dist/server")
307
- }) => {
307
+ } = {}) => {
308
308
  const expoHandler = createRequestHandler(SERVER_BUILD_DIR);
309
309
  const app = new hono.Hono();
310
310
  app.use("*", deno.serveStatic({ root: CLIENT_BUILD_DIR }));
@@ -1,4 +1,4 @@
1
- declare const freestyleExpoServer: ({ CLIENT_BUILD_DIR, SERVER_BUILD_DIR, }: {
1
+ declare const freestyleExpoServer: ({ CLIENT_BUILD_DIR, SERVER_BUILD_DIR, }?: {
2
2
  CLIENT_BUILD_DIR?: string;
3
3
  SERVER_BUILD_DIR?: string;
4
4
  }) => void;
@@ -1,4 +1,4 @@
1
- declare const freestyleExpoServer: ({ CLIENT_BUILD_DIR, SERVER_BUILD_DIR, }: {
1
+ declare const freestyleExpoServer: ({ CLIENT_BUILD_DIR, SERVER_BUILD_DIR, }?: {
2
2
  CLIENT_BUILD_DIR?: string;
3
3
  SERVER_BUILD_DIR?: string;
4
4
  }) => void;
@@ -282,7 +282,7 @@ function getRedirectRewriteLocation(request, route) {
282
282
  const freestyleExpoServer = ({
283
283
  CLIENT_BUILD_DIR = path.join(process.cwd(), "dist/client"),
284
284
  SERVER_BUILD_DIR = path.join(process.cwd(), "dist/server")
285
- }) => {
285
+ } = {}) => {
286
286
  const expoHandler = createRequestHandler(SERVER_BUILD_DIR);
287
287
  const app = new Hono();
288
288
  app.use("*", serveStatic({ root: CLIENT_BUILD_DIR }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freestyle-sandboxes",
3
- "version": "0.0.41",
3
+ "version": "0.0.42",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
package/src/expo/index.ts CHANGED
@@ -8,7 +8,7 @@ import { serveStatic } from "hono/deno";
8
8
  export const freestyleExpoServer = ({
9
9
  CLIENT_BUILD_DIR = path.join(process.cwd(), "dist/client"),
10
10
  SERVER_BUILD_DIR = path.join(process.cwd(), "dist/server"),
11
- }) => {
11
+ } = {}) => {
12
12
  // // Expo handler
13
13
  const expoHandler = createRequestHandler(SERVER_BUILD_DIR);
14
14