trm-client 10.0.4 → 10.0.5
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/changelog.txt +9 -0
- package/dist/command/AbstractCommand.js +1 -1
- package/dist/command/implementations/Alias.js +2 -2
- package/dist/command/implementations/Compare.js +1 -1
- package/dist/command/prompts/connect.d.ts +4 -1
- package/dist/command/prompts/connect.js +6 -4
- package/dist/command/prompts/createAlias.js +2 -2
- package/dist/systemAlias/SystemAlias.d.ts +1 -1
- package/dist/systemAlias/SystemAlias.js +1 -0
- package/package.json +1 -1
package/changelog.txt
CHANGED
|
@@ -8,6 +8,15 @@ Legend
|
|
|
8
8
|
+ : added
|
|
9
9
|
- : removed
|
|
10
10
|
|
|
11
|
+
2026-07-07 v10.0.5
|
|
12
|
+
-------------------
|
|
13
|
+
+ alias name return in pick sap connection
|
|
14
|
+
|
|
15
|
+
2026-07-07 v10.0.4
|
|
16
|
+
-------------------
|
|
17
|
+
- gui visibility for lock command
|
|
18
|
+
- required registry for registry command
|
|
19
|
+
|
|
11
20
|
2026-07-06 v10.0.3
|
|
12
21
|
-------------------
|
|
13
22
|
* programmatic command handler
|
|
@@ -494,7 +494,7 @@ class AbstractCommand {
|
|
|
494
494
|
system = systemAlias_1.SystemAlias.get(this.args.alias).getConnection();
|
|
495
495
|
}
|
|
496
496
|
else {
|
|
497
|
-
system = (yield (0, prompts_1.connect)(this.args, true, this.registerOpts.addNoConnection)).getSystemConnector();
|
|
497
|
+
system = (yield (0, prompts_1.connect)(this.args, true, this.registerOpts.addNoConnection)).connect.getSystemConnector();
|
|
498
498
|
}
|
|
499
499
|
yield system.connect(false);
|
|
500
500
|
Core.SystemConnector.systemConnector = system;
|
|
@@ -52,10 +52,10 @@ class Alias extends AbstractCommand_1.AbstractCommand {
|
|
|
52
52
|
noSystemAlias: true,
|
|
53
53
|
force: true
|
|
54
54
|
}), false);
|
|
55
|
-
const newData = connectionArgs.getData();
|
|
55
|
+
const newData = connectionArgs.connect.getData();
|
|
56
56
|
try {
|
|
57
57
|
systemAlias_1.SystemAlias.delete(alias.alias);
|
|
58
|
-
yield systemAlias_1.SystemAlias.create(alias.alias, connectionArgs.name, newData).getConnection().connect(false);
|
|
58
|
+
yield systemAlias_1.SystemAlias.create(alias.alias, connectionArgs.connect.name, newData).getConnection().connect(false);
|
|
59
59
|
}
|
|
60
60
|
catch (e) {
|
|
61
61
|
connectionSuccess = false;
|
|
@@ -37,7 +37,7 @@ class Compare extends AbstractCommand_1.AbstractCommand {
|
|
|
37
37
|
askConnection = inq1.continue !== undefined ? inq1.continue : askConnection;
|
|
38
38
|
if (askConnection) {
|
|
39
39
|
const connectArgs = yield (0, prompts_1.connect)({}, false, false);
|
|
40
|
-
const systemConnector = connectArgs.getSystemConnector();
|
|
40
|
+
const systemConnector = connectArgs.connect.getSystemConnector();
|
|
41
41
|
yield systemConnector.connect(false);
|
|
42
42
|
this.connections.push(systemConnector);
|
|
43
43
|
return true;
|
|
@@ -16,4 +16,7 @@ export type ConnectArguments = {
|
|
|
16
16
|
forwardRfcDest?: string;
|
|
17
17
|
connection?: ISystemConnector;
|
|
18
18
|
};
|
|
19
|
-
export declare function connect(commandArgs: ConnectArguments, createAliasIfNotExist?: boolean, addNoConnection?: boolean): Promise<
|
|
19
|
+
export declare function connect(commandArgs: ConnectArguments, createAliasIfNotExist?: boolean, addNoConnection?: boolean): Promise<{
|
|
20
|
+
connect: IConnect;
|
|
21
|
+
alias?: string;
|
|
22
|
+
}>;
|
|
@@ -72,6 +72,7 @@ function connect(commandArgs_1) {
|
|
|
72
72
|
var type = commandArgs.type;
|
|
73
73
|
var aInputType = [];
|
|
74
74
|
var aSapLogonConnections = [];
|
|
75
|
+
var selectedAlias;
|
|
75
76
|
const aAlias = systemAlias_1.SystemAlias.getAll();
|
|
76
77
|
if ((0, utils_1.getNodeRfcPackage)()) {
|
|
77
78
|
try {
|
|
@@ -108,7 +109,7 @@ function connect(commandArgs_1) {
|
|
|
108
109
|
inputType = inq1.inputType;
|
|
109
110
|
}
|
|
110
111
|
if (inputType === 'none') {
|
|
111
|
-
return new NoConnection();
|
|
112
|
+
return { connect: new NoConnection() };
|
|
112
113
|
}
|
|
113
114
|
else if (inputType === 'alias') {
|
|
114
115
|
const inq2 = (yield trm_commons_1.Inquirer.prompt({
|
|
@@ -133,7 +134,8 @@ function connect(commandArgs_1) {
|
|
|
133
134
|
systemAlias_1.SystemAlias.delete(inq2.alias);
|
|
134
135
|
systemAlias_1.SystemAlias.create(inq2.alias, inq2.type, connection.getData());
|
|
135
136
|
}
|
|
136
|
-
|
|
137
|
+
selectedAlias = inq2.alias;
|
|
138
|
+
return { connect: connection, alias: selectedAlias };
|
|
137
139
|
}
|
|
138
140
|
else {
|
|
139
141
|
if (inputType === 'logon') {
|
|
@@ -226,9 +228,9 @@ function connect(commandArgs_1) {
|
|
|
226
228
|
yield connectionType.onAfterLoginData(force, commandArgs);
|
|
227
229
|
}
|
|
228
230
|
if (createAliasIfNotExist) {
|
|
229
|
-
yield systemAlias_1.SystemAlias.createIfNotExists(connectionType);
|
|
231
|
+
selectedAlias = yield systemAlias_1.SystemAlias.createIfNotExists(connectionType);
|
|
230
232
|
}
|
|
231
|
-
return connectionType;
|
|
233
|
+
return { connect: connectionType, alias: selectedAlias };
|
|
232
234
|
}
|
|
233
235
|
});
|
|
234
236
|
}
|
|
@@ -19,11 +19,11 @@ function createAlias(alias) {
|
|
|
19
19
|
noSystemAlias: true,
|
|
20
20
|
force: true
|
|
21
21
|
}, false, false);
|
|
22
|
-
systemAlias_1.SystemAlias.create(alias, connection.name, connection.getData());
|
|
22
|
+
systemAlias_1.SystemAlias.create(alias, connection.connect.name, connection.connect.getData());
|
|
23
23
|
trm_commons_1.Logger.loading(`Connecting to "${alias}"...`);
|
|
24
24
|
var connectionSuccess = true;
|
|
25
25
|
try {
|
|
26
|
-
yield connection.getSystemConnector().connect(true);
|
|
26
|
+
yield connection.connect.getSystemConnector().connect(true);
|
|
27
27
|
}
|
|
28
28
|
catch (e) {
|
|
29
29
|
connectionSuccess = false;
|
|
@@ -14,5 +14,5 @@ export declare class SystemAlias {
|
|
|
14
14
|
static delete(name: string): void;
|
|
15
15
|
private static deepEqual;
|
|
16
16
|
static compare(a: SystemAlias, b: SystemAlias): boolean;
|
|
17
|
-
static createIfNotExists(connection: IConnect): Promise<
|
|
17
|
+
static createIfNotExists(connection: IConnect): Promise<string | undefined>;
|
|
18
18
|
}
|