@abaplint/cli 2.101.29 → 2.101.30

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.
Files changed (2) hide show
  1. package/build/cli.js +37 -32
  2. package/package.json +5 -5
package/build/cli.js CHANGED
@@ -21720,7 +21720,10 @@ class TypeUtils {
21720
21720
  }
21721
21721
  }
21722
21722
  else if (source instanceof basic_1.XStringType) {
21723
- if (target instanceof basic_1.CLikeType) {
21723
+ if (target instanceof basic_1.CLikeType
21724
+ || target instanceof basic_1.IntegerType
21725
+ || target instanceof basic_1.ObjectReferenceType
21726
+ || target instanceof basic_1.HexType) {
21724
21727
  return false;
21725
21728
  }
21726
21729
  }
@@ -27093,22 +27096,22 @@ const dynamic_1 = __webpack_require__(/*! ../expressions/dynamic */ "./node_modu
27093
27096
  const basic_1 = __webpack_require__(/*! ../../types/basic */ "./node_modules/@abaplint/core/build/src/abap/types/basic/index.js");
27094
27097
  class Assign {
27095
27098
  runSyntax(node, scope, filename) {
27096
- var _a, _b;
27097
- const sources = node.findAllExpressions(Expressions.Source);
27098
- const firstSource = sources[0];
27099
- let sourceType = new source_1.Source().runSyntax(firstSource, scope, filename);
27100
- if (sourceType === undefined || ((_a = node.findDirectExpression(Expressions.AssignSource)) === null || _a === void 0 ? void 0 : _a.findDirectExpression(Expressions.Dynamic))) {
27099
+ var _a, _b, _c;
27100
+ const sources = ((_a = node.findDirectExpression(Expressions.AssignSource)) === null || _a === void 0 ? void 0 : _a.findDirectExpressions(Expressions.Source)) || [];
27101
+ const theSource = sources[sources.length - 1];
27102
+ let sourceType = new source_1.Source().runSyntax(theSource, scope, filename);
27103
+ if (sourceType === undefined || ((_b = node.findDirectExpression(Expressions.AssignSource)) === null || _b === void 0 ? void 0 : _b.findDirectExpression(Expressions.Dynamic))) {
27101
27104
  sourceType = new basic_1.VoidType("DynamicAssign");
27102
27105
  }
27103
- for (const d of ((_b = node.findDirectExpression(Expressions.AssignSource)) === null || _b === void 0 ? void 0 : _b.findAllExpressions(Expressions.Dynamic)) || []) {
27106
+ for (const d of ((_c = node.findDirectExpression(Expressions.AssignSource)) === null || _c === void 0 ? void 0 : _c.findAllExpressions(Expressions.Dynamic)) || []) {
27104
27107
  new dynamic_1.Dynamic().runSyntax(d, scope, filename);
27105
27108
  }
27106
27109
  const target = node.findDirectExpression(Expressions.FSTarget);
27107
27110
  if (target) {
27108
27111
  new fstarget_1.FSTarget().runSyntax(target, scope, filename, sourceType);
27109
27112
  }
27110
- for (const s of sources) {
27111
- if (s === firstSource) {
27113
+ for (const s of node.findAllExpressions(Expressions.Source)) {
27114
+ if (s === theSource) {
27112
27115
  continue;
27113
27116
  }
27114
27117
  new source_1.Source().runSyntax(s, scope, filename);
@@ -48462,7 +48465,7 @@ class Registry {
48462
48465
  }
48463
48466
  static abaplintVersion() {
48464
48467
  // magic, see build script "version.sh"
48465
- return "2.101.29";
48468
+ return "2.101.30";
48466
48469
  }
48467
48470
  getDDICReferences() {
48468
48471
  return this.ddicReferences;
@@ -57104,7 +57107,7 @@ class FunctionModuleRecommendationsConf extends _basic_rule_config_1.BasicRuleCo
57104
57107
  /** Tuple of Function Module Name to be replaced, the recommended alternative and
57105
57108
  * the version from which the recommendation is valid.*/
57106
57109
  this.recommendations = [
57107
- { name: "CALCULATE_HASH_FOR_RAW", replace: "use CL_ABAP_HMAC" },
57110
+ { name: "CALCULATE_HASH_FOR_RAW", replace: "use CL_ABAP_HMAC or CL_ABAP_MESSAGE_DIGEST" },
57108
57111
  { name: "ECATT_CONV_XSTRING_TO_STRING", replace: "use CL_BINARY_CONVERT" },
57109
57112
  { name: "F4_FILENAME", replace: "use CL_GUI_FRONTEND_SERVICES" },
57110
57113
  { name: "FUNCTION_EXISTS", replace: "surround with try-catch CX_SY_DYN_CALL_ILLEGAL_METHOD instead" },
@@ -57113,10 +57116,11 @@ class FunctionModuleRecommendationsConf extends _basic_rule_config_1.BasicRuleCo
57113
57116
  { name: "GUID_CREATE", replace: "use CL_SYSTEM_UUID" },
57114
57117
  { name: "IGN_TIMESTAMP_DIFFERENCE", replace: "use CL_ABAP_TSTMP" },
57115
57118
  { name: "IGN_TIMESTAMP_PLUSMINUS", replace: "use CL_ABAP_TSTMP" },
57119
+ { name: "ISM_SD_GET PRICING CONDITIONS", replace: "use CL_PRC_RESULT_FACTORY as per note 2220005" },
57116
57120
  { name: "JOB_CREATE", replace: "use CL_BP_ABAP_JOB" },
57117
57121
  { name: "JOB_SUBMIT", replace: "use CL_BP_ABAP_JOB" },
57118
- { name: "POPUP_TO_DECIDE", replace: "use POPUP_TO_CONFIRM" },
57119
57122
  { name: "POPUP_TO_CONFIRM_STEP", replace: "use POPUP_TO_CONFIRM" },
57123
+ { name: "POPUP_TO_DECIDE", replace: "use POPUP_TO_CONFIRM" },
57120
57124
  { name: "POPUP_TO_GET_VALUE", replace: "use POPUP_GET_VALUES" },
57121
57125
  { name: "REUSE_ALV_GRID_DISPLAY", replace: "use CL_SALV_TABLE=>FACTORY or CL_GUI_ALV_GRID" },
57122
57126
  { name: "ROUND", replace: "use built in function: round()" },
@@ -80775,27 +80779,27 @@ module.exports = require("zlib");
80775
80779
  __webpack_require__.r(__webpack_exports__);
80776
80780
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
80777
80781
  /* harmony export */ Chalk: () => (/* binding */ Chalk),
80778
- /* harmony export */ backgroundColorNames: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_0__.backgroundColorNames),
80779
- /* harmony export */ backgroundColors: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_0__.backgroundColorNames),
80782
+ /* harmony export */ backgroundColorNames: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_1__.backgroundColorNames),
80783
+ /* harmony export */ backgroundColors: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_1__.backgroundColorNames),
80780
80784
  /* harmony export */ chalkStderr: () => (/* binding */ chalkStderr),
80781
- /* harmony export */ colorNames: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_0__.colorNames),
80782
- /* harmony export */ colors: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_0__.colorNames),
80785
+ /* harmony export */ colorNames: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_1__.colorNames),
80786
+ /* harmony export */ colors: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_1__.colorNames),
80783
80787
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
80784
- /* harmony export */ foregroundColorNames: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_0__.foregroundColorNames),
80785
- /* harmony export */ foregroundColors: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_0__.foregroundColorNames),
80786
- /* harmony export */ modifierNames: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_0__.modifierNames),
80787
- /* harmony export */ modifiers: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_0__.modifierNames),
80788
+ /* harmony export */ foregroundColorNames: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_1__.foregroundColorNames),
80789
+ /* harmony export */ foregroundColors: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_1__.foregroundColorNames),
80790
+ /* harmony export */ modifierNames: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_1__.modifierNames),
80791
+ /* harmony export */ modifiers: () => (/* reexport safe */ _ansi_styles__WEBPACK_IMPORTED_MODULE_1__.modifierNames),
80788
80792
  /* harmony export */ supportsColor: () => (/* binding */ stdoutColor),
80789
80793
  /* harmony export */ supportsColorStderr: () => (/* binding */ stderrColor)
80790
80794
  /* harmony export */ });
80791
- /* harmony import */ var _ansi_styles__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./vendor/ansi-styles/index.js */ "./node_modules/chalk/source/vendor/ansi-styles/index.js");
80792
- /* harmony import */ var _supports_color__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! #supports-color */ "./node_modules/chalk/source/vendor/supports-color/index.js");
80795
+ /* harmony import */ var _ansi_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./vendor/ansi-styles/index.js */ "./node_modules/chalk/source/vendor/ansi-styles/index.js");
80796
+ /* harmony import */ var _supports_color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! #supports-color */ "./node_modules/chalk/source/vendor/supports-color/index.js");
80793
80797
  /* harmony import */ var _utilities_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utilities.js */ "./node_modules/chalk/source/utilities.js");
80794
80798
 
80795
80799
 
80796
80800
 
80797
80801
 
80798
- const {stdout: stdoutColor, stderr: stderrColor} = _supports_color__WEBPACK_IMPORTED_MODULE_1__["default"];
80802
+ const {stdout: stdoutColor, stderr: stderrColor} = _supports_color__WEBPACK_IMPORTED_MODULE_0__["default"];
80799
80803
 
80800
80804
  const GENERATOR = Symbol('GENERATOR');
80801
80805
  const STYLER = Symbol('STYLER');
