@gasket/plugin-fastify 6.39.3 → 6.41.1
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 +6 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -50,9 +50,12 @@ module.exports = {
|
|
|
50
50
|
}
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
###
|
|
53
|
+
### Middleware paths
|
|
54
|
+
|
|
55
|
+
The `gasket.config.js` can contain a `middleware` property, which is an array of
|
|
56
|
+
objects that map plugins to route or path patterns, allowing apps to tune which
|
|
57
|
+
middleware are triggered for which requests.
|
|
54
58
|
|
|
55
|
-
You can configure which paths middleware will run on by adding the middleware configuration array to your local `gasket.config.js`. The array is made up of objects with the name of the middlware (Gasket plugin name) you want to configure and an array of path patterns representing the paths to match for this middleware. Pattern matching entries in the array can come in the form of path strings and/or regular expressions.
|
|
56
59
|
```js
|
|
57
60
|
middleware: [
|
|
58
61
|
{
|
|
@@ -64,7 +67,7 @@ You can configure which paths middleware will run on by adding the middleware co
|
|
|
64
67
|
paths: [/\/default/]
|
|
65
68
|
},
|
|
66
69
|
{
|
|
67
|
-
plugin: '@another/gasket-plugin-example'
|
|
70
|
+
plugin: '@another/gasket-plugin-example',
|
|
68
71
|
paths: ['/proxy', /\/home/]
|
|
69
72
|
}
|
|
70
73
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gasket/plugin-fastify",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.41.1",
|
|
4
4
|
"description": "Adds fastify support to your application",
|
|
5
5
|
"main": "lib",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"eslintIgnore": [
|
|
72
72
|
"generator"
|
|
73
73
|
],
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "d2fe46bdb0e215a1d6b6bfd4a786e1629da5293e"
|
|
75
75
|
}
|