@gasket/plugin-fastify 6.24.0 → 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 +2 -2
- package/lib/index.js +17 -0
- package/package.json +3 -3
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
|
|
35
|
+
- `compression`: true by default. Can be set to false if applying compression
|
|
36
36
|
differently.
|
|
37
|
-
- `excludedRoutesRegex`:
|
|
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.
|
|
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",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"middie": "5.1.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@gasket/engine": "^6.
|
|
48
|
+
"@gasket/engine": "^6.26.1",
|
|
49
49
|
"assume": "^2.3.0",
|
|
50
50
|
"assume-sinon": "^1.1.0",
|
|
51
51
|
"eslint": "^8.7.0",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"unicorn/filename-case": "error"
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "b63c2abff1b9c8c2a47794f1439be00cc2243749"
|
|
77
77
|
}
|