trm-client 4.0.1 → 4.1.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.
@@ -38,14 +38,14 @@ function logError(err) {
38
38
  }
39
39
  else if (originalException.name === 'TrmRegistryError') {
40
40
  if (originalException.status) {
41
- sError = `${chalk_1.default.bgRed(originalException.status)} ${sError}`;
41
+ sError = `${chalk_1.default.black.bgRed(originalException.status)} ${sError}`;
42
42
  }
43
43
  }
44
44
  else if (originalException.name === 'TrmRFCClient') {
45
45
  if (originalException.rfcError && originalException.rfcError) {
46
- sError = `${chalk_1.default.bgRed(originalException.rfcError.key)} ${sError}`;
46
+ sError = `${chalk_1.default.black.bgRed(originalException.rfcError.key)} ${sError}`;
47
47
  if (originalException.rfcError.key === "TRM_RFC_UNAUTHORIZED") {
48
- aError.push(chalk_1.default.bgRed(`\nUser "${trm_core_1.SystemConnector.getLogonUser()}" is not authorized to execute TRM RFC functions. Follow this guide https://docs.trmregistry.com/#/server/docs/setup?id=user-authorization-maintenance.`));
48
+ aError.push(chalk_1.default.black.bgRed(`\nUser "${trm_core_1.SystemConnector.getLogonUser()}" is not authorized to execute TRM RFC functions. Follow this guide https://docs.trmregistry.com/#/server/docs/setup?id=user-authorization-maintenance.`));
49
49
  }
50
50
  }
51
51
  }
@@ -60,7 +60,7 @@ function logError(err) {
60
60
  if (originalException.status === 404) {
61
61
  aError.push(`Service cannot be reached (Check if trm-rest is installed and activated correctly).`);
62
62
  }
63
- sError = `${chalk_1.default.bgRed(originalException.status)} ${sError}`;
63
+ sError = `${chalk_1.default.black.bgRed(originalException.status)} ${sError}`;
64
64
  }
65
65
  }
66
66
  aError.push(sError);
package/package.json CHANGED
@@ -1,18 +1,20 @@
1
1
  {
2
2
  "name": "trm-client",
3
- "version": "4.0.1",
3
+ "version": "4.1.0",
4
4
  "description": "TRM (Transport Request Manager) Client",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [
8
8
  "/dist",
9
+ "!dist/test.*",
9
10
  "!dist/*rfc.log"
10
11
  ],
11
12
  "bin": {
12
13
  "trm": "dist/index.js"
13
14
  },
14
15
  "scripts": {
15
- "build": "tsc",
16
+ "cleanBuild": "rimraf dist/",
17
+ "build": "npm run cleanBuild && tsc --sourceMap false",
16
18
  "prepublishOnly": "npm run build"
17
19
  },
18
20
  "keywords": [
@@ -30,7 +32,7 @@
30
32
  },
31
33
  "license": "MIT",
32
34
  "trmDependencies": {
33
- "trm-server": "^2.0.0"
35
+ "trm-server": "^2.1.0"
34
36
  },
35
37
  "dependencies": {
36
38
  "@esm2cjs/normalize-url": "^8.0.0",
@@ -42,7 +44,7 @@
42
44
  "ini": "^4.1.1",
43
45
  "node-html-parser": "^6.1.13",
44
46
  "semver": "^7.5.4",
45
- "trm-core": "^6.1.15",
47
+ "trm-core": "^6.2.2",
46
48
  "trm-registry-types": "^1.2.0",
47
49
  "xml2js": "^0.6.2"
48
50
  },
@@ -50,6 +52,7 @@
50
52
  "@types/ini": "^1.3.31",
51
53
  "@types/node": "^20.4.8",
52
54
  "@types/semver": "^7.5.3",
53
- "@types/xml2js": "^0.4.11"
55
+ "@types/xml2js": "^0.4.11",
56
+ "rimraf": "^6.0.1"
54
57
  }
55
58
  }