@friggframework/devtools 2.0.0--canary.517.0ff3ee0.0 → 2.0.0--canary.517.559ad7e.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.
|
@@ -466,9 +466,23 @@ class MigrationBuilder extends InfrastructureBuilder {
|
|
|
466
466
|
// Note: Serverless will merge this with provider.environment
|
|
467
467
|
},
|
|
468
468
|
events: [
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
469
|
+
// Paths must match the Express router in core's db-migration.js,
|
|
470
|
+
// which mounts under /admin/db-migrate (consolidated with the
|
|
471
|
+
// other admin endpoints). A mismatch routes API Gateway to the
|
|
472
|
+
// Lambda but Express 404s ("Cannot POST /db-migrate").
|
|
473
|
+
{
|
|
474
|
+
httpApi: {
|
|
475
|
+
path: '/admin/db-migrate/status',
|
|
476
|
+
method: 'GET',
|
|
477
|
+
},
|
|
478
|
+
},
|
|
479
|
+
{ httpApi: { path: '/admin/db-migrate', method: 'POST' } },
|
|
480
|
+
{
|
|
481
|
+
httpApi: {
|
|
482
|
+
path: '/admin/db-migrate/{processId}',
|
|
483
|
+
method: 'GET',
|
|
484
|
+
},
|
|
485
|
+
},
|
|
472
486
|
],
|
|
473
487
|
};
|
|
474
488
|
console.log(' ✓ Created dbMigrationRouter function');
|
|
@@ -230,14 +230,15 @@ describe('MigrationBuilder', () => {
|
|
|
230
230
|
expect(result.functions.dbMigrationRouter.timeout).toBe(30);
|
|
231
231
|
expect(result.functions.dbMigrationRouter.memorySize).toBe(512);
|
|
232
232
|
expect(result.functions.dbMigrationRouter.events).toHaveLength(3);
|
|
233
|
+
// Must match core's Express router mounted under /admin/db-migrate.
|
|
233
234
|
expect(result.functions.dbMigrationRouter.events).toContainEqual({
|
|
234
|
-
httpApi: { path: '/db-migrate/status', method: 'GET' },
|
|
235
|
+
httpApi: { path: '/admin/db-migrate/status', method: 'GET' },
|
|
235
236
|
});
|
|
236
237
|
expect(result.functions.dbMigrationRouter.events).toContainEqual({
|
|
237
|
-
httpApi: { path: '/db-migrate', method: 'POST' },
|
|
238
|
+
httpApi: { path: '/admin/db-migrate', method: 'POST' },
|
|
238
239
|
});
|
|
239
240
|
expect(result.functions.dbMigrationRouter.events).toContainEqual({
|
|
240
|
-
httpApi: { path: '/db-migrate/{processId}', method: 'GET' },
|
|
241
|
+
httpApi: { path: '/admin/db-migrate/{processId}', method: 'GET' },
|
|
241
242
|
});
|
|
242
243
|
});
|
|
243
244
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@friggframework/devtools",
|
|
3
3
|
"prettier": "@friggframework/prettier-config",
|
|
4
|
-
"version": "2.0.0--canary.517.
|
|
4
|
+
"version": "2.0.0--canary.517.559ad7e.0",
|
|
5
5
|
"bin": {
|
|
6
6
|
"frigg": "./frigg-cli/index.js"
|
|
7
7
|
},
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"@babel/eslint-parser": "^7.18.9",
|
|
26
26
|
"@babel/parser": "^7.25.3",
|
|
27
27
|
"@babel/traverse": "^7.25.3",
|
|
28
|
-
"@friggframework/core": "2.0.0--canary.517.
|
|
29
|
-
"@friggframework/schemas": "2.0.0--canary.517.
|
|
30
|
-
"@friggframework/test": "2.0.0--canary.517.
|
|
28
|
+
"@friggframework/core": "2.0.0--canary.517.559ad7e.0",
|
|
29
|
+
"@friggframework/schemas": "2.0.0--canary.517.559ad7e.0",
|
|
30
|
+
"@friggframework/test": "2.0.0--canary.517.559ad7e.0",
|
|
31
31
|
"@hapi/boom": "^10.0.1",
|
|
32
32
|
"@inquirer/prompts": "^5.3.8",
|
|
33
33
|
"axios": "^1.18.0",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"validate-npm-package-name": "^5.0.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@friggframework/eslint-config": "2.0.0--canary.517.
|
|
59
|
-
"@friggframework/prettier-config": "2.0.0--canary.517.
|
|
58
|
+
"@friggframework/eslint-config": "2.0.0--canary.517.559ad7e.0",
|
|
59
|
+
"@friggframework/prettier-config": "2.0.0--canary.517.559ad7e.0",
|
|
60
60
|
"aws-sdk-client-mock": "^4.1.0",
|
|
61
61
|
"aws-sdk-client-mock-jest": "^4.1.0",
|
|
62
62
|
"jest": "^30.1.3",
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"publishConfig": {
|
|
89
89
|
"access": "public"
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "559ad7ed62bf320273a70e2bb9e30ec67a026355"
|
|
92
92
|
}
|