apeframework 0.0.0-dev.19 → 0.0.0-dev.20
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/package.json +1 -2
- package/server/Server.js +0 -4
- package/server/Server.ts +0 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apeframework",
|
|
3
|
-
"version": "0.0.0-dev.
|
|
3
|
+
"version": "0.0.0-dev.20",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Matthieu Symoens",
|
|
6
6
|
"description": "Node.js app framework",
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@fastify/compress": "^8.0",
|
|
26
26
|
"@fastify/cors": "^10.0",
|
|
27
|
-
"@fastify/helmet": "^13.0",
|
|
28
27
|
"@fastify/response-validation": "^3.0",
|
|
29
28
|
"@fastify/swagger": "^9.4",
|
|
30
29
|
"@types/bcryptjs": "^2.4",
|
package/server/Server.js
CHANGED
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.Server = void 0;
|
|
7
7
|
const compress_1 = __importDefault(require("@fastify/compress"));
|
|
8
8
|
const cors_1 = __importDefault(require("@fastify/cors"));
|
|
9
|
-
const helmet_1 = __importDefault(require("@fastify/helmet"));
|
|
10
9
|
const response_validation_1 = __importDefault(require("@fastify/response-validation"));
|
|
11
10
|
const swagger_1 = __importDefault(require("@fastify/swagger"));
|
|
12
11
|
const fastify_1 = __importDefault(require("fastify"));
|
|
@@ -46,9 +45,6 @@ class Server {
|
|
|
46
45
|
origin: params.cors.origins,
|
|
47
46
|
});
|
|
48
47
|
}
|
|
49
|
-
this.server.register(helmet_1.default, {
|
|
50
|
-
global: false,
|
|
51
|
-
});
|
|
52
48
|
this.server.register((server, options, done) => {
|
|
53
49
|
params.routes.forEach((route) => {
|
|
54
50
|
server.route({
|
package/server/Server.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import compress from '@fastify/compress'
|
|
2
2
|
import cors from '@fastify/cors'
|
|
3
|
-
import helmet from '@fastify/helmet'
|
|
4
3
|
import responseValidation from '@fastify/response-validation'
|
|
5
4
|
import swagger from '@fastify/swagger'
|
|
6
5
|
import fastify from 'fastify'
|
|
@@ -79,10 +78,6 @@ class Server {
|
|
|
79
78
|
})
|
|
80
79
|
}
|
|
81
80
|
|
|
82
|
-
this.server.register(helmet, {
|
|
83
|
-
global: false,
|
|
84
|
-
})
|
|
85
|
-
|
|
86
81
|
this.server.register((server, options, done) => {
|
|
87
82
|
params.routes.forEach((route) => {
|
|
88
83
|
server.route({
|