@abaplint/cli 2.114.3 → 2.114.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/build/cli.js +8 -4
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -29149,7 +29149,9 @@ class StringTemplate {
|
|
|
29149
29149
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
29150
29150
|
return basic_1.VoidType.get(_syntax_input_1.CheckSyntaxKey);
|
|
29151
29151
|
}
|
|
29152
|
-
else if ((typeUtils.isCharLike(type) === false
|
|
29152
|
+
else if ((typeUtils.isCharLike(type) === false
|
|
29153
|
+
&& typeUtils.isHexLike(type) === false
|
|
29154
|
+
&& !(type instanceof basic_1.UTCLongType))
|
|
29153
29155
|
|| type instanceof basic_1.StructureType) {
|
|
29154
29156
|
const message = "String template, not character like, " + type.constructor.name;
|
|
29155
29157
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, node.getFirstToken(), message));
|
|
@@ -30237,6 +30239,7 @@ class Append {
|
|
|
30237
30239
|
if (source) {
|
|
30238
30240
|
if (targetType !== undefined
|
|
30239
30241
|
&& !(targetType instanceof basic_1.TableType)
|
|
30242
|
+
&& !(targetType instanceof basic_1.UnknownType)
|
|
30240
30243
|
&& dataTarget !== target
|
|
30241
30244
|
&& !(targetType instanceof basic_1.VoidType)) {
|
|
30242
30245
|
const message = `Append, target not a table type (${targetType.constructor.name})`;
|
|
@@ -50600,6 +50603,7 @@ class LockObject extends _abstract_object_1.AbstractObject {
|
|
|
50600
50603
|
getAllowedNaming() {
|
|
50601
50604
|
return {
|
|
50602
50605
|
maxLength: 16,
|
|
50606
|
+
customRegex: /^(\/[A-Z_\d]{3,8}\/)?E[A-Z0-9_]+$/i,
|
|
50603
50607
|
allowNamespace: true,
|
|
50604
50608
|
};
|
|
50605
50609
|
}
|
|
@@ -54989,7 +54993,7 @@ class Registry {
|
|
|
54989
54993
|
}
|
|
54990
54994
|
static abaplintVersion() {
|
|
54991
54995
|
// magic, see build script "version.sh"
|
|
54992
|
-
return "2.114.
|
|
54996
|
+
return "2.114.4";
|
|
54993
54997
|
}
|
|
54994
54998
|
getDDICReferences() {
|
|
54995
54999
|
return this.ddicReferences;
|
|
@@ -56450,14 +56454,14 @@ class AllowedObjectNaming {
|
|
|
56450
56454
|
const name = obj.getName();
|
|
56451
56455
|
let message = "";
|
|
56452
56456
|
if (name.length > allowed.maxLength) {
|
|
56453
|
-
message = "Name exceeds max length";
|
|
56457
|
+
message = "Name exceeds max length, allowed is " + allowed.maxLength;
|
|
56454
56458
|
}
|
|
56455
56459
|
else if (allowed.allowNamespace === false && name.indexOf("/") >= 0) {
|
|
56456
56460
|
message = "Namespace not allowed for object type";
|
|
56457
56461
|
}
|
|
56458
56462
|
else if (allowed.customRegex !== undefined) {
|
|
56459
56463
|
if (name.match(allowed.customRegex) === null) {
|
|
56460
|
-
message = "Name not allowed";
|
|
56464
|
+
message = "Name not allowed, expected to match " + allowed.customRegex.toString();
|
|
56461
56465
|
}
|
|
56462
56466
|
}
|
|
56463
56467
|
else if (name.match(NAME_REGEX) === null) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.114.
|
|
3
|
+
"version": "2.114.4",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://abaplint.org",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@abaplint/core": "^2.114.
|
|
41
|
+
"@abaplint/core": "^2.114.4",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/minimist": "^1.2.5",
|
|
44
44
|
"@types/mocha": "^10.0.10",
|