trm-core 9.2.0 → 9.3.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.
@@ -15,7 +15,7 @@ const systemConnector_1 = require("../../systemConnector");
15
15
  exports.commit = {
16
16
  name: 'commit',
17
17
  filter: (context) => __awaiter(void 0, void 0, void 0, function* () {
18
- if (systemConnector_1.SystemConnector.systemConnector instanceof systemConnector_1.RFCSystemConnector) {
18
+ if (systemConnector_1.SystemConnector.isStateless()) {
19
19
  return true;
20
20
  }
21
21
  else {
@@ -23,11 +23,11 @@ exports.commit = {
23
23
  }
24
24
  }),
25
25
  run: (context) => __awaiter(void 0, void 0, void 0, function* () {
26
- trm_commons_1.Logger.log('Commit (RFC Connection) step', true);
27
- trm_commons_1.Logger.loading(`Closing rfc connection...`, true);
28
- yield systemConnector_1.SystemConnector.systemConnector.closeConnection();
29
- trm_commons_1.Logger.loading(`Opening rfc connection...`, true);
30
- yield systemConnector_1.SystemConnector.systemConnector.connect(true);
31
- trm_commons_1.Logger.success(`Commit OK`, true);
26
+ trm_commons_1.Logger.log('Commit (connection not stateless) step', true);
27
+ trm_commons_1.Logger.loading(`Closing connection...`, true);
28
+ yield systemConnector_1.SystemConnector.closeConnection();
29
+ trm_commons_1.Logger.loading(`Opening connection...`, true);
30
+ yield systemConnector_1.SystemConnector.connect(true);
31
+ trm_commons_1.Logger.success(`OK, continue`, true);
32
32
  })
33
33
  };
@@ -69,8 +69,8 @@ function install(inputData) {
69
69
  importCustTransport_1.importCustTransport,
70
70
  refreshTmsTxt_1.refreshTmsTxt,
71
71
  generateInstallTransport_1.generateInstallTransport,
72
- updatePackageData_1.updatePackageData,
73
72
  commit_1.commit,
73
+ updatePackageData_1.updatePackageData,
74
74
  executePostActivities_1.executePostActivities
75
75
  ];
76
76
  trm_commons_1.Logger.log(`Ready to execute workflow ${WORKFLOW_NAME}, input data: ${(0, util_1.inspect)(inputData, { breakLength: Infinity, compact: true })}`, true);
@@ -19,7 +19,7 @@ function _validateDevclass(input, packagesNamespace) {
19
19
  if (sInput.length > 30) {
20
20
  return `Package name must not exceede 30 characters limit.`;
21
21
  }
22
- if (!sInput.startsWith(packagesNamespace)) {
22
+ if (!sInput.startsWith(packagesNamespace) && !sInput.startsWith('$')) {
23
23
  return `Package name must use namespace "${packagesNamespace}".`;
24
24
  }
25
25
  else {
@@ -138,7 +138,7 @@ class SystemConnectorBase {
138
138
  return __awaiter(this, void 0, void 0, function* () {
139
139
  var trmPackages = [];
140
140
  var fromBackend = false;
141
- if (!refresh) {
141
+ if (!refresh && Array.isArray(this._installedPackages)) {
142
142
  trm_commons_1.Logger.log(`Reading cached version of installed packages`, true);
143
143
  return this._installedPackages;
144
144
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trm-core",
3
- "version": "9.2.0",
3
+ "version": "9.3.0",
4
4
  "description": "TRM (Transport Request Manager) Core",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",