@friggframework/core 2.0.0--canary.627.b5f8805.0 → 2.0.0--canary.627.ce32cdc.0

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.
@@ -405,9 +405,6 @@ async function runPrismaMigrateResolve(migrationName, action = 'applied', verbos
405
405
  const [executable, ...executableArgs] = prismaBin.split(' ');
406
406
  const fullArgs = [...executableArgs, ...args];
407
407
 
408
- // Pipe stdout/stderr so Prisma's actual failure reason (e.g. P3011
409
- // "migration not found" from a mistyped name) is returned to the
410
- // caller — not just left in CloudWatch. Still echo when verbose.
411
408
  let stdout = '';
412
409
  let stderr = '';
413
410
  const proc = spawn(executable, fullArgs, {
@@ -265,8 +265,6 @@ router.post(
265
265
  });
266
266
  }
267
267
 
268
- // Prisma migration name shape (<14-digit timestamp>_<name>). Rejects
269
- // values that would be parsed as CLI flags (e.g. "--schema").
270
268
  if (!/^\d{14}_[a-z0-9_]+$/i.test(migrationName)) {
271
269
  return res.status(400).json({
272
270
  success: false,
@@ -284,8 +282,6 @@ router.post(
284
282
  const stage = req.body.stage || process.env.STAGE || 'production';
285
283
 
286
284
  try {
287
- // Delegate to the worker Lambda (which has the Prisma CLI); the
288
- // router Lambda is packaged without Prisma.
289
285
  const result = await resolveMigrationUseCase.execute({
290
286
  migrationName,
291
287
  action,
@@ -295,7 +291,6 @@ router.post(
295
291
  res.status(200).json(result);
296
292
  } catch (error) {
297
293
  console.error('Migration resolve failed:', error);
298
- // Surface a worker-side 400 (bad input) as a 400, not a generic 500.
299
294
  if (
300
295
  error instanceof LambdaInvocationError &&
301
296
  error.statusCode === 400
@@ -188,8 +188,6 @@ exports.handler = async (event, context) => {
188
188
  }
189
189
  }
190
190
 
191
- // Handle resolve action (P3009 recovery — router delegates here because the
192
- // worker has the Prisma CLI; the router does not).
193
191
  if (action === 'resolve') {
194
192
  const { migrationName, resolveAction = 'applied' } = event;
195
193
  console.log(`\n========================================`);
@@ -204,8 +202,6 @@ exports.handler = async (event, context) => {
204
202
  body: { success: false, error: 'migrationName is required' },
205
203
  };
206
204
  }
207
- // Prisma migration name shape (<14-digit timestamp>_<name>). Rejects
208
- // values that would be parsed as CLI flags (e.g. "--schema").
209
205
  if (!/^\d{14}_[a-z0-9_]+$/i.test(migrationName)) {
210
206
  return {
211
207
  statusCode: 400,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@friggframework/core",
3
3
  "prettier": "@friggframework/prettier-config",
4
- "version": "2.0.0--canary.627.b5f8805.0",
4
+ "version": "2.0.0--canary.627.ce32cdc.0",
5
5
  "dependencies": {
6
6
  "@aws-sdk/client-apigatewaymanagementapi": "^3.588.0",
7
7
  "@aws-sdk/client-kms": "^3.588.0",
@@ -46,9 +46,9 @@
46
46
  }
47
47
  },
48
48
  "devDependencies": {
49
- "@friggframework/eslint-config": "2.0.0--canary.627.b5f8805.0",
50
- "@friggframework/prettier-config": "2.0.0--canary.627.b5f8805.0",
51
- "@friggframework/test": "2.0.0--canary.627.b5f8805.0",
49
+ "@friggframework/eslint-config": "2.0.0--canary.627.ce32cdc.0",
50
+ "@friggframework/prettier-config": "2.0.0--canary.627.ce32cdc.0",
51
+ "@friggframework/test": "2.0.0--canary.627.ce32cdc.0",
52
52
  "@prisma/client": "^6.19.3",
53
53
  "@types/lodash": "4.17.15",
54
54
  "@typescript-eslint/eslint-plugin": "^8.0.0",
@@ -88,5 +88,5 @@
88
88
  "publishConfig": {
89
89
  "access": "public"
90
90
  },
91
- "gitHead": "b5f8805cac1497009ffbc6278e74d1d9d62ca448"
91
+ "gitHead": "ce32cdc11aca0fa8087180474bb19d6e07fa47b6"
92
92
  }