qumra-engine 2.0.113 → 2.0.114

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.
@@ -21,15 +21,16 @@ const express_session_1 = __importDefault(require("express-session"));
21
21
  const printServerLog_1 = require("./utils/printServerLog");
22
22
  const cookie_parser_1 = __importDefault(require("cookie-parser"));
23
23
  const routers_1 = __importDefault(require("./routers"));
24
- const cors_1 = __importDefault(require("cors"));
25
24
  const startEngine = async ({ renderApi, mode, getRender, setRender, port = 3000, themesRepo, themeId = null, currentApp, market, }) => {
26
25
  try {
27
26
  const app = (0, express_1.default)();
28
27
  app.use((0, cookie_parser_1.default)());
29
28
  app.use((0, morgan_1.default)("dev"));
30
- app.use((0, cors_1.default)({
31
- origin: "*",
32
- }));
29
+ // app.use(
30
+ // cors({
31
+ // origin: "*",
32
+ // })
33
+ // );
33
34
  app.set("view engine", "nunjucks");
34
35
  // لازم ترد على preflight OPTIONS request
35
36
  // app.options("*", cors());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qumra-engine",
3
- "version": "2.0.113",
3
+ "version": "2.0.114",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {