@friggframework/devtools 1.2.3--canary.328.68fde96.0 → 1.2.3--canary.328.91547eb.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.
@@ -12,9 +12,9 @@ function createFriggInfrastructure() {
12
12
  }
13
13
 
14
14
  const backendDir = path.dirname(backendPath);
15
- const backendFilePath = path.join(backendDir, 'backend.js');
15
+ const backendFilePath = path.join(backendDir, 'index.js');
16
16
  if (!fs.existsSync(backendFilePath)) {
17
- throw new Error('Could not find backend.js');
17
+ throw new Error('Could not find index.js');
18
18
  }
19
19
 
20
20
  const backend = require(backendFilePath);
@@ -1,5 +1,5 @@
1
1
  const catchAsyncError = require('express-async-handler');
2
- const { User } = require('../../../../../../prototyping/backend/backend');
2
+ const { User } = require('../../backend-utils');
3
3
 
4
4
  module.exports = catchAsyncError(async (req, res, next) => {
5
5
  const authorizationHeader = req.headers.authorization;
@@ -1,4 +1,6 @@
1
1
  const path = require('path');
2
+ const fs = require('fs');
3
+
2
4
 
3
5
  module.exports = {
4
6
  frameworkVersion: '>=3.17.0',
@@ -27,7 +29,8 @@ module.exports = {
27
29
  },
28
30
  ],
29
31
  },
30
- plugins: ['serverless-webpack', 'serverless-offline'],
32
+ // plugins: ['serverless-webpack', 'serverless-offline'],
33
+ plugins: ['serverless-offline'],
31
34
  custom: {
32
35
  'serverless-offline': {
33
36
  httpPort: 3001,
@@ -43,7 +46,7 @@ module.exports = {
43
46
  },
44
47
  functions: {
45
48
  auth: {
46
- handler: require.resolve('./routers/auth.js'),
49
+ handler: '/../node_modules/@friggframework/devtools/infrastructure/routers/auth.handler',
47
50
  events: [
48
51
  {
49
52
  http: {
@@ -69,7 +72,7 @@ module.exports = {
69
72
  ],
70
73
  },
71
74
  user: {
72
- handler: require.resolve('./routers/user.js'),
75
+ handler: '/../node_modules/@friggframework/devtools/infrastructure/routers/user.handler',
73
76
  events: [
74
77
  {
75
78
  http: {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@friggframework/devtools",
3
3
  "prettier": "@friggframework/prettier-config",
4
- "version": "1.2.3--canary.328.68fde96.0",
4
+ "version": "1.2.3--canary.328.91547eb.0",
5
5
  "dependencies": {
6
6
  "@babel/eslint-parser": "^7.18.9",
7
7
  "@babel/parser": "^7.25.3",
8
8
  "@babel/traverse": "^7.25.3",
9
- "@friggframework/core": "1.2.3--canary.328.68fde96.0",
10
- "@friggframework/test": "1.2.3--canary.328.68fde96.0",
9
+ "@friggframework/core": "1.2.3--canary.328.91547eb.0",
10
+ "@friggframework/test": "1.2.3--canary.328.91547eb.0",
11
11
  "@hapi/boom": "^7.4.11",
12
12
  "@inquirer/prompts": "^5.3.8",
13
13
  "axios": "^1.7.2",
@@ -28,8 +28,8 @@
28
28
  "serverless-http": "^2.7.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@friggframework/eslint-config": "1.2.3--canary.328.68fde96.0",
32
- "@friggframework/prettier-config": "1.2.3--canary.328.68fde96.0"
31
+ "@friggframework/eslint-config": "1.2.3--canary.328.91547eb.0",
32
+ "@friggframework/prettier-config": "1.2.3--canary.328.91547eb.0"
33
33
  },
34
34
  "scripts": {
35
35
  "lint:fix": "prettier --write --loglevel error . && eslint . --fix",
@@ -53,5 +53,5 @@
53
53
  "publishConfig": {
54
54
  "access": "public"
55
55
  },
56
- "gitHead": "68fde9687d921c41f354af3618155b5219d4d8e0"
56
+ "gitHead": "91547eba5a00851f50596bceb1e2414566d74ad7"
57
57
  }