awing-library 2.1.47 → 2.1.48

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.
@@ -58,11 +58,12 @@ var runScript = function (params, script) {
58
58
  };
59
59
  exports.runScript = runScript;
60
60
  var convertRelativeLink = function (link, pagePath, templateId, configs) {
61
- var isTemplatePath = link === null || link === void 0 ? void 0 : link.includes(constant_1.ACM_TEMPLATE_PATH);
61
+ var isTemplatePath = (link === null || link === void 0 ? void 0 : link.includes(constant_1.ACM_TEMPLATE_PATH)) || (link === null || link === void 0 ? void 0 : link.includes(constant_1.ACM_PAGE_PATH));
62
62
  if (isTemplatePath) {
63
63
  return "".concat(configs.TEMPLATE_FILE_PATH, "/").concat(templateId, "/").concat(link.split("/")[link.split("/").length - 1]);
64
64
  }
65
- return "".concat(pagePath, "/").concat(link.split("/")[link.split("/").length - 1]) || "";
65
+ return link;
66
+ // return `${pagePath}/${link.split("/")[link.split("/").length - 1]}` || "";
66
67
  };
67
68
  exports.convertRelativeLink = convertRelativeLink;
68
69
  var generateRandomInteger = function (max) {
@@ -1,2 +1,3 @@
1
1
  export declare const ACM_TEMPLATE_PATH = "{acmTemplatePath}";
2
+ export declare const ACM_PAGE_PATH = "{acmPagePath}";
2
3
  export declare const DELAY_TIME_RUN_SCRIPT = 1500;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DELAY_TIME_RUN_SCRIPT = exports.ACM_TEMPLATE_PATH = void 0;
3
+ exports.DELAY_TIME_RUN_SCRIPT = exports.ACM_PAGE_PATH = exports.ACM_TEMPLATE_PATH = void 0;
4
4
  exports.ACM_TEMPLATE_PATH = "{acmTemplatePath}";
5
+ exports.ACM_PAGE_PATH = "{acmPagePath}";
5
6
  exports.DELAY_TIME_RUN_SCRIPT = 1500;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "awing-library",
3
- "version": "2.1.47",
3
+ "version": "2.1.48",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",