@ido_kawaz/server-framework 3.4.0 → 3.5.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/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +2 -0
- package/dist/utils.js.map +1 -1
- package/package.json +3 -1
package/dist/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAGA,OAAO,OAAO,EAAE,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAG3C,eAAO,MAAM,mBAAmB,GAAI,aAAa,MAAM,EAAE,MAAM,KAAK,OAAO,oBAS1E,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,KAAK,OAAO,oBAGjD,CAAA"}
|
package/dist/utils.js
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.registerErrorHandling = exports.registerMiddlewares = void 0;
|
|
7
7
|
const body_parser_1 = __importDefault(require("body-parser"));
|
|
8
8
|
const cors_1 = __importDefault(require("cors"));
|
|
9
|
+
const cookie_parser_1 = __importDefault(require("cookie-parser"));
|
|
9
10
|
const express_1 = __importDefault(require("express"));
|
|
10
11
|
const decorators_1 = require("./decorators");
|
|
11
12
|
const registerMiddlewares = (corsOrigins) => (app) => {
|
|
@@ -15,6 +16,7 @@ const registerMiddlewares = (corsOrigins) => (app) => {
|
|
|
15
16
|
}));
|
|
16
17
|
app.use(express_1.default.json());
|
|
17
18
|
app.use(body_parser_1.default.urlencoded({ extended: true }));
|
|
19
|
+
app.use((0, cookie_parser_1.default)());
|
|
18
20
|
return app;
|
|
19
21
|
};
|
|
20
22
|
exports.registerMiddlewares = registerMiddlewares;
|
package/dist/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;;;;AAAA,8DAAqC;AACrC,gDAAwB;AACxB,sDAA2C;AAC3C,6CAAmD;AAE5C,MAAM,mBAAmB,GAAG,CAAC,WAAqB,EAAE,EAAE,CAAC,CAAC,GAAY,EAAE,EAAE;IAC3E,GAAG,CAAC,GAAG,CAAC,IAAA,cAAI,EAAC;QACT,MAAM,EAAE,WAAW;QACnB,WAAW,EAAE,IAAI;KACpB,CAAC,CAAC,CAAC;IACJ,GAAG,CAAC,GAAG,CAAC,iBAAO,CAAC,IAAI,EAAE,CAAC,CAAC;IACxB,GAAG,CAAC,GAAG,CAAC,qBAAU,CAAC,UAAU,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IACnD,OAAO,GAAG,CAAC;AACf,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;;;;AAAA,8DAAqC;AACrC,gDAAwB;AACxB,kEAAyC;AACzC,sDAA2C;AAC3C,6CAAmD;AAE5C,MAAM,mBAAmB,GAAG,CAAC,WAAqB,EAAE,EAAE,CAAC,CAAC,GAAY,EAAE,EAAE;IAC3E,GAAG,CAAC,GAAG,CAAC,IAAA,cAAI,EAAC;QACT,MAAM,EAAE,WAAW;QACnB,WAAW,EAAE,IAAI;KACpB,CAAC,CAAC,CAAC;IACJ,GAAG,CAAC,GAAG,CAAC,iBAAO,CAAC,IAAI,EAAE,CAAC,CAAC;IACxB,GAAG,CAAC,GAAG,CAAC,qBAAU,CAAC,UAAU,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IACnD,GAAG,CAAC,GAAG,CAAC,IAAA,uBAAY,GAAE,CAAC,CAAC;IACxB,OAAO,GAAG,CAAC;AACf,CAAC,CAAC;AATW,QAAA,mBAAmB,uBAS9B;AAEK,MAAM,qBAAqB,GAAG,CAAC,GAAY,EAAE,EAAE;IAClD,GAAG,CAAC,GAAG,CAAC,gCAAmB,CAAC,CAAC;IAC7B,OAAO,GAAG,CAAC;AACf,CAAC,CAAA;AAHY,QAAA,qBAAqB,yBAGjC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ido_kawaz/server-framework",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "Server framework library for Kawaz Plus services",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -25,11 +25,13 @@
|
|
|
25
25
|
"author": "",
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"dependencies": {
|
|
28
|
+
"@types/cookie-parser": "^1.4.10",
|
|
28
29
|
"@types/cors": "^2.8.19",
|
|
29
30
|
"@types/express": "^5.0.6",
|
|
30
31
|
"@types/multer": "^2.0.0",
|
|
31
32
|
"@types/ramda": "^0.31.1",
|
|
32
33
|
"body-parser": "^2.2.2",
|
|
34
|
+
"cookie-parser": "^1.4.7",
|
|
33
35
|
"cors": "^2.8.6",
|
|
34
36
|
"express": "^5.2.1",
|
|
35
37
|
"http-status-codes": "^2.3.0",
|