@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forklaunch/express",
3
- "version": "0.1.22",
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.0",
23
+ "qs": "^6.13.1",
24
24
  "swagger-ui-express": "^5.0.1",
25
- "@forklaunch/common": "0.1.11",
26
- "@forklaunch/core": "0.2.27",
27
- "@forklaunch/validator": "0.3.9"
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.14.0",
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.3.3",
37
+ "prettier": "^3.4.1",
38
38
  "ts-jest": "^29.2.5",
39
39
  "ts-node": "^10.9.2",
40
- "typescript": "^5.6.3",
41
- "typescript-eslint": "^8.14.0"
40
+ "typescript": "^5.7.2",
41
+ "typescript-eslint": "^8.17.0"
42
42
  },
43
43
  "exports": {
44
44
  ".": {
package/lib/app.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=app.d.ts.map
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);