@thzero/library_server_fastify 0.18.12 → 0.18.14

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
@@ -129,22 +129,22 @@ class FastifyBootMain extends BootMain {
129
129
  // });
130
130
  // }
131
131
  // });
132
- await fastify.register(async (instance, opts, done) => {
133
- // try {
134
- // done();
135
- // }
136
- // catch (err) {
137
- // let status = err.status || 500;
138
- // if (err instanceof TokenExpiredError) {
139
- // status = 401;
140
- // response.header['WWW-Authenticate'] = 'Bearer error="invalid_token", error_description="The access token expired"'
141
- // }
142
- // app.emit('error', err, ctx);
143
- // await this.usageMetricsServiceI.register(ctx, err).catch(() => {
144
- // this.loggerServiceI.exception('KoaBootMain', 'start', err);
145
- // });
146
- // }
147
- });
132
+ // await fastify.register(async (instance, opts, done) => {
133
+ // // try {
134
+ // // done();
135
+ // // }
136
+ // // catch (err) {
137
+ // // let status = err.status || 500;
138
+ // // if (err instanceof TokenExpiredError) {
139
+ // // status = 401;
140
+ // // response.header['WWW-Authenticate'] = 'Bearer error="invalid_token", error_description="The access token expired"'
141
+ // // }
142
+ // // app.emit('error', err, ctx);
143
+ // // await this.usageMetricsServiceI.register(ctx, err).catch(() => {
144
+ // // this.loggerServiceI.exception('KoaBootMain', 'start', err);
145
+ // // });
146
+ // // }
147
+ // });
148
148
 
149
149
  // app.on('error', (err, ctx) => {
150
150
  // this.loggerServiceI.error('KoaBootMain', 'start', 'Uncaught Exception', err);
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@thzero/library_server_fastify",
3
3
  "type": "module",
4
- "version": "0.18.12",
4
+ "version": "0.18.14",
5
5
  "version_major": 0,
6
6
  "version_minor": 18,
7
- "version_patch": 12,
8
- "version_date": "10/31/2024",
7
+ "version_patch": 14,
8
+ "version_date": "12/16/2024",
9
9
  "description": "An opinionated library of common functionality to bootstrap a Fastify based API application.",
10
10
  "author": "thZero",
11
11
  "license": "MIT",
@@ -25,14 +25,14 @@
25
25
  "test": "echo \"Error: no test specified\" && exit 1"
26
26
  },
27
27
  "dependencies": {
28
- "@fastify/auth": "^5.0.1",
28
+ "@fastify/auth": "^5.0.2",
29
29
  "@fastify/compress": "^8.0.1",
30
30
  "@fastify/cors": "^10.0.1",
31
- "@fastify/helmet": "^12.0.1",
31
+ "@fastify/helmet": "^13.0.0",
32
32
  "@fastify/routes": "^6.0.1",
33
- "@fastify/static": "^8.0.2",
33
+ "@fastify/static": "^8.0.3",
34
34
  "async-mutex": "^0.5.0",
35
- "fastify": "^5.0.0"
35
+ "fastify": "^5.2.0"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@thzero/library_common": "^0.18",
package/plugins/auth.js CHANGED
@@ -123,5 +123,5 @@ function auth (functions, opts) {
123
123
  }
124
124
 
125
125
  export default fp(checkAuth, {
126
- fastify: '4.x'
126
+ fastify: '5.x'
127
127
  })