Commit cee2980f authored by Rosanny Sihombing's avatar Rosanny Sihombing
Browse files

add a new package

5 merge requests!143updating yml config,!91Prepare prod,!90Testing,!89Testing,!80Mlab 501
This commit is part of merge request !80. Comments created here will be created in the context of that merge request.
Showing with 29 additions and 0 deletions
+29 -0
...@@ -11,6 +11,7 @@ const flash = require('express-flash-2'); ...@@ -11,6 +11,7 @@ const flash = require('express-flash-2');
const fileUpload = require('express-fileupload'); const fileUpload = require('express-fileupload');
const helmet = require('helmet'); const helmet = require('helmet');
const compression = require('compression'); const compression = require('compression');
const methodOverride = require('method-override');
const i18n = require('i18n'); // internationalization const i18n = require('i18n'); // internationalization
i18n.configure({ i18n.configure({
...@@ -35,6 +36,7 @@ app.use(fileUpload({ ...@@ -35,6 +36,7 @@ app.use(fileUpload({
} }
})); }));
app.use(methodOverride('_method'));
app.use(helmet()); app.use(helmet());
app.use(compression()); app.use(compression());
app.use(morgan('combined')); app.use(morgan('combined'));
......
...@@ -5013,6 +5013,32 @@ ...@@ -5013,6 +5013,32 @@
"resolved": "https://registry.npmjs.org/messageformat-parser/-/messageformat-parser-4.1.2.tgz", "resolved": "https://registry.npmjs.org/messageformat-parser/-/messageformat-parser-4.1.2.tgz",
"integrity": "sha1-/TTsOZEqFIaKFZXq63QkhauKs3I=" "integrity": "sha1-/TTsOZEqFIaKFZXq63QkhauKs3I="
}, },
"method-override": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/method-override/-/method-override-3.0.0.tgz",
"integrity": "sha512-IJ2NNN/mSl9w3kzWB92rcdHpz+HjkxhDJWNDBqSlas+zQdP8wBiJzITPg08M/k2uVvMow7Sk41atndNtt/PHSA==",
"requires": {
"debug": "3.1.0",
"methods": "~1.1.2",
"parseurl": "~1.3.2",
"vary": "~1.1.2"
},
"dependencies": {
"debug": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
"integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
"requires": {
"ms": "2.0.0"
}
},
"ms": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
}
}
},
"methods": { "methods": {
"version": "1.1.2", "version": "1.1.2",
"resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
"helmet": "^3.23.3", "helmet": "^3.23.3",
"i18n": "^0.8.5", "i18n": "^0.8.5",
"jest": "^26.6.3", "jest": "^26.6.3",
"method-override": "^3.0.0",
"morgan": "^1.9.1", "morgan": "^1.9.1",
"mysql": "^2.17.1", "mysql": "^2.17.1",
"mysql2": "^2.2.5", "mysql2": "^2.2.5",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment