trm-core 7.5.4 → 8.0.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/LICENSE +20 -20
- package/README.md +35 -35
- package/changelog.txt +186 -171
- package/dist/actions/checkPackageDependencies/analyze.js +5 -51
- package/dist/actions/checkPackageDependencies/index.d.ts +2 -5
- package/dist/actions/checkPackageDependencies/init.js +5 -7
- package/dist/actions/checkSapEntries/analyze.js +2 -2
- package/dist/actions/checkSapEntries/index.d.ts +2 -2
- package/dist/actions/checkSapEntries/init.js +1 -4
- package/dist/actions/findDependencies/index.d.ts +0 -2
- package/dist/actions/findDependencies/setTrmDependencies.js +11 -55
- package/dist/actions/install/addNamespace.js +14 -9
- package/dist/actions/install/checkAlreadyInstalled.js +2 -2
- package/dist/actions/install/checkDependencies.js +2 -16
- package/dist/actions/install/checkSapEntries.js +1 -1
- package/dist/actions/install/checkTransports.js +2 -2
- package/dist/actions/install/executePostActivities.js +3 -3
- package/dist/actions/install/generateInstallTransport.js +40 -5
- package/dist/actions/install/index.d.ts +6 -10
- package/dist/actions/install/index.js +2 -4
- package/dist/actions/install/init.js +37 -45
- package/dist/actions/install/installDependencies.js +0 -1
- package/dist/actions/install/setPackageIntegrity.js +1 -1
- package/dist/actions/install/setTrmServerUpgradeService.js +1 -1
- package/dist/actions/installDependency/findInstallRelease.js +18 -18
- package/dist/actions/installDependency/index.d.ts +0 -1
- package/dist/actions/installDependency/init.js +0 -7
- package/dist/actions/installDependency/installRelease.js +0 -1
- package/dist/actions/publish/findDependencies.js +0 -12
- package/dist/actions/publish/generateCustTransport.js +0 -3
- package/dist/actions/publish/generateDevcTransport.js +0 -4
- package/dist/actions/publish/generateLangTransport.js +0 -3
- package/dist/actions/publish/getSourceCode.js +1 -1
- package/dist/actions/publish/index.d.ts +1 -1
- package/dist/actions/publish/init.js +71 -95
- package/dist/actions/publish/setManifestValues.js +4 -13
- package/dist/commons/getAxiosInstance.d.ts +1 -1
- package/dist/manifest/Manifest.d.ts +2 -0
- package/dist/manifest/Manifest.js +47 -17
- package/dist/manifest/TrmManifestDependency.d.ts +0 -1
- package/dist/registry/AbstractRegistry.d.ts +7 -7
- package/dist/registry/FileSystem.d.ts +7 -6
- package/dist/registry/FileSystem.js +35 -34
- package/dist/registry/RegistryProvider.js +4 -4
- package/dist/registry/{Registry.d.ts → RegistryV2.d.ts} +11 -10
- package/dist/registry/{Registry.js → RegistryV2.js} +146 -74
- package/dist/registry/index.d.ts +1 -1
- package/dist/registry/index.js +1 -1
- package/dist/systemConnector/ISystemConnectorBase.d.ts +1 -1
- package/dist/systemConnector/SystemConnector.d.ts +1 -1
- package/dist/systemConnector/SystemConnector.js +3 -3
- package/dist/systemConnector/SystemConnectorBase.d.ts +1 -1
- package/dist/systemConnector/SystemConnectorBase.js +33 -11
- package/dist/transport/Transport.d.ts +4 -1
- package/dist/transport/Transport.js +53 -30
- package/dist/trmPackage/TrmArtifact.js +3 -5
- package/dist/trmPackage/TrmPackage.d.ts +0 -16
- package/dist/trmPackage/TrmPackage.js +10 -133
- package/dist/validators/validatePackageVisibility.d.ts +1 -1
- package/dist/validators/validatePackageVisibility.js +2 -16
- package/package.json +98 -97
- package/dist/actions/install/checkIntegrity.d.ts +0 -3
- package/dist/actions/install/checkIntegrity.js +0 -42
package/package.json
CHANGED
|
@@ -1,97 +1,98 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "trm-core",
|
|
3
|
-
"version": "
|
|
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": "^
|
|
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-
|
|
57
|
-
"node-
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"semver
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"xml-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
"@types/
|
|
76
|
-
"@types/
|
|
77
|
-
"@types/
|
|
78
|
-
"@types/
|
|
79
|
-
"@types/
|
|
80
|
-
"@types/
|
|
81
|
-
"@types/
|
|
82
|
-
"@types/
|
|
83
|
-
"@types/
|
|
84
|
-
"@types/semver
|
|
85
|
-
"@types/
|
|
86
|
-
"@types/
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"ts-
|
|
92
|
-
"
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "trm-core",
|
|
3
|
+
"version": "8.0.0",
|
|
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": "^17.2.2",
|
|
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-cache": "^5.1.2",
|
|
57
|
+
"node-html-parser": "^7.0.1",
|
|
58
|
+
"node-r3trans": "^2.0.1",
|
|
59
|
+
"object-keys-normalizer": "^1.0.1",
|
|
60
|
+
"opener": "^1.5.2",
|
|
61
|
+
"parse-multipart-data": "^1.5.0",
|
|
62
|
+
"protocol-registry": "^2.0.0",
|
|
63
|
+
"semver": "^7.5.4",
|
|
64
|
+
"semver-sort": "^1.0.0",
|
|
65
|
+
"spdx-license-ids": "^3.0.13",
|
|
66
|
+
"trm-registry-types": "^2.0.0",
|
|
67
|
+
"uuid": "^9.0.1",
|
|
68
|
+
"xml-beautify": "^1.2.3",
|
|
69
|
+
"xml-js": "^1.6.11"
|
|
70
|
+
},
|
|
71
|
+
"peerDependencies": {
|
|
72
|
+
"trm-commons": "^3.4.2"
|
|
73
|
+
},
|
|
74
|
+
"devDependencies": {
|
|
75
|
+
"@types/adm-zip": "^0.5.0",
|
|
76
|
+
"@types/cli-progress": "^3.11.3",
|
|
77
|
+
"@types/debug": "^4.1.12",
|
|
78
|
+
"@types/express": "^4.17.17",
|
|
79
|
+
"@types/inquirer": "^9.0.3",
|
|
80
|
+
"@types/jest": "^29.5.12",
|
|
81
|
+
"@types/lodash": "^4.14.202",
|
|
82
|
+
"@types/node": "^20.4.4",
|
|
83
|
+
"@types/opener": "^1.4.0",
|
|
84
|
+
"@types/semver": "^7.5.0",
|
|
85
|
+
"@types/semver-sort": "^0.0.1",
|
|
86
|
+
"@types/stack-trace": "^0.0.33",
|
|
87
|
+
"@types/uuid": "^9.0.8",
|
|
88
|
+
"jest": "^29.7.0",
|
|
89
|
+
"rimraf": "^6.0.1",
|
|
90
|
+
"trm-commons": "^3.4.2",
|
|
91
|
+
"ts-jest": "^29.1.2",
|
|
92
|
+
"ts-node": "^10.9.2",
|
|
93
|
+
"typescript": "^5.8.2"
|
|
94
|
+
},
|
|
95
|
+
"engines": {
|
|
96
|
+
"node": ">=22.12.0"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -1,42 +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.checkIntegrity = void 0;
|
|
13
|
-
const trm_commons_1 = require("trm-commons");
|
|
14
|
-
exports.checkIntegrity = {
|
|
15
|
-
name: 'check-integrity',
|
|
16
|
-
run: (context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
17
|
-
trm_commons_1.Logger.log('Check integrity step', true);
|
|
18
|
-
const inputIntegrity = context.rawInput.packageData.integrity;
|
|
19
|
-
const safe = context.rawInput.installData.checks.safe;
|
|
20
|
-
if (!inputIntegrity) {
|
|
21
|
-
if (safe) {
|
|
22
|
-
throw new Error(`Running in safe mode but no integrity checksum was provided.`);
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
const trmManifest = context.runtime.remotePackageData.trmManifest;
|
|
29
|
-
const installIntegrity = context.runtime.remotePackageData.integrity;
|
|
30
|
-
if (installIntegrity !== inputIntegrity) {
|
|
31
|
-
trm_commons_1.Logger.warning(`ATTENTION!! Integrity check failed on package ${trmManifest.name}, version ${trmManifest.version}.`);
|
|
32
|
-
trm_commons_1.Logger.warning(` Local: ${inputIntegrity}`);
|
|
33
|
-
trm_commons_1.Logger.warning(` Remote: ${installIntegrity}`);
|
|
34
|
-
if (safe) {
|
|
35
|
-
trm_commons_1.Logger.warning(` Install will continue.`);
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
throw new Error(`Safe mode: package installation aborted due to integrity check failure.`);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
})
|
|
42
|
-
};
|