@@ -80843,7 +80847,7 @@ function createChalk(options) {
80843
80847
 
80844
80848
  Object.setPrototypeOf(createChalk.prototype, Function.prototype);
80845
80849
 
80846
- for (const [styleName, style] of Object.entries(_ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"])) {
80850
+ for (const [styleName, style] of Object.entries(_ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"])) {
80847
80851
  styles[styleName] = {
80848
80852
  get() {
80849
80853
  const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
@@ -80864,21 +80868,21 @@ styles.visible = {
80864
80868
  const getModelAnsi = (model, level, type, ...arguments_) => {
80865
80869
  if (model === 'rgb') {
80866
80870
  if (level === 'ansi16m') {
80867
- return _ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"][type].ansi16m(...arguments_);
80871
+ return _ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"][type].ansi16m(...arguments_);
80868
80872
  }
80869
80873
 
80870
80874
  if (level === 'ansi256') {
80871
- return _ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"][type].ansi256(_ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"].rgbToAnsi256(...arguments_));
80875
+ return _ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"][type].ansi256(_ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"].rgbToAnsi256(...arguments_));
80872
80876
  }
80873
80877
 
80874
- return _ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"][type].ansi(_ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"].rgbToAnsi(...arguments_));
80878
+ return _ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"][type].ansi(_ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"].rgbToAnsi(...arguments_));
80875
80879
  }
80876
80880
 
80877
80881
  if (model === 'hex') {
80878
- return getModelAnsi('rgb', level, type, ..._ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"].hexToRgb(...arguments_));
80882
+ return getModelAnsi('rgb', level, type, ..._ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"].hexToRgb(...arguments_));
80879
80883
  }
80880
80884
 
80881
- return _ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"][type][model](...arguments_);
80885
+ return _ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"][type][model](...arguments_);
80882
80886
  };
80883
80887
 
80884
80888
  const usedModels = ['rgb', 'hex', 'ansi256'];
@@ -80888,7 +80892,7 @@ for (const model of usedModels) {
80888
80892
  get() {
80889
80893
  const {level} = this;
80890
80894
  return function (...arguments_) {
80891
- const styler = createStyler(getModelAnsi(model, levelMapping[level], 'color', ...arguments_), _ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"].color.close, this[STYLER]);
80895
+ const styler = createStyler(getModelAnsi(model, levelMapping[level], 'color', ...arguments_), _ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"].color.close, this[STYLER]);
80892
80896
  return createBuilder(this, styler, this[IS_EMPTY]);
80893
80897
  };
80894
80898
  },
@@ -80899,7 +80903,7 @@ for (const model of usedModels) {
80899
80903
  get() {
80900
80904
  const {level} = this;
80901
80905
  return function (...arguments_) {
80902
- const styler = createStyler(getModelAnsi(model, levelMapping[level], 'bgColor', ...arguments_), _ansi_styles__WEBPACK_IMPORTED_MODULE_0__["default"].bgColor.close, this[STYLER]);
80906
+ const styler = createStyler(getModelAnsi(model, levelMapping[level], 'bgColor', ...arguments_), _ansi_styles__WEBPACK_IMPORTED_MODULE_1__["default"].bgColor.close, this[STYLER]);
80903
80907
  return createBuilder(this, styler, this[IS_EMPTY]);
80904
80908
  };
80905
80909
  },
@@ -81314,6 +81318,7 @@ __webpack_require__.r(__webpack_exports__);
81314
81318
 
81315
81319
 
81316
81320
  // From: https://github.com/sindresorhus/has-flag/blob/main/index.js
81321
+ /// function hasFlag(flag, argv = globalThis.Deno?.args ?? process.argv) {
81317
81322
  function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : node_process__WEBPACK_IMPORTED_MODULE_0__.argv) {
81318
81323
  const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
81319
81324
  const position = argv.indexOf(prefix + flag);
@@ -81422,7 +81427,7 @@ function _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {
81422
81427
  }
81423
81428
 
81424
81429
  if ('CI' in env) {
81425
- if ('GITHUB_ACTIONS' in env) {
81430
+ if ('GITHUB_ACTIONS' in env || 'GITEA_ACTIONS' in env) {
81426
81431
  return 3;
81427
81432
  }
81428
81433
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.101.29",
3
+ "version": "2.101.30",
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.101.29",
41
+ "@abaplint/core": "^2.101.30",
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.3.2",
46
+ "@types/node": "^20.3.3",
47
47
  "@types/progress": "^2.0.5",
48
48
  "chai": "^4.3.7",
49
- "chalk": "^5.2.0",
50
- "eslint": "^8.43.0",
49
+ "chalk": "^5.3.0",
50
+ "eslint": "^8.44.0",
51
51
  "glob": "^7.2.3",
52
52
  "json5": "^2.2.3",
53
53
  "memfs": "^4.2.0",