nextjs-cms-kit 0.5.67 → 0.5.68
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.
package/dist/lib/db-migrate.js
CHANGED
|
@@ -74,10 +74,10 @@ export async function generateDatabaseTables() {
|
|
|
74
74
|
checkStderrForErrors: true, // Also check for errors in output even if exit code is 0
|
|
75
75
|
});
|
|
76
76
|
spinner?.stop();
|
|
77
|
-
p.log.success(chalk.green('✓ Database tables generated'));
|
|
77
|
+
p.log.success(chalk.green(' ✓ Database tables generated'));
|
|
78
78
|
}
|
|
79
79
|
catch (error) {
|
|
80
|
-
console.error(chalk.red('✗ Error generating database tables:'), error);
|
|
80
|
+
console.error(chalk.red(' ✗ Error generating database tables:'), error);
|
|
81
81
|
p.log.error(chalk.red('✗ Failed to generate database tables'));
|
|
82
82
|
process.exit(1);
|
|
83
83
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fix-master-admin.d.ts","sourceRoot":"","sources":["../../src/lib/fix-master-admin.ts"],"names":[],"mappings":"AAAA,wBAAsB,wBAAwB,
|
|
1
|
+
{"version":3,"file":"fix-master-admin.d.ts","sourceRoot":"","sources":["../../src/lib/fix-master-admin.ts"],"names":[],"mappings":"AAAA,wBAAsB,wBAAwB,kBAqC7C"}
|
|
@@ -12,8 +12,15 @@ export async function fixMasterAdminPrivileges() {
|
|
|
12
12
|
operations: 'CUD',
|
|
13
13
|
publisher: '1',
|
|
14
14
|
}));
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Add the admins table to the privileges
|
|
17
|
+
*/
|
|
18
|
+
rows.push({
|
|
19
|
+
adminId: '1',
|
|
20
|
+
sectionName: 'admins',
|
|
21
|
+
operations: 'CUD',
|
|
22
|
+
publisher: '1',
|
|
23
|
+
});
|
|
17
24
|
await db
|
|
18
25
|
.insert(AdminPrivilegesTable)
|
|
19
26
|
.values(rows)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nextjs-cms-kit",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.68",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"nextjs-cms-kit": "./dist/index.js"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"gradient-string": "^3.0.0",
|
|
34
34
|
"mysql2": "^3.12.0",
|
|
35
35
|
"ora": "9.0.0",
|
|
36
|
-
"nextjs-cms": "0.5.
|
|
36
|
+
"nextjs-cms": "0.5.68"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/bcrypt": "^6.0.0",
|