nextjs-cms-kit 0.5.23 → 0.5.25
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/actions.js +1 -1
- package/package.json +12 -11
package/dist/lib/actions.js
CHANGED
|
@@ -2,7 +2,7 @@ import { SectionFactory } from 'nextjs-cms/core/factories';
|
|
|
2
2
|
import { db } from 'nextjs-cms/db/client';
|
|
3
3
|
import { AdminPrivilegesTable, AdminsTable } from 'nextjs-cms/db/schema';
|
|
4
4
|
import { eq, and } from 'drizzle-orm';
|
|
5
|
-
import bcrypt from '
|
|
5
|
+
import bcrypt from 'bcrypt';
|
|
6
6
|
export async function fixMasterAdminPrivileges() {
|
|
7
7
|
// Let's also add privileges for all the sections to the master admin
|
|
8
8
|
// Loop through the sections to get the section ids for the insertion into the admin_privileges table
|
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.25",
|
|
5
5
|
"bin": {
|
|
6
6
|
"nextjs-cms-kit": "./dist/index.js"
|
|
7
7
|
},
|
|
@@ -19,27 +19,28 @@
|
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@clack/prompts": "^0.10.0",
|
|
22
|
-
"
|
|
22
|
+
"bcrypt": "^6.0.0",
|
|
23
23
|
"chalk": "^5.4.1",
|
|
24
24
|
"commander": "^14.0.2",
|
|
25
|
-
"dotenv": "^
|
|
25
|
+
"dotenv": "^17.2.3",
|
|
26
26
|
"drizzle-zod": "^0.7.0",
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"nextjs-cms": "0.5.
|
|
27
|
+
"mysql2": "^3.12.0"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"nextjs-cms": "0.5.25"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
+
"@types/bcrypt": "^6.0.0",
|
|
33
34
|
"drizzle-kit": "^0.31.5",
|
|
34
35
|
"eslint": "^9.12.0",
|
|
35
36
|
"prettier": "^3.3.3",
|
|
36
37
|
"recast": "^0.23.11",
|
|
37
38
|
"tsup": "^8.3.6",
|
|
38
|
-
"tsx": "^4.
|
|
39
|
-
"typescript": "^5.9.
|
|
40
|
-
"@lzcms/prettier-config": "0.1.0",
|
|
39
|
+
"tsx": "^4.20.6",
|
|
40
|
+
"typescript": "^5.9.2",
|
|
41
41
|
"@lzcms/eslint-config": "0.3.0",
|
|
42
|
-
"@lzcms/tsconfig": "0.1.0"
|
|
42
|
+
"@lzcms/tsconfig": "0.1.0",
|
|
43
|
+
"@lzcms/prettier-config": "0.1.0"
|
|
43
44
|
},
|
|
44
45
|
"prettier": "@lzcms/prettier-config",
|
|
45
46
|
"scripts": {
|