qumra-engine 2.0.111 → 2.0.112

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.
@@ -25,12 +25,12 @@ const cors_1 = __importDefault(require("cors"));
25
25
  const startEngine = async ({ renderApi, mode, getRender, setRender, port = 3000, themesRepo, themeId = null, currentApp, market, }) => {
26
26
  try {
27
27
  const app = (0, express_1.default)();
28
+ app.use((0, cookie_parser_1.default)());
29
+ app.use((0, morgan_1.default)("dev"));
28
30
  app.use((0, cors_1.default)({
29
31
  origin: "*",
30
32
  }));
31
- app.use((0, cookie_parser_1.default)());
32
33
  app.set("view engine", "nunjucks");
33
- app.use((0, morgan_1.default)("dev"));
34
34
  // لازم ترد على preflight OPTIONS request
35
35
  // app.options("*", cors());
36
36
  app.get("/health", (req, res) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qumra-engine",
3
- "version": "2.0.111",
3
+ "version": "2.0.112",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {