@nestjs/platform-fastify 8.0.8 → 8.1.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/adapters/fastify-adapter.js +3 -3
- package/adapters/index.js +1 -1
- package/index.js +3 -3
- package/interfaces/external/index.js +2 -2
- package/interfaces/index.js +1 -1
- package/package.json +3 -3
package/Readme.md
CHANGED
|
@@ -79,9 +79,9 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
|
|
|
79
79
|
<a href="https://neoteric.eu/" target="_blank"><img src="https://nestjs.com/img/neoteric-cut.png" width="120" valign="middle" /></a> </td><td>
|
|
80
80
|
<a href="http://gojob.com" target="_blank"><img src="http://nestjs.com/img/gojob-logo.png" valign="middle" width="100" /></a> </td><td>
|
|
81
81
|
<a href="http://www.leogistics.com" target="_blank"><img src="https://nestjs.com/img/leogistics-logo.jpeg" width="150" valign="middle" /></td><td>
|
|
82
|
-
<a href="
|
|
82
|
+
<a href="https://careers.meetdandy.com/?gh_src=063ba61e3us" target="_blank"><img src="https://nestjs.com/img/dandy-roles-logo.svg" width="150" valign="middle" /></td><td>
|
|
83
83
|
<a href="https://www.castlecraft.in" target="_blank"><img src="https://nestjs.com/img/castlecraft-logo.png" width="150" valign="middle" /></td>
|
|
84
|
-
<td><a href="https://www.tinystacks.com" target="_blank"><img src="https://nestjs.com/img/tinystacks-logo.png" width="
|
|
84
|
+
<td><a href="https://www.tinystacks.com" target="_blank"><img src="https://nestjs.com/img/tinystacks-logo.png#1" width="140" valign="middle" /></td></tr></table>
|
|
85
85
|
|
|
86
86
|
#### Sponsors
|
|
87
87
|
|
|
@@ -66,7 +66,7 @@ class FastifyAdapter extends http_adapter_1.AbstractHttpAdapter {
|
|
|
66
66
|
};
|
|
67
67
|
const instance = instanceOrOptions && instanceOrOptions.server
|
|
68
68
|
? instanceOrOptions
|
|
69
|
-
: fastify_1.fastify(Object.assign({ constraints: {
|
|
69
|
+
: (0, fastify_1.fastify)(Object.assign({ constraints: {
|
|
70
70
|
version: this.versionConstraint,
|
|
71
71
|
} }, instanceOrOptions));
|
|
72
72
|
this.setInstance(instance);
|
|
@@ -180,14 +180,14 @@ class FastifyAdapter extends http_adapter_1.AbstractHttpAdapter {
|
|
|
180
180
|
this.httpServer = this.instance.server;
|
|
181
181
|
}
|
|
182
182
|
useStaticAssets(options) {
|
|
183
|
-
return this.register(load_package_util_1.loadPackage('fastify-static', 'FastifyAdapter.useStaticAssets()', () => require('fastify-static')), options);
|
|
183
|
+
return this.register((0, load_package_util_1.loadPackage)('fastify-static', 'FastifyAdapter.useStaticAssets()', () => require('fastify-static')), options);
|
|
184
184
|
}
|
|
185
185
|
setViewEngine(options) {
|
|
186
186
|
if (typeof options === 'string') {
|
|
187
187
|
new common_1.Logger('FastifyAdapter').error("setViewEngine() doesn't support a string argument.");
|
|
188
188
|
process.exit(1);
|
|
189
189
|
}
|
|
190
|
-
return this.register(load_package_util_1.loadPackage('point-of-view', 'FastifyAdapter.setViewEngine()', () => require('point-of-view')), options);
|
|
190
|
+
return this.register((0, load_package_util_1.loadPackage)('point-of-view', 'FastifyAdapter.setViewEngine()', () => require('point-of-view')), options);
|
|
191
191
|
}
|
|
192
192
|
setHeader(response, name, value) {
|
|
193
193
|
return response.header(name, value);
|
package/adapters/index.js
CHANGED
package/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
3
|
* Nest @platform-express
|
|
4
|
-
* Copyright(c) 2017 -
|
|
4
|
+
* Copyright(c) 2017 - 2021 Kamil Mysliwiec
|
|
5
5
|
* https://nestjs.com
|
|
6
6
|
* MIT Licensed
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
const tslib_1 = require("tslib");
|
|
10
|
-
tslib_1.__exportStar(require("./adapters"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./interfaces"), exports);
|
|
10
|
+
(0, tslib_1.__exportStar)(require("./adapters"), exports);
|
|
11
|
+
(0, tslib_1.__exportStar)(require("./interfaces"), exports);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./fastify-static-options.interface"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./point-of-view-options.interface"), exports);
|
|
4
|
+
(0, tslib_1.__exportStar)(require("./fastify-static-options.interface"), exports);
|
|
5
|
+
(0, tslib_1.__exportStar)(require("./point-of-view-options.interface"), exports);
|
package/interfaces/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./nest-fastify-application.interface"), exports);
|
|
4
|
+
(0, tslib_1.__exportStar)(require("./nest-fastify-application.interface"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/platform-fastify",
|
|
3
|
-
"version": "8.0
|
|
3
|
+
"version": "8.1.0",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@platform-fastify)",
|
|
5
5
|
"author": "Kamil Mysliwiec",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"fastify": "3.
|
|
20
|
+
"fastify": "3.22.0",
|
|
21
21
|
"fastify-cors": "6.0.2",
|
|
22
22
|
"fastify-formbody": "5.1.0",
|
|
23
|
-
"light-my-request": "4.
|
|
23
|
+
"light-my-request": "4.5.0",
|
|
24
24
|
"middie": "5.3.0",
|
|
25
25
|
"path-to-regexp": "3.2.0",
|
|
26
26
|
"tslib": "2.3.1"
|