@thzero/library_server_fastify 0.17.8 → 0.17.10

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,11 +1,11 @@
1
1
  {
2
2
  "name": "@thzero/library_server_fastify",
3
3
  "type": "module",
4
- "version": "0.17.8",
4
+ "version": "0.17.10",
5
5
  "version_major": 0,
6
6
  "version_minor": 17,
7
- "version_patch": 8,
8
- "version_date": "04/15/2023",
7
+ "version_patch": 10,
8
+ "version_date": "06/16/2023",
9
9
  "description": "An opinionated library of common functionality to bootstrap a Fastify based API application.",
10
10
  "author": "thZero",
11
11
  "license": "MIT",
@@ -26,13 +26,13 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@fastify/auth": "^4.2.0",
29
- "@fastify/compress": "^6.2.0",
29
+ "@fastify/compress": "^6.2.1",
30
30
  "@fastify/cors": "^8.2.1",
31
- "@fastify/helmet": "^10.1.0",
31
+ "@fastify/helmet": "^10.1.1",
32
32
  "@fastify/routes": "^5.1.0",
33
- "@fastify/static": "^6.9.0",
33
+ "@fastify/static": "^6.10.1",
34
34
  "async-mutex": "^0.4.0",
35
- "fastify": "^4.14.1"
35
+ "fastify": "^4.17.0"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@thzero/library_common": "^0.17",
@@ -35,7 +35,7 @@ class BaseNewsRoute extends BaseRoute {
35
35
  },
36
36
  async (request, reply) => {
37
37
  // const service = this._injector.getService(ServerConstants.InjectorKeys.SERVICE_NEWS);
38
- const response = (await router[ServerConstants.InjectorKeys.SERVICE_NEWS].latest(request.correlationId, request.user, parseInt(request.params.date))).check(request);
38
+ const response = (await router[LibraryServerConstants.InjectorKeys.SERVICE_NEWS].latest(request.correlationId, request.user, request.params.date)).check(request);
39
39
  // https://github.com/fastify/fastify-compress/issues/215#issuecomment-1210598312
40
40
  return this._jsonResponse(reply, response);
41
41
  });