@abaplint/cli 2.101.0 → 2.101.2
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 +118 -3
- package/package.json +3 -3
package/build/cli.js
CHANGED
|
@@ -18715,7 +18715,7 @@ exports.With = With;
|
|
|
18715
18715
|
"use strict";
|
|
18716
18716
|
|
|
18717
18717
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
18718
|
-
exports.MethodParameterDirection = exports.AttributeLevel = void 0;
|
|
18718
|
+
exports.RiskLevel = exports.Duration = exports.MethodParameterDirection = exports.AttributeLevel = void 0;
|
|
18719
18719
|
// Only helper functions to get data from single file, no type information
|
|
18720
18720
|
var AttributeLevel;
|
|
18721
18721
|
(function (AttributeLevel) {
|
|
@@ -18730,6 +18730,18 @@ var MethodParameterDirection;
|
|
|
18730
18730
|
MethodParameterDirection["Changing"] = "changing";
|
|
18731
18731
|
MethodParameterDirection["Returning"] = "returning";
|
|
18732
18732
|
})(MethodParameterDirection = exports.MethodParameterDirection || (exports.MethodParameterDirection = {}));
|
|
18733
|
+
var Duration;
|
|
18734
|
+
(function (Duration) {
|
|
18735
|
+
Duration["short"] = "SHORT";
|
|
18736
|
+
Duration["medium"] = "MEDIUM";
|
|
18737
|
+
Duration["long"] = "LONG";
|
|
18738
|
+
})(Duration = exports.Duration || (exports.Duration = {}));
|
|
18739
|
+
var RiskLevel;
|
|
18740
|
+
(function (RiskLevel) {
|
|
18741
|
+
RiskLevel["harmless"] = "HARMLESS";
|
|
18742
|
+
RiskLevel["critical"] = "CRITICAL";
|
|
18743
|
+
RiskLevel["dangerous"] = "DANGEROUS";
|
|
18744
|
+
})(RiskLevel = exports.RiskLevel || (exports.RiskLevel = {}));
|
|
18733
18745
|
//# sourceMappingURL=_abap_file_information.js.map
|
|
18734
18746
|
|
|
18735
18747
|
/***/ }),
|
|
@@ -18905,7 +18917,7 @@ class ABAPFileInformation {
|
|
|
18905
18917
|
}
|
|
18906
18918
|
}
|
|
18907
18919
|
parseClasses(structure) {
|
|
18908
|
-
var _a;
|
|
18920
|
+
var _a, _b, _c;
|
|
18909
18921
|
for (const found of structure.findAllStructures(Structures.ClassDefinition)) {
|
|
18910
18922
|
const className = found.findFirstStatement(Statements.ClassDefinition).findFirstExpression(Expressions.ClassName).getFirstToken();
|
|
18911
18923
|
const methods = this.parseMethodDefinition(found.findFirstStructure(Structures.PublicSection), visibility_1.Visibility.Public);
|
|
@@ -18924,6 +18936,8 @@ class ABAPFileInformation {
|
|
|
18924
18936
|
const containsGlobal = found.findFirstExpression(Expressions.ClassGlobal);
|
|
18925
18937
|
const cdef = found.findFirstStatement(Statements.ClassDefinition);
|
|
18926
18938
|
const concat = (cdef === null || cdef === void 0 ? void 0 : cdef.concatTokens().toUpperCase()) || "";
|
|
18939
|
+
const duration = (_b = cdef === null || cdef === void 0 ? void 0 : cdef.findExpressionAfterToken("DURATION")) === null || _b === void 0 ? void 0 : _b.concatTokens().toUpperCase();
|
|
18940
|
+
const riskLevel = (_c = cdef === null || cdef === void 0 ? void 0 : cdef.findExpressionAfterToken("LEVEL")) === null || _c === void 0 ? void 0 : _c.concatTokens().toUpperCase();
|
|
18927
18941
|
this.classes.push({
|
|
18928
18942
|
name: className.getStr(),
|
|
18929
18943
|
identifier: new _identifier_1.Identifier(className, this.filename),
|
|
@@ -18933,6 +18947,8 @@ class ABAPFileInformation {
|
|
|
18933
18947
|
superClassName,
|
|
18934
18948
|
interfaces: this.getImplementing(found),
|
|
18935
18949
|
isForTesting: concat.includes(" FOR TESTING"),
|
|
18950
|
+
duration,
|
|
18951
|
+
riskLevel,
|
|
18936
18952
|
isAbstract: (cdef === null || cdef === void 0 ? void 0 : cdef.findDirectTokenByText("ABSTRACT")) !== undefined,
|
|
18937
18953
|
isSharedMemory: concat.includes(" SHARED MEMORY ENABLED"),
|
|
18938
18954
|
isFinal: found.findFirstExpression(Expressions.ClassFinal) !== undefined,
|
|
@@ -41700,6 +41716,99 @@ exports.AssignmentServiceToAuthorizationGroup = AssignmentServiceToAuthorization
|
|
|
41700
41716
|
|
|
41701
41717
|
/***/ }),
|
|
41702
41718
|
|
|
41719
|
+
/***/ "./node_modules/@abaplint/core/build/src/objects/atc_check_category.js":
|
|
41720
|
+
/*!*****************************************************************************!*\
|
|
41721
|
+
!*** ./node_modules/@abaplint/core/build/src/objects/atc_check_category.js ***!
|
|
41722
|
+
\*****************************************************************************/
|
|
41723
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
41724
|
+
|
|
41725
|
+
"use strict";
|
|
41726
|
+
|
|
41727
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
41728
|
+
exports.ATCCheckCategory = void 0;
|
|
41729
|
+
const _abstract_object_1 = __webpack_require__(/*! ./_abstract_object */ "./node_modules/@abaplint/core/build/src/objects/_abstract_object.js");
|
|
41730
|
+
class ATCCheckCategory extends _abstract_object_1.AbstractObject {
|
|
41731
|
+
getType() {
|
|
41732
|
+
return "CHKC";
|
|
41733
|
+
}
|
|
41734
|
+
getAllowedNaming() {
|
|
41735
|
+
return {
|
|
41736
|
+
maxLength: 30,
|
|
41737
|
+
allowNamespace: true,
|
|
41738
|
+
};
|
|
41739
|
+
}
|
|
41740
|
+
getDescription() {
|
|
41741
|
+
// todo
|
|
41742
|
+
return undefined;
|
|
41743
|
+
}
|
|
41744
|
+
}
|
|
41745
|
+
exports.ATCCheckCategory = ATCCheckCategory;
|
|
41746
|
+
//# sourceMappingURL=atc_check_category.js.map
|
|
41747
|
+
|
|
41748
|
+
/***/ }),
|
|
41749
|
+
|
|
41750
|
+
/***/ "./node_modules/@abaplint/core/build/src/objects/atc_check_object.js":
|
|
41751
|
+
/*!***************************************************************************!*\
|
|
41752
|
+
!*** ./node_modules/@abaplint/core/build/src/objects/atc_check_object.js ***!
|
|
41753
|
+
\***************************************************************************/
|
|
41754
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
41755
|
+
|
|
41756
|
+
"use strict";
|
|
41757
|
+
|
|
41758
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
41759
|
+
exports.ATCCheckObject = void 0;
|
|
41760
|
+
const _abstract_object_1 = __webpack_require__(/*! ./_abstract_object */ "./node_modules/@abaplint/core/build/src/objects/_abstract_object.js");
|
|
41761
|
+
class ATCCheckObject extends _abstract_object_1.AbstractObject {
|
|
41762
|
+
getType() {
|
|
41763
|
+
return "CHKO";
|
|
41764
|
+
}
|
|
41765
|
+
getAllowedNaming() {
|
|
41766
|
+
return {
|
|
41767
|
+
maxLength: 30,
|
|
41768
|
+
allowNamespace: true,
|
|
41769
|
+
};
|
|
41770
|
+
}
|
|
41771
|
+
getDescription() {
|
|
41772
|
+
// todo
|
|
41773
|
+
return undefined;
|
|
41774
|
+
}
|
|
41775
|
+
}
|
|
41776
|
+
exports.ATCCheckObject = ATCCheckObject;
|
|
41777
|
+
//# sourceMappingURL=atc_check_object.js.map
|
|
41778
|
+
|
|
41779
|
+
/***/ }),
|
|
41780
|
+
|
|
41781
|
+
/***/ "./node_modules/@abaplint/core/build/src/objects/atc_check_variant.js":
|
|
41782
|
+
/*!****************************************************************************!*\
|
|
41783
|
+
!*** ./node_modules/@abaplint/core/build/src/objects/atc_check_variant.js ***!
|
|
41784
|
+
\****************************************************************************/
|
|
41785
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
41786
|
+
|
|
41787
|
+
"use strict";
|
|
41788
|
+
|
|
41789
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
41790
|
+
exports.ATCCheckVariant = void 0;
|
|
41791
|
+
const _abstract_object_1 = __webpack_require__(/*! ./_abstract_object */ "./node_modules/@abaplint/core/build/src/objects/_abstract_object.js");
|
|
41792
|
+
class ATCCheckVariant extends _abstract_object_1.AbstractObject {
|
|
41793
|
+
getType() {
|
|
41794
|
+
return "CHKV";
|
|
41795
|
+
}
|
|
41796
|
+
getAllowedNaming() {
|
|
41797
|
+
return {
|
|
41798
|
+
maxLength: 30,
|
|
41799
|
+
allowNamespace: true,
|
|
41800
|
+
};
|
|
41801
|
+
}
|
|
41802
|
+
getDescription() {
|
|
41803
|
+
// todo
|
|
41804
|
+
return undefined;
|
|
41805
|
+
}
|
|
41806
|
+
}
|
|
41807
|
+
exports.ATCCheckVariant = ATCCheckVariant;
|
|
41808
|
+
//# sourceMappingURL=atc_check_variant.js.map
|
|
41809
|
+
|
|
41810
|
+
/***/ }),
|
|
41811
|
+
|
|
41703
41812
|
/***/ "./node_modules/@abaplint/core/build/src/objects/authorization_check_field.js":
|
|
41704
41813
|
/*!************************************************************************************!*\
|
|
41705
41814
|
!*** ./node_modules/@abaplint/core/build/src/objects/authorization_check_field.js ***!
|
|
@@ -44402,6 +44511,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
44402
44511
|
__exportStar(__webpack_require__(/*! ./activation_variant */ "./node_modules/@abaplint/core/build/src/objects/activation_variant.js"), exports);
|
|
44403
44512
|
__exportStar(__webpack_require__(/*! ./api_release_state */ "./node_modules/@abaplint/core/build/src/objects/api_release_state.js"), exports);
|
|
44404
44513
|
__exportStar(__webpack_require__(/*! ./assignment_service_to_authorization_group */ "./node_modules/@abaplint/core/build/src/objects/assignment_service_to_authorization_group.js"), exports);
|
|
44514
|
+
__exportStar(__webpack_require__(/*! ./atc_check_category */ "./node_modules/@abaplint/core/build/src/objects/atc_check_category.js"), exports);
|
|
44515
|
+
__exportStar(__webpack_require__(/*! ./atc_check_object */ "./node_modules/@abaplint/core/build/src/objects/atc_check_object.js"), exports);
|
|
44516
|
+
__exportStar(__webpack_require__(/*! ./atc_check_variant */ "./node_modules/@abaplint/core/build/src/objects/atc_check_variant.js"), exports);
|
|
44405
44517
|
__exportStar(__webpack_require__(/*! ./authorization_check_field */ "./node_modules/@abaplint/core/build/src/objects/authorization_check_field.js"), exports);
|
|
44406
44518
|
__exportStar(__webpack_require__(/*! ./authorization_group */ "./node_modules/@abaplint/core/build/src/objects/authorization_group.js"), exports);
|
|
44407
44519
|
__exportStar(__webpack_require__(/*! ./authorization_object_class */ "./node_modules/@abaplint/core/build/src/objects/authorization_object_class.js"), exports);
|
|
@@ -47879,7 +47991,7 @@ class Registry {
|
|
|
47879
47991
|
}
|
|
47880
47992
|
static abaplintVersion() {
|
|
47881
47993
|
// magic, see build script "version.sh"
|
|
47882
|
-
return "2.101.
|
|
47994
|
+
return "2.101.2";
|
|
47883
47995
|
}
|
|
47884
47996
|
getDDICReferences() {
|
|
47885
47997
|
return this.ddicReferences;
|
|
@@ -51073,6 +51185,9 @@ class CloudTypes {
|
|
|
51073
51185
|
|| obj instanceof Objects.InboundService
|
|
51074
51186
|
|| obj instanceof Objects.Interface
|
|
51075
51187
|
|| obj instanceof Objects.LockObject
|
|
51188
|
+
|| obj instanceof Objects.ATCCheckCategory
|
|
51189
|
+
|| obj instanceof Objects.ATCCheckObject
|
|
51190
|
+
|| obj instanceof Objects.ATCCheckVariant
|
|
51076
51191
|
|| obj instanceof Objects.MessageClass
|
|
51077
51192
|
|| obj instanceof Objects.Package
|
|
51078
51193
|
|| obj instanceof Objects.RestrictionType
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.101.
|
|
3
|
+
"version": "2.101.2",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://abaplint.org",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@abaplint/core": "^2.101.
|
|
41
|
+
"@abaplint/core": "^2.101.2",
|
|
42
42
|
"@types/chai": "^4.3.5",
|
|
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.2.
|
|
46
|
+
"@types/node": "^20.2.3",
|
|
47
47
|
"@types/progress": "^2.0.5",
|
|
48
48
|
"chai": "^4.3.7",
|
|
49
49
|
"chalk": "^5.2.0",
|