trm-core 6.1.19 → 6.2.0
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/actions/install/addNamespace.js +6 -1
- package/dist/actions/install/importCustTransport.js +1 -1
- package/dist/actions/install/importLangTransport.js +1 -1
- package/dist/actions/install/setR3trans.js +1 -0
- package/dist/actions/publish/init.js +11 -3
- package/dist/actions/publish/setCustomizingTransports.js +1 -1
- package/package.json +2 -2
|
@@ -101,7 +101,12 @@ exports.addNamespace = {
|
|
|
101
101
|
choices: context.runtime.remotePackageData.trmManifest.namespace.texts.map(o => {
|
|
102
102
|
return {
|
|
103
103
|
name: `${o.language} ${o.description} ${o.owner}`,
|
|
104
|
-
value:
|
|
104
|
+
value: {
|
|
105
|
+
namespace: context.runtime.installData.namespace,
|
|
106
|
+
descriptn: o.description,
|
|
107
|
+
owner: o.owner,
|
|
108
|
+
spras: o.language
|
|
109
|
+
}
|
|
105
110
|
};
|
|
106
111
|
})
|
|
107
112
|
})).choice;
|
|
@@ -19,6 +19,7 @@ exports.setR3trans = {
|
|
|
19
19
|
logger_1.Logger.loading(`Loading R3Trans...`);
|
|
20
20
|
const options = context.rawInput.contextData.r3transOptions;
|
|
21
21
|
logger_1.Logger.log(`Loading R3Trans with options ${JSON.stringify(options)}`, true);
|
|
22
|
+
logger_1.Logger.log(`R3TRANS_HOME ${process.env.R3TRANS_HOME}`, true);
|
|
22
23
|
context.runtime.r3trans = new node_r3trans_1.R3trans(options);
|
|
23
24
|
const r3transVersion = yield context.runtime.r3trans.getVersion();
|
|
24
25
|
const unicode = yield context.runtime.r3trans.isUnicode();
|
|
@@ -27,13 +27,21 @@ exports.init = {
|
|
|
27
27
|
run: (context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
28
28
|
logger_1.Logger.log('Init step', true);
|
|
29
29
|
const registry = context.rawInput.packageData.registry;
|
|
30
|
+
const parsedPackageName = (0, commons_1.parsePackageName)({
|
|
31
|
+
fullName: context.rawInput.packageData.name
|
|
32
|
+
});
|
|
33
|
+
context.rawInput.packageData.name = parsedPackageName.fullName;
|
|
30
34
|
if (registry.getRegistryType() === registry_1.RegistryType.PUBLIC) {
|
|
31
35
|
logger_1.Logger.log(`Public registry, checking if logged in`, true);
|
|
32
36
|
yield registry.whoAmI();
|
|
37
|
+
logger_1.Logger.log(`Public registry, checking if package name is ok`, true);
|
|
38
|
+
if (parsedPackageName.organization && parsedPackageName.organization.length > 20) {
|
|
39
|
+
throw new Error(`Invalid org "${parsedPackageName.organization}": length must be 20 characters long or less.`);
|
|
40
|
+
}
|
|
41
|
+
if (parsedPackageName.name.length > 20) {
|
|
42
|
+
throw new Error(`Invalid package name "${parsedPackageName.name}": length must be 20 characters long or less.`);
|
|
43
|
+
}
|
|
33
44
|
}
|
|
34
|
-
context.rawInput.packageData.name = (0, commons_1.parsePackageName)({
|
|
35
|
-
fullName: context.rawInput.packageData.name
|
|
36
|
-
}).fullName;
|
|
37
45
|
if (!context.rawInput.contextData) {
|
|
38
46
|
context.rawInput.contextData = {};
|
|
39
47
|
}
|
|
@@ -78,7 +78,7 @@ exports.setCustomizingTransports = {
|
|
|
78
78
|
logger_1.Logger.log(`Transport ${transport.trkorr} doesn't exist`, true);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
logger_1.Logger.info(`${validatedTransports} customizing transports/tasks will be published.`);
|
|
81
|
+
logger_1.Logger.info(`${validatedTransports.length} customizing transports/tasks will be published.`);
|
|
82
82
|
}
|
|
83
83
|
})
|
|
84
84
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trm-core",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.2.0",
|
|
4
4
|
"description": "TRM (Transport Request Manager) Core",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"get-stack-trace": "^3.1.1",
|
|
44
44
|
"loading-cli": "^1.1.0",
|
|
45
45
|
"lodash": "^4.17.21",
|
|
46
|
-
"node-r3trans": "^1.4.
|
|
46
|
+
"node-r3trans": "^1.4.6",
|
|
47
47
|
"object-keys-normalizer": "^1.0.1",
|
|
48
48
|
"opener": "^1.5.2",
|
|
49
49
|
"print-tree": "^0.1.5",
|