qumra-engine 2.0.40 → 2.0.42

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);
@@ -19,7 +19,7 @@ const prepareDataMiddleware = (req, res, next) => {
19
19
  themePath = `?themeVersionId=${req.session.themeId}`;
20
20
  }
21
21
  const api = true
22
- ? `https://store-gate.qumra-dev.site/render${themePath}`
22
+ ? `https://store-gate.qumra.cloud/render${themePath}`
23
23
  : `http://192.168.1.8:4019/v1/render${themePath}`;
24
24
  console.log(req.cookies);
25
25
  console.log({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qumra-engine",
3
- "version": "2.0.40",
3
+ "version": "2.0.42",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {