@abaplint/cli 2.102.35 → 2.102.36
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/build/cli.js +7 -3
- package/package.json +4 -4
package/build/cli.js
CHANGED
|
@@ -1020,7 +1020,7 @@ class Rename {
|
|
|
1020
1020
|
}
|
|
1021
1021
|
const newStr = o.getName().replace(regex, p.newName);
|
|
1022
1022
|
if (quiet !== true) {
|
|
1023
|
-
console.log("Renaming " + o.getName().padEnd(30, " ") + " -> " + newStr);
|
|
1023
|
+
console.log("Renaming " + o.getType() + " " + o.getName().padEnd(30, " ") + " -> " + newStr);
|
|
1024
1024
|
}
|
|
1025
1025
|
const result = renamer.rename(o.getType(), o.getName(), newStr);
|
|
1026
1026
|
result.updatedFiles.forEach(f => { this.updatedFiles.add(f); });
|
|
@@ -21901,6 +21901,9 @@ class TypeUtils {
|
|
|
21901
21901
|
else if (target.containsVoid() === true) {
|
|
21902
21902
|
return true;
|
|
21903
21903
|
}
|
|
21904
|
+
else if (source instanceof basic_1.StringType && this.structureContainsString(target)) {
|
|
21905
|
+
return false;
|
|
21906
|
+
}
|
|
21904
21907
|
else if (source instanceof basic_1.IntegerType) {
|
|
21905
21908
|
return false;
|
|
21906
21909
|
}
|
|
@@ -46771,9 +46774,10 @@ class RenamerHelper {
|
|
|
46771
46774
|
renameFiles(obj, oldName, name) {
|
|
46772
46775
|
const list = [];
|
|
46773
46776
|
const newName = name.toLowerCase().replace(/\//g, "#");
|
|
46777
|
+
oldName = oldName.toLowerCase().replace(/\//g, "#");
|
|
46774
46778
|
for (const f of obj.getFiles()) {
|
|
46775
46779
|
// todo, this is not completely correct, ie. if the URI contains the same directory name as the object name
|
|
46776
|
-
const newFilename = f.getFilename().replace(oldName
|
|
46780
|
+
const newFilename = f.getFilename().replace(oldName, newName);
|
|
46777
46781
|
list.push(vscode_languageserver_types_1.RenameFile.create(f.getFilename(), newFilename));
|
|
46778
46782
|
}
|
|
46779
46783
|
return list;
|
|
@@ -48778,7 +48782,7 @@ class Registry {
|
|
|
48778
48782
|
}
|
|
48779
48783
|
static abaplintVersion() {
|
|
48780
48784
|
// magic, see build script "version.sh"
|
|
48781
|
-
return "2.102.
|
|
48785
|
+
return "2.102.36";
|
|
48782
48786
|
}
|
|
48783
48787
|
getDDICReferences() {
|
|
48784
48788
|
return this.ddicReferences;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.102.
|
|
3
|
+
"version": "2.102.36",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://abaplint.org",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@abaplint/core": "^2.102.
|
|
41
|
+
"@abaplint/core": "^2.102.36",
|
|
42
42
|
"@types/chai": "^4.3.6",
|
|
43
43
|
"@types/glob": "^7.2.0",
|
|
44
44
|
"@types/minimist": "^1.2.2",
|
|
45
45
|
"@types/mocha": "^10.0.1",
|
|
46
|
-
"@types/node": "^20.
|
|
46
|
+
"@types/node": "^20.6.0",
|
|
47
47
|
"@types/progress": "^2.0.5",
|
|
48
48
|
"chai": "^4.3.8",
|
|
49
49
|
"chalk": "^5.3.0",
|
|
50
|
-
"eslint": "^8.
|
|
50
|
+
"eslint": "^8.49.0",
|
|
51
51
|
"glob": "^7.2.3",
|
|
52
52
|
"json5": "^2.2.3",
|
|
53
53
|
"memfs": "^4.2.1",
|