@nestjs/platform-fastify 11.1.7 → 11.1.8

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.
@@ -91,10 +91,13 @@ class FastifyAdapter extends http_adapter_1.AbstractHttpAdapter {
91
91
  const instance = instanceOrOptions && instanceOrOptions.server
92
92
  ? instanceOrOptions
93
93
  : (0, fastify_1.fastify)({
94
- constraints: {
95
- version: this.versionConstraint,
96
- },
97
94
  ...instanceOrOptions,
95
+ routerOptions: {
96
+ ...instanceOrOptions?.routerOptions,
97
+ constraints: {
98
+ version: this.versionConstraint,
99
+ },
100
+ },
98
101
  });
99
102
  this.setInstance(instance);
100
103
  if (instanceOrOptions?.skipMiddie) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/platform-fastify",
3
- "version": "11.1.7",
3
+ "version": "11.1.8",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@platform-fastify)",
5
5
  "author": "Kamil Mysliwiec",
6
6
  "license": "MIT",