@meridianjs/framework 0.1.8 → 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.
- package/dist/index.js +3 -0
- package/package.json +3 -1
package/dist/index.js
CHANGED
|
@@ -244,6 +244,7 @@ async function loadSubscribers(container, subscribersDir, disabledEvents = []) {
|
|
|
244
244
|
const eventBus = container.resolve("eventBus");
|
|
245
245
|
const files = await fs2.readdir(subscribersDir);
|
|
246
246
|
for (const file of files) {
|
|
247
|
+
if (file.startsWith("_")) continue;
|
|
247
248
|
if (/\.d\.(ts|mts)$/.test(file)) continue;
|
|
248
249
|
if (!/\.(ts|mts|js|mjs|cjs)$/.test(file)) continue;
|
|
249
250
|
const fullPath = path4.join(subscribersDir, file);
|
|
@@ -509,6 +510,7 @@ function resolveNpmPackageRoot(packageName, fromDir) {
|
|
|
509
510
|
|
|
510
511
|
// src/server.ts
|
|
511
512
|
import express from "express";
|
|
513
|
+
import cookieParser from "cookie-parser";
|
|
512
514
|
import cors from "cors";
|
|
513
515
|
import helmet from "helmet";
|
|
514
516
|
function createServer(container, config) {
|
|
@@ -517,6 +519,7 @@ function createServer(container, config) {
|
|
|
517
519
|
const logger = container.resolve("logger");
|
|
518
520
|
app.use(express.json({ limit: "10mb" }));
|
|
519
521
|
app.use(express.urlencoded({ extended: true, limit: "10mb" }));
|
|
522
|
+
app.use(cookieParser());
|
|
520
523
|
app.use(helmet({
|
|
521
524
|
contentSecurityPolicy: {
|
|
522
525
|
directives: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meridianjs/framework",
|
|
3
|
-
"version": "0.1.
|
|
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",
|