@gasket/plugin-fastify 6.26.1 → 6.28.0

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/README.md CHANGED
@@ -32,9 +32,9 @@ module.exports = {
32
32
 
33
33
  All the configurations for the plugin are added under `fastify` in the config:
34
34
 
35
- - `compression`: true by default. Can to set to false if applying compression
35
+ - `compression`: true by default. Can be set to false if applying compression
36
36
  differently.
37
- - `excludedRoutesRegex`: Regex of the routes to exclude by Fastify.
37
+ - `excludedRoutesRegex`: Routes to be excluded based on a regex
38
38
 
39
39
  #### Example configuration
40
40
 
package/lib/index.js CHANGED
@@ -106,6 +106,23 @@ module.exports = {
106
106
  link: 'README.md#errorMiddleware',
107
107
  parent: 'createServers',
108
108
  after: 'express'
109
+ }],
110
+ configurations: [{
111
+ name: 'fastify',
112
+ link: 'README.md#configuration',
113
+ description: 'Fastify configuration object',
114
+ type: 'object'
115
+ }, {
116
+ name: 'fastify.compression',
117
+ link: 'README.md#configuration',
118
+ description: 'Automatic compression',
119
+ type: 'boolean',
120
+ default: true
121
+ }, {
122
+ name: 'fastify.excludedRoutesRegex',
123
+ link: 'README.md#configuration',
124
+ description: 'Routes to be excluded based on a regex',
125
+ type: 'RegExp'
109
126
  }]
110
127
  };
111
128
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gasket/plugin-fastify",
3
- "version": "6.26.1",
3
+ "version": "6.28.0",
4
4
  "description": "Adds fastify support to your application",
5
5
  "main": "lib",
6
6
  "types": "lib/index.d.ts",
@@ -73,5 +73,5 @@
73
73
  "unicorn/filename-case": "error"
74
74
  }
75
75
  },
76
- "gitHead": "4ae5de8292ef8695e66583a8c74e945423a00707"
76
+ "gitHead": "b63c2abff1b9c8c2a47794f1439be00cc2243749"
77
77
  }