@sap-ux/ui5-library-writer 0.5.21 → 0.5.23
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/data/index.js +1 -2
- package/dist/data/validators.js +4 -5
- package/dist/i18n.js +2 -3
- package/dist/index.js +1 -2
- package/dist/options/typescript.js +1 -2
- package/package.json +2 -2
package/dist/data/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mergeWithDefaults =
|
|
3
|
+
exports.mergeWithDefaults = mergeWithDefaults;
|
|
4
4
|
const validators_1 = require("./validators");
|
|
5
5
|
/**
|
|
6
6
|
* Merges UI5LibConfig instance with default properties.
|
|
@@ -25,5 +25,4 @@ function mergeWithDefaults(libConfig) {
|
|
|
25
25
|
};
|
|
26
26
|
return libInput;
|
|
27
27
|
}
|
|
28
|
-
exports.mergeWithDefaults = mergeWithDefaults;
|
|
29
28
|
//# sourceMappingURL=index.js.map
|
package/dist/data/validators.js
CHANGED
|
@@ -3,7 +3,10 @@ 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.validateLibName = validateLibName;
|
|
7
|
+
exports.validateNamespace = validateNamespace;
|
|
8
|
+
exports.validateUI5Version = validateUI5Version;
|
|
9
|
+
exports.validate = validate;
|
|
7
10
|
const semver_1 = __importDefault(require("semver"));
|
|
8
11
|
const i18n_1 = require("../i18n");
|
|
9
12
|
/**
|
|
@@ -22,7 +25,6 @@ function validateLibName(libName) {
|
|
|
22
25
|
}
|
|
23
26
|
return true;
|
|
24
27
|
}
|
|
25
|
-
exports.validateLibName = validateLibName;
|
|
26
28
|
/**
|
|
27
29
|
* Validates the namespace using regex pattern.
|
|
28
30
|
*
|
|
@@ -69,7 +71,6 @@ function validateNamespace(namespace, libName) {
|
|
|
69
71
|
}
|
|
70
72
|
return validateNamespacePattern(namespace, libName);
|
|
71
73
|
}
|
|
72
|
-
exports.validateNamespace = validateNamespace;
|
|
73
74
|
/**
|
|
74
75
|
* Validates by throwing if the specified version does not have a coercible semantic version.
|
|
75
76
|
* Currently we have special handling for empty string and undefined otherwise see: https://github.com/npm/node-semver#coercion.
|
|
@@ -84,7 +85,6 @@ function validateUI5Version(version) {
|
|
|
84
85
|
}
|
|
85
86
|
return true;
|
|
86
87
|
}
|
|
87
|
-
exports.validateUI5Version = validateUI5Version;
|
|
88
88
|
/**
|
|
89
89
|
* Validates the specified ui5Lib config.
|
|
90
90
|
*
|
|
@@ -97,5 +97,4 @@ function validate(ui5Lib) {
|
|
|
97
97
|
validateNamespace(ui5Lib.namespace, ui5Lib.libraryName) &&
|
|
98
98
|
validateUI5Version(ui5Lib.frameworkVersion));
|
|
99
99
|
}
|
|
100
|
-
exports.validate = validate;
|
|
101
100
|
//# sourceMappingURL=validators.js.map
|
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.
|
|
6
|
+
exports.initI18n = initI18n;
|
|
7
|
+
exports.t = t;
|
|
7
8
|
const i18next_1 = __importDefault(require("i18next"));
|
|
8
9
|
const ui5_library_writer_i18n_json_1 = __importDefault(require("./translations/ui5-library-writer.i18n.json"));
|
|
9
10
|
const NS = 'ui5-library-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 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
|
// cannot do anything about it but the write will still work
|
|
40
39
|
});
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ 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.generate =
|
|
6
|
+
exports.generate = generate;
|
|
7
7
|
const path_1 = require("path");
|
|
8
8
|
const mem_fs_1 = require("mem-fs");
|
|
9
9
|
const mem_fs_editor_1 = require("mem-fs-editor");
|
|
@@ -39,5 +39,4 @@ async function generate(basePath, ui5LibConfig, fs) {
|
|
|
39
39
|
}
|
|
40
40
|
return fs;
|
|
41
41
|
}
|
|
42
|
-
exports.generate = generate;
|
|
43
42
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.enableTypescript =
|
|
3
|
+
exports.enableTypescript = enableTypescript;
|
|
4
4
|
const ejs_1 = require("ejs");
|
|
5
5
|
const project_access_1 = require("@sap-ux/project-access");
|
|
6
6
|
const ui5_config_1 = require("@sap-ux/ui5-config");
|
|
@@ -76,7 +76,6 @@ async function enableTypescript(libInput, basePath, tmplPath, fs) {
|
|
|
76
76
|
// write ts ui5 yaml
|
|
77
77
|
fs.write(ui5ConfigPath, ui5Config.toString());
|
|
78
78
|
}
|
|
79
|
-
exports.enableTypescript = enableTypescript;
|
|
80
79
|
/**
|
|
81
80
|
* Returns the types package depending on ui5 version.
|
|
82
81
|
*
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"bugs": {
|
|
10
10
|
"url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Aui5-library-writer"
|
|
11
11
|
},
|
|
12
|
-
"version": "0.5.
|
|
12
|
+
"version": "0.5.23",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"main": "dist/index.js",
|
|
15
15
|
"files": [
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"mem-fs": "2.1.0",
|
|
30
30
|
"mem-fs-editor": "9.4.0",
|
|
31
31
|
"semver": "7.5.4",
|
|
32
|
-
"@sap-ux/project-access": "1.27.
|
|
32
|
+
"@sap-ux/project-access": "1.27.6",
|
|
33
33
|
"@sap-ux/ui5-application-writer": "1.2.0",
|
|
34
34
|
"@sap-ux/ui5-config": "0.25.0"
|
|
35
35
|
},
|