@thzero/library_server_fastify 0.16.11 → 0.16.12
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/openSource.js +81 -0
- package/package.json +2 -2
- package/routes/utility.js +18 -0
package/openSource.js
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
export default () => {
|
|
2
|
+
return [
|
|
3
|
+
{
|
|
4
|
+
category: 'server',
|
|
5
|
+
name: '@fastify',
|
|
6
|
+
url: 'https://github.com/fastify/fastify',
|
|
7
|
+
licenseName: 'MIT',
|
|
8
|
+
licenseUrl: 'https://github.com/fastify/fastify/blob/main/LICENSE'
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
category: 'server',
|
|
12
|
+
name: '@fastify/auth',
|
|
13
|
+
url: 'https://github.com/fastify/fastify-auth',
|
|
14
|
+
licenseName: 'MIT',
|
|
15
|
+
licenseUrl: 'https://github.com/fastify/fastify-auth/blob/master/LICENSE'
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
category: 'server',
|
|
19
|
+
name: '@fastify/compress',
|
|
20
|
+
url: 'https://github.com/fastify/compress',
|
|
21
|
+
licenseName: 'MIT',
|
|
22
|
+
licenseUrl: 'https://github.com/fastify/compress/blob/main/LICENSE'
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
category: 'server',
|
|
26
|
+
name: '@fastify/cors',
|
|
27
|
+
url: 'https://github.com/fastify/cors',
|
|
28
|
+
licenseName: 'MIT',
|
|
29
|
+
licenseUrl: 'https://github.com/fastify/cors/blob/main/LICENSE'
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
category: 'server',
|
|
33
|
+
name: '@fastify/helmet',
|
|
34
|
+
url: 'https://github.com/fastify/helmet',
|
|
35
|
+
licenseName: 'MIT',
|
|
36
|
+
licenseUrl: 'https://github.com/fastify/helmet/blob/main/LICENSE'
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
category: 'server',
|
|
40
|
+
name: '@fastify/routes',
|
|
41
|
+
url: 'https://github.com/fastify/routes',
|
|
42
|
+
licenseName: 'MIT',
|
|
43
|
+
licenseUrl: 'https://github.com/fastify/routes/blob/main/LICENSE'
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
category: 'server',
|
|
47
|
+
name: '@fastify/static',
|
|
48
|
+
url: 'https://github.com/fastify/static',
|
|
49
|
+
licenseName: 'MIT',
|
|
50
|
+
licenseUrl: 'https://github.com/fastify/static/blob/main/LICENSE'
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
category: 'server',
|
|
54
|
+
name: '@thzero/library_common',
|
|
55
|
+
url: 'https://github.com/thzero/library_common',
|
|
56
|
+
licenseName: 'MIT',
|
|
57
|
+
licenseUrl: 'https://github.com/thzero/library_common/blob/master/license.md'
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
category: 'server',
|
|
61
|
+
name: '@thzero/library_common_service',
|
|
62
|
+
url: 'https://github.com/thzero/library_common_service',
|
|
63
|
+
licenseName: 'MIT',
|
|
64
|
+
licenseUrl: 'https://github.com/thzero/library_common_service/blob/master/license.md'
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
category: 'server',
|
|
68
|
+
name: '@thzero/library_service',
|
|
69
|
+
url: 'https://github.com/thzero/library_service',
|
|
70
|
+
licenseName: 'MIT',
|
|
71
|
+
licenseUrl: 'https://github.com/thzero/library_service/blob/master/license.md'
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
category: 'server',
|
|
75
|
+
name: '@thzero/library_server_fastify',
|
|
76
|
+
url: 'https://github.com/thzero/library_server_fastify',
|
|
77
|
+
licenseName: 'MIT',
|
|
78
|
+
licenseUrl: 'https://github.com/thzero/library_server_fastify/blob/master/license.md'
|
|
79
|
+
}
|
|
80
|
+
];
|
|
81
|
+
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thzero/library_server_fastify",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.16.
|
|
4
|
+
"version": "0.16.12",
|
|
5
5
|
"version_major": 0,
|
|
6
6
|
"version_minor": 16,
|
|
7
|
-
"version_patch":
|
|
7
|
+
"version_patch": 12,
|
|
8
8
|
"version_date": "12/20/2022",
|
|
9
9
|
"description": "An opinionated library of common functionality to bootstrap a Fastify based API application.",
|
|
10
10
|
"author": "thZero",
|
package/routes/utility.js
CHANGED
|
@@ -20,6 +20,15 @@ class UtilityRoute extends BaseRoute {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
_initializeRoutes(router) {
|
|
23
|
+
router.get(this._join('/initialize'),
|
|
24
|
+
// eslint-disable-next-line
|
|
25
|
+
async (request, reply) => {
|
|
26
|
+
const response = (await router[LibraryConstants.InjectorKeys.SERVICE_UTILITY].initialize(request.correlationId)).check(request);
|
|
27
|
+
// https://github.com/fastify/fastify-compress/issues/215#issuecomment-1210598312
|
|
28
|
+
return this._jsonResponse(reply, response);
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
|
|
23
32
|
router.post('/logger',
|
|
24
33
|
// authentication(false),
|
|
25
34
|
// // authorization('utility'),
|
|
@@ -42,6 +51,15 @@ class UtilityRoute extends BaseRoute {
|
|
|
42
51
|
return this._jsonResponse(reply, response);
|
|
43
52
|
}
|
|
44
53
|
);
|
|
54
|
+
|
|
55
|
+
router.get(this._join('/openSource'),
|
|
56
|
+
// eslint-disable-next-line
|
|
57
|
+
async (request, reply) => {
|
|
58
|
+
const response = (await router[LibraryConstants.InjectorKeys.SERVICE_UTILITY].openSource(request.correlationId)).check(request);
|
|
59
|
+
// https://github.com/fastify/fastify-compress/issues/215#issuecomment-1210598312
|
|
60
|
+
return this._jsonResponse(reply, response);
|
|
61
|
+
}
|
|
62
|
+
);
|
|
45
63
|
}
|
|
46
64
|
|
|
47
65
|
get _version() {
|