@forklaunch/express 0.1.22 → 0.1.24
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/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -9
- package/lib/app.d.ts +0 -2
- package/lib/app.d.ts.map +0 -1
- package/lib/app.js +0 -62
- package/lib/eslint.config.d.mts +0 -1134
- package/lib/eslint.config.d.mts.map +0 -1
- package/lib/eslint.config.mjs +0 -10
- package/lib/jest.config.d.ts +0 -4
- package/lib/jest.config.d.ts.map +0 -1
- package/lib/jest.config.js +0 -19
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@forklaunch/express",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.24",
|
4
4
|
"description": "Forklaunch framework for express.",
|
5
5
|
"files": [
|
6
6
|
"lib/**"
|
@@ -20,25 +20,25 @@
|
|
20
20
|
"@types/express": "^5.0.0",
|
21
21
|
"cors": "^2.8.5",
|
22
22
|
"express": "^4.21.1",
|
23
|
-
"qs": "^6.13.
|
23
|
+
"qs": "^6.13.1",
|
24
24
|
"swagger-ui-express": "^5.0.1",
|
25
|
-
"@forklaunch/common": "0.1.
|
26
|
-
"@forklaunch/
|
27
|
-
"@forklaunch/
|
25
|
+
"@forklaunch/common": "0.1.13",
|
26
|
+
"@forklaunch/validator": "0.3.11",
|
27
|
+
"@forklaunch/core": "0.2.29"
|
28
28
|
},
|
29
29
|
"devDependencies": {
|
30
|
-
"@eslint/js": "^9.
|
30
|
+
"@eslint/js": "^9.16.0",
|
31
31
|
"@types/cors": "^2.8.17",
|
32
32
|
"@types/jest": "^29.5.14",
|
33
33
|
"@types/qs": "^6.9.17",
|
34
34
|
"@types/swagger-ui-express": "^4.1.7",
|
35
35
|
"jest": "^29.7.0",
|
36
36
|
"kill-port-process": "^3.2.1",
|
37
|
-
"prettier": "^3.
|
37
|
+
"prettier": "^3.4.1",
|
38
38
|
"ts-jest": "^29.2.5",
|
39
39
|
"ts-node": "^10.9.2",
|
40
|
-
"typescript": "^5.
|
41
|
-
"typescript-eslint": "^8.
|
40
|
+
"typescript": "^5.7.2",
|
41
|
+
"typescript-eslint": "^8.17.0"
|
42
42
|
},
|
43
43
|
"exports": {
|
44
44
|
".": {
|
package/lib/app.d.ts
DELETED
package/lib/app.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../app.ts"],"names":[],"mappings":""}
|
package/lib/app.js
DELETED
@@ -1,62 +0,0 @@
|
|
1
|
-
import { SchemaValidator, string } from '@forklaunch/validator/typebox';
|
2
|
-
import { forklaunchExpress, forklaunchRouter } from './index';
|
3
|
-
const typeboxSchemaValidator = SchemaValidator();
|
4
|
-
const forklaunchApplication = forklaunchExpress(typeboxSchemaValidator);
|
5
|
-
const forklaunchRouterInstance = forklaunchRouter('/testpath', typeboxSchemaValidator);
|
6
|
-
forklaunchApplication.use(forklaunchRouterInstance);
|
7
|
-
forklaunchRouterInstance.get('/test', {
|
8
|
-
name: 'Test',
|
9
|
-
summary: 'Test Summary',
|
10
|
-
responses: {
|
11
|
-
200: string
|
12
|
-
}
|
13
|
-
}, async (_req, res) => {
|
14
|
-
res.status(200).send('Hello World');
|
15
|
-
});
|
16
|
-
forklaunchRouterInstance.post('/test', {
|
17
|
-
name: 'Test',
|
18
|
-
summary: 'Test Summary',
|
19
|
-
body: {
|
20
|
-
test: string
|
21
|
-
},
|
22
|
-
responses: {
|
23
|
-
200: string
|
24
|
-
}
|
25
|
-
}, (req, res) => {
|
26
|
-
res.status(200).send(req.body.test);
|
27
|
-
});
|
28
|
-
forklaunchRouterInstance.put('/test', {
|
29
|
-
name: 'Test',
|
30
|
-
summary: 'Test Summary',
|
31
|
-
body: {
|
32
|
-
test: string
|
33
|
-
},
|
34
|
-
responses: {
|
35
|
-
200: string
|
36
|
-
}
|
37
|
-
}, (req, res) => {
|
38
|
-
res.status(200).send(req.body.test);
|
39
|
-
});
|
40
|
-
forklaunchRouterInstance.patch('/test', {
|
41
|
-
name: 'Test',
|
42
|
-
summary: 'Test Summary',
|
43
|
-
body: {
|
44
|
-
test: string
|
45
|
-
},
|
46
|
-
responses: {
|
47
|
-
200: string
|
48
|
-
}
|
49
|
-
}, (req, res) => {
|
50
|
-
res.status(200).send(req.body.test);
|
51
|
-
});
|
52
|
-
forklaunchRouterInstance.delete('/test', {
|
53
|
-
name: 'Test',
|
54
|
-
summary: 'Test Summary',
|
55
|
-
responses: {
|
56
|
-
200: string
|
57
|
-
}
|
58
|
-
}, (_req, res) => {
|
59
|
-
res.status(200).send('Hello World');
|
60
|
-
});
|
61
|
-
forklaunchApplication.use(forklaunchRouterInstance);
|
62
|
-
forklaunchApplication.listen(6934);
|