@leo-h/create-nodejs-app 1.0.69 → 1.0.70
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 +1 -1
- package/templates/elysia/biome.json +1 -1
- package/templates/elysia/package.json +2 -2
- package/templates/elysia/pnpm-lock.yaml +27 -27
- package/templates/elysia/src/http/controllers/hello-multipart.controller.ts +0 -1
- package/templates/elysia/src/http/controllers/hello.controller.ts +0 -1
- package/templates/elysia/src/http/errors.ts +6 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leo-h/create-nodejs-app",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.70",
|
|
4
4
|
"packageManager": "pnpm@9.15.9",
|
|
5
5
|
"author": "Leonardo Henrique <leonardo0507.business@gmail.com>",
|
|
6
6
|
"description": "Create a modern Node.js app with TypeScript using one command.",
|
|
@@ -10,16 +10,16 @@ importers:
|
|
|
10
10
|
dependencies:
|
|
11
11
|
'@elysiajs/cors':
|
|
12
12
|
specifier: 1.4.0
|
|
13
|
-
version: 1.4.0(elysia@1.4.
|
|
13
|
+
version: 1.4.0(elysia@1.4.16(@sinclair/typebox@0.34.41)(exact-mirror@0.2.2(@sinclair/typebox@0.34.41))(file-type@20.5.0)(openapi-types@12.1.3)(typescript@5.9.3))
|
|
14
14
|
'@elysiajs/node':
|
|
15
|
-
specifier: 1.4.
|
|
16
|
-
version: 1.4.
|
|
15
|
+
specifier: 1.4.2
|
|
16
|
+
version: 1.4.2(elysia@1.4.16(@sinclair/typebox@0.34.41)(exact-mirror@0.2.2(@sinclair/typebox@0.34.41))(file-type@20.5.0)(openapi-types@12.1.3)(typescript@5.9.3))
|
|
17
17
|
'@elysiajs/openapi':
|
|
18
18
|
specifier: 1.4.11
|
|
19
|
-
version: 1.4.11(elysia@1.4.
|
|
19
|
+
version: 1.4.11(elysia@1.4.16(@sinclair/typebox@0.34.41)(exact-mirror@0.2.2(@sinclair/typebox@0.34.41))(file-type@20.5.0)(openapi-types@12.1.3)(typescript@5.9.3))
|
|
20
20
|
elysia:
|
|
21
|
-
specifier: 1.4.
|
|
22
|
-
version: 1.4.
|
|
21
|
+
specifier: 1.4.16
|
|
22
|
+
version: 1.4.16(@sinclair/typebox@0.34.41)(exact-mirror@0.2.2(@sinclair/typebox@0.34.41))(file-type@20.5.0)(openapi-types@12.1.3)(typescript@5.9.3)
|
|
23
23
|
zod:
|
|
24
24
|
specifier: 4.1.12
|
|
25
25
|
version: 4.1.12
|
|
@@ -29,7 +29,7 @@ importers:
|
|
|
29
29
|
version: 2.3.5
|
|
30
30
|
'@elysiajs/eden':
|
|
31
31
|
specifier: ^1.4.4
|
|
32
|
-
version: 1.4.4(elysia@1.4.
|
|
32
|
+
version: 1.4.4(elysia@1.4.16(@sinclair/typebox@0.34.41)(exact-mirror@0.2.2(@sinclair/typebox@0.34.41))(file-type@20.5.0)(openapi-types@12.1.3)(typescript@5.9.3))
|
|
33
33
|
'@faker-js/faker':
|
|
34
34
|
specifier: ^10.1.0
|
|
35
35
|
version: 10.1.0
|
|
@@ -126,8 +126,8 @@ packages:
|
|
|
126
126
|
peerDependencies:
|
|
127
127
|
elysia: '>= 1.4.0-exp.0'
|
|
128
128
|
|
|
129
|
-
'@elysiajs/node@1.4.
|
|
130
|
-
resolution: {integrity: sha512-
|
|
129
|
+
'@elysiajs/node@1.4.2':
|
|
130
|
+
resolution: {integrity: sha512-zqeBAV4/faCcmIEjCp3g6jRwsbaWsd5HqmlEf3CirD9HkTWQNo4T+GN/qGZi7zgd84D3Kzxsny7ZTMXEfrDSXQ==}
|
|
131
131
|
peerDependencies:
|
|
132
132
|
elysia: '>= 1.4.0'
|
|
133
133
|
|
|
@@ -851,8 +851,8 @@ packages:
|
|
|
851
851
|
eastasianwidth@0.2.0:
|
|
852
852
|
resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}
|
|
853
853
|
|
|
854
|
-
elysia@1.4.
|
|
855
|
-
resolution: {integrity: sha512-
|
|
854
|
+
elysia@1.4.16:
|
|
855
|
+
resolution: {integrity: sha512-KZtKN160/bdWVKg2hEgyoNXY8jRRquc+m6PboyisaLZL891I+Ufb7Ja6lDAD7vMQur8sLEWIcidZOzj5lWw9UA==}
|
|
856
856
|
peerDependencies:
|
|
857
857
|
'@sinclair/typebox': '>= 0.34.0 < 1'
|
|
858
858
|
'@types/bun': '>= 1.2.0'
|
|
@@ -1210,8 +1210,8 @@ packages:
|
|
|
1210
1210
|
resolution: {integrity: sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==}
|
|
1211
1211
|
engines: {node: '>= 12'}
|
|
1212
1212
|
|
|
1213
|
-
srvx@0.
|
|
1214
|
-
resolution: {integrity: sha512-
|
|
1213
|
+
srvx@0.9.6:
|
|
1214
|
+
resolution: {integrity: sha512-5L4rT6qQqqb+xcoDoklUgCNdmzqJ6vbcDRwPVGRXewF55IJH0pqh0lQlrJ266ZWTKJ4mfeioqHQJeAYesS+RrQ==}
|
|
1215
1215
|
engines: {node: '>=20.16.0'}
|
|
1216
1216
|
hasBin: true
|
|
1217
1217
|
|
|
@@ -1462,23 +1462,23 @@ snapshots:
|
|
|
1462
1462
|
|
|
1463
1463
|
'@borewit/text-codec@0.1.1': {}
|
|
1464
1464
|
|
|
1465
|
-
'@elysiajs/cors@1.4.0(elysia@1.4.
|
|
1465
|
+
'@elysiajs/cors@1.4.0(elysia@1.4.16(@sinclair/typebox@0.34.41)(exact-mirror@0.2.2(@sinclair/typebox@0.34.41))(file-type@20.5.0)(openapi-types@12.1.3)(typescript@5.9.3))':
|
|
1466
1466
|
dependencies:
|
|
1467
|
-
elysia: 1.4.
|
|
1467
|
+
elysia: 1.4.16(@sinclair/typebox@0.34.41)(exact-mirror@0.2.2(@sinclair/typebox@0.34.41))(file-type@20.5.0)(openapi-types@12.1.3)(typescript@5.9.3)
|
|
1468
1468
|
|
|
1469
|
-
'@elysiajs/eden@1.4.4(elysia@1.4.
|
|
1469
|
+
'@elysiajs/eden@1.4.4(elysia@1.4.16(@sinclair/typebox@0.34.41)(exact-mirror@0.2.2(@sinclair/typebox@0.34.41))(file-type@20.5.0)(openapi-types@12.1.3)(typescript@5.9.3))':
|
|
1470
1470
|
dependencies:
|
|
1471
|
-
elysia: 1.4.
|
|
1471
|
+
elysia: 1.4.16(@sinclair/typebox@0.34.41)(exact-mirror@0.2.2(@sinclair/typebox@0.34.41))(file-type@20.5.0)(openapi-types@12.1.3)(typescript@5.9.3)
|
|
1472
1472
|
|
|
1473
|
-
'@elysiajs/node@1.4.
|
|
1473
|
+
'@elysiajs/node@1.4.2(elysia@1.4.16(@sinclair/typebox@0.34.41)(exact-mirror@0.2.2(@sinclair/typebox@0.34.41))(file-type@20.5.0)(openapi-types@12.1.3)(typescript@5.9.3))':
|
|
1474
1474
|
dependencies:
|
|
1475
|
-
crossws: 0.4.1(srvx@0.
|
|
1476
|
-
elysia: 1.4.
|
|
1477
|
-
srvx: 0.
|
|
1475
|
+
crossws: 0.4.1(srvx@0.9.6)
|
|
1476
|
+
elysia: 1.4.16(@sinclair/typebox@0.34.41)(exact-mirror@0.2.2(@sinclair/typebox@0.34.41))(file-type@20.5.0)(openapi-types@12.1.3)(typescript@5.9.3)
|
|
1477
|
+
srvx: 0.9.6
|
|
1478
1478
|
|
|
1479
|
-
'@elysiajs/openapi@1.4.11(elysia@1.4.
|
|
1479
|
+
'@elysiajs/openapi@1.4.11(elysia@1.4.16(@sinclair/typebox@0.34.41)(exact-mirror@0.2.2(@sinclair/typebox@0.34.41))(file-type@20.5.0)(openapi-types@12.1.3)(typescript@5.9.3))':
|
|
1480
1480
|
dependencies:
|
|
1481
|
-
elysia: 1.4.
|
|
1481
|
+
elysia: 1.4.16(@sinclair/typebox@0.34.41)(exact-mirror@0.2.2(@sinclair/typebox@0.34.41))(file-type@20.5.0)(openapi-types@12.1.3)(typescript@5.9.3)
|
|
1482
1482
|
|
|
1483
1483
|
'@esbuild/aix-ppc64@0.25.11':
|
|
1484
1484
|
optional: true
|
|
@@ -2033,9 +2033,9 @@ snapshots:
|
|
|
2033
2033
|
shebang-command: 2.0.0
|
|
2034
2034
|
which: 2.0.2
|
|
2035
2035
|
|
|
2036
|
-
crossws@0.4.1(srvx@0.
|
|
2036
|
+
crossws@0.4.1(srvx@0.9.6):
|
|
2037
2037
|
optionalDependencies:
|
|
2038
|
-
srvx: 0.
|
|
2038
|
+
srvx: 0.9.6
|
|
2039
2039
|
|
|
2040
2040
|
debug@4.4.3:
|
|
2041
2041
|
dependencies:
|
|
@@ -2051,7 +2051,7 @@ snapshots:
|
|
|
2051
2051
|
|
|
2052
2052
|
eastasianwidth@0.2.0: {}
|
|
2053
2053
|
|
|
2054
|
-
elysia@1.4.
|
|
2054
|
+
elysia@1.4.16(@sinclair/typebox@0.34.41)(exact-mirror@0.2.2(@sinclair/typebox@0.34.41))(file-type@20.5.0)(openapi-types@12.1.3)(typescript@5.9.3):
|
|
2055
2055
|
dependencies:
|
|
2056
2056
|
'@sinclair/typebox': 0.34.41
|
|
2057
2057
|
cookie: 1.0.2
|
|
@@ -2400,7 +2400,7 @@ snapshots:
|
|
|
2400
2400
|
|
|
2401
2401
|
source-map@0.7.6: {}
|
|
2402
2402
|
|
|
2403
|
-
srvx@0.
|
|
2403
|
+
srvx@0.9.6: {}
|
|
2404
2404
|
|
|
2405
2405
|
stackback@0.0.2: {}
|
|
2406
2406
|
|
|
@@ -41,7 +41,6 @@ export const helloMultipartController = new Elysia().post(
|
|
|
41
41
|
parse: "multipart/form-data",
|
|
42
42
|
response: {
|
|
43
43
|
...globalErrorHandlerPlugin.getErrorSchemas(),
|
|
44
|
-
"422": new ValidationError().toZodSchema({ isMessageLiteral: false }),
|
|
45
44
|
},
|
|
46
45
|
detail: {
|
|
47
46
|
operationId: "helloMultipartController",
|
|
@@ -65,27 +65,21 @@ export abstract class BaseError<
|
|
|
65
65
|
{
|
|
66
66
|
name: Name;
|
|
67
67
|
statusCode: StatusCode;
|
|
68
|
-
message:
|
|
68
|
+
message: string;
|
|
69
69
|
}
|
|
70
70
|
> {
|
|
71
71
|
return status(this.statusCode, this.toSerialize());
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
public toZodSchema(options?: {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
isMessageLiteral?: boolean;
|
|
78
|
-
}) {
|
|
79
|
-
const { isNameLiteral, isStatusCodeLiteral, isMessageLiteral } = {
|
|
80
|
-
isNameLiteral: true,
|
|
81
|
-
isStatusCodeLiteral: true,
|
|
82
|
-
isMessageLiteral: true,
|
|
74
|
+
public toZodSchema(options?: { isMessageLiteral?: boolean }) {
|
|
75
|
+
const { isMessageLiteral } = {
|
|
76
|
+
isMessageLiteral: false,
|
|
83
77
|
...options,
|
|
84
78
|
};
|
|
85
79
|
|
|
86
80
|
return z.object({
|
|
87
|
-
name:
|
|
88
|
-
statusCode:
|
|
81
|
+
name: z.literal(this.name),
|
|
82
|
+
statusCode: z.literal(this.statusCode),
|
|
89
83
|
message: isMessageLiteral ? z.literal(this.message) : z.string(),
|
|
90
84
|
});
|
|
91
85
|
}
|