@meridianjs/framework 0.1.9 → 0.1.11

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -0
  2. package/package.json +3 -1
package/dist/index.js CHANGED
@@ -510,6 +510,7 @@ function resolveNpmPackageRoot(packageName, fromDir) {
510
510
 
511
511
  // src/server.ts
512
512
  import express from "express";
513
+ import cookieParser from "cookie-parser";
513
514
  import cors from "cors";
514
515
  import helmet from "helmet";
515
516
  function createServer(container, config) {
@@ -518,6 +519,7 @@ function createServer(container, config) {
518
519
  const logger = container.resolve("logger");
519
520
  app.use(express.json({ limit: "10mb" }));
520
521
  app.use(express.urlencoded({ extended: true, limit: "10mb" }));
522
+ app.use(cookieParser());
521
523
  app.use(helmet({
522
524
  contentSecurityPolicy: {
523
525
  directives: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meridianjs/framework",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "Core Meridian framework: bootstrap, DI container, module/route/subscriber/job loaders",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -26,6 +26,7 @@
26
26
  "@meridianjs/framework-utils": "^0.1.0",
27
27
  "@meridianjs/types": "^0.1.0",
28
28
  "awilix": "^12.0.5",
29
+ "cookie-parser": "^1.4.7",
29
30
  "cors": "^2.8.5",
30
31
  "express": "^4.21.2",
31
32
  "express-rate-limit": "^7.5.0",
@@ -33,6 +34,7 @@
33
34
  "zod": "^3.24.0"
34
35
  },
35
36
  "devDependencies": {
37
+ "@types/cookie-parser": "^1.4.8",
36
38
  "@types/cors": "^2.8.17",
37
39
  "@types/express": "^5.0.0",
38
40
  "tsup": "^8.3.5",