@friggframework/core 2.0.0--canary.461.41e7c8d.0 → 2.0.0--canary.461.0a4f623.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.
|
@@ -173,5 +173,9 @@ router.get(
|
|
|
173
173
|
})
|
|
174
174
|
);
|
|
175
175
|
|
|
176
|
-
|
|
176
|
+
// Export handler for Lambda (like auth.js and user.js)
|
|
177
|
+
const { createAppHandler } = require('../app-handler-helpers');
|
|
178
|
+
const handler = createAppHandler('HTTP Event: DB Migration', router, true);
|
|
179
|
+
|
|
180
|
+
module.exports = { handler, router };
|
|
177
181
|
|
|
@@ -34,8 +34,9 @@ describe('Database Migration Router - Adapter Layer', () => {
|
|
|
34
34
|
}).not.toThrow();
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
it('should export
|
|
38
|
-
const router = require('./db-migration');
|
|
37
|
+
it('should export handler and router', () => {
|
|
38
|
+
const { handler, router } = require('./db-migration');
|
|
39
|
+
expect(typeof handler).toBe('function');
|
|
39
40
|
expect(typeof router).toBe('function');
|
|
40
41
|
expect(router.stack).toBeDefined();
|
|
41
42
|
});
|
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.461.
|
|
4
|
+
"version": "2.0.0--canary.461.0a4f623.0",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@aws-sdk/client-apigatewaymanagementapi": "^3.588.0",
|
|
7
7
|
"@aws-sdk/client-kms": "^3.588.0",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@friggframework/eslint-config": "2.0.0--canary.461.
|
|
41
|
-
"@friggframework/prettier-config": "2.0.0--canary.461.
|
|
42
|
-
"@friggframework/test": "2.0.0--canary.461.
|
|
40
|
+
"@friggframework/eslint-config": "2.0.0--canary.461.0a4f623.0",
|
|
41
|
+
"@friggframework/prettier-config": "2.0.0--canary.461.0a4f623.0",
|
|
42
|
+
"@friggframework/test": "2.0.0--canary.461.0a4f623.0",
|
|
43
43
|
"@prisma/client": "^6.17.0",
|
|
44
44
|
"@types/lodash": "4.17.15",
|
|
45
45
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"publishConfig": {
|
|
80
80
|
"access": "public"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "0a4f6230ae86b17b993912f0d94f400da2769f4c"
|
|
83
83
|
}
|