@vulkano/core 1.19.0 → 1.20.1
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/.vite-hooks/pre-commit +1 -0
- package/bootstrap/express.js +6 -1
- package/package.json +23 -23
- package/pnpm-workspace.yaml +17 -0
- package/vite.config.ts +71 -0
- package/.oxlintrc.json +0 -42
- package/biome.json +0 -31
|
@@ -0,0 +1 @@
|
|
|
1
|
+
vp staged
|
package/bootstrap/express.js
CHANGED
|
@@ -51,7 +51,12 @@ module.exports = function getExpressConfiguration() {
|
|
|
51
51
|
sockets: {},
|
|
52
52
|
redis: {},
|
|
53
53
|
multer: {
|
|
54
|
-
dest: global.PUBLIC_PATH ? path.join(global.PUBLIC_PATH, 'files') : 'public/files'
|
|
54
|
+
dest: global.PUBLIC_PATH ? path.join(global.PUBLIC_PATH, 'files') : 'public/files',
|
|
55
|
+
limits: {
|
|
56
|
+
// Prevents DoS via deeply nested field names (e.g. a[b][c][d]...),
|
|
57
|
+
// which multer forwards to append-field's unbounded recursive parser.
|
|
58
|
+
fieldNestingDepth: 5
|
|
59
|
+
}
|
|
55
60
|
},
|
|
56
61
|
morgan: {
|
|
57
62
|
format: 'dev',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vulkano/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.1",
|
|
4
4
|
"description": "A MVC framework using Express 4",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Vulkano Team",
|
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
"vulkano": "./bin/vulkano.js"
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
15
|
-
"
|
|
16
|
-
"lint": "oxlint . && biome check .",
|
|
15
|
+
"dev": "./node_modules/nodemon/bin/nodemon.js test/fixtures/server.js --inspect --trace-deprecation --trace-warnings",
|
|
17
16
|
"test": "jest",
|
|
18
17
|
"test:watch": "jest --watch",
|
|
19
18
|
"test:coverage": "jest --coverage",
|
|
@@ -35,38 +34,39 @@
|
|
|
35
34
|
"bugs": {
|
|
36
35
|
"url": "https://github.com/vulkanojs/vulkano-core/issues"
|
|
37
36
|
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"jest": "^30.4.2",
|
|
39
|
+
"nodemon": "^3.1.14",
|
|
40
|
+
"socket.io-client": "^4.8.3",
|
|
41
|
+
"vite-plus": "catalog:"
|
|
42
|
+
},
|
|
43
|
+
"packageManager": "pnpm@11.1.2",
|
|
38
44
|
"dependencies": {
|
|
39
45
|
"@socket.io/mongo-adapter": "^0.4.0",
|
|
40
46
|
"@socket.io/redis-adapter": "^8.3.0",
|
|
41
|
-
"compression": "^1.8.
|
|
42
|
-
"connect-timeout": "^1.9.
|
|
47
|
+
"compression": "^1.8.1",
|
|
48
|
+
"connect-timeout": "^1.9.1",
|
|
43
49
|
"cookie-parser": "^1.4.7",
|
|
44
|
-
"cron": "^4.
|
|
50
|
+
"cron": "^4.4.0",
|
|
45
51
|
"dotenv": "^17.4.2",
|
|
46
52
|
"express": "^4.21.2",
|
|
47
53
|
"express-handlebars": "^9.0.1",
|
|
48
54
|
"express-jwt": "^8.5.1",
|
|
49
|
-
"express-session": "^1.
|
|
50
|
-
"express-useragent": "^2.1
|
|
55
|
+
"express-session": "^1.19.0",
|
|
56
|
+
"express-useragent": "^2.2.1",
|
|
51
57
|
"frameguard": "^4.0.0",
|
|
52
|
-
"helmet": "^8.
|
|
53
|
-
"i18next": "^26.
|
|
58
|
+
"helmet": "^8.3.0",
|
|
59
|
+
"i18next": "^26.3.6",
|
|
54
60
|
"include-all": "^4.0.3",
|
|
55
61
|
"jwt-simple": "^0.5.6",
|
|
56
62
|
"mongoose": "^8.12.1",
|
|
57
|
-
"mongoose-paginate-v2": "^1.9.
|
|
58
|
-
"morgan": "^1.
|
|
59
|
-
"multer": "^2.
|
|
63
|
+
"mongoose-paginate-v2": "^1.9.5",
|
|
64
|
+
"morgan": "^1.11.0",
|
|
65
|
+
"multer": "^2.2.0",
|
|
60
66
|
"nunjucks": "^3.2.4",
|
|
61
|
-
"redis": "^
|
|
62
|
-
"socket.io": "^4.8.
|
|
63
|
-
"socket.io-adapter": "^2.5.
|
|
64
|
-
"undici": "^
|
|
65
|
-
},
|
|
66
|
-
"devDependencies": {
|
|
67
|
-
"@biomejs/biome": "^2.4.15",
|
|
68
|
-
"jest": "^29.7.0",
|
|
69
|
-
"nodemon": "^3.1.14",
|
|
70
|
-
"oxlint": "^1.64.0"
|
|
67
|
+
"redis": "^6.1.0",
|
|
68
|
+
"socket.io": "^4.8.3",
|
|
69
|
+
"socket.io-adapter": "^2.5.8",
|
|
70
|
+
"undici": "^7.28.0"
|
|
71
71
|
}
|
|
72
72
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
allowBuilds:
|
|
2
|
+
fsevents: set this to true or false
|
|
3
|
+
unrs-resolver: set this to true or false
|
|
4
|
+
catalog:
|
|
5
|
+
vite: npm:@voidzero-dev/vite-plus-core@latest
|
|
6
|
+
vitest: npm:@voidzero-dev/vite-plus-test@latest
|
|
7
|
+
vite-plus: latest
|
|
8
|
+
overrides:
|
|
9
|
+
vite: "catalog:"
|
|
10
|
+
vitest: "catalog:"
|
|
11
|
+
peerDependencyRules:
|
|
12
|
+
allowAny:
|
|
13
|
+
- vite
|
|
14
|
+
- vitest
|
|
15
|
+
allowedVersions:
|
|
16
|
+
vite: "*"
|
|
17
|
+
vitest: "*"
|
package/vite.config.ts
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { defineConfig } from "vite-plus";
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
staged: {
|
|
5
|
+
"*": "vp check --fix",
|
|
6
|
+
},
|
|
7
|
+
fmt: {
|
|
8
|
+
singleQuote: true,
|
|
9
|
+
trailingComma: "none",
|
|
10
|
+
ignorePatterns: [
|
|
11
|
+
".claude/**",
|
|
12
|
+
".graphify/**",
|
|
13
|
+
".vite-hooks/**",
|
|
14
|
+
"test/**",
|
|
15
|
+
"bundle/**",
|
|
16
|
+
"tasks/**",
|
|
17
|
+
"docs/**",
|
|
18
|
+
"public/**",
|
|
19
|
+
"setup/**"
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
lint: {
|
|
23
|
+
options: {
|
|
24
|
+
typeAware: true,
|
|
25
|
+
typeCheck: true
|
|
26
|
+
},
|
|
27
|
+
env: {
|
|
28
|
+
node: true,
|
|
29
|
+
browser: true,
|
|
30
|
+
es6: true,
|
|
31
|
+
},
|
|
32
|
+
globals: {
|
|
33
|
+
app: "readonly",
|
|
34
|
+
io: "readonly",
|
|
35
|
+
ApiClient: "readonly",
|
|
36
|
+
Download: "readonly",
|
|
37
|
+
Paginate: "readonly",
|
|
38
|
+
Mixed: "readonly",
|
|
39
|
+
Crontab: "readonly",
|
|
40
|
+
Encrypter: "readonly",
|
|
41
|
+
Filter: "readonly",
|
|
42
|
+
i18n: "readonly",
|
|
43
|
+
Jwt: "readonly",
|
|
44
|
+
VSError: "readonly",
|
|
45
|
+
ABS_PATH: "readonly",
|
|
46
|
+
APP_PATH: "readonly",
|
|
47
|
+
CORE_PATH: "readonly",
|
|
48
|
+
PUBLIC_PATH: "readonly",
|
|
49
|
+
},
|
|
50
|
+
rules: {
|
|
51
|
+
curly: "error",
|
|
52
|
+
"no-console": "off",
|
|
53
|
+
"no-underscore-dangle": "off",
|
|
54
|
+
"no-throw-literal": "off",
|
|
55
|
+
"no-unneeded-ternary": "off",
|
|
56
|
+
"guard-for-in": "off",
|
|
57
|
+
},
|
|
58
|
+
ignorePatterns: [
|
|
59
|
+
".claude",
|
|
60
|
+
".graphify",
|
|
61
|
+
".vite-hooks",
|
|
62
|
+
"node_modules",
|
|
63
|
+
"test",
|
|
64
|
+
"bundle",
|
|
65
|
+
"tasks",
|
|
66
|
+
"docs",
|
|
67
|
+
"public",
|
|
68
|
+
"setup"
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
});
|
package/.oxlintrc.json
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"node": true,
|
|
4
|
-
"browser": true,
|
|
5
|
-
"es6": true
|
|
6
|
-
},
|
|
7
|
-
"globals": {
|
|
8
|
-
"app": "readonly",
|
|
9
|
-
"io": "readonly",
|
|
10
|
-
"ApiClient": "readonly",
|
|
11
|
-
"Download": "readonly",
|
|
12
|
-
"Paginate": "readonly",
|
|
13
|
-
"Mixed": "readonly",
|
|
14
|
-
"Crontab": "readonly",
|
|
15
|
-
"Encrypter": "readonly",
|
|
16
|
-
"Filter": "readonly",
|
|
17
|
-
"i18n": "readonly",
|
|
18
|
-
"Jwt": "readonly",
|
|
19
|
-
"VSError": "readonly",
|
|
20
|
-
"ABS_PATH": "readonly",
|
|
21
|
-
"APP_PATH": "readonly",
|
|
22
|
-
"CORE_PATH": "readonly",
|
|
23
|
-
"PUBLIC_PATH": "readonly"
|
|
24
|
-
},
|
|
25
|
-
"rules": {
|
|
26
|
-
"curly": "error",
|
|
27
|
-
"no-console": "off",
|
|
28
|
-
"no-underscore-dangle": "off",
|
|
29
|
-
"no-throw-literal": "off",
|
|
30
|
-
"no-unneeded-ternary": "off",
|
|
31
|
-
"guard-for-in": "off"
|
|
32
|
-
},
|
|
33
|
-
"ignorePatterns": [
|
|
34
|
-
"node_modules",
|
|
35
|
-
"test",
|
|
36
|
-
"bundle",
|
|
37
|
-
"tasks",
|
|
38
|
-
"docs",
|
|
39
|
-
"public",
|
|
40
|
-
"setup"
|
|
41
|
-
]
|
|
42
|
-
}
|
package/biome.json
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.4.15/schema.json",
|
|
3
|
-
"files": {
|
|
4
|
-
"includes": [
|
|
5
|
-
"**",
|
|
6
|
-
"!node_modules",
|
|
7
|
-
"!test",
|
|
8
|
-
"!bundle",
|
|
9
|
-
"!tasks",
|
|
10
|
-
"!docs",
|
|
11
|
-
"!public",
|
|
12
|
-
"!setup"
|
|
13
|
-
]
|
|
14
|
-
},
|
|
15
|
-
"formatter": {
|
|
16
|
-
"enabled": true,
|
|
17
|
-
"indentStyle": "space",
|
|
18
|
-
"indentWidth": 2,
|
|
19
|
-
"lineWidth": 100
|
|
20
|
-
},
|
|
21
|
-
"linter": {
|
|
22
|
-
"enabled": true
|
|
23
|
-
},
|
|
24
|
-
"javascript": {
|
|
25
|
-
"formatter": {
|
|
26
|
-
"quoteStyle": "single",
|
|
27
|
-
"trailingCommas": "none",
|
|
28
|
-
"semicolons": "always"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|