evikit 2.14.3 → 2.14.4
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/package.json +62 -62
- package/server.js +8 -4
package/package.json
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "evikit",
|
|
3
|
-
"description": "Preact/SQLite SSR framework for small web apps",
|
|
4
|
-
"version": "2.14.
|
|
5
|
-
"type": "module",
|
|
6
|
-
"exports": {
|
|
7
|
-
".": "./index.js",
|
|
8
|
-
"./css": "./index.css",
|
|
9
|
-
"./db": "./db.js",
|
|
10
|
-
"./server": "./server.js",
|
|
11
|
-
"./sqlite": "./sqlite.js"
|
|
12
|
-
},
|
|
13
|
-
"bin": {
|
|
14
|
-
"evikit-extract": "bin/evikit-extract.js"
|
|
15
|
-
},
|
|
16
|
-
"scripts": {
|
|
17
|
-
"build": "tsc",
|
|
18
|
-
"format": "prettier --write . && eslint --fix .",
|
|
19
|
-
"lint": "prettier --check . && eslint ."
|
|
20
|
-
},
|
|
21
|
-
"author": "Denys Nykula <nykula@ukr.net>",
|
|
22
|
-
"license": "MIT",
|
|
23
|
-
"dependencies": {
|
|
24
|
-
"@fastify/busboy": "^3.2.0",
|
|
25
|
-
"@types/gettext-parser": "^9.0.0",
|
|
26
|
-
"@types/gettext.js": "^2.0.0",
|
|
27
|
-
"@valibot/to-json-schema": "^1.7.0",
|
|
28
|
-
"env-paths": "^4.0.0",
|
|
29
|
-
"gettext-parser": "^9.0.2",
|
|
30
|
-
"gettext.js": "^2.0.3",
|
|
31
|
-
"preact-render-to-string": "^6.7.0"
|
|
32
|
-
},
|
|
33
|
-
"peerDependencies": {
|
|
34
|
-
"accept-language": "^3.0.20",
|
|
35
|
-
"esbuild": "^0.28.2",
|
|
36
|
-
"hoofd": "^1.7.3",
|
|
37
|
-
"preact": "^10.29.2",
|
|
38
|
-
"preact-iso": "^2.12.0",
|
|
39
|
-
"valibot": "^1.4.0"
|
|
40
|
-
},
|
|
41
|
-
"peerDependenciesMeta": {
|
|
42
|
-
"esbuild": {
|
|
43
|
-
"optional": true
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"devDependencies": {
|
|
47
|
-
"@eslint/compat": "^2.1.0",
|
|
48
|
-
"@eslint/js": "^10.0.1",
|
|
49
|
-
"@types/node": "^24.13.3",
|
|
50
|
-
"esbuild": "^0.28.2",
|
|
51
|
-
"eslint": "^10.4.0",
|
|
52
|
-
"eslint-config-prettier": "^10.1.8",
|
|
53
|
-
"eslint-plugin-perfectionist": "^5.9.0",
|
|
54
|
-
"globals": "^17.6.0",
|
|
55
|
-
"prettier": "^3.8.3",
|
|
56
|
-
"typescript": "^6.0.3",
|
|
57
|
-
"typescript-eslint": "^8.59.4"
|
|
58
|
-
},
|
|
59
|
-
"allowScripts": {
|
|
60
|
-
"esbuild": true
|
|
61
|
-
}
|
|
62
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "evikit",
|
|
3
|
+
"description": "Preact/SQLite SSR framework for small web apps",
|
|
4
|
+
"version": "2.14.4",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": "./index.js",
|
|
8
|
+
"./css": "./index.css",
|
|
9
|
+
"./db": "./db.js",
|
|
10
|
+
"./server": "./server.js",
|
|
11
|
+
"./sqlite": "./sqlite.js"
|
|
12
|
+
},
|
|
13
|
+
"bin": {
|
|
14
|
+
"evikit-extract": "bin/evikit-extract.js"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "tsc",
|
|
18
|
+
"format": "prettier --write . && eslint --fix .",
|
|
19
|
+
"lint": "prettier --check . && eslint ."
|
|
20
|
+
},
|
|
21
|
+
"author": "Denys Nykula <nykula@ukr.net>",
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@fastify/busboy": "^3.2.0",
|
|
25
|
+
"@types/gettext-parser": "^9.0.0",
|
|
26
|
+
"@types/gettext.js": "^2.0.0",
|
|
27
|
+
"@valibot/to-json-schema": "^1.7.0",
|
|
28
|
+
"env-paths": "^4.0.0",
|
|
29
|
+
"gettext-parser": "^9.0.2",
|
|
30
|
+
"gettext.js": "^2.0.3",
|
|
31
|
+
"preact-render-to-string": "^6.7.0"
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"accept-language": "^3.0.20",
|
|
35
|
+
"esbuild": "^0.28.2",
|
|
36
|
+
"hoofd": "^1.7.3",
|
|
37
|
+
"preact": "^10.29.2",
|
|
38
|
+
"preact-iso": "^2.12.0",
|
|
39
|
+
"valibot": "^1.4.0"
|
|
40
|
+
},
|
|
41
|
+
"peerDependenciesMeta": {
|
|
42
|
+
"esbuild": {
|
|
43
|
+
"optional": true
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@eslint/compat": "^2.1.0",
|
|
48
|
+
"@eslint/js": "^10.0.1",
|
|
49
|
+
"@types/node": "^24.13.3",
|
|
50
|
+
"esbuild": "^0.28.2",
|
|
51
|
+
"eslint": "^10.4.0",
|
|
52
|
+
"eslint-config-prettier": "^10.1.8",
|
|
53
|
+
"eslint-plugin-perfectionist": "^5.9.0",
|
|
54
|
+
"globals": "^17.6.0",
|
|
55
|
+
"prettier": "^3.8.3",
|
|
56
|
+
"typescript": "^6.0.3",
|
|
57
|
+
"typescript-eslint": "^8.59.4"
|
|
58
|
+
},
|
|
59
|
+
"allowScripts": {
|
|
60
|
+
"esbuild": true
|
|
61
|
+
}
|
|
62
|
+
}
|
package/server.js
CHANGED
|
@@ -325,12 +325,16 @@ export async function listen(app) {
|
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
327
|
} else if (
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
(
|
|
328
|
+
!esbuild ||
|
|
329
|
+
!process.argv[2] ||
|
|
330
|
+
(process.argv[2] == "dev" && !cluster.isPrimary)
|
|
331
331
|
) {
|
|
332
332
|
const server = app.listen(port, () => {
|
|
333
|
-
if (
|
|
333
|
+
if (
|
|
334
|
+
cluster.isPrimary ||
|
|
335
|
+
process.env["i"] == "0" ||
|
|
336
|
+
(esbuild && process.argv[2] == "dev")
|
|
337
|
+
) {
|
|
334
338
|
console.log(
|
|
335
339
|
`Server started at ${process.env["ORIGIN"] || `http://localhost:${port}`}`,
|
|
336
340
|
);
|