@thzero/library_server_fastify 0.17.1 → 0.17.2

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/boot/index.js CHANGED
@@ -64,7 +64,7 @@ class FastifyBootMain extends BootMain {
64
64
  // origin: '*'
65
65
  // });
66
66
  const corsOptionsDefault = this._initCors({
67
- allowHeaders: [ LibraryServerConstants.Headers.AuthKeys.API, LibraryServerConstants.Headers.AuthKeys.AUTH, ServerConstants.Headers.CorrelationId, 'Content-Type' ],
67
+ allowHeaders: [ LibraryServerConstants.Headers.AuthKeys.API, LibraryServerConstants.Headers.AuthKeys.AUTH, LibraryServerConstants.Headers.CorrelationId, 'Content-Type' ],
68
68
  credentials: true,
69
69
  maxAge : 7200,
70
70
  methods: ['GET', 'POST', 'DELETE'],
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@thzero/library_server_fastify",
3
3
  "type": "module",
4
- "version": "0.17.1",
4
+ "version": "0.17.2",
5
5
  "version_major": 0,
6
6
  "version_minor": 17,
7
- "version_patch": 1,
7
+ "version_patch": 2,
8
8
  "version_date": "02/02/2023",
9
9
  "description": "An opinionated library of common functionality to bootstrap a Fastify based API application.",
10
10
  "author": "thZero",
@@ -44,8 +44,8 @@ class BaseUsersRoute extends BaseRoute {
44
44
  },
45
45
  // eslint-disable-next-line
46
46
  async (request, reply) => {
47
- // const service = this._injector.getService(ServerConstants.InjectorKeys.SERVICE_USERS);
48
- const response = (await router[ServerConstants.InjectorKeys.SERVICE_USERS].fetchByGamerId(request.correlationId, request.params.gamerId)).check(request);
47
+ // const service = this._injector.getService(LibraryServerConstants.InjectorKeys.SERVICE_USERS);
48
+ const response = (await router[LibraryServerConstants.InjectorKeys.SERVICE_USERS].fetchByGamerId(request.correlationId, request.params.gamerId)).check(request);
49
49
  // https://github.com/fastify/fastify-compress/issues/215#issuecomment-1210598312
50
50
  return this._jsonResponse(reply, response);
51
51
  }
@@ -69,8 +69,8 @@ class BaseUsersRoute extends BaseRoute {
69
69
  },
70
70
  // eslint-disable-next-line
71
71
  async (request, reply) => {
72
- // const service = this._injector.getService(ServerConstants.InjectorKeys.SERVICE_USERS);
73
- const response = (await router[ServerConstants.InjectorKeys.SERVICE_USERS].fetchByGamerTag(request.correlationId, request.params.gamerTag)).check(request);
72
+ // const service = this._injector.getService(LibraryServerConstants.InjectorKeys.SERVICE_USERS);
73
+ const response = (await router[LibraryServerConstants.InjectorKeys.SERVICE_USERS].fetchByGamerTag(request.correlationId, request.params.gamerTag)).check(request);
74
74
  // https://github.com/fastify/fastify-compress/issues/215#issuecomment-1210598312
75
75
  return this._jsonResponse(reply, response);
76
76
  }
@@ -93,8 +93,8 @@ class BaseUsersRoute extends BaseRoute {
93
93
  },
94
94
  // eslint-disable-next-line
95
95
  async (request, reply) => {
96
- // const service = this._injector.getService(ServerConstants.InjectorKeys.SERVICE_USERS);
97
- const response = (await router[ServerConstants.InjectorKeys.SERVICE_USERS].refreshSettings(request.correlationId, request.body)).check(request);
96
+ // const service = this._injector.getService(LibraryServerConstants.InjectorKeys.SERVICE_USERS);
97
+ const response = (await router[LibraryServerConstants.InjectorKeys.SERVICE_USERS].refreshSettings(request.correlationId, request.body)).check(request);
98
98
  // https://github.com/fastify/fastify-compress/issues/215#issuecomment-1210598312
99
99
  return this._jsonResponse(reply, response);
100
100
  }
@@ -117,8 +117,8 @@ class BaseUsersRoute extends BaseRoute {
117
117
  },
118
118
  // eslint-disable-next-line
119
119
  async (request, reply) => {
120
- // const service = this._injector.getService(ServerConstants.InjectorKeys.SERVICE_USERS);
121
- const response = (await router[ServerConstants.InjectorKeys.SERVICE_USERS].update(request.correlationId, request.body)).check(request);
120
+ // const service = this._injector.getService(LibraryServerConstants.InjectorKeys.SERVICE_USERS);
121
+ const response = (await router[LibraryServerConstants.InjectorKeys.SERVICE_USERS].update(request.correlationId, request.body)).check(request);
122
122
  // https://github.com/fastify/fastify-compress/issues/215#issuecomment-1210598312
123
123
  return this._jsonResponse(reply, response);
124
124
  }
@@ -141,8 +141,8 @@ class BaseUsersRoute extends BaseRoute {
141
141
  },
142
142
  // eslint-disable-next-line
143
143
  async (request, reply) => {
144
- // const service = this._injector.getService(ServerConstants.InjectorKeys.SERVICE_USERS);
145
- const response = (await router[ServerConstants.InjectorKeys.SERVICE_USERS].updateSettings(request.correlationId, request.body)).check(request);
144
+ // const service = this._injector.getService(LibraryServerConstants.InjectorKeys.SERVICE_USERS);
145
+ const response = (await router[LibraryServerConstants.InjectorKeys.SERVICE_USERS].updateSettings(request.correlationId, request.body)).check(request);
146
146
  // https://github.com/fastify/fastify-compress/issues/215#issuecomment-1210598312
147
147
  return this._jsonResponse(reply, response);
148
148
  }