parsony 1.1.1 → 1.1.2
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/index.js +2 -0
- package/package.json +2 -1
package/index.js
CHANGED
|
@@ -9,6 +9,7 @@ const fs = require("fs");
|
|
|
9
9
|
const chalk = require("chalk");
|
|
10
10
|
const figlet = require("figlet");
|
|
11
11
|
const clear = require("clear");
|
|
12
|
+
const compression = require("compression");
|
|
12
13
|
|
|
13
14
|
const { dateTime } = require("./lib/utils");
|
|
14
15
|
const db = require("./lib/db");
|
|
@@ -115,6 +116,7 @@ function _bindApp() {
|
|
|
115
116
|
function _bindMiddlewares() {
|
|
116
117
|
app.use(express.json({limit: '50mb', extended: true}))
|
|
117
118
|
app.use(express.urlencoded({limit: '50mb', extended: true}))
|
|
119
|
+
app.use(compression());
|
|
118
120
|
if (_loggingEnabled() === true) {
|
|
119
121
|
const { log } = utils;
|
|
120
122
|
log(app);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "parsony",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "API Engine for Parsony Framework.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"JSON-RPC, API, Rapid Development"
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"body-parser": "^1.18.3",
|
|
20
20
|
"chalk": "^2.4.1",
|
|
21
21
|
"clear": "^0.1.0",
|
|
22
|
+
"compression": "^1.7.4",
|
|
22
23
|
"continuation-local-storage": "^3.1.6",
|
|
23
24
|
"express": "^4.13.4",
|
|
24
25
|
"express-winston": "^2.5.1",
|