trm-core 7.5.2 → 7.5.4

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 RegestaItalia
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) 2023 RegestaItalia
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
package/README.md CHANGED
@@ -1,35 +1,35 @@
1
- # <a href="https://docs.trmregistry.com/"><img src="https://docs.trmregistry.com/_media/logo.png" height="40" alt="TRM"></a>
2
-
3
- [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-1.3.0-4baaaa.svg)](https://github.com/RegestaItalia/trm-docs/blob/main/CODE_OF_CONDUCT.md)
4
- [![Core License](https://img.shields.io/github/license/RegestaItalia/trm-core)](https://github.com/RegestaItalia/trm-core)
5
- [![Core Latest version](https://img.shields.io/npm/v/trm-core)](https://www.npmjs.com/package/trm-core)
6
- [![Core Installs](https://img.shields.io/npm/dt/trm-core)](https://www.npmjs.com/package/trm-core)
7
-
8
- | 🚀 This project is funded and maintained by 🏦 | 🔗 |
9
- |-------------------------------------------------|----------------------------------------------------------------|
10
- | Regesta S.p.A. | [https://www.regestaitalia.eu/](https://www.regestaitalia.eu/) |
11
- | Clarex S.r.l. | [https://www.clarex.it/](https://www.clarex.it/) |
12
-
13
- This module contains the core functionalities of [TRM (Transport Request Manager)](https://trmregistry.com/).
14
-
15
- TRM is a software designed to make transports between SAP ECC/S4 systems easy.
16
-
17
- # Requirements
18
-
19
- - [Node >=22.12.0](https://github.com/nodejs/node/releases/tag/v22.12.0)
20
-
21
- # Documentation <!-- {docsify-remove} -->
22
-
23
- Full documentation can be seen at [https://docs.trmregistry.com/](https://docs.trmregistry.com).
24
-
25
- # Contributing <!-- {docsify-remove} -->
26
-
27
- Like every other TRM open-source projects, contributions are always welcomed ❤️.
28
-
29
- Make sure to open an issue first.
30
-
31
- Contributions will be merged upon approval.
32
-
33
- [Click here](https://docs.trmregistry.com/#/CONTRIBUTING) for the full list of TRM contribution guidelines.
34
-
35
- [<img src="https://trmregistry.com/public/contributors?image=true">](https://docs.trmregistry.com/#/?id=contributors)
1
+ # <a href="https://docs.trmregistry.com/"><img src="https://docs.trmregistry.com/_media/logo.png" height="40" alt="TRM"></a>
2
+
3
+ [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-1.3.0-4baaaa.svg)](https://github.com/RegestaItalia/trm-docs/blob/main/CODE_OF_CONDUCT.md)
4
+ [![Core License](https://img.shields.io/github/license/RegestaItalia/trm-core)](https://github.com/RegestaItalia/trm-core)
5
+ [![Core Latest version](https://img.shields.io/npm/v/trm-core)](https://www.npmjs.com/package/trm-core)
6
+ [![Core Installs](https://img.shields.io/npm/dt/trm-core)](https://www.npmjs.com/package/trm-core)
7
+
8
+ | 🚀 This project is funded and maintained by 🏦 | 🔗 |
9
+ |-------------------------------------------------|----------------------------------------------------------------|
10
+ | Regesta S.p.A. | [https://www.regestaitalia.eu/](https://www.regestaitalia.eu/) |
11
+ | Clarex S.r.l. | [https://www.clarex.it/](https://www.clarex.it/) |
12
+
13
+ This module contains the core functionalities of [TRM (Transport Request Manager)](https://trmregistry.com/).
14
+
15
+ TRM is a software designed to make transports between SAP ECC/S4 systems easy.
16
+
17
+ # Requirements
18
+
19
+ - [Node >=22.12.0](https://github.com/nodejs/node/releases/tag/v22.12.0)
20
+
21
+ # Documentation <!-- {docsify-remove} -->
22
+
23
+ Full documentation can be seen at [https://docs.trmregistry.com/](https://docs.trmregistry.com).
24
+
25
+ # Contributing <!-- {docsify-remove} -->
26
+
27
+ Like every other TRM open-source projects, contributions are always welcomed ❤️.
28
+
29
+ Make sure to open an issue first.
30
+
31
+ Contributions will be merged upon approval.
32
+
33
+ [Click here](https://docs.trmregistry.com/#/CONTRIBUTING) for the full list of TRM contribution guidelines.
34
+
35
+ [<img src="https://trmregistry.com/public/contributors?image=true">](https://docs.trmregistry.com/#/?id=contributors)
package/changelog.txt CHANGED
@@ -1,164 +1,172 @@
1
- trm-core changelog
2
- =================
3
-
4
- Legend
5
- ------
6
- * : fixed
7
- ! : changed
8
- + : added
9
- - : removed
10
-
11
- 2025-09-16 v7.5.2
12
- -------------------
13
- + DOMA senvi parser
14
-
15
- 2025-09-03 v7.5.1
16
- -------------------
17
- ! trm-commons ^3.2.0
18
-
19
- 2025-09-03 v7.5.0
20
- -------------------
21
- ! trm-commons ^3.1.0
22
- * npm global path
23
- + rfc closeConnection method
24
- ! private/protected methods/attributes
25
-
26
- 2025-08-27 v7.4.6
27
- -------------------
28
- * template manifest values
29
-
30
- 2025-08-17 v7.4.5
31
- -------------------
32
- ! node-r3trans ^2.0.1
33
- * r3trans options in getContent method
34
-
35
- 2025-07-30 v7.4.4
36
- -------------------
37
- ! node-r3trans ^2.0.0
38
-
39
- 2025-07-30 v7.4.3
40
- -------------------
41
- ! trm-commons ^2.0.0 as peer dependency
42
-
43
- 2025-07-29 v7.4.2
44
- -------------------
45
- ! enforce node engine >=22.12.0 with post install script
46
- ! protocol-registry ^2.0.0
47
-
48
- 2025-07-29 7.4.1
49
- -------------------
50
- ! trm-commons ^2.0.0
51
-
52
- 2025-07-29 7.4.0
53
- -------------------
54
- - dependency install doesn't ask for cust/lang/package replacements anymore if not needed
55
- ! install asks for cust/lang/package replacements when not provided by default parameter
56
- ! import logger shows package name
57
- ! trm-commons ^1.1.0
58
- ! trm-server ^5.0.0
59
- ! set/overwrite dependencies with or without automatic detection
60
- + manifest template for post activities, trm dependency and sap entries
61
- * local package install
62
-
63
- 2025-07-08 v7.3.0
64
- -------------------
65
- + enforce node engine ^22.12.0 with post install script
66
- * install package hierarchy
67
-
68
- 2025-06-04 v7.2.1
69
- -------------------
70
- * inquirer/logger prefix on install dependency
71
- + removed useless wb transport find on package first install
72
-
73
- 2025-06-03 v7.2.0
74
- -------------------
75
- * find dependency with custom object not found without devc reference
76
-
77
- 2025-06-03 v7.1.0
78
- -------------------
79
- * change tr owner on install tr update
80
-
81
- 2025-06-03 v7.0.0
82
- -------------------
83
- ! trm-server ^4.0.0
84
- + change tr owner on install tr update
85
-
86
- 2025-05-29 v6.9.1
87
- -------------------
88
- * remote function for updating server
89
- + confirm if objects exists but no root sap package found
90
-
91
- 2025-05-29 v6.9.0
92
- -------------------
93
- ! check server api auth before install and publish
94
- ! trm-server ^3.1.0
95
- ! read wb transport from package
96
-
97
- 2025-05-27 v6.8.0
98
- -------------------
99
- ! on install transport update, check tasks before add object attempt
100
- * commit before post activity run on RFC
101
- * post activity error log
102
- + node-rfc #327 -> device or resource busy, added workaround
103
-
104
- 2025-05-20 v6.7.1
105
- -------------------
106
- ! get installed packages from backend with trm-server version check
107
-
108
- 2025-05-14 v6.7.0
109
- -------------------
110
- ! trm-server ^3.0.0
111
- * abapgit ignored objects
112
- + post activity pre check
113
- + get installed packages from backend where possible
114
- + regen SAPLZTRM before post activity
115
- * rest sap-client
116
- + keep track of post activities based on latest release
117
-
118
- 2025-05-08 v6.6.0
119
- -------------------
120
- * no integrity with trm-server/trm-rest dependency allowed
121
- ! REST Client and RFC Client error generic -> specific
122
- ! REST Client error xml body parsing with title as message
123
- ! trm-server ^2.2.2
124
-
125
- 2025-05-08 v6.5.1
126
- -------------------
127
- ! rest error handling
128
-
129
- 2025-05-05 v6.5.0
130
- -------------------
131
- ! trm-commons ^1.0.0
132
- * upgrade trm-server fixes
133
- * core package.json location find
134
-
135
- 2025-04-28 v6.4.1
136
- -------------------
137
-
138
- ! node-r3trans ^1.5.0
139
-
140
- 2025-04-28 v6.4.0
141
- -------------------
142
-
143
- + post activities in abap manifest
144
- * return exception type for REST client
145
-
146
- 2025-02-06 v6.3.0
147
- -------------------
148
-
149
- * upgrading package remove previous ZTRM comments in workbench (import) transport
150
- + fetch package remote content
151
- * fix translation transport generation
152
- + move trm package dependencies to core
153
- + transport migration on overwrite
154
- ! DEVC, CUST and LANG are now TRM relevant
155
- * root superpackage on devc tr import blank
156
- + clear state on package install (remove from skipped transports)
157
- + add abapgit source code to TRM artifact
158
- + skip ignored objects listed in .abapgit.xml
159
- + add namespace in manifest
160
- ! abstract registry for custom implementation
161
- + add file system registry for local publish and install
162
- + add post activities
163
- ! cache transports in dependency detection for performance issues on big packages
1
+ trm-core changelog
2
+ =================
3
+
4
+ Legend
5
+ ------
6
+ * : fixed
7
+ ! : changed
8
+ + : added
9
+ - : removed
10
+
11
+ 2025-10-01 v7.5.4
12
+ -------------------
13
+ ! trm-commons ^3.4.0
14
+
15
+ 2025-09-24 v7.5.3
16
+ -------------------
17
+ ! trm-commons ^3.3.2
18
+
19
+ 2025-09-16 v7.5.2
20
+ -------------------
21
+ + DOMA senvi parser
22
+
23
+ 2025-09-03 v7.5.1
24
+ -------------------
25
+ ! trm-commons ^3.2.0
26
+
27
+ 2025-09-03 v7.5.0
28
+ -------------------
29
+ ! trm-commons ^3.1.0
30
+ * npm global path
31
+ + rfc closeConnection method
32
+ ! private/protected methods/attributes
33
+
34
+ 2025-08-27 v7.4.6
35
+ -------------------
36
+ * template manifest values
37
+
38
+ 2025-08-17 v7.4.5
39
+ -------------------
40
+ ! node-r3trans ^2.0.1
41
+ * r3trans options in getContent method
42
+
43
+ 2025-07-30 v7.4.4
44
+ -------------------
45
+ ! node-r3trans ^2.0.0
46
+
47
+ 2025-07-30 v7.4.3
48
+ -------------------
49
+ ! trm-commons ^2.0.0 as peer dependency
50
+
51
+ 2025-07-29 v7.4.2
52
+ -------------------
53
+ ! enforce node engine >=22.12.0 with post install script
54
+ ! protocol-registry ^2.0.0
55
+
56
+ 2025-07-29 7.4.1
57
+ -------------------
58
+ ! trm-commons ^2.0.0
59
+
60
+ 2025-07-29 7.4.0
61
+ -------------------
62
+ - dependency install doesn't ask for cust/lang/package replacements anymore if not needed
63
+ ! install asks for cust/lang/package replacements when not provided by default parameter
64
+ ! import logger shows package name
65
+ ! trm-commons ^1.1.0
66
+ ! trm-server ^5.0.0
67
+ ! set/overwrite dependencies with or without automatic detection
68
+ + manifest template for post activities, trm dependency and sap entries
69
+ * local package install
70
+
71
+ 2025-07-08 v7.3.0
72
+ -------------------
73
+ + enforce node engine ^22.12.0 with post install script
74
+ * install package hierarchy
75
+
76
+ 2025-06-04 v7.2.1
77
+ -------------------
78
+ * inquirer/logger prefix on install dependency
79
+ + removed useless wb transport find on package first install
80
+
81
+ 2025-06-03 v7.2.0
82
+ -------------------
83
+ * find dependency with custom object not found without devc reference
84
+
85
+ 2025-06-03 v7.1.0
86
+ -------------------
87
+ * change tr owner on install tr update
88
+
89
+ 2025-06-03 v7.0.0
90
+ -------------------
91
+ ! trm-server ^4.0.0
92
+ + change tr owner on install tr update
93
+
94
+ 2025-05-29 v6.9.1
95
+ -------------------
96
+ * remote function for updating server
97
+ + confirm if objects exists but no root sap package found
98
+
99
+ 2025-05-29 v6.9.0
100
+ -------------------
101
+ ! check server api auth before install and publish
102
+ ! trm-server ^3.1.0
103
+ ! read wb transport from package
104
+
105
+ 2025-05-27 v6.8.0
106
+ -------------------
107
+ ! on install transport update, check tasks before add object attempt
108
+ * commit before post activity run on RFC
109
+ * post activity error log
110
+ + node-rfc #327 -> device or resource busy, added workaround
111
+
112
+ 2025-05-20 v6.7.1
113
+ -------------------
114
+ ! get installed packages from backend with trm-server version check
115
+
116
+ 2025-05-14 v6.7.0
117
+ -------------------
118
+ ! trm-server ^3.0.0
119
+ * abapgit ignored objects
120
+ + post activity pre check
121
+ + get installed packages from backend where possible
122
+ + regen SAPLZTRM before post activity
123
+ * rest sap-client
124
+ + keep track of post activities based on latest release
125
+
126
+ 2025-05-08 v6.6.0
127
+ -------------------
128
+ * no integrity with trm-server/trm-rest dependency allowed
129
+ ! REST Client and RFC Client error generic -> specific
130
+ ! REST Client error xml body parsing with title as message
131
+ ! trm-server ^2.2.2
132
+
133
+ 2025-05-08 v6.5.1
134
+ -------------------
135
+ ! rest error handling
136
+
137
+ 2025-05-05 v6.5.0
138
+ -------------------
139
+ ! trm-commons ^1.0.0
140
+ * upgrade trm-server fixes
141
+ * core package.json location find
142
+
143
+ 2025-04-28 v6.4.1
144
+ -------------------
145
+
146
+ ! node-r3trans ^1.5.0
147
+
148
+ 2025-04-28 v6.4.0
149
+ -------------------
150
+
151
+ + post activities in abap manifest
152
+ * return exception type for REST client
153
+
154
+ 2025-02-06 v6.3.0
155
+ -------------------
156
+
157
+ * upgrading package remove previous ZTRM comments in workbench (import) transport
158
+ + fetch package remote content
159
+ * fix translation transport generation
160
+ + move trm package dependencies to core
161
+ + transport migration on overwrite
162
+ ! DEVC, CUST and LANG are now TRM relevant
163
+ * root superpackage on devc tr import blank
164
+ + clear state on package install (remove from skipped transports)
165
+ + add abapgit source code to TRM artifact
166
+ + skip ignored objects listed in .abapgit.xml
167
+ + add namespace in manifest
168
+ ! abstract registry for custom implementation
169
+ + add file system registry for local publish and install
170
+ + add post activities
171
+ ! cache transports in dependency detection for performance issues on big packages
164
172
  * check object existance before install
@@ -5,9 +5,10 @@ import { RFCClientError, SapMessage } from ".";
5
5
  export declare class RFCClient implements IClient {
6
6
  private _rfcClientArgs;
7
7
  private _cLangu;
8
+ private _globalNodeModulesPath?;
8
9
  protected _rfcClient: any;
9
10
  private _aliveCheck;
10
- constructor(_rfcClientArgs: any, _cLangu: string, traceDir?: string);
11
+ constructor(_rfcClientArgs: any, _cLangu: string, traceDir?: string, _globalNodeModulesPath?: string);
11
12
  private getRfcClient;
12
13
  open(): Promise<void>;
13
14
  close(): Promise<void>;
@@ -54,9 +54,10 @@ const _1 = require(".");
54
54
  const xml = __importStar(require("xml-js"));
55
55
  const nodeRfcLib = 'node-rfc';
56
56
  class RFCClient {
57
- constructor(_rfcClientArgs, _cLangu, traceDir) {
57
+ constructor(_rfcClientArgs, _cLangu, traceDir, _globalNodeModulesPath) {
58
58
  this._rfcClientArgs = _rfcClientArgs;
59
59
  this._cLangu = _cLangu;
60
+ this._globalNodeModulesPath = _globalNodeModulesPath;
60
61
  this._aliveCheck = false;
61
62
  try {
62
63
  process.env["RFC_TRACE_DIR"] = traceDir || process.cwd();
@@ -70,8 +71,7 @@ class RFCClient {
70
71
  getRfcClient() {
71
72
  return __awaiter(this, void 0, void 0, function* () {
72
73
  if (!this._rfcClient) {
73
- const globalPath = yield (0, commons_1.getNpmGlobalPath)();
74
- const libPath = path_1.default.join(globalPath, nodeRfcLib);
74
+ const libPath = path_1.default.join(this._globalNodeModulesPath || (0, trm_commons_1.getGlobalNodeModules)(), nodeRfcLib);
75
75
  trm_commons_1.Logger.log(`Node RFC lib path: ${libPath}`, true);
76
76
  if (!(0, fs_1.existsSync)(libPath)) {
77
77
  throw new _1.RFCClientError("ZRFC_LIB_NOT_FOUND", null, null, `${nodeRfcLib} not found. Run command "npm install ${nodeRfcLib} -g" to continue.`);
@@ -10,7 +10,6 @@ export * from "./getParentFromHierarchy";
10
10
  export * from "./getPackageNamespace";
11
11
  export * from "./LogTableStruct";
12
12
  export * from "./getAxiosInstance";
13
- export * from "./getNpmGlobalPath";
14
13
  export * from "./getNodePackage";
15
14
  export * from "./getCoreTrmDependencies";
16
15
  export * from "./checkCoreTrmDependencies";
@@ -26,7 +26,6 @@ __exportStar(require("./getParentFromHierarchy"), exports);
26
26
  __exportStar(require("./getPackageNamespace"), exports);
27
27
  __exportStar(require("./LogTableStruct"), exports);
28
28
  __exportStar(require("./getAxiosInstance"), exports);
29
- __exportStar(require("./getNpmGlobalPath"), exports);
30
29
  __exportStar(require("./getNodePackage"), exports);
31
30
  __exportStar(require("./getCoreTrmDependencies"), exports);
32
31
  __exportStar(require("./checkCoreTrmDependencies"), exports);
@@ -17,7 +17,7 @@ export declare class RFCSystemConnector extends SystemConnectorBase implements I
17
17
  protected _client: RFCClient;
18
18
  private _isServerApisAllowed;
19
19
  supportedBulk: SystemConnectorSupportedBulk;
20
- constructor(_connection: RFCConnection, _login: Login, _traceDir?: string);
20
+ constructor(_connection: RFCConnection, _login: Login, _traceDir?: string, _globalNodeModulesPath?: string);
21
21
  protected getSysname(): string;
22
22
  getDest(): string;
23
23
  protected getLangu(c: boolean): string;
@@ -14,7 +14,7 @@ const trm_commons_1 = require("trm-commons");
14
14
  const client_1 = require("../client");
15
15
  const SystemConnectorBase_1 = require("./SystemConnectorBase");
16
16
  class RFCSystemConnector extends SystemConnectorBase_1.SystemConnectorBase {
17
- constructor(_connection, _login, _traceDir) {
17
+ constructor(_connection, _login, _traceDir, _globalNodeModulesPath) {
18
18
  super();
19
19
  this._connection = _connection;
20
20
  this._login = _login;
@@ -29,7 +29,7 @@ class RFCSystemConnector extends SystemConnectorBase_1.SystemConnectorBase {
29
29
  if (!this._connection.saprouter) {
30
30
  delete this._connection.saprouter;
31
31
  }
32
- this._client = new client_1.RFCClient(Object.assign(Object.assign({}, this._connection), this._login), this._lang[0], this._traceDir);
32
+ this._client = new client_1.RFCClient(Object.assign(Object.assign({}, this._connection), this._login), this._lang[0], this._traceDir, _globalNodeModulesPath);
33
33
  }
34
34
  getSysname() {
35
35
  return this.getDest();
package/package.json CHANGED
@@ -1,97 +1,97 @@
1
- {
2
- "name": "trm-core",
3
- "version": "7.5.2",
4
- "description": "TRM (Transport Request Manager) Core",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "files": [
8
- "changelog.txt",
9
- "dist",
10
- "!dist/test.js",
11
- "!dist/test.js.map",
12
- "!dist/test.d.ts",
13
- "!dist/.env",
14
- "!dist/dev_rfc.log"
15
- ],
16
- "scripts": {
17
- "cleanBuild": "rimraf dist/",
18
- "build": "npm run cleanBuild && tsc --sourceMap false",
19
- "test": "jest",
20
- "prepublishOnly": "npm run build",
21
- "postinstall": "node dist/scripts/checkEngine.js"
22
- },
23
- "keywords": [
24
- "trm",
25
- "abap"
26
- ],
27
- "homepage": "https://www.trmregistry.com",
28
- "repository": {
29
- "type": "git",
30
- "url": "git+https://github.com/RegestaItalia/trm-core.git"
31
- },
32
- "author": {
33
- "name": "Simone Gaffurini",
34
- "email": "simone.gaffurini@regestaitalia.it"
35
- },
36
- "license": "MIT",
37
- "trmDependencies": {
38
- "trm-server": "^5.0.0"
39
- },
40
- "dependencies": {
41
- "@esm2cjs/normalize-url": "^8.0.0",
42
- "@inquirer/prompts": "^7.8.1",
43
- "@simonegaffurini/sammarksworkflow": "^1.3.2-fork",
44
- "@xmldom/xmldom": "^0.9.8",
45
- "adm-zip": "^0.5.10",
46
- "axios": "^1.7.9",
47
- "chalk": "^4.1.2",
48
- "cli-progress": "^3.12.0",
49
- "dotenv": "^16.3.1",
50
- "email-validator": "^2.0.4",
51
- "express": "^4.18.2",
52
- "get-root-path": "^3.0.1",
53
- "get-stack-trace": "^3.1.1",
54
- "lodash": "^4.17.21",
55
- "minimatch": "^10.0.1",
56
- "node-html-parser": "^7.0.1",
57
- "node-r3trans": "^2.0.1",
58
- "object-keys-normalizer": "^1.0.1",
59
- "opener": "^1.5.2",
60
- "parse-multipart-data": "^1.5.0",
61
- "protocol-registry": "^2.0.0",
62
- "semver": "^7.5.4",
63
- "semver-sort": "^1.0.0",
64
- "spdx-license-ids": "^3.0.13",
65
- "trm-registry-types": "^1.1.1",
66
- "uuid": "^9.0.1",
67
- "xml-beautify": "^1.2.3",
68
- "xml-js": "^1.6.11"
69
- },
70
- "peerDependencies": {
71
- "trm-commons": "^3.2.0"
72
- },
73
- "devDependencies": {
74
- "@types/adm-zip": "^0.5.0",
75
- "@types/cli-progress": "^3.11.3",
76
- "@types/debug": "^4.1.12",
77
- "@types/express": "^4.17.17",
78
- "@types/inquirer": "^9.0.3",
79
- "@types/jest": "^29.5.12",
80
- "@types/lodash": "^4.14.202",
81
- "@types/node": "^20.4.4",
82
- "@types/opener": "^1.4.0",
83
- "@types/semver": "^7.5.0",
84
- "@types/semver-sort": "^0.0.1",
85
- "@types/stack-trace": "^0.0.33",
86
- "@types/uuid": "^9.0.8",
87
- "jest": "^29.7.0",
88
- "rimraf": "^6.0.1",
89
- "trm-commons": "^3.2.0",
90
- "ts-jest": "^29.1.2",
91
- "ts-node": "^10.9.2",
92
- "typescript": "^5.8.2"
93
- },
94
- "engines": {
95
- "node": ">=22.12.0"
96
- }
97
- }
1
+ {
2
+ "name": "trm-core",
3
+ "version": "7.5.4",
4
+ "description": "TRM (Transport Request Manager) Core",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "changelog.txt",
9
+ "dist",
10
+ "!dist/test.js",
11
+ "!dist/test.js.map",
12
+ "!dist/test.d.ts",
13
+ "!dist/.env",
14
+ "!dist/dev_rfc.log"
15
+ ],
16
+ "scripts": {
17
+ "cleanBuild": "rimraf dist/",
18
+ "build": "npm run cleanBuild && tsc --sourceMap false",
19
+ "test": "jest",
20
+ "prepublishOnly": "npm run build",
21
+ "postinstall": "node dist/scripts/checkEngine.js"
22
+ },
23
+ "keywords": [
24
+ "trm",
25
+ "abap"
26
+ ],
27
+ "homepage": "https://www.trmregistry.com",
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "git+https://github.com/RegestaItalia/trm-core.git"
31
+ },
32
+ "author": {
33
+ "name": "Simone Gaffurini",
34
+ "email": "simone.gaffurini@regestaitalia.it"
35
+ },
36
+ "license": "MIT",
37
+ "trmDependencies": {
38
+ "trm-server": "^5.0.0"
39
+ },
40
+ "dependencies": {
41
+ "@esm2cjs/normalize-url": "^8.0.0",
42
+ "@inquirer/prompts": "^7.8.1",
43
+ "@simonegaffurini/sammarksworkflow": "^1.3.2-fork",
44
+ "@xmldom/xmldom": "^0.9.8",
45
+ "adm-zip": "^0.5.10",
46
+ "axios": "^1.7.9",
47
+ "chalk": "^4.1.2",
48
+ "cli-progress": "^3.12.0",
49
+ "dotenv": "^16.3.1",
50
+ "email-validator": "^2.0.4",
51
+ "express": "^4.18.2",
52
+ "get-root-path": "^3.0.1",
53
+ "get-stack-trace": "^3.1.1",
54
+ "lodash": "^4.17.21",
55
+ "minimatch": "^10.0.1",
56
+ "node-html-parser": "^7.0.1",
57
+ "node-r3trans": "^2.0.1",
58
+ "object-keys-normalizer": "^1.0.1",
59
+ "opener": "^1.5.2",
60
+ "parse-multipart-data": "^1.5.0",
61
+ "protocol-registry": "^2.0.0",
62
+ "semver": "^7.5.4",
63
+ "semver-sort": "^1.0.0",
64
+ "spdx-license-ids": "^3.0.13",
65
+ "trm-registry-types": "^1.1.1",
66
+ "uuid": "^9.0.1",
67
+ "xml-beautify": "^1.2.3",
68
+ "xml-js": "^1.6.11"
69
+ },
70
+ "peerDependencies": {
71
+ "trm-commons": "^3.4.0"
72
+ },
73
+ "devDependencies": {
74
+ "@types/adm-zip": "^0.5.0",
75
+ "@types/cli-progress": "^3.11.3",
76
+ "@types/debug": "^4.1.12",
77
+ "@types/express": "^4.17.17",
78
+ "@types/inquirer": "^9.0.3",
79
+ "@types/jest": "^29.5.12",
80
+ "@types/lodash": "^4.14.202",
81
+ "@types/node": "^20.4.4",
82
+ "@types/opener": "^1.4.0",
83
+ "@types/semver": "^7.5.0",
84
+ "@types/semver-sort": "^0.0.1",
85
+ "@types/stack-trace": "^0.0.33",
86
+ "@types/uuid": "^9.0.8",
87
+ "jest": "^29.7.0",
88
+ "rimraf": "^6.0.1",
89
+ "trm-commons": "^3.4.0",
90
+ "ts-jest": "^29.1.2",
91
+ "ts-node": "^10.9.2",
92
+ "typescript": "^5.8.2"
93
+ },
94
+ "engines": {
95
+ "node": ">=22.12.0"
96
+ }
97
+ }
@@ -1 +0,0 @@
1
- export declare function getNpmGlobalPath(): Promise<string>;
@@ -1,25 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.getNpmGlobalPath = getNpmGlobalPath;
13
- const child_process_1 = require("child_process");
14
- const util_1 = require("util");
15
- const trm_commons_1 = require("trm-commons");
16
- function getNpmGlobalPath() {
17
- return __awaiter(this, void 0, void 0, function* () {
18
- trm_commons_1.Logger.loading(`Reading NPM global path...`);
19
- const execPromise = (0, util_1.promisify)(child_process_1.exec);
20
- const { stdout } = yield execPromise(`npm root -g`);
21
- const globalPath = stdout.replace(/\n$/, '');
22
- trm_commons_1.Logger.log(`NPM Global path: ${globalPath}`, true);
23
- return globalPath;
24
- });
25
- }