trm-core 7.0.0 → 7.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/changelog.txt CHANGED
@@ -8,6 +8,14 @@ Legend
8
8
  + : added
9
9
  - : removed
10
10
 
11
+ 2025-06-03 v7.2.0
12
+ -------------------
13
+ * find dependency with custom object not found without devc reference
14
+
15
+ 2025-06-03 v7.1.0
16
+ -------------------
17
+ * change tr owner on install tr update
18
+
11
19
  2025-06-03 v7.0.0
12
20
  -------------------
13
21
  ! trm-server ^4.0.0
@@ -190,18 +190,16 @@ const _getTadirDependencies = (tadirDependencies) => __awaiter(void 0, void 0, v
190
190
  }
191
191
  else {
192
192
  devclass = yield _getRootDevclass(tadir.devclass);
193
- if (devclass) {
194
- if (!tadirDependencies.find(o => o.object.PGMID === 'R3TR' && o.object.OBJECT === 'DEVC' && o.object.OBJ_NAME === devclass)) {
195
- tadirDependencies.push({
196
- object: {
197
- PGMID: 'R3TR',
198
- OBJECT: 'DEVC',
199
- OBJ_NAME: devclass,
200
- DEVCLASS: devclass
201
- },
202
- foundIn: tadir
203
- });
204
- }
193
+ if (devclass && !tadirDependencies.find(o => o.object.PGMID === 'R3TR' && o.object.OBJECT === 'DEVC' && o.object.OBJ_NAME === devclass)) {
194
+ tadirDependencies.push({
195
+ object: {
196
+ PGMID: 'R3TR',
197
+ OBJECT: 'DEVC',
198
+ OBJ_NAME: devclass,
199
+ DEVCLASS: devclass
200
+ },
201
+ foundIn: tadir
202
+ });
205
203
  append = false;
206
204
  }
207
205
  else {
@@ -37,12 +37,12 @@ exports.generateInstallTransport = {
37
37
  if (context.runtime.installData.transport) {
38
38
  trm_commons_1.Logger.log(`Install transport (${context.runtime.installData.transport.trkorr}) already exists, won't create a new one.`, true);
39
39
  trm_commons_1.Logger.loading(`Updating install transport...`);
40
- if (commons_1.TrmServerUpgrade.getInstance().removeComments()) {
41
- yield context.runtime.installData.transport.removeComments();
42
- }
43
40
  if (commons_1.TrmServerUpgrade.getInstance().changeTrOwner()) {
44
41
  yield context.runtime.installData.transport.changeOwner(systemConnector_1.SystemConnector.getLogonUser());
45
42
  }
43
+ if (commons_1.TrmServerUpgrade.getInstance().removeComments()) {
44
+ yield context.runtime.installData.transport.removeComments();
45
+ }
46
46
  }
47
47
  else {
48
48
  trm_commons_1.Logger.loading(`Generating install transport...`);
@@ -122,23 +122,28 @@ exports.generateInstallTransport = {
122
122
  }
123
123
  }
124
124
  if (context.runtime.installData.namespace[0] === '/') {
125
- trm_commons_1.Logger.log(`Adding namespace ${context.runtime.installData.namespace} without lock`, true);
126
- try {
127
- yield context.runtime.installData.transport.addObjects([{
128
- pgmid: 'R3TR',
129
- object: 'NSPC',
130
- objName: context.runtime.installData.namespace
131
- }], false);
125
+ if (!trObjs.find(o => o.pgmid === 'R3TR' && o.object === 'NSPC' && o.objName === context.runtime.installData.namespace)) {
126
+ trm_commons_1.Logger.log(`Adding namespace ${context.runtime.installData.namespace} without lock`, true);
127
+ try {
128
+ yield context.runtime.installData.transport.addObjects([{
129
+ pgmid: 'R3TR',
130
+ object: 'NSPC',
131
+ objName: context.runtime.installData.namespace
132
+ }], false);
133
+ }
134
+ catch (e) {
135
+ trm_commons_1.Logger.error(`Failed adding namespace ${context.runtime.installData.namespace}`, true);
136
+ trm_commons_1.Logger.error(e.toString(), true);
137
+ }
132
138
  }
133
- catch (e) {
134
- trm_commons_1.Logger.error(`Failed adding namespace ${context.runtime.installData.namespace}`, true);
135
- trm_commons_1.Logger.error(e.toString(), true);
139
+ else {
140
+ trm_commons_1.Logger.log(`Namespace ${context.runtime.installData.namespace} already in install transport`, true);
136
141
  }
137
142
  }
138
143
  trm_commons_1.Logger.success(`Use ${context.runtime.installData.transport.trkorr} for transports in your landscape.`);
139
144
  }
140
145
  catch (e) {
141
- trm_commons_1.Logger.error(`An error occurred during install transport generation.`);
146
+ trm_commons_1.Logger.error(`An error occurred during install transport generation/update.`);
142
147
  trm_commons_1.Logger.error(e.toString(), true);
143
148
  }
144
149
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trm-core",
3
- "version": "7.0.0",
3
+ "version": "7.2.0",
4
4
  "description": "TRM (Transport Request Manager) Core",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",