vasuzex 2.0.8 → 2.0.10
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.
|
@@ -226,7 +226,7 @@ export function generateAuthServiceTemplate() {
|
|
|
226
226
|
|
|
227
227
|
import bcrypt from 'bcryptjs';
|
|
228
228
|
import jwt from 'jsonwebtoken';
|
|
229
|
-
import User from '
|
|
229
|
+
import User from '../../../../database/models/User.js';
|
|
230
230
|
|
|
231
231
|
export class AuthService {
|
|
232
232
|
/**
|
|
@@ -327,7 +327,7 @@ export function generateAuthMiddlewareTemplate() {
|
|
|
327
327
|
*/
|
|
328
328
|
|
|
329
329
|
import { AuthService } from '../services/AuthService.js';
|
|
330
|
-
import User from '
|
|
330
|
+
import User from '../../../../database/models/User.js';
|
|
331
331
|
|
|
332
332
|
export async function authMiddleware(req, res, next) {
|
|
333
333
|
try {
|
|
@@ -66,9 +66,8 @@ export async function createAppPackageJson(appName, appType, targetDir, framewor
|
|
|
66
66
|
'db:migrate': 'node -e "console.log(\'Run migrations from project root: pnpm db:migrate\')"',
|
|
67
67
|
};
|
|
68
68
|
|
|
69
|
-
// API dependencies
|
|
69
|
+
// API dependencies - vasuzex is hoisted from root, no need to declare
|
|
70
70
|
packageJson.dependencies = {
|
|
71
|
-
'vasuzex': 'workspace:*',
|
|
72
71
|
'express': '^5.2.1',
|
|
73
72
|
'bcryptjs': '^2.4.3',
|
|
74
73
|
'jsonwebtoken': '^9.0.3',
|
|
@@ -99,8 +98,7 @@ export async function createAppPackageJson(appName, appType, targetDir, framewor
|
|
|
99
98
|
'react-dom': '^18.2.0',
|
|
100
99
|
'react-router-dom': '^6.28.0',
|
|
101
100
|
'@reduxjs/toolkit': '^2.5.0',
|
|
102
|
-
'redux-persist': '^6.0.0'
|
|
103
|
-
'@vasuzex/client': 'workspace:*'
|
|
101
|
+
'redux-persist': '^6.0.0'
|
|
104
102
|
};
|
|
105
103
|
|
|
106
104
|
packageJson.devDependencies = {
|
|
@@ -743,7 +743,7 @@ export const store = configureStore({
|
|
|
743
743
|
export const persistor = persistStore(store);`,
|
|
744
744
|
|
|
745
745
|
authSlice: `import { createSlice, createAsyncThunk } from '@reduxjs/toolkit';
|
|
746
|
-
import { createApiClient } from '
|
|
746
|
+
import { createApiClient } from 'vasuzex/client';
|
|
747
747
|
|
|
748
748
|
const API_URL = import.meta.env.VITE_API_URL || 'http://localhost:3000/api';
|
|
749
749
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vasuzex",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.10",
|
|
4
4
|
"description": "Laravel-inspired framework for Node.js monorepos - V2 with optimized dependencies",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./framework/index.js",
|
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
"./Support/Facades": "./framework/Support/Facades/index.js",
|
|
18
18
|
"./Support/Facades/*": "./framework/Support/Facades/*.js",
|
|
19
19
|
"./Services/*": "./framework/Services/*/index.js",
|
|
20
|
+
"./client": "./frontend/client/index.js",
|
|
21
|
+
"./client/*": "./frontend/client/*.js",
|
|
20
22
|
"./package.json": "./package.json"
|
|
21
23
|
},
|
|
22
24
|
"bin": {
|