@abaplint/core 2.114.7 → 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
@@ -74,7 +74,7 @@ class Registry {
74
74
  }
75
75
  static abaplintVersion() {
76
76
  // magic, see build script "version.sh"
77
- return "2.114.7";
77
+ return "2.114.9";
78
78
  }
79
79
  getDDICReferences() {
80
80
  return this.ddicReferences;
@@ -19,6 +19,7 @@ class CheckSubrcConf extends _basic_rule_config_1.BasicRuleConfig {
19
19
  this.updateDatabase = true;
20
20
  this.insertDatabase = true;
21
21
  this.modifyDatabase = true;
22
+ this.deleteDatabase = true;
22
23
  this.readTable = true;
23
24
  this.assign = true;
24
25
  this.find = true;
@@ -113,6 +114,13 @@ FIND statement with MATCH COUNT is considered okay if subrc is not checked`,
113
114
  const fix = this.buildFix(file, statement);
114
115
  issues.push(issue_1.Issue.atStatement(file, statement, message, this.getMetadata().key, this.conf.severity, undefined, [fix]));
115
116
  }
117
+ else if (config.deleteDatabase === true
118
+ && statement.get() instanceof Statements.DeleteDatabase
119
+ && this.isChecked(i, statements) === false
120
+ && this.checksDbcnt(i, statements) === false) {
121
+ const fix = this.buildFix(file, statement);
122
+ issues.push(issue_1.Issue.atStatement(file, statement, message, this.getMetadata().key, this.conf.severity, undefined, [fix]));
123
+ }
116
124
  else if (config.insertDatabase === true
117
125
  && statement.get() instanceof Statements.InsertDatabase
118
126
  && this.isChecked(i, statements) === false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/core",
3
- "version": "2.114.7",
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.1",
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.1",
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.2",
66
+ "fast-xml-parser": "^5.3.3",
67
67
  "json5": "^2.2.3",
68
68
  "vscode-languageserver-types": "^3.17.5"
69
69
  }