@abaplint/cli 2.113.131 → 2.113.132
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 +78 -4
- package/package.json +4 -4
package/build/cli.js
CHANGED
|
@@ -14204,6 +14204,7 @@ __exportStar(__webpack_require__(/*! ./modify_entities */ "./node_modules/@abapl
|
|
|
14204
14204
|
__exportStar(__webpack_require__(/*! ./read_entities */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/read_entities.js"), exports);
|
|
14205
14205
|
__exportStar(__webpack_require__(/*! ./rollback_entities */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/rollback_entities.js"), exports);
|
|
14206
14206
|
__exportStar(__webpack_require__(/*! ./summary */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/summary.js"), exports);
|
|
14207
|
+
__exportStar(__webpack_require__(/*! ./input */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/input.js"), exports);
|
|
14207
14208
|
__exportStar(__webpack_require__(/*! ./on_change */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/on_change.js"), exports);
|
|
14208
14209
|
__exportStar(__webpack_require__(/*! ./at_user_command */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/at_user_command.js"), exports);
|
|
14209
14210
|
__exportStar(__webpack_require__(/*! ./position */ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/position.js"), exports);
|
|
@@ -14485,6 +14486,28 @@ exports.Initialization = Initialization;
|
|
|
14485
14486
|
|
|
14486
14487
|
/***/ }),
|
|
14487
14488
|
|
|
14489
|
+
/***/ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/input.js":
|
|
14490
|
+
/*!*************************************************************************************!*\
|
|
14491
|
+
!*** ./node_modules/@abaplint/core/build/src/abap/2_statements/statements/input.js ***!
|
|
14492
|
+
\*************************************************************************************/
|
|
14493
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
14494
|
+
|
|
14495
|
+
"use strict";
|
|
14496
|
+
|
|
14497
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
14498
|
+
exports.Input = void 0;
|
|
14499
|
+
const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
14500
|
+
const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
|
|
14501
|
+
class Input {
|
|
14502
|
+
getMatcher() {
|
|
14503
|
+
return (0, combi_1.verNot)(version_1.Version.Cloud, "INPUT");
|
|
14504
|
+
}
|
|
14505
|
+
}
|
|
14506
|
+
exports.Input = Input;
|
|
14507
|
+
//# sourceMappingURL=input.js.map
|
|
14508
|
+
|
|
14509
|
+
/***/ }),
|
|
14510
|
+
|
|
14488
14511
|
/***/ "./node_modules/@abaplint/core/build/src/abap/2_statements/statements/insert_database.js":
|
|
14489
14512
|
/*!***********************************************************************************************!*\
|
|
14490
14513
|
!*** ./node_modules/@abaplint/core/build/src/abap/2_statements/statements/insert_database.js ***!
|
|
@@ -24290,6 +24313,9 @@ class BasicTypes {
|
|
|
24290
24313
|
if (found && this.isOccurs(node)) {
|
|
24291
24314
|
found = new Types.TableType(found, { withHeader: text.includes("WITH HEADER LINE"), keyType: Types.TableKeyType.default }, qualifiedName);
|
|
24292
24315
|
}
|
|
24316
|
+
else if (text.endsWith(" WITH HEADER LINE") && found instanceof Types.TableType) {
|
|
24317
|
+
found = new Types.TableType(found.getRowType(), { withHeader: true, keyType: Types.TableKeyType.default }, qualifiedName);
|
|
24318
|
+
}
|
|
24293
24319
|
}
|
|
24294
24320
|
else if (text.startsWith("TYPE LINE OF ")) {
|
|
24295
24321
|
const sub = node.findFirstExpression(Expressions.TypeName);
|
|
@@ -27853,10 +27879,12 @@ class Select {
|
|
|
27853
27879
|
var _a, _b;
|
|
27854
27880
|
let expr = undefined;
|
|
27855
27881
|
const ret = [];
|
|
27856
|
-
|
|
27857
|
-
if (expr === undefined) {
|
|
27882
|
+
if (node.get() instanceof Expressions.SelectLoop) {
|
|
27858
27883
|
expr = node.findFirstExpression(Expressions.SQLFieldListLoop);
|
|
27859
27884
|
}
|
|
27885
|
+
else {
|
|
27886
|
+
expr = node.findFirstExpression(Expressions.SQLFieldList);
|
|
27887
|
+
}
|
|
27860
27888
|
if (((_a = expr === null || expr === void 0 ? void 0 : expr.getFirstChild()) === null || _a === void 0 ? void 0 : _a.get()) instanceof Expressions.Dynamic) {
|
|
27861
27889
|
dynamic_1.Dynamic.runSyntax(expr.getFirstChild(), input);
|
|
27862
27890
|
}
|
|
@@ -33349,7 +33377,9 @@ class ReadTable {
|
|
|
33349
33377
|
}
|
|
33350
33378
|
const type = source_1.Source.runSyntax(s, input);
|
|
33351
33379
|
if (s === afterKey) {
|
|
33352
|
-
if (type instanceof basic_1.StringType
|
|
33380
|
+
if (type instanceof basic_1.StringType
|
|
33381
|
+
|| (type instanceof basic_1.TableType && type.isWithHeader() === false)
|
|
33382
|
+
|| type instanceof basic_1.ObjectReferenceType) {
|
|
33353
33383
|
const message = "Key cannot be string or table or reference";
|
|
33354
33384
|
input.issues.push((0, _syntax_input_1.syntaxIssue)(input, s.getFirstToken(), message));
|
|
33355
33385
|
return;
|
|
@@ -49828,6 +49858,7 @@ __exportStar(__webpack_require__(/*! ./object_characteristic */ "./node_modules/
|
|
|
49828
49858
|
__exportStar(__webpack_require__(/*! ./outbound_service */ "./node_modules/@abaplint/core/build/src/objects/outbound_service.js"), exports);
|
|
49829
49859
|
__exportStar(__webpack_require__(/*! ./package_interface */ "./node_modules/@abaplint/core/build/src/objects/package_interface.js"), exports);
|
|
49830
49860
|
__exportStar(__webpack_require__(/*! ./package */ "./node_modules/@abaplint/core/build/src/objects/package.js"), exports);
|
|
49861
|
+
__exportStar(__webpack_require__(/*! ./page_format */ "./node_modules/@abaplint/core/build/src/objects/page_format.js"), exports);
|
|
49831
49862
|
__exportStar(__webpack_require__(/*! ./parameter */ "./node_modules/@abaplint/core/build/src/objects/parameter.js"), exports);
|
|
49832
49863
|
__exportStar(__webpack_require__(/*! ./personalization_object */ "./node_modules/@abaplint/core/build/src/objects/personalization_object.js"), exports);
|
|
49833
49864
|
__exportStar(__webpack_require__(/*! ./program */ "./node_modules/@abaplint/core/build/src/objects/program.js"), exports);
|
|
@@ -51360,6 +51391,37 @@ exports.PackageInterface = PackageInterface;
|
|
|
51360
51391
|
|
|
51361
51392
|
/***/ }),
|
|
51362
51393
|
|
|
51394
|
+
/***/ "./node_modules/@abaplint/core/build/src/objects/page_format.js":
|
|
51395
|
+
/*!**********************************************************************!*\
|
|
51396
|
+
!*** ./node_modules/@abaplint/core/build/src/objects/page_format.js ***!
|
|
51397
|
+
\**********************************************************************/
|
|
51398
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
51399
|
+
|
|
51400
|
+
"use strict";
|
|
51401
|
+
|
|
51402
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
51403
|
+
exports.PageFormat = void 0;
|
|
51404
|
+
const _abstract_object_1 = __webpack_require__(/*! ./_abstract_object */ "./node_modules/@abaplint/core/build/src/objects/_abstract_object.js");
|
|
51405
|
+
class PageFormat extends _abstract_object_1.AbstractObject {
|
|
51406
|
+
getType() {
|
|
51407
|
+
return "SPPF";
|
|
51408
|
+
}
|
|
51409
|
+
getAllowedNaming() {
|
|
51410
|
+
return {
|
|
51411
|
+
maxLength: 30,
|
|
51412
|
+
allowNamespace: true,
|
|
51413
|
+
};
|
|
51414
|
+
}
|
|
51415
|
+
getDescription() {
|
|
51416
|
+
// todo
|
|
51417
|
+
return undefined;
|
|
51418
|
+
}
|
|
51419
|
+
}
|
|
51420
|
+
exports.PageFormat = PageFormat;
|
|
51421
|
+
//# sourceMappingURL=page_format.js.map
|
|
51422
|
+
|
|
51423
|
+
/***/ }),
|
|
51424
|
+
|
|
51363
51425
|
/***/ "./node_modules/@abaplint/core/build/src/objects/parameter.js":
|
|
51364
51426
|
/*!********************************************************************!*\
|
|
51365
51427
|
!*** ./node_modules/@abaplint/core/build/src/objects/parameter.js ***!
|
|
@@ -54354,7 +54416,7 @@ class Registry {
|
|
|
54354
54416
|
}
|
|
54355
54417
|
static abaplintVersion() {
|
|
54356
54418
|
// magic, see build script "version.sh"
|
|
54357
|
-
return "2.113.
|
|
54419
|
+
return "2.113.132";
|
|
54358
54420
|
}
|
|
54359
54421
|
getDDICReferences() {
|
|
54360
54422
|
return this.ddicReferences;
|
|
@@ -67326,6 +67388,7 @@ ENDIF.
|
|
|
67326
67388
|
return issues;
|
|
67327
67389
|
}
|
|
67328
67390
|
analyze(file, cond) {
|
|
67391
|
+
var _a, _b;
|
|
67329
67392
|
const issues = [];
|
|
67330
67393
|
let comparator = "";
|
|
67331
67394
|
let found = false;
|
|
@@ -67351,6 +67414,17 @@ ENDIF.
|
|
|
67351
67414
|
found = true; // dont report for the simple case that contains quick fixes
|
|
67352
67415
|
}
|
|
67353
67416
|
}
|
|
67417
|
+
else if (c instanceof nodes_1.ExpressionNode
|
|
67418
|
+
&& c.get() instanceof Expressions.Compare
|
|
67419
|
+
&& ((_a = c.getFirstChild()) === null || _a === void 0 ? void 0 : _a.get()) instanceof Expressions.Source
|
|
67420
|
+
&& c.getChildren().length === 3) {
|
|
67421
|
+
const concat = (_b = c.getFirstChild()) === null || _b === void 0 ? void 0 : _b.concatTokens();
|
|
67422
|
+
if ((concat === null || concat === void 0 ? void 0 : concat.startsWith("(")) && concat.endsWith(")")) {
|
|
67423
|
+
const message = "Parentheses can be removed";
|
|
67424
|
+
const issue = issue_1.Issue.atToken(file, c.getFirstToken(), message, this.getMetadata().key, this.conf.severity);
|
|
67425
|
+
issues.push(issue);
|
|
67426
|
+
}
|
|
67427
|
+
}
|
|
67354
67428
|
if (comparator === "") {
|
|
67355
67429
|
comparator = current;
|
|
67356
67430
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.113.
|
|
3
|
+
"version": "2.113.132",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://abaplint.org",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@abaplint/core": "^2.113.
|
|
41
|
+
"@abaplint/core": "^2.113.132",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/minimist": "^1.2.5",
|
|
44
44
|
"@types/mocha": "^10.0.10",
|
|
45
|
-
"@types/node": "^24.0.
|
|
45
|
+
"@types/node": "^24.0.4",
|
|
46
46
|
"@types/progress": "^2.0.7",
|
|
47
47
|
"chai": "^4.5.0",
|
|
48
48
|
"p-limit": "^3.1.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"json5": "^2.2.3",
|
|
53
53
|
"memfs": "^4.17.2",
|
|
54
54
|
"minimist": "^1.2.8",
|
|
55
|
-
"mocha": "^11.
|
|
55
|
+
"mocha": "^11.7.1",
|
|
56
56
|
"progress": "^2.0.3",
|
|
57
57
|
"typescript": "^5.8.3",
|
|
58
58
|
"webpack": "^5.99.9",
|