Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
m4lab_tv1
User Account
Commits
cee2980f
Commit
cee2980f
authored
4 years ago
by
Rosanny Sihombing
Browse files
Options
Download
Email Patches
Plain Diff
add a new package
parent
83bf3ffa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app.js
+2
-0
app.js
package-lock.json
+26
-0
package-lock.json
package.json
+1
-0
package.json
with
29 additions
and
0 deletions
+29
-0
app.js
+
2
-
0
View file @
cee2980f
...
...
@@ -11,6 +11,7 @@ const flash = require('express-flash-2');
const
fileUpload
=
require
(
'
express-fileupload
'
);
const
helmet
=
require
(
'
helmet
'
);
const
compression
=
require
(
'
compression
'
);
const
methodOverride
=
require
(
'
method-override
'
);
const
i18n
=
require
(
'
i18n
'
);
// internationalization
i18n
.
configure
({
...
...
@@ -35,6 +36,7 @@ app.use(fileUpload({
}
}));
app
.
use
(
methodOverride
(
'
_method
'
));
app
.
use
(
helmet
());
app
.
use
(
compression
());
app
.
use
(
morgan
(
'
combined
'
));
...
...
This diff is collapsed.
Click to expand it.
package-lock.json
+
26
-
0
View file @
cee2980f
...
...
@@ -5013,6 +5013,32 @@
"resolved"
:
"https://registry.npmjs.org/messageformat-parser/-/messageformat-parser-4.1.2.tgz"
,
"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"
:
{
"version"
:
"1.1.2"
,
"resolved"
:
"https://registry.npmjs.org/methods/-/methods-1.1.2.tgz"
,
...
...
This diff is collapsed.
Click to expand it.
package.json
+
1
-
0
View file @
cee2980f
...
...
@@ -37,6 +37,7 @@
"
helmet
"
:
"
^3.23.3
"
,
"
i18n
"
:
"
^0.8.5
"
,
"
jest
"
:
"
^26.6.3
"
,
"
method-override
"
:
"
^3.0.0
"
,
"
morgan
"
:
"
^1.9.1
"
,
"
mysql
"
:
"
^2.17.1
"
,
"
mysql2
"
:
"
^2.2.5
"
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets