@sap-ux/adp-flp-config-sub-generator 0.0.37 → 0.0.38
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/generators/app/index.js +17 -7
- package/generators/utils/i18n.js +2 -3
- package/package.json +3 -4
package/generators/app/index.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
package/generators/utils/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.
|
|
6
|
+
exports.initI18n = initI18n;
|
|
7
|
+
exports.t = t;
|
|
7
8
|
const i18next_1 = __importDefault(require("i18next"));
|
|
8
9
|
const adp_flp_config_sub_generator_i18n_json_1 = __importDefault(require("../translations/adp-flp-config-sub-generator.i18n.json"));
|
|
9
10
|
const inquirer_common_1 = require("@sap-ux/inquirer-common");
|
|
@@ -15,7 +16,6 @@ async function initI18n() {
|
|
|
15
16
|
await i18next_1.default.init({ lng: 'en', fallbackLng: 'en' }, () => i18next_1.default.addResourceBundle('en', adpFlpConfigI18nNamespace, adp_flp_config_sub_generator_i18n_json_1.default));
|
|
16
17
|
(0, inquirer_common_1.addi18nResourceBundle)();
|
|
17
18
|
}
|
|
18
|
-
exports.initI18n = initI18n;
|
|
19
19
|
/**
|
|
20
20
|
* Helper function facading the call to i18next. Unless a namespace option is provided the local namespace will be used.
|
|
21
21
|
*
|
|
@@ -29,7 +29,6 @@ function t(key, options) {
|
|
|
29
29
|
}
|
|
30
30
|
return i18next_1.default.t(key, options);
|
|
31
31
|
}
|
|
32
|
-
exports.t = t;
|
|
33
32
|
initI18n().catch(() => {
|
|
34
33
|
// Needed for lint
|
|
35
34
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/adp-flp-config-sub-generator",
|
|
3
3
|
"description": "Generator for adding FLP configuration to an Adaptation Project",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.38",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
"@sap-devx/yeoman-ui-types": "1.14.4",
|
|
23
23
|
"i18next": "23.5.1",
|
|
24
24
|
"yeoman-generator": "5.10.0",
|
|
25
|
-
"@sap-ux/adp-tooling": "0.13.
|
|
25
|
+
"@sap-ux/adp-tooling": "0.13.22",
|
|
26
26
|
"@sap-ux/axios-extension": "1.19.2",
|
|
27
27
|
"@sap-ux/btp-utils": "1.0.2",
|
|
28
28
|
"@sap-ux/feature-toggle": "0.2.3",
|
|
29
29
|
"@sap-ux/fiori-generator-shared": "0.9.11",
|
|
30
|
-
"@sap-ux/flp-config-inquirer": "0.2.
|
|
30
|
+
"@sap-ux/flp-config-inquirer": "0.2.67",
|
|
31
31
|
"@sap-ux/inquirer-common": "0.6.32",
|
|
32
32
|
"@sap-ux/logger": "0.6.0",
|
|
33
33
|
"@sap-ux/project-access": "1.29.18",
|
|
@@ -45,7 +45,6 @@
|
|
|
45
45
|
"@vscode-logging/logger": "2.0.0",
|
|
46
46
|
"fs-extra": "10.0.0",
|
|
47
47
|
"rimraf": "5.0.5",
|
|
48
|
-
"typescript": "5.3.3",
|
|
49
48
|
"yeoman-test": "6.3.0"
|
|
50
49
|
},
|
|
51
50
|
"engines": {
|