create-ereo 0.2.29 → 0.2.35

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 +10 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2872,7 +2872,7 @@ export async function action({ request, context }${ts ? ": { request: Request; c
2872
2872
  await auth.signIn('credentials', { email, password });
2873
2873
 
2874
2874
  return new Response(null, {
2875
- status: 302,
2875
+ status: 303,
2876
2876
  headers: {
2877
2877
  Location: '/tasks',
2878
2878
  'Set-Cookie': auth.getCookieHeader() || '',
@@ -3009,7 +3009,7 @@ export async function action({ request, context }${ts ? ": { request: Request; c
3009
3009
  await auth.signIn('credentials', { email, password });
3010
3010
 
3011
3011
  return new Response(null, {
3012
- status: 302,
3012
+ status: 303,
3013
3013
  headers: {
3014
3014
  Location: '/tasks',
3015
3015
  'Set-Cookie': auth.getCookieHeader() || '',
@@ -3017,7 +3017,7 @@ export async function action({ request, context }${ts ? ": { request: Request; c
3017
3017
  });
3018
3018
  } catch {
3019
3019
  // Account created but auto-login failed \u2014 redirect to login
3020
- return new Response(null, { status: 302, headers: { Location: '/login' } });
3020
+ return new Response(null, { status: 303, headers: { Location: '/login' } });
3021
3021
  }
3022
3022
  }
3023
3023
 
@@ -3139,7 +3139,7 @@ export async function action({ context }${ts ? ": { context: any }" : ""}) {
3139
3139
  }
3140
3140
 
3141
3141
  return new Response(null, {
3142
- status: 302,
3142
+ status: 303,
3143
3143
  headers: { Location: '/' },
3144
3144
  });
3145
3145
  }
@@ -3310,7 +3310,7 @@ export const config = { ...requireAuth({ redirect: '/login' }) };
3310
3310
  export async function action({ request, context }${ts ? ": { request: Request; context: any }" : ""}) {
3311
3311
  const auth = getAuth(context);
3312
3312
  if (!auth.isAuthenticated()) {
3313
- return new Response(null, { status: 302, headers: { Location: '/login' } });
3313
+ return new Response(null, { status: 303, headers: { Location: '/login' } });
3314
3314
  }
3315
3315
  const user = auth.getUser()${ts ? "!" : ""};
3316
3316
  const userId = Number(user.id);
@@ -3333,7 +3333,7 @@ export async function action({ request, context }${ts ? ": { request: Request; c
3333
3333
  createTask(userId, title, description, 'todo', priority);
3334
3334
 
3335
3335
  return new Response(null, {
3336
- status: 302,
3336
+ status: 303,
3337
3337
  headers: { Location: '/tasks' },
3338
3338
  });
3339
3339
  }
@@ -3441,7 +3441,7 @@ export async function loader({ params, context }${ts ? ": { params: { id: string
3441
3441
  export async function action({ request, params, context }${ts ? ": { request: Request; params: { id: string }; context: any }" : ""}) {
3442
3442
  const auth = getAuth(context);
3443
3443
  if (!auth.isAuthenticated()) {
3444
- return new Response(null, { status: 302, headers: { Location: '/login' } });
3444
+ return new Response(null, { status: 303, headers: { Location: '/login' } });
3445
3445
  }
3446
3446
  const user = auth.getUser()${ts ? "!" : ""};
3447
3447
  const userId = Number(user.id);
@@ -3454,7 +3454,7 @@ export async function action({ request, params, context }${ts ? ": { request: Re
3454
3454
  if (intent === 'delete') {
3455
3455
  deleteTask(taskId, userId);
3456
3456
  return new Response(null, {
3457
- status: 302,
3457
+ status: 303,
3458
3458
  headers: { Location: '/tasks' },
3459
3459
  });
3460
3460
  }
@@ -3472,7 +3472,7 @@ export async function action({ request, params, context }${ts ? ": { request: Re
3472
3472
 
3473
3473
  updateTask(taskId, userId, task.title, task.description, nextStatus[task.status] || 'todo', task.priority);
3474
3474
  return new Response(null, {
3475
- status: 302,
3475
+ status: 303,
3476
3476
  headers: { Location: \`/tasks/\${taskId}\` },
3477
3477
  });
3478
3478
  }
@@ -3500,7 +3500,7 @@ export async function action({ request, params, context }${ts ? ": { request: Re
3500
3500
  }
3501
3501
 
3502
3502
  return new Response(null, {
3503
- status: 302,
3503
+ status: 303,
3504
3504
  headers: { Location: '/tasks' },
3505
3505
  });
3506
3506
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-ereo",
3
- "version": "0.2.29",
3
+ "version": "0.2.35",
4
4
  "license": "MIT",
5
5
  "author": "Ereo Team",
6
6
  "homepage": "https://ereojs.github.io/ereoJS",