@abaplint/core 2.114.8 → 2.114.9
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.
|
@@ -46,6 +46,7 @@ class RenameGlobalClass {
|
|
|
46
46
|
changes = changes.concat(helper.renameFiles(obj, oldName, newName));
|
|
47
47
|
changes = changes.concat(helper.renameReferences(obj.getIdentifier(), oldName, newName));
|
|
48
48
|
changes = changes.concat(helper.renameDDICTABLReferences(obj, oldName, newName));
|
|
49
|
+
changes = changes.concat(helper.renameICFServiceHandlerReferences(oldName, newName));
|
|
49
50
|
return {
|
|
50
51
|
documentChanges: changes,
|
|
51
52
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RenameICFService = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const renamer_helper_1 = require("./renamer_helper");
|
|
6
|
+
class RenameICFService {
|
|
7
|
+
constructor(reg) {
|
|
8
|
+
this.reg = reg;
|
|
9
|
+
}
|
|
10
|
+
buildEdits(obj, oldName, newName) {
|
|
11
|
+
if (!(obj instanceof __1.ICFService)) {
|
|
12
|
+
throw new Error("RenameICFService, not a ICF Service");
|
|
13
|
+
}
|
|
14
|
+
let changes = [];
|
|
15
|
+
const helper = new renamer_helper_1.RenamerHelper(this.reg);
|
|
16
|
+
changes = changes.concat(helper.buildXMLFileEdits(obj, "ICF_NAME", oldName, newName));
|
|
17
|
+
changes = changes.concat(helper.buildXMLFileEdits(obj, "ORIG_NAME", oldName, newName));
|
|
18
|
+
changes = changes.concat(helper.renameFiles(obj, oldName, newName));
|
|
19
|
+
return {
|
|
20
|
+
documentChanges: changes,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.RenameICFService = RenameICFService;
|
|
25
|
+
//# sourceMappingURL=rename_icf_service.js.map
|
|
@@ -10,6 +10,7 @@ const rename_global_interface_1 = require("./rename_global_interface");
|
|
|
10
10
|
const rename_table_1 = require("./rename_table");
|
|
11
11
|
const rename_table_type_1 = require("./rename_table_type");
|
|
12
12
|
const rename_message_class_1 = require("./rename_message_class");
|
|
13
|
+
const rename_icf_service_1 = require("./rename_icf_service");
|
|
13
14
|
class Renamer {
|
|
14
15
|
constructor(reg) {
|
|
15
16
|
this.reg = reg;
|
|
@@ -59,6 +60,8 @@ class Renamer {
|
|
|
59
60
|
return new rename_global_interface_1.RenameGlobalInterface(this.reg);
|
|
60
61
|
case "MSAG":
|
|
61
62
|
return new rename_message_class_1.RenameMessageClass(this.reg);
|
|
63
|
+
case "SICF":
|
|
64
|
+
return new rename_icf_service_1.RenameICFService(this.reg);
|
|
62
65
|
default:
|
|
63
66
|
throw new Error("Renaming of " + type + " not yet supported");
|
|
64
67
|
}
|
|
@@ -162,6 +162,19 @@ class RenamerHelper {
|
|
|
162
162
|
}
|
|
163
163
|
return ret;
|
|
164
164
|
}
|
|
165
|
+
renameICFServiceHandlerReferences(oldName, newName) {
|
|
166
|
+
const changes = [];
|
|
167
|
+
const icfServices = this.reg.getObjectsByType("SICF");
|
|
168
|
+
for (const service of icfServices) {
|
|
169
|
+
const ICFService = service;
|
|
170
|
+
const xmlFile = service.getXMLFile();
|
|
171
|
+
if (xmlFile === undefined) {
|
|
172
|
+
continue;
|
|
173
|
+
}
|
|
174
|
+
changes.push(...this.buildXMLFileEdits(ICFService, "ICFHANDLER", oldName, newName));
|
|
175
|
+
}
|
|
176
|
+
return changes;
|
|
177
|
+
}
|
|
165
178
|
}
|
|
166
179
|
exports.RenamerHelper = RenamerHelper;
|
|
167
180
|
//# sourceMappingURL=renamer_helper.js.map
|
package/build/src/registry.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/core",
|
|
3
|
-
"version": "2.114.
|
|
3
|
+
"version": "2.114.9",
|
|
4
4
|
"description": "abaplint - Core API",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/abaplint.d.ts",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
},
|
|
51
51
|
"homepage": "https://abaplint.org",
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@microsoft/api-extractor": "^7.55.
|
|
53
|
+
"@microsoft/api-extractor": "^7.55.2",
|
|
54
54
|
"@types/chai": "^4.3.20",
|
|
55
55
|
"@types/mocha": "^10.0.10",
|
|
56
|
-
"@types/node": "^24.10.
|
|
56
|
+
"@types/node": "^24.10.3",
|
|
57
57
|
"chai": "^4.5.0",
|
|
58
58
|
"eslint": "^9.39.1",
|
|
59
59
|
"mocha": "^11.7.5",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"typescript": "^5.9.3"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"fast-xml-parser": "^5.3.
|
|
66
|
+
"fast-xml-parser": "^5.3.3",
|
|
67
67
|
"json5": "^2.2.3",
|
|
68
68
|
"vscode-languageserver-types": "^3.17.5"
|
|
69
69
|
}
|