@thzero/library_server_fastify 0.16.1 → 0.16.4

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
@@ -1,12 +1,12 @@
1
1
  import path from 'path';
2
2
 
3
3
  import Fastify from 'fastify';
4
- // import fastifyAuth from 'fastify-auth';
4
+ // import fastifyAuth from '@fastify/auth';
5
5
  import fastifyAuth from '../plugins/auth.js';
6
- import fastifyCors from 'fastify-cors';
7
- import fastifyHelmet from 'fastify-helmet';
8
- import fastifyRoutes from 'fastify-routes';
9
- import fastifyStatic from 'fastify-static';
6
+ import fastifyCors from '@fastify/cors';
7
+ import fastifyHelmet from '@fastify/helmet';
8
+ import fastifyRoutes from '@fastify/routes';
9
+ import fastifyStatic from '@fastify/static';
10
10
 
11
11
  import LibraryConstants from '@thzero/library_server/constants.js';
12
12
 
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.1",
4
+ "version": "0.16.4",
5
5
  "version_major": 0,
6
6
  "version_minor": 16,
7
- "version_patch": 1,
7
+ "version_patch": 4,
8
8
  "version_date": "08/28/2022",
9
9
  "description": "An opinionated library of common functionality to bootstrap a Fastify based API application.",
10
10
  "author": "thZero",
@@ -25,13 +25,13 @@
25
25
  "test": "echo \"Error: no test specified\" && exit 1"
26
26
  },
27
27
  "dependencies": {
28
+ "@fastify/auth": "^3.0.2",
29
+ "@fastify/cors": "^8.1.0",
30
+ "@fastify/helmet": "^9.1.0",
31
+ "@fastify/routes": "^5.0.0",
32
+ "@fastify/static": "^6.5.0",
28
33
  "async-mutex": "^0.3.2",
29
- "fastify": "^4.4.0",
30
- "fastify-auth": "^1.2.0",
31
- "fastify-cors": "^6.1.0",
32
- "fastify-helmet": "^7.1.0",
33
- "fastify-routes": "^3.2.0",
34
- "fastify-static": "^4.7.0"
34
+ "fastify": "^4.5.3"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@thzero/library_common": "^0.16",
package/plugins/auth.js CHANGED
@@ -120,4 +120,6 @@ function auth (functions, opts) {
120
120
  }
121
121
  }
122
122
 
123
- export default fp(checkAuth, '3.x')
123
+ export default fp(checkAuth, {
124
+ fastify: '4.x'
125
+ })