@sap-ux/fiori-freestyle-writer 1.2.1 → 1.2.2

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.
package/dist/defaults.js CHANGED
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.escapeFLPText = exports.setDefaults = void 0;
6
+ exports.escapeFLPText = void 0;
7
+ exports.setDefaults = setDefaults;
7
8
  const read_pkg_up_1 = __importDefault(require("read-pkg-up"));
8
9
  const types_1 = require("./types");
9
10
  /**
@@ -58,7 +59,6 @@ function setDefaults(ffApp) {
58
59
  }
59
60
  }
60
61
  }
61
- exports.setDefaults = setDefaults;
62
62
  // Specific escaping is required for FLP texts in flpSandbox.html template file
63
63
  // Escapes '\' with '\\\\' and '"' with '\"' to correctly render inputs in a secure way
64
64
  const escapeFLPText = (s) => s.replace(/\\/g, '\\\\').replace(/(")/g, '\\$&');
package/dist/i18n.js CHANGED
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.t = exports.initI18n = void 0;
6
+ exports.initI18n = initI18n;
7
+ exports.t = t;
7
8
  const i18next_1 = __importDefault(require("i18next"));
8
9
  const fiori_freestyle_writer_i18n_json_1 = __importDefault(require("./translations/fiori-freestyle-writer.i18n.json"));
9
10
  const NS = 'fiori-freestyle-writer';
@@ -23,7 +24,6 @@ async function initI18n() {
23
24
  ns: [NS]
24
25
  });
25
26
  }
26
- exports.initI18n = initI18n;
27
27
  /**
28
28
  * Helper function facading the call call to i18next.
29
29
  *
@@ -34,7 +34,6 @@ exports.initI18n = initI18n;
34
34
  function t(key, options) {
35
35
  return i18next_1.default.t(key, options);
36
36
  }
37
- exports.t = t;
38
37
  initI18n().catch(() => {
39
38
  // Ignore any errors since the write will still work
40
39
  });
package/dist/index.js CHANGED
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.OdataVersion = exports.TemplateType = exports.generate = void 0;
6
+ exports.OdataVersion = exports.TemplateType = void 0;
7
+ exports.generate = generate;
7
8
  const path_1 = require("path");
8
9
  const ejs_1 = require("ejs");
9
10
  const ui5_application_writer_1 = require("@sap-ux/ui5-application-writer");
@@ -107,7 +108,6 @@ async function generate(basePath, data, fs) {
107
108
  }
108
109
  return fs;
109
110
  }
110
- exports.generate = generate;
111
111
  var types_2 = require("./types");
112
112
  Object.defineProperty(exports, "TemplateType", { enumerable: true, get: function () { return types_2.TemplateType; } });
113
113
  Object.defineProperty(exports, "OdataVersion", { enumerable: true, get: function () { return types_2.OdataVersion; } });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/fiori-freestyle-writer",
3
3
  "description": "SAP Fiori freestyle application writer",
4
- "version": "1.2.1",
4
+ "version": "1.2.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -29,7 +29,7 @@
29
29
  "@sap-ux/odata-service-writer": "0.23.0",
30
30
  "@sap-ux/ui5-application-writer": "1.2.0",
31
31
  "@sap-ux/ui5-config": "0.25.0",
32
- "@sap-ux/fiori-generator-shared": "0.5.1"
32
+ "@sap-ux/fiori-generator-shared": "0.6.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/ejs": "3.1.2",