qumra-engine 2.0.39 → 2.0.41

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.
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const nunjucks_1 = __importDefault(require("nunjucks"));
7
7
  const normalizeWidgetPath_1 = require("../../utils/normalizeWidgetPath");
8
- const resolveTranslations_1 = require("../../utils/resolveTranslations");
9
8
  exports.default = new (class WidgetExtension {
10
9
  constructor() {
11
10
  this.tags = ["footer"];
@@ -34,7 +33,7 @@ exports.default = new (class WidgetExtension {
34
33
  const rendered = env.render(widgetPath, {
35
34
  ...ctx,
36
35
  footer: {
37
- data: (0, resolveTranslations_1.resolveTranslations)(footer.data, env.getGlobal("t")),
36
+ data: footer,
38
37
  },
39
38
  });
40
39
  return new nunjucks_1.default.runtime.SafeString(rendered);
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const nunjucks_1 = __importDefault(require("nunjucks"));
7
7
  const normalizeWidgetPath_1 = require("../../utils/normalizeWidgetPath");
8
- const resolveTranslations_1 = require("../../utils/resolveTranslations");
9
8
  exports.default = new (class HeaderExtension {
10
9
  constructor() {
11
10
  this.tags = ["header"];
@@ -34,7 +33,7 @@ exports.default = new (class HeaderExtension {
34
33
  const rendered = env.render(widgetPath, {
35
34
  ...ctx,
36
35
  header: {
37
- data: (0, resolveTranslations_1.resolveTranslations)(header, env.getGlobal("t")),
36
+ data: header,
38
37
  },
39
38
  });
40
39
  return new nunjucks_1.default.runtime.SafeString(rendered);
@@ -28,14 +28,19 @@ const prepareDataMiddleware = (req, res, next) => {
28
28
  authorization: req.cookies.authorization || "",
29
29
  });
30
30
  const qdid = req.cookies.qdid || "";
31
- const authorization = req.cookies.authorization || "";
31
+ const Authorization = req.cookies.authorization || "";
32
+ console.log({
33
+ "Content-Type": "application/json",
34
+ Authorization,
35
+ "qdid": qdid,
36
+ });
32
37
  axios_1.default
33
38
  .post(api, { url: parsedUrl.fullUrl }, // ← body مباشرة هنا
34
39
  {
35
40
  headers: {
36
41
  "Content-Type": "application/json",
37
- authorization: authorization,
38
- qdid: qdid,
42
+ Authorization,
43
+ "qdid": qdid,
39
44
  },
40
45
  })
41
46
  .then((engineResponse) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qumra-engine",
3
- "version": "2.0.39",
3
+ "version": "2.0.41",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {